groundworkcss-rails 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/groundworkcss/rails/version.rb +1 -1
- data/lib/groundworkcss/rails/version.rb~ +1 -1
- data/vendor/assets/javascripts/groundworkcss/components/disabled.js +13 -12
- data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.js +31 -28
- data/vendor/assets/javascripts/groundworkcss/components/forms.js +21 -20
- data/vendor/assets/javascripts/groundworkcss/components/menus.js +88 -78
- data/vendor/assets/javascripts/groundworkcss/components/modals.js +7 -4
- data/vendor/assets/javascripts/groundworkcss/components/pagination.js +87 -82
- data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.js +22 -18
- data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +38 -31
- data/vendor/assets/javascripts/groundworkcss/components/tabs.js +19 -17
- data/vendor/assets/javascripts/groundworkcss/components/tiles.js +24 -21
- data/vendor/assets/javascripts/groundworkcss/components/tooltips.js +7 -4
- data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +974 -821
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-modals.js +193 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-popover.js +208 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.js +64 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.js +46 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-tooltip.js +137 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_settings.scss +149 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/base/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_animations.scss → base/_animations.scss} +7 -3
- data/vendor/assets/stylesheets/groundworkcss-scss/{_global.scss → base/_global.scss} +27 -10
- data/vendor/assets/stylesheets/groundworkcss-scss/{_grid.scss → base/_grid.scss} +5 -3
- data/vendor/assets/stylesheets/groundworkcss-scss/{_helpers.scss → base/_helpers.scss} +61 -18
- data/vendor/assets/stylesheets/groundworkcss-scss/{_reset.scss → base/_reset.scss} +36 -31
- data/vendor/assets/stylesheets/groundworkcss-scss/core/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_variables.scss → core/_constants.scss} +7 -58
- data/vendor/assets/stylesheets/groundworkcss-scss/core/_defaults.scss +150 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_mixins.scss → core/_mixins.scss} +6 -97
- data/vendor/assets/stylesheets/groundworkcss-scss/form/_all.scss +10 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_forms.scss → form/_forms.scss} +96 -80
- data/vendor/assets/stylesheets/groundworkcss-scss/form/_tiles.scss +100 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +10 -8
- data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +12 -32
- data/vendor/assets/stylesheets/groundworkcss-scss/{_popovers.scss → misc/_all.scss} +3 -4
- data/vendor/assets/stylesheets/groundworkcss-scss/{_social-icons.scss → misc/_social-icons.scss} +4 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/nav/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/nav/_buttons.scss +328 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_navigation.scss → nav/_navigation.scss} +8 -5
- data/vendor/assets/stylesheets/groundworkcss-scss/nav/_tabs.scss +230 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/no-svg.scss +9 -7
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_all.scss +13 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_desktop.scss +26 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_helpers.scss +16 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_ipad.scss +28 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_mobile.scss +44 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_small-tablet.scss +196 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/type/_all.scss +9 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_font-awesome.scss → type/_font-awesome.scss} +10 -2
- data/vendor/assets/stylesheets/groundworkcss-scss/{_typography.scss → type/_typography.scss} +172 -60
- data/vendor/assets/stylesheets/groundworkcss-scss/type/_webfonts.scss +28 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_ui-elements.scss → ui/_all.scss} +4 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/ui/_callouts.scss +117 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/ui/_messages.scss +111 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_modals.scss → ui/_modals.scss} +2 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/ui/_popovers.scss +81 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/ui/_tables.scss +142 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/{_tooltips.scss → ui/_tooltips.scss} +35 -0
- metadata +56 -40
- data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +0 -231
- data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +0 -74
- data/vendor/assets/stylesheets/groundworkcss-scss/_cycle.scss +0 -20
- data/vendor/assets/stylesheets/groundworkcss-scss/_messages.scss +0 -69
- data/vendor/assets/stylesheets/groundworkcss-scss/_mobile-reset.scss +0 -11
- data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +0 -246
- data/vendor/assets/stylesheets/groundworkcss-scss/_tables.scss +0 -85
- data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +0 -172
- data/vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss +0 -198
- data/vendor/assets/stylesheets/groundworkcss-scss/_webfonts.scss +0 -19
@@ -0,0 +1,9 @@
|
|
1
|
+
// =============================================
|
2
|
+
// GroundworkCSS by Gary Hepting
|
3
|
+
// Last Updated:2013-5-3
|
4
|
+
// =============================================
|
5
|
+
|
6
|
+
|
7
|
+
@import "font-awesome"; // recommended (used by other components)
|
8
|
+
@import "webfonts"; // optional (WIP)
|
9
|
+
@import "typography"; // optional
|
data/vendor/assets/stylesheets/groundworkcss-scss/{_font-awesome.scss → type/_font-awesome.scss}
RENAMED
@@ -1,5 +1,13 @@
|
|
1
|
+
// =============================================
|
2
|
+
// Font Awesome 3.0.2b
|
3
|
+
// Last Updated:2013-4-24
|
4
|
+
// =============================================
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
1
9
|
/*!
|
2
|
-
* Font Awesome 3.0.
|
10
|
+
* Font Awesome 3.0.2b (customized for use with Groundwork)
|
3
11
|
* the iconic font designed for use with Twitter Bootstrap
|
4
12
|
* -------------------------------------------------------
|
5
13
|
* The full suite of pictographic icons, examples, and documentation
|
@@ -24,7 +32,7 @@
|
|
24
32
|
$fontAwesomePath: "#{$root_path}#{$fonts_path}" !default;
|
25
33
|
$borderColor: #eee;
|
26
34
|
$iconMuted: #eee;
|
27
|
-
@mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; border-radius: $radius; }
|
35
|
+
// @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; border-radius: $radius; }
|
28
36
|
|
29
37
|
|
30
38
|
@font-face {
|
data/vendor/assets/stylesheets/groundworkcss-scss/{_typography.scss → type/_typography.scss}
RENAMED
@@ -1,31 +1,24 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
1
|
+
// =============================================
|
2
|
+
// Typography
|
3
|
+
// Last Updated:2013-4-24
|
4
|
+
// =============================================
|
4
5
|
|
5
6
|
|
6
7
|
|
7
8
|
|
8
|
-
|
9
|
+
%document {
|
9
10
|
font-family:$font-family;
|
10
11
|
font-size:$font-size;
|
11
12
|
line-height:1.2;
|
12
13
|
color:$font-color;
|
13
14
|
}
|
14
|
-
|
15
|
-
|
16
|
-
color:$selection-text;
|
17
|
-
}
|
18
|
-
::-moz-selection {
|
15
|
+
|
16
|
+
%selection {
|
19
17
|
background:$selection-color;
|
20
18
|
color:$selection-text;
|
21
19
|
}
|
22
|
-
|
23
|
-
|
24
|
-
// &:focus {
|
25
|
-
// @include filter-shadow(rgba(0,0,0,0.35), 15px, 0, 0);
|
26
|
-
// }
|
27
|
-
// }
|
28
|
-
a, a:visited {
|
20
|
+
|
21
|
+
%links {
|
29
22
|
color:$link-color;
|
30
23
|
@include transition(color 0.25s);
|
31
24
|
&:hover, &:focus {
|
@@ -33,51 +26,81 @@ a, a:visited {
|
|
33
26
|
text-decoration:underline;
|
34
27
|
}
|
35
28
|
}
|
36
|
-
|
29
|
+
|
30
|
+
%heading {
|
37
31
|
line-height:1.3;
|
38
32
|
margin-bottom:15px;
|
39
33
|
}
|
40
|
-
|
34
|
+
|
35
|
+
%h1 {
|
36
|
+
@extend %heading;
|
41
37
|
font-weight:200;
|
42
38
|
font-size:$font-size * 2.3333333333;
|
43
39
|
}
|
44
|
-
|
40
|
+
|
41
|
+
%h2 {
|
42
|
+
@extend %heading;
|
45
43
|
font-weight:200;
|
46
44
|
font-size:$font-size * 2;
|
47
45
|
}
|
48
|
-
|
46
|
+
|
47
|
+
%h3 {
|
48
|
+
@extend %heading;
|
49
49
|
font-weight:500;
|
50
50
|
font-size:$font-size * 1.5;
|
51
51
|
}
|
52
|
-
|
52
|
+
|
53
|
+
%h4 {
|
54
|
+
@extend %heading;
|
53
55
|
font-weight:500;
|
54
56
|
font-size:$font-size * 1.3333333333;
|
55
57
|
}
|
56
|
-
|
58
|
+
|
59
|
+
%h5 {
|
60
|
+
@extend %heading;
|
57
61
|
font-weight:900;
|
58
62
|
font-size:$font-size * 1.1666666667;
|
59
63
|
}
|
60
|
-
|
64
|
+
|
65
|
+
%h6 {
|
66
|
+
@extend %heading;
|
61
67
|
font-weight:900;
|
62
68
|
font-size:$font-size * 1.1666666667;
|
63
69
|
text-transform:uppercase;
|
64
70
|
}
|
65
|
-
|
71
|
+
|
72
|
+
%p, %ul, %ol, %dl {
|
66
73
|
margin-bottom:10px;
|
67
74
|
font-weight:normal;
|
68
75
|
font-size:1em;
|
69
76
|
line-height:1.6;
|
70
77
|
}
|
71
|
-
|
78
|
+
|
79
|
+
%list {
|
72
80
|
margin-left:20px;
|
73
|
-
|
81
|
+
%list-item {
|
74
82
|
display:list-item;
|
75
83
|
}
|
76
84
|
}
|
77
|
-
|
85
|
+
|
86
|
+
%dl {
|
87
|
+
%dt {
|
88
|
+
font-weight:bold;
|
89
|
+
}
|
90
|
+
%dd {
|
91
|
+
padding-left:1em;
|
92
|
+
margin-bottom:$gutter;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
%unstyled-list {
|
78
97
|
list-style:none;
|
98
|
+
}
|
99
|
+
|
100
|
+
%ul-list {
|
101
|
+
@extend %unstyled-list;
|
79
102
|
margin-left:0;
|
80
|
-
|
103
|
+
%list-item {
|
81
104
|
&:before {
|
82
105
|
content:'\f00c';
|
83
106
|
display:inline-block;
|
@@ -98,11 +121,12 @@ ul.list {
|
|
98
121
|
}
|
99
122
|
}
|
100
123
|
}
|
101
|
-
|
124
|
+
|
125
|
+
%ol-list {
|
126
|
+
@extend %unstyled-list;
|
102
127
|
counter-reset:li;
|
103
|
-
list-style:none;
|
104
128
|
margin-left:1.5em;
|
105
|
-
|
129
|
+
%list-item {
|
106
130
|
position:relative;
|
107
131
|
padding:2px 6px 0;
|
108
132
|
&:before {
|
@@ -122,16 +146,8 @@ ol.list {
|
|
122
146
|
}
|
123
147
|
}
|
124
148
|
}
|
125
|
-
|
126
|
-
|
127
|
-
font-weight:bold;
|
128
|
-
}
|
129
|
-
dd {
|
130
|
-
padding-left:1em;
|
131
|
-
margin-bottom:$gutter;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
blockquote {
|
149
|
+
|
150
|
+
%blockquote {
|
135
151
|
padding:1.3em 4em 1em;
|
136
152
|
color:$font-color;
|
137
153
|
font-size:$font-size*1.15;
|
@@ -160,7 +176,8 @@ blockquote {
|
|
160
176
|
z-index:-1;
|
161
177
|
}
|
162
178
|
}
|
163
|
-
|
179
|
+
|
180
|
+
%cite {
|
164
181
|
display:block;
|
165
182
|
position:relative;
|
166
183
|
left:-1em;
|
@@ -173,14 +190,29 @@ cite {
|
|
173
190
|
content:'\2014';
|
174
191
|
}
|
175
192
|
}
|
176
|
-
small, .small { font-size:0.8em; }
|
177
|
-
big, .big, .large { font-size:1.5em; }
|
178
|
-
em, .italic { font-style:italic; }
|
179
|
-
b, strong, .bold, .strong { font-weight:900; }
|
180
|
-
sup { font-size:0.8em; }
|
181
|
-
sub { font-size:0.8em; }
|
182
193
|
|
183
|
-
|
194
|
+
%abbr {
|
195
|
+
border-bottom:1px dotted;
|
196
|
+
cursor:help;
|
197
|
+
}
|
198
|
+
|
199
|
+
%small { @extend %small; }
|
200
|
+
%big, %large { @extend %large; }
|
201
|
+
%em, %italic { font-style:italic; }
|
202
|
+
%b, %bold, %strong { font-weight:900; }
|
203
|
+
%sup { @extend %small; }
|
204
|
+
%sub { @extend %small; }
|
205
|
+
%monospace { font-family:monospace; }
|
206
|
+
%del, %strike { text-decoration: line-through; }
|
207
|
+
|
208
|
+
@for $i from 1 through length($modifier-name) {
|
209
|
+
%#{nth($modifier-name, $i)} {
|
210
|
+
color:#{nth($modifier-text, $i)};
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
%code {
|
215
|
+
@extend %monospace;
|
184
216
|
white-space:pre-wrap;
|
185
217
|
word-wrap:break-word;
|
186
218
|
min-height:1em;
|
@@ -193,7 +225,8 @@ code {
|
|
193
225
|
line-height:inherit;
|
194
226
|
}
|
195
227
|
|
196
|
-
pre {
|
228
|
+
%pre {
|
229
|
+
@extend %monospace;
|
197
230
|
$border:2.6em;
|
198
231
|
color:white;
|
199
232
|
background:#050505;
|
@@ -202,7 +235,7 @@ pre {
|
|
202
235
|
display:block;
|
203
236
|
border-left:#{$border} solid gray;
|
204
237
|
counter-reset:linenumber;
|
205
|
-
code {
|
238
|
+
%code {
|
206
239
|
display:block;
|
207
240
|
background:inherit;
|
208
241
|
margin:0;
|
@@ -219,15 +252,12 @@ pre {
|
|
219
252
|
}
|
220
253
|
}
|
221
254
|
|
222
|
-
|
223
|
-
|
224
|
-
}
|
225
|
-
|
226
|
-
color:$success-color;
|
227
|
-
|
228
|
-
.warning {
|
229
|
-
color:$warning-color;
|
230
|
-
}
|
255
|
+
%info { color:$info-color; }
|
256
|
+
%alert { color:$alert-color; }
|
257
|
+
%warning { color:$warning-color; }
|
258
|
+
%error, %invalid { color:$error-color; }
|
259
|
+
%success, %valid { color:$success-color; }
|
260
|
+
|
231
261
|
// responsive headings
|
232
262
|
.js {
|
233
263
|
.responsive:not(table) {
|
@@ -235,3 +265,85 @@ pre {
|
|
235
265
|
@include transition(font 0.25s);
|
236
266
|
}
|
237
267
|
}
|
268
|
+
|
269
|
+
@if $tags {
|
270
|
+
body {
|
271
|
+
@extend %document;
|
272
|
+
}
|
273
|
+
::selection {
|
274
|
+
@extend %selection;
|
275
|
+
}
|
276
|
+
::-moz-selection {
|
277
|
+
@extend %selection;
|
278
|
+
}
|
279
|
+
a, a:visited {
|
280
|
+
@extend %links;
|
281
|
+
}
|
282
|
+
ul, ol {
|
283
|
+
@extend %list;
|
284
|
+
li {
|
285
|
+
@extend %list-item;
|
286
|
+
}
|
287
|
+
}
|
288
|
+
dl {
|
289
|
+
@extend %dl;
|
290
|
+
dt {
|
291
|
+
@extend %dt;
|
292
|
+
}
|
293
|
+
dd {
|
294
|
+
@extend %dd;
|
295
|
+
}
|
296
|
+
}
|
297
|
+
abbr[title], dfn[title],
|
298
|
+
abbr[data-title], dfn[data-title] {
|
299
|
+
@extend %abbr;
|
300
|
+
}
|
301
|
+
$elements: h1 h2 h3 h4 h5 h6 p ul ol dl blockquote cite small big em b strong sup sub del strike code pre;
|
302
|
+
@for $i from 1 through length($elements) {
|
303
|
+
@if not index($tag-elements, nth($elements, $i)) == false {
|
304
|
+
#{nth($elements, $i)} {
|
305
|
+
@extend %#{nth($elements, $i)};
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
@if $classes {
|
311
|
+
$names: h1 h2 h3 h4 h5 h6 p blockquote cite small big large em italic b bold strong sup sub del strike code pre info alert warning error invalid success valid;
|
312
|
+
@for $i from 1 through length($names) {
|
313
|
+
.#{nth($names, $i)} {
|
314
|
+
@extend %#{nth($names, $i)};
|
315
|
+
}
|
316
|
+
}
|
317
|
+
@for $i from 1 through length($modifier-name) {
|
318
|
+
.#{nth($modifier-name, $i)} {
|
319
|
+
color:#{nth($modifier-code, $i)};
|
320
|
+
}
|
321
|
+
}
|
322
|
+
ul, ol {
|
323
|
+
&.unstyled {
|
324
|
+
@extend %unstyled-list;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
ul.list {
|
328
|
+
@extend %ul-list;
|
329
|
+
> li {
|
330
|
+
@extend %list-item;
|
331
|
+
}
|
332
|
+
}
|
333
|
+
ol.list {
|
334
|
+
@extend %ol-list;
|
335
|
+
|
336
|
+
@for $i from 1 through length($modifier-name) {
|
337
|
+
&.#{nth($modifier-name, $i)} {
|
338
|
+
li {
|
339
|
+
&:before {
|
340
|
+
background:#{nth($modifier-code, $i)};
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
> li {
|
346
|
+
@extend %list-item;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
// =============================================
|
2
|
+
// Web Fonts
|
3
|
+
// Last Updated:2013-4-25
|
4
|
+
// =============================================
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
@for $i from 1 through length($web-font-files) {
|
10
|
+
// @include font-face('#{nth($web-font-names, $i)}', inline-font-files("#{nth($web-font-files, $i)}.eot", "#{nth($web-font-files, $i)}.woff", "#{nth($web-font-files, $i)}.ttf"));
|
11
|
+
@font-face {
|
12
|
+
font-family: '#{nth($web-font-names, $i)}';
|
13
|
+
font-style: normal;
|
14
|
+
font-weight: normal;
|
15
|
+
src: url('#{$root_path}#{$fonts_path}#{nth($web-font-files, $i)}#iefix');
|
16
|
+
src: url('#{$root_path}#{$fonts_path}#{nth($web-font-files, $i)}.eot') format('embedded-opentype'),
|
17
|
+
url('#{$root_path}#{$fonts_path}#{nth($web-font-files, $i)}.woff') format('woff'),
|
18
|
+
url('#{$root_path}#{$fonts_path}#{nth($web-font-files, $i)}.ttf') format('truetype');
|
19
|
+
}
|
20
|
+
%#{nth($web-font-names, $i)} {
|
21
|
+
@include font-stack(#{nth($web-font-names, $i)});
|
22
|
+
}
|
23
|
+
@if $classes {
|
24
|
+
.#{nth($web-font-names, $i)} {
|
25
|
+
@extend %#{nth($web-font-names, $i)};
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
// =============================================
|
2
|
+
// Callout Panels
|
3
|
+
// Last Updated:2013-4-24
|
4
|
+
// =============================================
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
%callout {
|
10
|
+
position:relative;
|
11
|
+
word-wrap:break-word;
|
12
|
+
padding:1em;
|
13
|
+
background:$button-color;
|
14
|
+
border:1px solid $button-active;
|
15
|
+
color:$button-text;
|
16
|
+
margin-bottom:15px;
|
17
|
+
@include rounded($radius);
|
18
|
+
// content overrides
|
19
|
+
h1, h2, h3, h4, h5, h6, p {
|
20
|
+
color:inherit;
|
21
|
+
}
|
22
|
+
*:last-child {
|
23
|
+
margin-bottom:0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
%callout-small { @include _small; }
|
28
|
+
%callout-large { @include _large; }
|
29
|
+
%callout-square { @include _square; }
|
30
|
+
%callout-round { @include _round; }
|
31
|
+
%callout-disabled { @include state(disabled,normal,desaturate($button-color,20%)); }
|
32
|
+
|
33
|
+
%callout-info {
|
34
|
+
background-color:$info-background;
|
35
|
+
color:$info-color;
|
36
|
+
border-color:$info-border;
|
37
|
+
&%callout-disabled {
|
38
|
+
@include state(disabled,normal,desaturate($info-color,20%));
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
%callout-alert{
|
43
|
+
background-color:$alert-background;
|
44
|
+
color:$alert-color;
|
45
|
+
border-color:$alert-border;
|
46
|
+
&%callout-disabled {
|
47
|
+
@include state(disabled,normal,desaturate($alert-color,20%));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
%callout-warning {
|
52
|
+
background:$warning-background;
|
53
|
+
color:$warning-color;
|
54
|
+
border-color:$warning-border;
|
55
|
+
&%callout-disabled {
|
56
|
+
@include state(disabled,normal,desaturate($warning-color,20%));
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
%callout-error {
|
61
|
+
background:$error-background;
|
62
|
+
color:$error-color;
|
63
|
+
border-color:$error-border;
|
64
|
+
&%callout-disabled {
|
65
|
+
@include state(disabled,normal,desaturate($error-color,20%));
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
%callout-success {
|
70
|
+
background:$success-background;
|
71
|
+
color:$success-color;
|
72
|
+
border-color:$success-border;
|
73
|
+
&%callout-disabled {
|
74
|
+
@include state(disabled,normal,desaturate($success-color,20%));
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
%callout-dismissible {
|
79
|
+
padding-right:3em;
|
80
|
+
&:after {
|
81
|
+
content:'X';
|
82
|
+
display:block;
|
83
|
+
padding:0.5em 0;
|
84
|
+
font-size:0.8em;
|
85
|
+
text-align:center;
|
86
|
+
position:absolute;
|
87
|
+
top:0;
|
88
|
+
right:1em;
|
89
|
+
line-height:1.5;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
@mixin callout_modifiers() {
|
94
|
+
$modifiers: small large info alert warning error success square round disabled;
|
95
|
+
@for $i from 1 through length($modifiers) {
|
96
|
+
&.#{nth($modifiers, $i)} {
|
97
|
+
@extend %callout-#{nth($modifiers, $i)};
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
@if $classes {
|
103
|
+
.callout {
|
104
|
+
@extend %callout;
|
105
|
+
@include callout_modifiers;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
@if $aria {
|
110
|
+
[role~=status] {
|
111
|
+
@extend %callout;
|
112
|
+
|
113
|
+
@if $classes {
|
114
|
+
@include callout_modifiers;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|