gumby_on_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.comments.js +152 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.fittext.js +126 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.images.js +202 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.inview.js +219 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.parallax.js +106 -0
- data/app/assets/javascripts/gumby/libs/extensions/gumby.shuffle.js +198 -0
- data/app/assets/javascripts/gumby/libs/gumby.init.js +47 -0
- data/app/assets/javascripts/gumby/libs/gumby.js +258 -0
- data/app/assets/javascripts/gumby/libs/gumby.min.js +1 -0
- data/app/assets/javascripts/gumby/libs/jquery-1.10.1.min.js +6 -0
- data/app/assets/javascripts/gumby/libs/jquery-1.10.1.min.map +1 -0
- data/app/assets/javascripts/gumby/libs/jquery-2.0.2.min.js +6 -0
- data/app/assets/javascripts/gumby/libs/jquery-2.0.2.min.map +1 -0
- data/app/assets/javascripts/gumby/libs/jquery.mobile.custom.min.js +3 -0
- data/app/assets/javascripts/gumby/libs/modernizr-2.6.2.min.js +4 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.checkbox.js +101 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.fixed.js +240 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.navbar.js +115 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.radiobtn.js +90 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.retina.js +81 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.skiplink.js +157 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.tabs.js +80 -0
- data/app/assets/javascripts/gumby/libs/ui/gumby.toggleswitch.js +264 -0
- data/app/assets/javascripts/gumby/libs/ui/jquery.validation.js +142 -0
- data/app/assets/javascripts/gumby/main.js +23 -0
- data/app/assets/javascripts/gumby/plugins.js +4 -0
- data/app/assets/javascripts/gumby.all.js +19 -0
- data/app/assets/javascripts/gumby.js +13 -0
- data/app/assets/stylesheets/gumby/_base.scss +49 -0
- data/app/assets/stylesheets/gumby/_custom.scss +1 -0
- data/app/assets/stylesheets/gumby/_fonts.scss +28 -0
- data/app/assets/stylesheets/gumby/_grid.scss +339 -0
- data/app/assets/stylesheets/gumby/_parallax.scss +11 -0
- data/app/assets/stylesheets/gumby/_shame.scss +36 -0
- data/app/assets/stylesheets/gumby/_typography.scss +272 -0
- data/app/assets/stylesheets/gumby/extensions/modular-scale/lib/modular-scale.rb +128 -0
- data/app/assets/stylesheets/gumby/extensions/modular-scale/stylesheets/_modular-scale.scss +310 -0
- data/app/assets/stylesheets/gumby/extensions/sassy-math/lib/sassy-math.rb +159 -0
- data/app/assets/stylesheets/gumby/extensions/sassy-math/stylesheets/_math.scss +310 -0
- data/app/assets/stylesheets/gumby/functions/_all.scss +25 -0
- data/app/assets/stylesheets/gumby/functions/_breakpoints.scss +11 -0
- data/app/assets/stylesheets/gumby/functions/_button-size.scss +44 -0
- data/app/assets/stylesheets/gumby/functions/_clearfix.scss +25 -0
- data/app/assets/stylesheets/gumby/functions/_em.scss +11 -0
- data/app/assets/stylesheets/gumby/functions/_even.scss +10 -0
- data/app/assets/stylesheets/gumby/functions/_fade.scss +20 -0
- data/app/assets/stylesheets/gumby/functions/_fancytiles.scss +29 -0
- data/app/assets/stylesheets/gumby/functions/_fixed.scss +21 -0
- data/app/assets/stylesheets/gumby/functions/_forms.scss +18 -0
- data/app/assets/stylesheets/gumby/functions/_grid-calc.scss +82 -0
- data/app/assets/stylesheets/gumby/functions/_height-calc.scss +6 -0
- data/app/assets/stylesheets/gumby/functions/_icons.scss +35 -0
- data/app/assets/stylesheets/gumby/functions/_line-and-height.scss +7 -0
- data/app/assets/stylesheets/gumby/functions/_palette.scss +76 -0
- data/app/assets/stylesheets/gumby/functions/_responsivity.scss +34 -0
- data/app/assets/stylesheets/gumby/functions/_semantic-grid.scss +170 -0
- data/app/assets/stylesheets/gumby/functions/_shapes.scss +22 -0
- data/app/assets/stylesheets/gumby/functions/_strip-units.scss +5 -0
- data/app/assets/stylesheets/gumby/functions/_tooltips.scss +98 -0
- data/app/assets/stylesheets/gumby/functions/_typography.scss +15 -0
- data/app/assets/stylesheets/gumby/functions/_visibility.scss +17 -0
- data/app/assets/stylesheets/gumby/gumby.scss +39 -0
- data/app/assets/stylesheets/gumby/ui/_all.scss +11 -0
- data/app/assets/stylesheets/gumby/ui/_buttons.scss +154 -0
- data/app/assets/stylesheets/gumby/ui/_forms.scss +392 -0
- data/app/assets/stylesheets/gumby/ui/_icons.scss +23 -0
- data/app/assets/stylesheets/gumby/ui/_images.scss +23 -0
- data/app/assets/stylesheets/gumby/ui/_labels.scss +87 -0
- data/app/assets/stylesheets/gumby/ui/_navbar.scss +440 -0
- data/app/assets/stylesheets/gumby/ui/_tables.scss +89 -0
- data/app/assets/stylesheets/gumby/ui/_tabs.scss +156 -0
- data/app/assets/stylesheets/gumby/ui/_toggles.scss +73 -0
- data/app/assets/stylesheets/gumby/ui/_tooltips.scss +12 -0
- data/app/assets/stylesheets/gumby/ui/_video.scss +24 -0
- data/app/assets/stylesheets/gumby/var/_lists.scss +20 -0
- data/app/assets/stylesheets/gumby/var/_settings.scss +169 -0
- data/app/assets/stylesheets/gumby/var/icons/_entypo-icon-list.scss +286 -0
- data/app/assets/stylesheets/gumby/var/icons/_entypo.scss +294 -0
- data/app/assets/stylesheets/gumby.all.css.scss +20 -0
- data/app/assets/stylesheets/gumby.css.scss +37 -0
- data/app/controllers/gumby/application_controller.rb +4 -0
- data/app/helpers/gumby/application_helper.rb +4 -0
- data/app/views/layouts/gumby/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/gumby/engine.rb +10 -0
- data/lib/gumby/version.rb +3 -0
- data/lib/gumby.rb +4 -0
- data/lib/tasks/gumby_tasks.rake +20 -0
- data/public/fonts/gumby/icons/entypo.eot +0 -0
- data/public/fonts/gumby/icons/entypo.ttf +0 -0
- data/public/fonts/gumby/icons/entypo.woff +0 -0
- metadata +235 -0
@@ -0,0 +1,392 @@
|
|
1
|
+
/* Form Styles */
|
2
|
+
|
3
|
+
@import "../functions/forms";
|
4
|
+
|
5
|
+
|
6
|
+
form {
|
7
|
+
margin: 0 0 18px;
|
8
|
+
label {
|
9
|
+
display: block;
|
10
|
+
@include font-size($norm);
|
11
|
+
@include adjust-leading-to(1);
|
12
|
+
cursor: pointer;
|
13
|
+
margin-bottom: 9px;
|
14
|
+
&.inline {
|
15
|
+
display: inline-block;
|
16
|
+
padding-right: 20px;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
dt {
|
20
|
+
margin: 0;
|
21
|
+
}
|
22
|
+
textarea {
|
23
|
+
height: 150px;
|
24
|
+
}
|
25
|
+
ul, ul li {
|
26
|
+
margin-left: 0;
|
27
|
+
list-style-type: none;
|
28
|
+
}
|
29
|
+
fieldset {
|
30
|
+
@include rhythm-borders(1px,1,$norm,solid);
|
31
|
+
border-color: darken($default-color, 10%);
|
32
|
+
margin: 18px 0;
|
33
|
+
legend {
|
34
|
+
padding: 5px 10px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.field {
|
40
|
+
position: relative;
|
41
|
+
max-width: 100%;
|
42
|
+
margin-bottom: 10px;
|
43
|
+
vertical-align: middle;
|
44
|
+
// Font-size 16px for weird form style error
|
45
|
+
font-size: 16px;
|
46
|
+
overflow: hidden;
|
47
|
+
&.metro, .metro {
|
48
|
+
@include border-radius(0);
|
49
|
+
}
|
50
|
+
input, input[type="*"], textarea {
|
51
|
+
max-width: 100%;
|
52
|
+
width: 100%;
|
53
|
+
padding: 0;
|
54
|
+
margin: 0;
|
55
|
+
border: none;
|
56
|
+
outline: none;
|
57
|
+
resize: none;
|
58
|
+
-webkit-appearance: none;
|
59
|
+
font-family: $font-family;
|
60
|
+
font-weight: $font-weight-light;
|
61
|
+
@include font-size($norm);
|
62
|
+
@include box-shadow(none);
|
63
|
+
}
|
64
|
+
.input {
|
65
|
+
position: relative;
|
66
|
+
padding: 0 10px;
|
67
|
+
background: #fff;
|
68
|
+
border: 1px solid darken($default-color, 10%);
|
69
|
+
@include line-and-height(height-calc($norm));
|
70
|
+
@include font-size($norm);
|
71
|
+
@include border-radius(4px);
|
72
|
+
&.search {
|
73
|
+
@include line-and-height(height-calc($norm));
|
74
|
+
@include shape(oval);
|
75
|
+
padding-right: 0;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
.input.textarea {
|
79
|
+
height: auto;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
input, .input {
|
84
|
+
@each $width in $field-sizes {
|
85
|
+
&.#{nth($width, 1)} {
|
86
|
+
@include input-size(#{nth($width, 1)});
|
87
|
+
margin:0;
|
88
|
+
&:last-child {
|
89
|
+
margin-left: -4px;
|
90
|
+
}
|
91
|
+
&:first-child {
|
92
|
+
margin-right: 3.94%;
|
93
|
+
margin-left: 0;
|
94
|
+
}
|
95
|
+
&:first-child:last-child {
|
96
|
+
margin: 0;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
label + {
|
103
|
+
@include input-sizes-list() {
|
104
|
+
&:last-child {
|
105
|
+
margin-left: 0;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
@include respond(document-width) {
|
111
|
+
.xxwide:first-child, .xxwide:last-child {
|
112
|
+
margin-right: 0%;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
/* remove inline-block white-space — A 0px font-size = 0px of white space */
|
117
|
+
.prepend, .append {
|
118
|
+
font-size: 0;
|
119
|
+
white-space: nowrap;
|
120
|
+
padding-bottom: 3.5px;
|
121
|
+
}
|
122
|
+
|
123
|
+
.prepend input,
|
124
|
+
.prepend .input,
|
125
|
+
.append input,
|
126
|
+
.append .input {
|
127
|
+
display: inline-block;
|
128
|
+
max-width: 100%;
|
129
|
+
margin-right: 0;
|
130
|
+
margin-left: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
.prepend input,
|
134
|
+
.prepend .input,
|
135
|
+
.prepend.append input:last-child,
|
136
|
+
.append *:last-child {
|
137
|
+
@include border-radius(0px $button-radius $button-radius 0);
|
138
|
+
}
|
139
|
+
|
140
|
+
.append input,
|
141
|
+
.append .input,
|
142
|
+
.prepend.append input:first-child,
|
143
|
+
.prepend *:first-child {
|
144
|
+
@include border-radius($button-radius 0 0 $button-radius);
|
145
|
+
}
|
146
|
+
|
147
|
+
.prepend.append input {
|
148
|
+
@include border-radius(0);
|
149
|
+
}
|
150
|
+
|
151
|
+
.prepend.append input:last-child {
|
152
|
+
margin-left: -1px;
|
153
|
+
}
|
154
|
+
|
155
|
+
.prepend .adjoined, .append .adjoined, .prepend .btn, .append .btn {
|
156
|
+
position: relative;
|
157
|
+
display: inline-block;
|
158
|
+
margin-bottom:0;
|
159
|
+
z-index: 99;
|
160
|
+
}
|
161
|
+
.prepend .btn, .append .btn {
|
162
|
+
a, input, button {
|
163
|
+
padding: 0 12px;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.prepend .adjoined, .append .adjoined {
|
168
|
+
padding: 0 10px 0 10px;
|
169
|
+
background: $default-color;
|
170
|
+
border: 1px solid darken($default-color, 10%);
|
171
|
+
font-family: $font-family;
|
172
|
+
font-weight: $font-weight-semibold;
|
173
|
+
color: $body-font-color;
|
174
|
+
@include font-size($norm);
|
175
|
+
@include line-and-height(height-calc($norm));
|
176
|
+
}
|
177
|
+
|
178
|
+
.prepend .adjoined, .prepend .btn {
|
179
|
+
margin-right: -1px;
|
180
|
+
}
|
181
|
+
|
182
|
+
.adjoined:first-child {
|
183
|
+
margin-left: 0 !important;
|
184
|
+
}
|
185
|
+
|
186
|
+
.append .adjoined, .append .btn {
|
187
|
+
margin-left: -1px;
|
188
|
+
}
|
189
|
+
|
190
|
+
.append button, .prepend button {
|
191
|
+
display: inline-block;
|
192
|
+
}
|
193
|
+
|
194
|
+
.prepend input:first-child,
|
195
|
+
.append input:first-child,
|
196
|
+
.prepend .input:first-child,
|
197
|
+
.append .input:first-child {
|
198
|
+
margin-right: 0;
|
199
|
+
}
|
200
|
+
|
201
|
+
.double input, .double .input {
|
202
|
+
width: 50% !important;
|
203
|
+
&:last-child {
|
204
|
+
margin-left: -1px;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
.field {
|
209
|
+
input, .input, textarea, .textarea, .radio span, .checkbox span, .picker {
|
210
|
+
@include transition-duration(.2s);
|
211
|
+
}
|
212
|
+
@each $error in danger $danger-color, warning $warning-color, success $success-color {
|
213
|
+
&.#{nth($error, 1)} {
|
214
|
+
&:after {
|
215
|
+
@if($icons != ""){
|
216
|
+
font-family: "#{$icons}";
|
217
|
+
@if nth($error, 1) == danger {
|
218
|
+
content: "#{$entypo-icon-cancel-circled}";
|
219
|
+
}
|
220
|
+
@if nth($error, 1) == warning {
|
221
|
+
content: "#{$entypo-icon-attention}";
|
222
|
+
}
|
223
|
+
@if nth($error, 1) == success {
|
224
|
+
content: "#{$entypo-icon-check}";
|
225
|
+
}
|
226
|
+
font-size: $norm;
|
227
|
+
position: absolute;
|
228
|
+
top: percentage((strip-units($base-font-size)) / 100) - 2;
|
229
|
+
right: 15px;
|
230
|
+
z-index: 999;
|
231
|
+
color: nth($error, 2);
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
&.no-icon:after {
|
236
|
+
display: none;
|
237
|
+
}
|
238
|
+
|
239
|
+
// <input> does not allow :before & :after
|
240
|
+
// pseudo elements. Removing validation
|
241
|
+
// icons from those elements to avoid
|
242
|
+
// edge-case styling issues
|
243
|
+
&.append:after, &.prepend:after {
|
244
|
+
content: "";
|
245
|
+
}
|
246
|
+
input, .input, textarea, .textarea, .radio span, .checkbox span, .picker {
|
247
|
+
border-color: nth($error, 2);
|
248
|
+
background: lighten(nth($error, 2), 35%);
|
249
|
+
}
|
250
|
+
|
251
|
+
input, .input, textarea, .textarea,
|
252
|
+
.radio span, .checkbox span, .picker,
|
253
|
+
input::-webkit-input-placeholder,
|
254
|
+
textarea::-webkit-input-placeholder,
|
255
|
+
input:-moz-placeholder,
|
256
|
+
textarea:-moz-placeholder
|
257
|
+
textarea { color: nth($error, 2); }
|
258
|
+
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
.picker {
|
263
|
+
@each $error in danger $danger-color, warning $warning-color, success $success-color {
|
264
|
+
&.#{nth($error, 1)} {
|
265
|
+
border-color: nth($error, 2);
|
266
|
+
color: nth($error, 2);
|
267
|
+
background: lighten(nth($error, 2), 35%);
|
268
|
+
@include transition-duration(.2s);
|
269
|
+
select, &:after { color: nth($error, 2); }
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
.field .text input[type="search"] {
|
277
|
+
-webkit-appearance: textfield;
|
278
|
+
}
|
279
|
+
|
280
|
+
// checkboxes/radio buttons only styled where JS supported
|
281
|
+
.no-js {
|
282
|
+
.radio input {
|
283
|
+
-webkit-appearance: radio;
|
284
|
+
margin-left: 1px;
|
285
|
+
}
|
286
|
+
.checkbox input {
|
287
|
+
-webkit-appearance: checkbox;
|
288
|
+
}
|
289
|
+
.radio input, .checkbox input {
|
290
|
+
display: inline-block;
|
291
|
+
width: 16px;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
|
295
|
+
.js .field {
|
296
|
+
.radio, .checkbox {
|
297
|
+
@each $error in danger $danger-color, warning $warning-color, success $success-color {
|
298
|
+
&.#{nth($error, 1)} {
|
299
|
+
color: nth($error, 2);
|
300
|
+
@if nth($error, 1) == success {
|
301
|
+
color: $body-font-color;
|
302
|
+
i { color: nth($error, 2); }
|
303
|
+
}
|
304
|
+
span {
|
305
|
+
border-color: nth($error, 2);
|
306
|
+
color: nth($error, 2);
|
307
|
+
background: lighten(nth($error, 2), 35%);
|
308
|
+
@include transition-duration(.2s);
|
309
|
+
}
|
310
|
+
}
|
311
|
+
}
|
312
|
+
position: relative;
|
313
|
+
&.checked i {
|
314
|
+
position: absolute;
|
315
|
+
top: -1px;
|
316
|
+
left: -8px;
|
317
|
+
line-height: 16px;
|
318
|
+
}
|
319
|
+
span {
|
320
|
+
display: inline-block;
|
321
|
+
width: 16px;
|
322
|
+
height: 16px;
|
323
|
+
position: relative;
|
324
|
+
top: 2px;
|
325
|
+
border: solid 1px #ccc;
|
326
|
+
background: #fefefe;
|
327
|
+
}
|
328
|
+
input[type="radio"], input[type="checkbox"] {
|
329
|
+
display: none;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
.radio span {
|
333
|
+
@include border-radius(8px);
|
334
|
+
}
|
335
|
+
.checkbox span {
|
336
|
+
@include border-radius(3px);
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
.field .text input[type="search"] {
|
341
|
+
-webkit-appearance: textfield;
|
342
|
+
}
|
343
|
+
|
344
|
+
|
345
|
+
/* Form Picker Element (<select>) */
|
346
|
+
|
347
|
+
.picker {
|
348
|
+
position: relative;
|
349
|
+
width: auto;
|
350
|
+
display: inline-block;
|
351
|
+
margin: 0 0 2px 1.2%;
|
352
|
+
overflow: hidden;
|
353
|
+
border: 1px solid darken($default-color, 5%);
|
354
|
+
@include border-radius(4px);
|
355
|
+
font-family: $font-family;
|
356
|
+
font-weight: $font-weight-semibold;
|
357
|
+
height: auto;
|
358
|
+
@include background-image(linear-gradient(lighten($default-color, 20%), $default-color));
|
359
|
+
&:after {
|
360
|
+
content: "\25BE";
|
361
|
+
font-family: $icons;
|
362
|
+
z-index: 0;
|
363
|
+
position:absolute;
|
364
|
+
right: 8%;
|
365
|
+
top: 50%;
|
366
|
+
margin-top: -12px;
|
367
|
+
color: $body-font-color;
|
368
|
+
}
|
369
|
+
&:first-child {
|
370
|
+
margin-left: 0;
|
371
|
+
}
|
372
|
+
select {
|
373
|
+
position: relative;
|
374
|
+
display: block;
|
375
|
+
min-width: 100%;
|
376
|
+
width: 135%;
|
377
|
+
height: 34px;
|
378
|
+
padding: 6px 45px 6px 15px;
|
379
|
+
color: $body-font-color;
|
380
|
+
border: none;
|
381
|
+
background: transparent;
|
382
|
+
outline: none;
|
383
|
+
-webkit-appearance: none;
|
384
|
+
z-index: 99;
|
385
|
+
cursor: pointer;
|
386
|
+
@include font-size($norm);
|
387
|
+
}
|
388
|
+
select::-ms-expand {
|
389
|
+
display: none;
|
390
|
+
}
|
391
|
+
}
|
392
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Icons */
|
2
|
+
|
3
|
+
[class^="icon-"] a:before,
|
4
|
+
[class*=" icon-"] a:before,
|
5
|
+
[class^="icon-"] a:after,
|
6
|
+
[class*=" icon-"] a:after,
|
7
|
+
i[class^="icon-"],
|
8
|
+
i[class*=" icon-"] {
|
9
|
+
font-family: "#{$icons}";
|
10
|
+
position:absolute;
|
11
|
+
text-decoration:none;
|
12
|
+
zoom: 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
i[class^="icon-"],
|
16
|
+
i[class*=" icon-"] {
|
17
|
+
display: inline-block;
|
18
|
+
position: static;
|
19
|
+
min-width: 20px;
|
20
|
+
margin: 0 5px;
|
21
|
+
text-align: center;
|
22
|
+
}
|
23
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Images */
|
2
|
+
|
3
|
+
.image {
|
4
|
+
line-height:0;
|
5
|
+
margin-bottom: 20px;
|
6
|
+
&.circle {
|
7
|
+
@include border-radius(50% !important);
|
8
|
+
overflow: hidden;
|
9
|
+
width: auto;
|
10
|
+
}
|
11
|
+
&.rounded {
|
12
|
+
overflow: hidden;
|
13
|
+
@include border-radius($button-radius $button-radius);
|
14
|
+
}
|
15
|
+
&.photo {
|
16
|
+
border: 5px solid #fff;
|
17
|
+
@include box-shadow(0 0 1px $body-font-color);
|
18
|
+
&.polaroid {
|
19
|
+
padding-bottom: 50px;
|
20
|
+
background: #fff;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/* Labels */
|
2
|
+
|
3
|
+
.badge, .label {
|
4
|
+
height: 20px;
|
5
|
+
display: inline-block;
|
6
|
+
font-family: Helvetica, arial, verdana, sans-serif;
|
7
|
+
font-weight: bold;
|
8
|
+
line-height: 20px;
|
9
|
+
text-align:center;
|
10
|
+
color: #fff;
|
11
|
+
a {
|
12
|
+
color: #fff;
|
13
|
+
}
|
14
|
+
@each $shade in $ui-coloring {
|
15
|
+
&.#{nth($shade, 1)} {
|
16
|
+
background: nth($shade, 2);
|
17
|
+
border: 1px solid nth($shade, 2);
|
18
|
+
@if nth($shade, 1) == default {
|
19
|
+
color: darken(nth($shade, 2), 61.5%);
|
20
|
+
&:hover {
|
21
|
+
border-color: darken(nth($shade, 2), 5%);
|
22
|
+
}
|
23
|
+
a {
|
24
|
+
color: darken(nth($shade, 2), 61.5%);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
@if nth($shade, 1) == warning {
|
28
|
+
color: darken(nth($shade, 2), 40%);
|
29
|
+
a {
|
30
|
+
color: darken(nth($shade, 2), 40%);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
&.light {
|
36
|
+
background: #fff;
|
37
|
+
color: $body-font-color;
|
38
|
+
border: 1px solid $default-color;
|
39
|
+
a {
|
40
|
+
color: $body-link-color;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
&.dark {
|
44
|
+
background: #212121;
|
45
|
+
border: 1px solid #212121;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.badge {
|
50
|
+
padding: 0 10px;
|
51
|
+
@include font-size(ms(0, 14px));
|
52
|
+
@include border-radius(10px);
|
53
|
+
}
|
54
|
+
|
55
|
+
.label {
|
56
|
+
padding: 0 10px;
|
57
|
+
@include font-size(ms(0, 12px));
|
58
|
+
@include border-radius(2px);
|
59
|
+
}
|
60
|
+
|
61
|
+
.alert {
|
62
|
+
padding: 0 10px;
|
63
|
+
font-family: $font-family;
|
64
|
+
font-weight: $font-weight-semibold;
|
65
|
+
list-style-type: none;
|
66
|
+
word-wrap: break-word;
|
67
|
+
margin-bottom: $norm / 2;
|
68
|
+
@include font-size(ms(0, 14px));
|
69
|
+
@include border-radius($button-radius);
|
70
|
+
@each $shade in $ui-coloring {
|
71
|
+
&.#{nth($shade, 1)} {
|
72
|
+
background: lighten(nth($shade, 2), 20%);
|
73
|
+
border: 1px solid nth($shade, 2);
|
74
|
+
color: darken(nth($shade, 2), 20%);
|
75
|
+
@if nth($shade, 1) == info {
|
76
|
+
color: $default-color;
|
77
|
+
}
|
78
|
+
@if nth($shade, 1) == default {
|
79
|
+
color: darken(nth($shade, 2), 61.5%);
|
80
|
+
border: 1px solid nth($shade, 2);
|
81
|
+
}
|
82
|
+
@if nth($shade, 1) == warning {
|
83
|
+
color: darken(nth($shade, 2), 40%);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|