Commit b62d4f6dca1875e7daa3cd833ecb0c7293ac0b48
1 parent
8f85c5cd
Exists in
spb-stable
and in
3 other branches
Add .bs-callout styles
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
45 additions
and
0 deletions
Show diff stats
app/assets/stylesheets/gl_bootstrap.scss
| ... | ... | @@ -127,3 +127,48 @@ |
| 127 | 127 | padding: 6px 9px; |
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | + | |
| 131 | +/* | |
| 132 | + * Callouts from Bootstrap3 docs | |
| 133 | + * | |
| 134 | + * Not quite alerts, but custom and helpful notes for folks reading the docs. | |
| 135 | + * Requires a base and modifier class. | |
| 136 | + */ | |
| 137 | + | |
| 138 | +/* Common styles for all types */ | |
| 139 | +.bs-callout { | |
| 140 | + margin: 20px 0; | |
| 141 | + padding: 20px; | |
| 142 | + border-left: 3px solid #eee; | |
| 143 | + color: #666; | |
| 144 | + background: #f9f9f9; | |
| 145 | +} | |
| 146 | +.bs-callout h4 { | |
| 147 | + margin-top: 0; | |
| 148 | + margin-bottom: 5px; | |
| 149 | +} | |
| 150 | +.bs-callout p:last-child { | |
| 151 | + margin-bottom: 0; | |
| 152 | +} | |
| 153 | + | |
| 154 | +/* Variations */ | |
| 155 | +.bs-callout-danger { | |
| 156 | + background-color: #fdf7f7; | |
| 157 | + border-color: #eed3d7; | |
| 158 | + color: #b94a48; | |
| 159 | +} | |
| 160 | +.bs-callout-warning { | |
| 161 | + background-color: #faf8f0; | |
| 162 | + border-color: #faebcc; | |
| 163 | + color: #8a6d3b; | |
| 164 | +} | |
| 165 | +.bs-callout-info { | |
| 166 | + background-color: #f4f8fa; | |
| 167 | + border-color: #bce8f1; | |
| 168 | + color: #34789a; | |
| 169 | +} | |
| 170 | +.bs-callout-success { | |
| 171 | + background-color: #dff0d8; | |
| 172 | + border-color: #5cA64d; | |
| 173 | + color: #3c763d; | |
| 174 | +} | ... | ... |