rapido-css 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +21 -0
- data/lib/rapido-css.rb +3 -0
- data/stylesheets/_components.scss +24 -0
- data/stylesheets/_default-styles.scss +480 -0
- data/stylesheets/_functions.scss +50 -0
- data/stylesheets/_normalize.scss +513 -0
- data/stylesheets/_rapido.scss +12 -0
- data/stylesheets/_settings.scss +5 -0
- data/stylesheets/_susy.scss +16 -0
- data/stylesheets/_utilities.scss +8 -0
- data/stylesheets/components/_alerts.scss +24 -0
- data/stylesheets/components/_breadcrumbs.scss +15 -0
- data/stylesheets/components/_button-groups.scss +65 -0
- data/stylesheets/components/_buttons.scss +121 -0
- data/stylesheets/components/_captions.scss +54 -0
- data/stylesheets/components/_close.scss +27 -0
- data/stylesheets/components/_dropdowns.scss +190 -0
- data/stylesheets/components/_forms.scss +579 -0
- data/stylesheets/components/_images.scss +0 -0
- data/stylesheets/components/_modals.scss +271 -0
- data/stylesheets/components/_navs.scss +102 -0
- data/stylesheets/components/_pager.scss +56 -0
- data/stylesheets/components/_pagination.scss +90 -0
- data/stylesheets/components/_pills.scss +91 -0
- data/stylesheets/components/_responsive-navs.scss +166 -0
- data/stylesheets/components/_sliders.scss +86 -0
- data/stylesheets/components/_tables.scss +109 -0
- data/stylesheets/components/_tabs.scss +55 -0
- data/stylesheets/components/_type.scss +266 -0
- data/stylesheets/settings/_base.scss +32 -0
- data/stylesheets/settings/_colors.scss +16 -0
- data/stylesheets/settings/_components.scss +45 -0
- data/stylesheets/settings/_dimensions.scss +103 -0
- data/stylesheets/settings/_effects.scss +15 -0
- data/stylesheets/susy/_susy_background.scss +18 -0
- data/stylesheets/susy/_susy_functions.scss +376 -0
- data/stylesheets/susy/_susy_grid.scss +286 -0
- data/stylesheets/susy/_susy_isolation.scss +50 -0
- data/stylesheets/susy/_susy_margin.scss +93 -0
- data/stylesheets/susy/_susy_media.scss +112 -0
- data/stylesheets/susy/_susy_padding.scss +92 -0
- data/stylesheets/susy/_susy_settings.scss +56 -0
- data/stylesheets/susy/_susy_support.scss +198 -0
- data/stylesheets/susy/_susy_units.scss +159 -0
- data/stylesheets/utilities/_animations.scss +672 -0
- data/stylesheets/utilities/_debug.scss +41 -0
- data/stylesheets/utilities/_helper-classes.scss +32 -0
- data/stylesheets/utilities/_icon-fonts.scss +111 -0
- data/stylesheets/utilities/_media-queries.scss +45 -0
- data/stylesheets/utilities/_mixins.scss +372 -0
- data/stylesheets/utilities/_retina-sprites.scss +70 -0
- data/stylesheets/utilities/_sprites.scss +26 -0
- data/templates/project/manifest.rb +2 -0
- data/templates/project/screen.scss +2 -0
- metadata +116 -0
@@ -0,0 +1,271 @@
|
|
1
|
+
.modal { display: none; }
|
2
|
+
|
3
|
+
@if $modal {
|
4
|
+
|
5
|
+
// Resets
|
6
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
7
|
+
%modal-reset {
|
8
|
+
padding: 0;
|
9
|
+
margin: 0;
|
10
|
+
border: 0;
|
11
|
+
vertical-align: top;
|
12
|
+
list-style-type: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
.fancybox-wrap,
|
16
|
+
.fancybox-wrap iframe,
|
17
|
+
.fancybox-wrap object,
|
18
|
+
.fancybox-skin,
|
19
|
+
.fancybox-outer,
|
20
|
+
.fancybox-inner,
|
21
|
+
.fancybox-image,
|
22
|
+
.fancybox-nav span,
|
23
|
+
.fancybox-tmp {
|
24
|
+
@extend %modal-reset;
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// Container
|
29
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
30
|
+
|
31
|
+
// Overlay | 1st level
|
32
|
+
.fancybox-overlay {
|
33
|
+
@extend %modal-overlay !optional;
|
34
|
+
@include position(absolute, 0px 0 0 0px);
|
35
|
+
display: none;
|
36
|
+
overflow: hidden;
|
37
|
+
z-index: ($zindex-modal - 1);
|
38
|
+
|
39
|
+
&.fancybox-overlay-fixed {
|
40
|
+
@include position(fixed, 0 0px 0px 0 );
|
41
|
+
}
|
42
|
+
|
43
|
+
// Wrap | 2nd Level
|
44
|
+
.fancybox-wrap {
|
45
|
+
@include position(absolute, 0px 0 0 0px);
|
46
|
+
z-index: $zindex-modal;
|
47
|
+
|
48
|
+
&.fancybox-opened { z-index: ($zindex-modal + 1); }
|
49
|
+
|
50
|
+
// for Iframes
|
51
|
+
&.fancybox-type-iframe .fancybox-inner { -webkit-overflow-scrolling: touch; }
|
52
|
+
|
53
|
+
// for Iframes, Inline and Ajax
|
54
|
+
&.fancybox-type-inline,
|
55
|
+
&.fancybox-type-iframe,
|
56
|
+
&.fancybox-type-ajax {
|
57
|
+
.fancybox-close {
|
58
|
+
@extend %modal-close-alt !optional;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// Skin | 3rd Level
|
63
|
+
.fancybox-skin {
|
64
|
+
@extend %modal-skin !optional;
|
65
|
+
position: relative;
|
66
|
+
padding: 0 !important;
|
67
|
+
|
68
|
+
// Outer | 4th Level
|
69
|
+
.fancybox-outer {
|
70
|
+
position: relative;
|
71
|
+
|
72
|
+
// Inner | 5th Level
|
73
|
+
.fancybox-inner {
|
74
|
+
position: relative;
|
75
|
+
overflow: hidden;
|
76
|
+
|
77
|
+
} // 5thst
|
78
|
+
} // 4th
|
79
|
+
} // 3rd
|
80
|
+
} // 2nd
|
81
|
+
} // 1st
|
82
|
+
|
83
|
+
|
84
|
+
// Backtground temp
|
85
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
86
|
+
.fancybox-tmp {
|
87
|
+
@include position(absolute, -9999px 0 0 -9999px);
|
88
|
+
visibility: hidden;
|
89
|
+
max-width: 99999px;
|
90
|
+
max-height: 99999px;
|
91
|
+
overflow: visible !important;
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
.fancybox-lock { overflow: hidden; }
|
96
|
+
|
97
|
+
.fancybox-lock .fancybox-overlay {
|
98
|
+
overflow: auto;
|
99
|
+
overflow-y: scroll;
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// Content
|
104
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
105
|
+
.fancybox-error {
|
106
|
+
margin: 0;
|
107
|
+
padding: $modals-error-padding;
|
108
|
+
white-space: nowrap;
|
109
|
+
}
|
110
|
+
|
111
|
+
.fancybox-image,
|
112
|
+
.fancybox-iframe {
|
113
|
+
display: block;
|
114
|
+
@include square(100%);
|
115
|
+
}
|
116
|
+
|
117
|
+
.fancybox-image {
|
118
|
+
max-width: 100%;
|
119
|
+
max-height: 100%;
|
120
|
+
@include border-radius($base-border-radius);
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
#fancybox-loading {
|
125
|
+
@include position(fixed, 50% 0 0 50%);
|
126
|
+
@extend %modal-loading !optional;
|
127
|
+
cursor: pointer;
|
128
|
+
z-index: $zindex-modal +4;
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
// Buttons and Navigation
|
133
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
134
|
+
.fancybox-close {
|
135
|
+
@extend %modal-btn !optional;
|
136
|
+
@extend %modal-close !optional;
|
137
|
+
@include border-radius($base-border-radius);
|
138
|
+
z-index: ($zindex-modal + 3);
|
139
|
+
}
|
140
|
+
|
141
|
+
.fancybox-nav {
|
142
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
143
|
+
@include position(absolute, 0px 0 0 0);
|
144
|
+
@include size(100%, 40%);
|
145
|
+
z-index: ($zindex-modal + 2);
|
146
|
+
|
147
|
+
span {
|
148
|
+
@extend %modal-btn !optional;
|
149
|
+
@extend %modal-nav !optional;
|
150
|
+
@include position(absolute, 50% 0 0 0);
|
151
|
+
visibility: hidden;
|
152
|
+
z-index: ($zindex-modal + 2);
|
153
|
+
}
|
154
|
+
|
155
|
+
&:hover span { visibility: visible; }
|
156
|
+
|
157
|
+
&.fancybox-prev {
|
158
|
+
left: 0;
|
159
|
+
span { left: 0; }
|
160
|
+
}
|
161
|
+
|
162
|
+
&.fancybox-next {
|
163
|
+
right: 0;
|
164
|
+
span { right: 0; }
|
165
|
+
}
|
166
|
+
|
167
|
+
}
|
168
|
+
|
169
|
+
// Titles
|
170
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
171
|
+
.fancybox-title {
|
172
|
+
visibility: hidden;
|
173
|
+
position: relative;
|
174
|
+
text-shadow: none;
|
175
|
+
z-index: ($zindex-modal + 3);
|
176
|
+
}
|
177
|
+
|
178
|
+
.fancybox-opened .fancybox-title {
|
179
|
+
visibility: visible;
|
180
|
+
}
|
181
|
+
|
182
|
+
.fancybox-title-float-wrap {
|
183
|
+
@include position(absolute, 0 50% 0px 0);
|
184
|
+
margin-bottom: em(-35px);
|
185
|
+
text-align: center;
|
186
|
+
z-index: ($zindex-modal + 3);
|
187
|
+
|
188
|
+
.child {
|
189
|
+
@include alpha-color(#000, .8, background);
|
190
|
+
@include border-radius($base-border-radius);
|
191
|
+
display: inline-block;
|
192
|
+
margin-right: -100%;
|
193
|
+
padding: em(2px) em($input-padding-side);
|
194
|
+
color: #FFF;
|
195
|
+
font-weight: bold;
|
196
|
+
white-space: nowrap;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
.fancybox-title-outside-wrap {
|
201
|
+
position: relative;
|
202
|
+
margin-top: em($input-padding-top);
|
203
|
+
color: #fff;
|
204
|
+
}
|
205
|
+
|
206
|
+
.fancybox-title-over-wrap {
|
207
|
+
@include position(absolute, 0 0 0px 0px);
|
208
|
+
@extend %modal-caption !optional;
|
209
|
+
}
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
@if $modal-buttons {
|
214
|
+
#fancybox-buttons {
|
215
|
+
@include position(fixed, 0 0 0 0px);
|
216
|
+
width: 100%;
|
217
|
+
z-index: ($zindex-modal + 3);
|
218
|
+
&.top { top: em(10px); }
|
219
|
+
&.bottom { bottom: em(10px); }
|
220
|
+
|
221
|
+
ul {
|
222
|
+
@extend %modal-btnbar-size !optional;
|
223
|
+
display: block;
|
224
|
+
list-style: none;
|
225
|
+
margin: 0 auto;
|
226
|
+
li {
|
227
|
+
float: left;
|
228
|
+
margin: 0;
|
229
|
+
a {
|
230
|
+
@extend %modal-btn !optional;
|
231
|
+
position: relative;
|
232
|
+
&:hover { opacity: 1; }
|
233
|
+
&:after { @include position(absolute, 0px 0px 0 0px); }
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
@if $modal-thumbs {
|
241
|
+
#fancybox-thumbs {
|
242
|
+
@include position(fixed, 0 0 0 0px);
|
243
|
+
overflow: hidden;
|
244
|
+
width: 100%;
|
245
|
+
z-index: ($zindex-modal + 3);
|
246
|
+
|
247
|
+
&.bottom { bottom: em(10px); }
|
248
|
+
&.top { top: em(10px); }
|
249
|
+
|
250
|
+
ul {
|
251
|
+
@extend %modal-reset;
|
252
|
+
position: relative;
|
253
|
+
|
254
|
+
li {
|
255
|
+
float: left;
|
256
|
+
margin-right: em(4px);
|
257
|
+
opacity: 0.5;
|
258
|
+
|
259
|
+
&:hover { opacity: 0.75; }
|
260
|
+
&.active { opacity: 1; }
|
261
|
+
|
262
|
+
a {
|
263
|
+
display: block;
|
264
|
+
overflow: hidden;
|
265
|
+
text-align: center;
|
266
|
+
}
|
267
|
+
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
|
2
|
+
@if $navs {
|
3
|
+
|
4
|
+
// Navs
|
5
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
6
|
+
[class^="nav"] {
|
7
|
+
@extend .clearfix;
|
8
|
+
list-style: none;
|
9
|
+
margin-bottom: rhythm();
|
10
|
+
margin-left: 0;
|
11
|
+
padding-left: 0;
|
12
|
+
|
13
|
+
li {
|
14
|
+
|
15
|
+
> a {
|
16
|
+
display: block;
|
17
|
+
line-height: 1em;
|
18
|
+
|
19
|
+
&:hover, &:focus {
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
img { max-width: none; }
|
24
|
+
}
|
25
|
+
|
26
|
+
&.disabled > a:hover,
|
27
|
+
&.disabled > a:focus {
|
28
|
+
text-decoration: none;
|
29
|
+
background-color: transparent;
|
30
|
+
cursor: default;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
&[class*="-btn"] {
|
35
|
+
|
36
|
+
li {
|
37
|
+
|
38
|
+
> a {
|
39
|
+
padding: $navs-padding;
|
40
|
+
@extend %nav-btn;
|
41
|
+
|
42
|
+
&:hover, &:focus {
|
43
|
+
@extend %nav-btn_hover;
|
44
|
+
}
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
&.active > a,
|
49
|
+
&.active > a:hover,
|
50
|
+
&.active > a:focus {
|
51
|
+
@extend %nav-btn_active;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Disabled
|
55
|
+
&.disabled > a { @extend %nav-btn_disabled; }
|
56
|
+
}
|
57
|
+
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
// Horizontal nav
|
62
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
63
|
+
&[class*="-o"] {
|
64
|
+
li { float: left;}
|
65
|
+
}
|
66
|
+
|
67
|
+
// Vertical nav
|
68
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
69
|
+
&[class*="-v"] {
|
70
|
+
|
71
|
+
.title {
|
72
|
+
@include adjust-font-size-to($milli-size);
|
73
|
+
color: $gray;
|
74
|
+
display: block;
|
75
|
+
font-weight: bold;
|
76
|
+
padding: $input-padding;
|
77
|
+
text-transform: uppercase;
|
78
|
+
}
|
79
|
+
|
80
|
+
.divider { @include nav-divider(); }
|
81
|
+
}
|
82
|
+
|
83
|
+
// Pills
|
84
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
85
|
+
&[class*="-pills"] {
|
86
|
+
> li > a {
|
87
|
+
@include border-radius($base-border-radius);
|
88
|
+
margin-right: em(4px);
|
89
|
+
}
|
90
|
+
|
91
|
+
&[class*="-v-"] > li > a { margin-bottom: em(4px); }
|
92
|
+
&[class*="-v-"] > li:last-child > a { margin-bottom: 0; }
|
93
|
+
}
|
94
|
+
|
95
|
+
// Position
|
96
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
97
|
+
&[class$="-right"]{ float: right; }
|
98
|
+
|
99
|
+
|
100
|
+
}
|
101
|
+
|
102
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
//
|
2
|
+
// Pager pagination
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@if $pager {
|
6
|
+
|
7
|
+
.pager {
|
8
|
+
margin: rhythm() 0;
|
9
|
+
list-style: none;
|
10
|
+
text-align: center;
|
11
|
+
@include clearfix();
|
12
|
+
|
13
|
+
|
14
|
+
li {
|
15
|
+
display: inline;
|
16
|
+
|
17
|
+
a,
|
18
|
+
span {
|
19
|
+
display: inline-block;
|
20
|
+
padding: $pager-padding;
|
21
|
+
line-height: 1em;
|
22
|
+
border-width: 1px;
|
23
|
+
border-style: solid;
|
24
|
+
@extend %pager-btn !optional;
|
25
|
+
@include border-radius($base-border-radius);
|
26
|
+
}
|
27
|
+
|
28
|
+
a:hover,
|
29
|
+
a:focus {
|
30
|
+
text-decoration: none;
|
31
|
+
@extend %pager-btn_hover !optional;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
[rel="next"],
|
36
|
+
.next > a,
|
37
|
+
.next > span {
|
38
|
+
float: right;
|
39
|
+
}
|
40
|
+
|
41
|
+
[rel="prev"],
|
42
|
+
.previous > a,
|
43
|
+
.previous > span {
|
44
|
+
float: left;
|
45
|
+
}
|
46
|
+
|
47
|
+
.disabled > a,
|
48
|
+
.disabled > a:hover,
|
49
|
+
.disabled > a:focus,
|
50
|
+
.disabled > span {
|
51
|
+
cursor: default;
|
52
|
+
@extend %pager-btn_disabled !optional;
|
53
|
+
}
|
54
|
+
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
@if $pagination {
|
5
|
+
|
6
|
+
[class^="pagination"] {
|
7
|
+
margin: rhythm() 0;
|
8
|
+
|
9
|
+
> * {
|
10
|
+
@include border-radius($base-border-radius);
|
11
|
+
@include inline-block();
|
12
|
+
margin-bottom: 0;
|
13
|
+
margin-left: $input-border;
|
14
|
+
margin-left: 0;
|
15
|
+
|
16
|
+
li {
|
17
|
+
display: inline-block;
|
18
|
+
// float: left;
|
19
|
+
|
20
|
+
a,
|
21
|
+
span {
|
22
|
+
display: inline-block;
|
23
|
+
padding: $pagination-padding;
|
24
|
+
line-height: 1em;
|
25
|
+
text-decoration: none;
|
26
|
+
border-width: $input-border;
|
27
|
+
border-left-width: 0;
|
28
|
+
border-style: solid;
|
29
|
+
margin-left: -$input-border;
|
30
|
+
@extend %pagination_btn !optional;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
li > a:hover,
|
36
|
+
li > a:focus {
|
37
|
+
@extend %pagination_btn-hover !optional;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Bootstrap
|
41
|
+
.active > a,
|
42
|
+
.active > a:hover,
|
43
|
+
.active > span,
|
44
|
+
.active > span:hover,
|
45
|
+
|
46
|
+
// WP Paginate
|
47
|
+
.current,
|
48
|
+
.current:hover {
|
49
|
+
@extend %pagination_btn-active !optional;
|
50
|
+
}
|
51
|
+
|
52
|
+
.disabled > span,
|
53
|
+
.disabled > a,
|
54
|
+
.disabled > a:hover,
|
55
|
+
.disabled > a:focus {
|
56
|
+
@extend %pagination_btn-disabled !optional;
|
57
|
+
}
|
58
|
+
|
59
|
+
.active > a,
|
60
|
+
.active > span,
|
61
|
+
.disabled > span,
|
62
|
+
.disabled > a,
|
63
|
+
.disabled > a:hover,
|
64
|
+
.disabled > a:focus {
|
65
|
+
cursor: default;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
// Alignment
|
70
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
71
|
+
&[class*="-center"] {text-align: center; }
|
72
|
+
&[class*="-right"] {text-align: right; }
|
73
|
+
|
74
|
+
// Rounded sides
|
75
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
76
|
+
&[class*="-rounded"] {
|
77
|
+
li:first-child > a,
|
78
|
+
li:first-child > span {
|
79
|
+
border-left-width: 1px;
|
80
|
+
@include border-left-radius($base-border-radius);
|
81
|
+
}
|
82
|
+
|
83
|
+
li:last-child > a,
|
84
|
+
li:last-child > span {
|
85
|
+
@include border-right-radius($base-border-radius);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
//
|
2
|
+
// Labels and badges
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@if $pills {
|
6
|
+
|
7
|
+
// Base classes
|
8
|
+
.label,
|
9
|
+
.badge {
|
10
|
+
// font-size: $baseFontSize * .846;
|
11
|
+
// font-weight: bold;
|
12
|
+
// line-height: 14px; // ensure proper line-height if floated
|
13
|
+
// text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
14
|
+
@extend %pill !optional;
|
15
|
+
display: inline-block;
|
16
|
+
padding: $pills-padding;
|
17
|
+
vertical-align: baseline;
|
18
|
+
white-space: nowrap;
|
19
|
+
}
|
20
|
+
// Set unique padding and border-radii
|
21
|
+
.label {
|
22
|
+
@include border-radius($base-border-radius);
|
23
|
+
}
|
24
|
+
.badge {
|
25
|
+
// padding-left: 9px;
|
26
|
+
// padding-right: 9px;
|
27
|
+
@include border-radius(20px);
|
28
|
+
}
|
29
|
+
|
30
|
+
// Empty labels/badges collapse
|
31
|
+
.label,
|
32
|
+
.badge {
|
33
|
+
&:empty {
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// Hover/focus state, but only for links
|
39
|
+
a {
|
40
|
+
&.label:hover,
|
41
|
+
&.label:focus,
|
42
|
+
&.badge:hover,
|
43
|
+
&.badge:focus {
|
44
|
+
color: $white;
|
45
|
+
text-decoration: none;
|
46
|
+
cursor: pointer;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
// Colors
|
51
|
+
// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
|
52
|
+
// @each $item in label, badge {
|
53
|
+
// // Important (red)
|
54
|
+
// .#{$item}-important { background-color: $errorText; }
|
55
|
+
// .#{$item}-important[href] { background-color: darken($errorText, 10%); }
|
56
|
+
// // Warnings (orange)
|
57
|
+
// .#{$item}-warning { background-color: $orange; }
|
58
|
+
// .#{$item}-warning[href] { background-color: darken($orange, 10%); }
|
59
|
+
// // Success (green)
|
60
|
+
// .#{$item}-success { background-color: $successText; }
|
61
|
+
// .#{$item}-success[href] { background-color: darken($successText, 10%); }
|
62
|
+
// // Info (turquoise)
|
63
|
+
// .#{$item}-info { background-color: $infoText; }
|
64
|
+
// .#{$item}-info[href] { background-color: darken($infoText, 10%); }
|
65
|
+
// // Inverse (black)
|
66
|
+
// .#{$item}-inverse { background-color: $grayDark; }
|
67
|
+
// .#{$item}-inverse[href] { background-color: darken($grayDark, 10%); }
|
68
|
+
// }
|
69
|
+
|
70
|
+
// Quick fix for labels/badges in buttons
|
71
|
+
.btn {
|
72
|
+
.label,
|
73
|
+
.badge {
|
74
|
+
margin: -.2em -.35em 0 .35em ;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
// .btn {
|
79
|
+
// .label,
|
80
|
+
// .badge {
|
81
|
+
// position: relative;
|
82
|
+
// top: -1px;
|
83
|
+
// }
|
84
|
+
// }
|
85
|
+
// .btn-mini {
|
86
|
+
// .label,
|
87
|
+
// .badge {
|
88
|
+
// top: 0;
|
89
|
+
// }
|
90
|
+
// }
|
91
|
+
}
|