bootswatch-rails 3.2.4 → 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -19
  3. data/bootswatch-rails.gemspec +1 -1
  4. data/lib/bootswatch-rails/version.rb +1 -1
  5. data/vendor/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +11 -5
  6. data/vendor/assets/stylesheets/bootswatch/cerulean/_variables.scss +60 -43
  7. data/vendor/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +38 -1
  8. data/vendor/assets/stylesheets/bootswatch/cosmo/_variables.scss +61 -44
  9. data/vendor/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +47 -1
  10. data/vendor/assets/stylesheets/bootswatch/cyborg/_variables.scss +57 -40
  11. data/vendor/assets/stylesheets/bootswatch/darkly/_bootswatch.scss +57 -4
  12. data/vendor/assets/stylesheets/bootswatch/darkly/_variables.scss +65 -48
  13. data/vendor/assets/stylesheets/bootswatch/flatly/_bootswatch.scss +57 -3
  14. data/vendor/assets/stylesheets/bootswatch/flatly/_variables.scss +61 -44
  15. data/vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss +2 -2
  16. data/vendor/assets/stylesheets/bootswatch/journal/_variables.scss +59 -42
  17. data/vendor/assets/stylesheets/bootswatch/lumen/_bootswatch.scss +70 -9
  18. data/vendor/assets/stylesheets/bootswatch/lumen/_variables.scss +147 -128
  19. data/vendor/assets/stylesheets/bootswatch/paper/_bootswatch.scss +307 -84
  20. data/vendor/assets/stylesheets/bootswatch/paper/_variables.scss +37 -22
  21. data/vendor/assets/stylesheets/bootswatch/readable/_bootswatch.scss +15 -20
  22. data/vendor/assets/stylesheets/bootswatch/readable/_variables.scss +69 -52
  23. data/vendor/assets/stylesheets/bootswatch/sandstone/_bootswatch.scss +11 -12
  24. data/vendor/assets/stylesheets/bootswatch/sandstone/_variables.scss +32 -16
  25. data/vendor/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +1 -1
  26. data/vendor/assets/stylesheets/bootswatch/simplex/_variables.scss +59 -42
  27. data/vendor/assets/stylesheets/bootswatch/slate/_bootswatch.scss +43 -1
  28. data/vendor/assets/stylesheets/bootswatch/slate/_variables.scss +69 -50
  29. data/vendor/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +3 -3
  30. data/vendor/assets/stylesheets/bootswatch/spacelab/_variables.scss +59 -42
  31. data/vendor/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +47 -1
  32. data/vendor/assets/stylesheets/bootswatch/superhero/_variables.scss +211 -190
  33. data/vendor/assets/stylesheets/bootswatch/united/_bootswatch.scss +15 -1
  34. data/vendor/assets/stylesheets/bootswatch/united/_variables.scss +58 -41
  35. data/vendor/assets/stylesheets/bootswatch/yeti/_bootswatch.scss +6 -1
  36. data/vendor/assets/stylesheets/bootswatch/yeti/_variables.scss +45 -30
  37. metadata +10 -10
@@ -1,8 +1,8 @@
1
- // Paper 3.2.0
1
+ // Paper 3.3.4
2
2
  // Bootswatch
3
3
  // -----------------------------------------------------
4
4
 
5
- @import url("//fonts.googleapis.com/css?family=Roboto:300,400,500");
5
+ @import url("//fonts.googleapis.com/css?family=Roboto:300,400,500,700");
6
6
 
7
7
  // Navbar =====================================================================
8
8
 
@@ -20,7 +20,8 @@
20
20
  color: #fff;
21
21
  @include placeholder($navbar-inverse-link-color);
22
22
 
