| 1 |
// Alerts |
| 2 |
// |
| 3 |
// Located in `wyrm_core/_alert.sass`. Alerts can exist as in page notices and as fixed drops. |
| 4 |
// |
| 5 |
// Markup: |
| 6 |
// <div class="wy-alert {$modifiers}"> |
| 7 |
// <div class="wy-alert-title">Title goes here</div> |
| 8 |
// <p>Alert instructions go here.</p> |
| 9 |
// </div> |
| 10 |
// |
| 11 |
// .wy-alert-neutral - Generic alert, extra instruction. |
| 12 |
// .wy-alert-success - Hooray, something good happened. |
| 13 |
// .wy-alert-warning - Watch out, you might make a mistake. |
| 14 |
// .wy-alert-danger - Yep, you made a mistake. |
| 15 |
// |
| 16 |
// Styleguide 2 |
| 17 |
|
| 18 |
.wy-alert |
| 19 |
padding: $base-line-height / 2 |
| 20 |
line-height: $base-line-height |
| 21 |
margin-bottom: $base-line-height |
| 22 |
background: lighten($blue, 50%) |
| 23 |
+font-smooth |
| 24 |
.wy-alert-title |
| 25 |
color: $white |
| 26 |
font-weight: bold |
| 27 |
display: block |
| 28 |
color: $white |
| 29 |
background: lighten($blue,20%) |
| 30 |
margin: -$base-line-height / 2 |
| 31 |
padding: $base-line-height / 4 $base-line-height / 2 |
| 32 |
margin-bottom: $base-line-height / 2 |
| 33 |
|
| 34 |
.wy-alert.wy-alert-danger |
| 35 |
background: lighten($red, 40%) |
| 36 |
.wy-alert-title |
| 37 |
background: lighten($red,20%) |
| 38 |
.wy-alert.wy-alert-warning |
| 39 |
background: lighten(orange,40%) |
| 40 |
.wy-alert-title |
| 41 |
background: lighten($orange,20%) |
| 42 |
|
| 43 |
.wy-alert.wy-alert-info |
| 44 |
background: lighten($blue, 50%) |
| 45 |
.wy-alert-title |
| 46 |
background: lighten($blue,20%) |
| 47 |
|
| 48 |
.wy-alert.wy-alert-success |
| 49 |
background: lighten($offgreen, 50%) |
| 50 |
.wy-alert-title |
| 51 |
background: lighten($offgreen,0%) |
| 52 |
|
| 53 |
.wy-alert.wy-alert-neutral |
| 54 |
background: $table-stripe-color |
| 55 |
.wy-alert-title |
| 56 |
color: $text-color |
| 57 |
background: $table-border-color |
| 58 |
a |
| 59 |
color: $link-color |
| 60 |
|
| 61 |
.wy-alert p:last-child |
| 62 |
margin-bottom: 0 |
| 63 |
|
| 64 |
// System alerts |
| 65 |
// |
| 66 |
// These alerts should trigger when a form error or something happens. |
| 67 |
// Because these docs are auto-generated know that these alerts |
| 68 |
// **will not output** below because they are set to |
| 69 |
// display: none by default. |
| 70 |
// |
| 71 |
// Markup: |
| 72 |
// <ul class="wy-tray-container"> |
| 73 |
// <li class="{$modifiers}">Alert instructions go here.</li> |
| 74 |
// </ul> |
| 75 |
// |
| 76 |
// .wy-tray-item-info - Generic alert, extra instruction. |
| 77 |
// .wy-tray-item-success - Hooray, something good happened. |
| 78 |
// .wy-tray-item-warning - Watch out, you might make a mistake. |
| 79 |
// .wy-tray-item-danger - Yep, you made a mistake. |
| 80 |
// |
| 81 |
// Styleguide 2.1 |
| 82 |
|
| 83 |
|
| 84 |
.wy-tray-container |
| 85 |
position: fixed |
| 86 |
bottom: 0px |
| 87 |
left: 0 |
| 88 |
z-index: $z-index-alert |
| 89 |
li |
| 90 |
display: block |
| 91 |
width: $nav-desktop-width |
| 92 |
background: transparent |
| 93 |
color: $white |
| 94 |
text-align: center |
| 95 |
box-shadow: 0 5px 5px 0 rgba(0,0,0,.1) |
| 96 |
padding: 0 $base-line-height |
| 97 |
min-width: 20% |
| 98 |
opacity: 0 |
| 99 |
height: 0 |
| 100 |
line-height: 56px |
| 101 |
overflow: hidden |
| 102 |
+transition(all .3s ease-in) |
| 103 |
&.wy-tray-item-success |
| 104 |
background: $green |
| 105 |
&.wy-tray-item-info |
| 106 |
background: $blue |
| 107 |
&.wy-tray-item-warning |
| 108 |
background: $orange |
| 109 |
&.wy-tray-item-danger |
| 110 |
background: $red |
| 111 |
&.on |
| 112 |
opacity: 1 |
| 113 |
height: 56px |
| 114 |
|
| 115 |
+media($tablet) |
| 116 |
.wy-tray-container |
| 117 |
bottom: auto |
| 118 |
top: 0 |
| 119 |
width: 100% |
| 120 |
li |
| 121 |
width: 100% |
| 122 |
|