Browse Source

Fixing basic alert stuff.

pull/231/head
connors 11 years ago
parent
commit
5e90153b51
  1. 21
      dist/ratchet.css
  2. 3
      examples/app-default/index.html
  3. 17
      lib/sass/alerts.scss

21
dist/ratchet.css vendored

@ -1003,6 +1003,21 @@ input[type="button"] {
border-radius: 3px; border-radius: 3px;
z-index: 10; z-index: 10;
} }
.alert .close {
position: relative;
top: -2px;
float: right;
cursor: pointer;
-webkit-transition: opacity;
transition: opacity;
-webkit-transition-duration: 0.2s;
transition-duration: 0.2s;
-webkit-transition-timing-function: linear;
transition-timing-function: linear;
}
.alert .close:active {
opacity: .6;
}
.alert-positive { .alert-positive {
background-color: rgba(76, 217, 100, 0.97); background-color: rgba(76, 217, 100, 0.97);
@ -1013,7 +1028,11 @@ input[type="button"] {
} }
.alert-inline { .alert-inline {
position: static; position: relative;
top: auto;
bottom: auto;
left: auto;
right: auto;
margin: 15px; margin: 15px;
} }

3
examples/app-default/index.html

@ -20,6 +20,7 @@
<!-- Alert --> <!-- Alert -->
<div class="alert alert-negative"> <div class="alert alert-negative">
<span class="icon icon-share close"></span>
<strong>This</strong> is an alert. <strong>This</strong> is an alert.
</div> </div>
@ -71,8 +72,8 @@
</div> </div>
<div class="alert alert-positive alert-inline"> <div class="alert alert-positive alert-inline">
<span class="icon icon-share close"></span>
<strong>This</strong> is an inline alert. <strong>This</strong> is an inline alert.
<button>x</button>
</div> </div>
<ul class="table-view"> <ul class="table-view">

17
lib/sass/alerts.scss

@ -15,8 +15,15 @@
.close { .close {
position: relative; position: relative;
top: -2px; top: -2px;
right: -21px; float: right;
color: inherit; cursor: pointer;
@include transition(opacity);
@include transition-duration(.2s);
@include transition-timing-function(linear);
&:active {
opacity: .6;
}
} }
} }
@ -32,6 +39,10 @@
// Inline alert // Inline alert
.alert-inline { .alert-inline {
position: static; position: relative;
top: auto;
bottom: auto;
left: auto;
right: auto;
margin: 15px; margin: 15px;
} }

Loading…
Cancel
Save