23
- &[type=text] {
23
+ &[type=text],
24
+ &[type=password] {
24
25
  @include box-shadow(inset 0 -1px 0 $navbar-inverse-link-color);
25
26
 
26
27
  &:focus {
@@ -30,76 +31,112 @@
30
31
  }
31
32
  }
32
33
 
33
- .navbar-nav > li > .dropdown-menu {
34
- margin-top: 2px;
35
- }
36
-
37
34
  // Buttons ====================================================================
38
35
 
39
36
  .btn-default {
37
+ background-size: 200%;
38
+ background-position: 50%;
40
39
 
41
- &:hover {
42
- background-color: darken($btn-default-bg, 3%);
40
+ &:hover,
41
+ &:active:hover,
42
+ &:focus {
43
+ background-color: darken($btn-default-bg, 6%);
43
44
  }
44
45
 
45
46
  &:active {
46
47
  background-color: darken($btn-default-bg, 6%);
48
+ @include gradient-radial(darken($btn-default-bg, 6%) 10%, $btn-default-bg 11%);
49
+ background-size: 1000%;
47
50
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
48
51
  }
49
52
  }
50
53
 
51
54
  .btn-primary {
55
+ background-size: 200%;
56
+ background-position: 50%;
52
57
 
53
- &:hover {
54
- background-color: darken($btn-primary-bg, 3%);
58
+ &:hover,
59
+ &:active:hover,
60
+ &:focus {
61
+ background-color: darken($btn-primary-bg, 6%);
55
62
  }
56
63
 
57
64
  &:active {
58
65
  background-color: darken($btn-primary-bg, 6%);
66
+ @include gradient-radial(darken($btn-primary-bg, 6%) 10%, $btn-primary-bg 11%);
67
+ background-size: 1000%;
59
68
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
60
69
  }
61
70
  }
71
+
62
72
  .btn-success {
73
+ background-size: 200%;
74
+ background-position: 50%;
63
75
 
64
- &:hover {
65
- background-color: darken($btn-success-bg, 3%);
76
+ &:hover,
77
+ &:active:hover,
78
+ &:focus {
79
+ background-color: darken($btn-success-bg, 6%);
66
80
  }
67
81
 
68
82
  &:active {
69
83
  background-color: darken($btn-success-bg, 6%);
84
+ @include gradient-radial(darken($btn-success-bg, 6%) 10%, $btn-success-bg 11%);
85
+ background-size: 1000%;
70
86
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
71
87
  }
72
88
  }
89
+
73
90
  .btn-info {
91
+ background-size: 200%;
92
+ background-position: 50%;
74
93
 
75
- &:hover {
76
- background-color: darken($btn-info-bg, 3%);
94
+ &:hover,
95
+ &:active:hover,
96
+ &:focus {
97
+ background-color: darken($btn-info-bg, 6%);
77
98
  }
78
99
 
79
100
  &:active {
80
101
  background-color: darken($btn-info-bg, 6%);
102
+ @include gradient-radial(darken($btn-info-bg, 6%) 10%, $btn-info-bg 11%);
103
+ background-size: 1000%;
81
104
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
82
105
  }
83
106
  }
107
+
84
108
  .btn-warning {
109
+ background-size: 200%;
110
+ background-position: 50%;
85
111
 
86
- &:hover {
87
- background-color: darken($btn-warning-bg, 3%);
112
+ &:hover,
113
+ &:active:hover,
114
+ &:focus {
115
+ background-color: darken($btn-warning-bg, 6%);
88
116
  }
89
117
 
90
118
  &:active {
91
119
  background-color: darken($btn-warning-bg, 6%);
120
+ @include gradient-radial(darken($btn-warning-bg, 6%) 10%, $btn-warning-bg 11%);
121
+ background-size: 1000%;
92
122
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
93
123
  }
94
124
  }
125
+
95
126
  .btn-danger {
127
+ background-size: 200%;
128
+ background-position: 50%;
96
129
 
97
- &:hover {
98
- background-color: darken($btn-danger-bg, 3%);
130
+ &:hover,
131
+ &:active:hover,
132
+ &:focus {
133
+ background-color: darken($btn-danger-bg, 6%);
99
134
  }
100
135
 
101
136
  &:active {
102
137
  background-color: darken($btn-danger-bg, 6%);
138
+ @include gradient-radial(darken($btn-danger-bg, 6%) 10%, $btn-danger-bg 11%);
139
+ background-size: 1000%;
103
140
  @include box-shadow(2px 2px 2px rgba(0,0,0,.3));
104
141
  }
105
142
  }
@@ -126,6 +163,24 @@
126
163
  border: 1px solid $btn-default-border;
127
164
  }
128
165
 
166
+ .btn-group {
167
+ .btn + .btn,
168
+ .btn + .btn-group,
169
+ .btn-group + .btn,
170
+ .btn-group + .btn-group {
171
+ margin-left: 0;
172
+ }
173
+ }
174
+
175
+ .btn-group-vertical {
176
+ > .btn + .btn,
177
+ > .btn + .btn-group,
178
+ > .btn-group + .btn,
179
+ > .btn-group + .btn-group {
180
+ margin-top: 0;
181
+ }
182
+ }
183
+
129
184
  // Typography =================================================================
130
185
 
131
186
  body {
@@ -151,18 +206,36 @@ a {
151
206
 
152
207
  // Tables =====================================================================
153
208
 
209
+ .table-hover {
210
+ > tbody > tr,
211
+ > tbody > tr > th,
212
+ > tbody > tr > td {
213
+ @include transition(all 0.2s);
214
+ }
215
+ }
216
+
154
217
  // Forms ======================================================================
155
218
 
219
+ label {
220
+ font-weight: normal;
221
+ }
222
+
223
+ textarea,
224
+ textarea.form-control,
225
+ input.form-control,
156
226
  input[type=text],
157
227
  input[type=password],
158
228
  input[type=email],
159
- textarea,
229
+ input[type=number],
160
230
  [type=text].form-control,
161
231
  [type=password].form-control,
162
- textarea.form-control {
232
+ [type=email].form-control,
233
+ [type=tel].form-control,
234
+ [contenteditable].form-control {
163
235
  padding: 0;
164
236
  border: none;
165
237
  border-radius: 0;
238
+ -webkit-appearance: none;
166
239
  @include box-shadow(inset 0 -1px 0 #ddd);
167
240
  font-size: 16px;
168
241
 
@@ -175,37 +248,211 @@ textarea.form-control {
175
248
  @include box-shadow(none);
176
249
  border-bottom: 1px dotted #ddd;
177
250
  }
251
+
252
+ &.input-sm {
253
+ font-size: $font-size-small;
254
+ }
255
+
256
+ &.input-lg {
257
+ font-size: $font-size-large;
258
+ }
178
259
  }
179
260
 
180
261
  select,
181
262
  select.form-control {
182
- background-color: #fff;
183
- border: 1px solid #ddd;
184
- @include box-shadow(none);
263
+ border: 0;
264
+ border-radius: 0;
265
+ -webkit-appearance: none;
266
+ -moz-appearance: none;
267
+ appearance: none;
268
+ padding-left: 0;
269
+ padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed
270
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
271
+ background-size: 13px;
272
+ background-repeat: no-repeat;
273
+ background-position: right center;
274
+ @include box-shadow(inset 0 -1px 0 #ddd);
275
+ font-size: 16px;
276
+ line-height: 1.5;
277
+
278
+ &::-ms-expand {
279
+ display: none;
280
+ }
281
+
282
+ &.input-sm {
283
+ font-size: $font-size-small;
284
+ }
285
+
286
+ &.input-lg {
287
+ font-size: $font-size-large;
288
+ }
289
+
290
+ &:focus {
291
+ @include box-shadow(inset 0 -2px 0 $brand-primary);
292
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
293
+ }
294
+
295
+ &[multiple] {
296
+ background: none;
297
+ }
298
+ }
299
+
300
+ .radio,
301
+ .radio-inline,
302
+ .checkbox,
303
+ .checkbox-inline {
304
+ label {
305
+ padding-left: 25px;
306
+ }
307
+
308
+ input[type="radio"],
309
+ input[type="checkbox"] {
310
+ margin-left: -25px;
311
+ }
312
+ }
313
+
314
+ input[type="radio"],
315
+ .radio input[type="radio"],
316
+ .radio-inline input[type="radio"] {
317
+ position: relative;
318
+ margin-top: 5px;
319
+ margin-right: 4px;
320
+ vertical-align: -4px;
321
+ border: none;
322
+ background-color: transparent;
323
+ -webkit-appearance: none;
324
+ appearance: none;
325
+ cursor: pointer;
326
+
327
+ &:focus {
328
+ outline: none;
329
+ }
330
+
331
+ &:before,
332
+ &:after {
333
+ content: "";
334
+ display: block;
335
+ width: 18px;
336
+ height: 18px;
337
+ margin-top: -3px;
338
+ border-radius: 50%;
339
+ @include transition(240ms);
340
+ }
341
+
342
+ &:before {
343
+ position: absolute;
344
+ left: 0;
345
+ top: 0;
346
+ background-color: $brand-primary;
347
+
348
+ -webkit-transform: scale(0);
349
+ -ms-transform: scale(0); // IE9 only
350
+ -o-transform: scale(0);
351
+ transform: scale(0);
352
+ }
353
+
354
+ &:after {
355
+ border: 2px solid $gray;
356
+ }
357
+
358
+ &:checked:before {
359
+ -webkit-transform: scale(0.5);
360
+ -ms-transform: scale(0.5); // IE9 only
361
+ -o-transform: scale(0.5);
362
+ transform: scale(0.5);
363
+ }
364
+
365
+ &:disabled:checked:before {
366
+ background-color: $gray-light;
367
+ }
368
+
369
+ &:checked:after {
370
+ border-color: $brand-primary;
371
+ }
372
+
373
+ &:disabled:after,
374
+ &:disabled:checked:after {
375
+ border-color: $gray-light;
376
+ }
377
+ }
378
+
379
+ input[type="checkbox"],
380
+ .checkbox input[type="checkbox"],
381
+ .checkbox-inline input[type="checkbox"] {
382
+ position: relative;
383
+ vertical-align: -4px;
384
+ border: none;
385
+ -webkit-appearance: none;
386
+ appearance: none;
387
+ cursor: pointer;
388
+
389
+ &:focus {
390
+ outline: none;
391
+ }
392
+
393
+ &:after {
394
+ content: "";
395
+ display: block;
396
+ width: 18px;
397
+ height: 18px;
398
+ margin-top: -2px;
399
+ margin-right: 5px;
400
+ border: 2px solid $gray;
401
+ border-radius: 2px;
402
+ @include transition(240ms);
403
+ }
404
+
405
+ &:checked:before {
406
+ content: "";
407
+ position: absolute;
408
+ top: 0;
409
+ left: 6px;
410
+ display: table;
411
+ width: 6px;
412
+ height: 12px;
413
+ border: 2px solid #fff;
414
+ border-top-width: 0;
415
+ border-left-width: 0;
416
+ @include rotate(45deg);
417
+ }
418
+
419
+ &:checked:after {
420
+ background-color: $brand-primary;
421
+ border-color: $brand-primary;
422
+ }
423
+
424
+ &:disabled:after {
425
+ border-color: $gray-light;
426
+ }
427
+
428
+ &:disabled:checked:after {
429
+ background-color: $gray-light;
430
+ border-color: transparent;
431
+ }
185
432
  }
186
433
 
187
434
  .has-warning {
188
- input,
435
+ input:not([type=checkbox]),
189
436
  .form-control,
190
- input:focus,
437
+ input:not([type=checkbox]):focus,
191
438
  .form-control:focus {
192
439
  @include box-shadow(inset 0 -2px 0 $brand-warning);
193
440
  }
194
441
  }
195
442
 
196
443
  .has-error {
197
- input,
444
+ input:not([type=checkbox]),
198
445
  .form-control,
199
- input:focus,
446
+ input:not([type=checkbox]):focus,
200
447
  .form-control:focus {
201
448
  @include box-shadow(inset 0 -2px 0 $brand-danger);
202
449
  }
203
450
  }
204
451
 
205
452
  .has-success {
206
- input,
453
+ input:not([type=checkbox]),
207
454
  .form-control,
208
- input:focus,
455
+ input:not([type=checkbox]):focus,
209
456
  .form-control:focus {
210
457
  @include box-shadow(inset 0 -2px 0 $brand-success);
211
458
  }
@@ -214,9 +461,11 @@ select.form-control {
214
461
  // Navs =======================================================================
215
462
 
216
463
  .nav-tabs {
217
- & > li > a {
218
- border: none;
464
+ > li > a,
465
+ > li > a:focus {
219
466
  margin-right: 0;
467
+ background-color: transparent;
468
+ border: none;
220
469
  color: $navbar-default-link-color;
221
470
  @include box-shadow(inset 0 -1px 0 #ddd);
222
471
  @include transition(all 0.2s);
@@ -228,7 +477,8 @@ select.form-control {
228
477
  }
229
478
  }
230
479
 
231
- & > li.active > a {
480
+ & > li.active > a,
481
+ & > li.active > a:focus {
232
482
  border: none;
233
483
  @include box-shadow(inset 0 -2px 0 $brand-primary);
234
484
  color: $brand-primary;
@@ -247,8 +497,10 @@ select.form-control {
247
497
 
248
498
  & > li > a,
249
499
  & > li > a:hover,
500
+ & > li > a:focus,
250
501
  & > .active > a,
251
- & > .active > a:hover {
502
+ & > .active > a:hover,
503
+ & > .active > a:focus {
252
504
  border: none;
253
505
  }
254
506
  }
@@ -259,6 +511,7 @@ select.form-control {
259
511
  }
260
512
 
261
513
  .dropdown-menu {
514
+ margin-top: 0;
262
515
  border: none;
263
516
  @include box-shadow(0 1px 4px rgba(0,0,0,.3));
264
517
  }
@@ -315,18 +568,20 @@ select.form-control {
315
568
  &:last-child {
316
569
  border-radius: 0 3px 3px 0;
317
570
  }
318
- }
319
571
 
320
- .progress-bar:last-child.progress-bar:before {
321
- display: block;
322
- content: 'div::before';
323
- position: absolute;
324
- width: 100%;
325
- height: 100%;
326
- left: 0;
327
- right: 0;
328
- z-index: -1;
329
- background-color: lighten($progress-bar-bg, 35%);
572
+ &:last-child {
573
+ &:before {
574
+ display: block;
575
+ content: "";
576
+ position: absolute;
577
+ width: 100%;
578
+ height: 100%;
579
+ left: 0;
580
+ right: 0;
581
+ z-index: -1;
582
+ background-color: lighten($progress-bar-bg, 35%);
583
+ }
584
+ }
330
585
  }
331
586
 
332
587
  .progress-bar-success:last-child.progress-bar:before {
@@ -354,6 +609,7 @@ select.form-control {
354
609
  font-weight: 300;
355
610
  line-height: 24px;
356
611
  opacity: 0.6;
612
+ @include transition(all 0.2s);
357
613
 
358
614
  &:hover {
359
615
  opacity: 1;
@@ -387,47 +643,14 @@ select.form-control {
387
643
  border-top: none;
388
644
  }
389
645
 
390
- .panel-success {
391
- .panel-heading {
392
- background-color: $brand-success;
393
- }
394
-
395
- .panel-title {
396
- color: #fff;
397
- }
398
- }
399
-
400
- .panel-info {
401
- .panel-heading {
402
- background-color: $brand-info;
403
- }
404
-
405
- .panel-title {
406
- color: #fff;
407
- }
408
- }
409
-
410
- .panel-warning {
411
- .panel-heading {
412
- background-color: $brand-warning;
413
- }
414
-
415
- .panel-title {
416
- color: #fff;
417
- }
646
+ .popover {
647
+ border: none;
648
+ @include box-shadow(0 1px 4px rgba(0,0,0,.3));
418
649
  }
419
650
 
420
- .panel-danger {
421
- .panel-heading {
422
- background-color: $brand-danger;
423
- }
424
-
425
- .panel-title {
426
- color: #fff;
651
+ .carousel-caption {
652
+ h1, h2, h3, h4, h5, h6 {
653
+ color: inherit;
427
654
  }
428
655
  }
429
656
 
430
- .popover {
431
- border: none;
432
- @include box-shadow(0 1px 4px rgba(0,0,0,.3));
433
- }