bootswatch 4.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +45 -0
  6. data/Rakefile +60 -0
  7. data/app/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +71 -0
  8. data/app/assets/stylesheets/bootswatch/cerulean/_variables.scss +855 -0
  9. data/app/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +45 -0
  10. data/app/assets/stylesheets/bootswatch/cosmo/_variables.scss +855 -0
  11. data/app/assets/stylesheets/bootswatch/custom/_bootswatch.scss +21 -0
  12. data/app/assets/stylesheets/bootswatch/custom/_variables.scss +857 -0
  13. data/app/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +140 -0
  14. data/app/assets/stylesheets/bootswatch/cyborg/_variables.scss +855 -0
  15. data/app/assets/stylesheets/bootswatch/darkly/_bootswatch.scss +146 -0
  16. data/app/assets/stylesheets/bootswatch/darkly/_variables.scss +855 -0
  17. data/app/assets/stylesheets/bootswatch/flatly/_bootswatch.scss +116 -0
  18. data/app/assets/stylesheets/bootswatch/flatly/_variables.scss +855 -0
  19. data/app/assets/stylesheets/bootswatch/journal/_bootswatch.scss +65 -0
  20. data/app/assets/stylesheets/bootswatch/journal/_variables.scss +857 -0
  21. data/app/assets/stylesheets/bootswatch/litera/_bootswatch.scss +130 -0
  22. data/app/assets/stylesheets/bootswatch/litera/_variables.scss +855 -0
  23. data/app/assets/stylesheets/bootswatch/lumen/_bootswatch.scss +298 -0
  24. data/app/assets/stylesheets/bootswatch/lumen/_variables.scss +855 -0
  25. data/app/assets/stylesheets/bootswatch/lux/_bootswatch.scss +115 -0
  26. data/app/assets/stylesheets/bootswatch/lux/_variables.scss +857 -0
  27. data/app/assets/stylesheets/bootswatch/materia/_bootswatch.scss +614 -0
  28. data/app/assets/stylesheets/bootswatch/materia/_variables.scss +857 -0
  29. data/app/assets/stylesheets/bootswatch/minty/_bootswatch.scss +89 -0
  30. data/app/assets/stylesheets/bootswatch/minty/_variables.scss +856 -0
  31. data/app/assets/stylesheets/bootswatch/pulse/_bootswatch.scss +126 -0
  32. data/app/assets/stylesheets/bootswatch/pulse/_variables.scss +857 -0
  33. data/app/assets/stylesheets/bootswatch/sandstone/_bootswatch.scss +156 -0
  34. data/app/assets/stylesheets/bootswatch/sandstone/_variables.scss +855 -0
  35. data/app/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +106 -0
  36. data/app/assets/stylesheets/bootswatch/simplex/_variables.scss +857 -0
  37. data/app/assets/stylesheets/bootswatch/slate/_bootswatch.scss +278 -0
  38. data/app/assets/stylesheets/bootswatch/slate/_variables.scss +856 -0
  39. data/app/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +129 -0
  40. data/app/assets/stylesheets/bootswatch/spacelab/_variables.scss +855 -0
  41. data/app/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +140 -0
  42. data/app/assets/stylesheets/bootswatch/superhero/_variables.scss +856 -0
  43. data/app/assets/stylesheets/bootswatch/united/_bootswatch.scss +36 -0
  44. data/app/assets/stylesheets/bootswatch/united/_variables.scss +855 -0
  45. data/app/assets/stylesheets/bootswatch/yeti/_bootswatch.scss +304 -0
  46. data/app/assets/stylesheets/bootswatch/yeti/_variables.scss +855 -0
  47. data/bootswatch.gemspec +23 -0
  48. data/lib/bootswatch.rb +6 -0
  49. data/lib/bootswatch/version.rb +3 -0
  50. metadata +120 -0
@@ -0,0 +1,614 @@
1
+ // Materia 4.0.0
2
+ // Bootswatch
3
+
4
+
5
+ $web-font-path: "https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" !default;
6
+ @import url($web-font-path);
7
+
8
+ // Effects =====================================================================
9
+
10
+ @mixin ripple($color){
11
+ position: relative;
12
+
13
+ &:after {
14
+ content: "";
15
+ display: block;
16
+ position: absolute;
17
+ width: 100%;
18
+ height: 100%;
19
+ top: 0;
20
+ left: 0;
21
+ margin-left: 0;
22
+ @include gradient-radial($color 10%, transparent 10.01%);
23
+ background-size: 1000% 1000%;
24
+ background-position: 50%;
25
+ border: none;
26
+ opacity: 0;
27
+ pointer-events: none;
28
+ transition: background .5s, opacity 1s;
29
+ }
30
+
31
+ &:active:after {
32
+ background-size: 0 0;
33
+ opacity: .2;
34
+ transition: 0s;
35
+ }
36
+
37
+ &.disabled,
38
+ &[disabled] {
39
+ &:after {
40
+ display: none;
41
+ }
42
+ }
43
+ }
44
+
45
+ // Navbar ======================================================================
46
+
47
+ .navbar {
48
+ border: none;
49
+ box-shadow: 0 1px 2px rgba(0,0,0,.3);
50
+
51
+ &-brand {
52
+ font-size: 24px;
53
+ }
54
+
55
+ &-nav .nav-link {
56
+ padding-top: 0.9rem;
57
+ padding-bottom: 0.9rem;
58
+ }
59
+
60
+ &-dark {
61
+
62
+ input[type=text],
63
+ input[type=password] {
64
+ color: #fff;
65
+ box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
66
+
67
+ &:focus {
68
+ box-shadow: inset 0 -2px 0 #fff;
69
+ }
70
+
71
+ &::placeholder {
72
+ color: rgba(255, 255, 255, 0.5);
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ .bg-inverse {
79
+ background-color: $brand-info !important;
80
+ }
81
+
82
+ .bg-faded {
83
+ background-color: #fff;
84
+ }
85
+
86
+ // Buttons =====================================================================
87
+
88
+ @mixin btn($class,$bg,$color){
89
+ .btn-#{$class} {
90
+ &:focus {
91
+ background-color: $bg;
92
+ }
93
+
94
+ &:hover,
95
+ &:active:hover {
96
+ background-color: darken($bg, 6%);
97
+ }
98
+
99
+ &:active {
100
+ box-shadow: 2px 2px 4px rgba(0,0,0,.4);
101
+ }
102
+
103
+ @include ripple($color);
104
+ }
105
+
106
+ .btn-outline-#{$class} {
107
+ @include ripple($color);
108
+ }
109
+ }
110
+
111
+ @include btn(primary,$btn-primary-bg,$btn-primary-color);
112
+ @include btn(secondary,$btn-secondary-bg,$btn-secondary-color);
113
+ @include btn(success,$btn-success-bg,$btn-success-color);
114
+ @include btn(info,$btn-info-bg,$btn-info-color);
115
+ @include btn(warning,$btn-warning-bg,$btn-warning-color);
116
+ @include btn(danger,$btn-danger-bg,$btn-danger-color);
117
+
118
+ .btn {
119
+ text-transform: uppercase;
120
+ border: none;
121
+ box-shadow: 1px 1px 4px rgba(0,0,0,.4);
122
+ transition: all 0.4s;
123
+
124
+ &-link {
125
+ box-shadow: none;
126
+ color: $link-color;
127
+
128
+ &:hover,
129
+ &:focus {
130
+ box-shadow: none;
131
+ color: $link-hover-color;
132
+ text-decoration: $link-hover-decoration;
133
+ }
134
+
135
+ &.disabled, // Although btn-link is intended for buttons, which want to look like link, I include here a.disable for the sake of consistency
136
+ &[disabled],
137
+ fieldset[disabled] & {
138
+ &:hover,
139
+ &:active:hover {
140
+ color: $btn-link-disabled-color;
141
+ text-decoration: none;
142
+ }
143
+ }
144
+ }
145
+
146
+ &-secondary {
147
+ &.disabled,
148
+ &[disabled],
149
+ fieldset[disabled] & {
150
+ background-color: rgba(0, 0, 0, 0.1);
151
+ color: rgba(0, 0, 0, 0.4);
152
+ opacity: 1;
153
+
154
+ &:hover,
155
+ &:focus {
156
+ background-color: rgba(0, 0, 0, 0.1);
157
+ }
158
+ }
159
+ }
160
+
161
+ &.dropdown-toggle::before {
162
+ display: inline-block;
163
+ width: 0;
164
+ height: 0;
165
+ margin-left: 0.3em;
166
+ vertical-align: middle;
167
+ content: "";
168
+ border-top: 0.3em solid;
169
+ border-right: 0.3em solid transparent;
170
+ border-left: 0.3em solid transparent;
171
+ }
172
+ }
173
+
174
+ .btn-group {
175
+ .btn + .btn,
176
+ .btn + .btn-group,
177
+ .btn-group + .btn,
178
+ .btn-group + .btn-group {
179
+ margin-left: 0;
180
+ }
181
+
182
+ &-vertical {
183
+ > .btn + .btn,
184
+ > .btn + .btn-group,
185
+ > .btn-group + .btn,
186
+ > .btn-group + .btn-group {
187
+ margin-top: 0;
188
+ }
189
+ }
190
+ }
191
+
192
+ // Typography ==================================================================
193
+
194
+ body {
195
+ -webkit-font-smoothing: antialiased;
196
+ letter-spacing: .1px;
197
+ }
198
+
199
+ p {
200
+ margin: 0 0 1em;
201
+ }
202
+
203
+ input,
204
+ button {
205
+ -webkit-font-smoothing: antialiased;
206
+ letter-spacing: .1px;
207
+ }
208
+
209
+ a {
210
+ transition: all 0.2s;
211
+ }
212
+
213
+ // Tables ======================================================================
214
+
215
+ .table-hover {
216
+ > tbody > tr,
217
+ > tbody > tr > th,
218
+ > tbody > tr > td {
219
+ transition: all 0.2s;
220
+ }
221
+ }
222
+
223
+ .thead-inverse th {
224
+ background-color: $brand-primary;
225
+ }
226
+
227
+ // Forms =======================================================================
228
+
229
+ label {
230
+ font-weight: normal;
231
+ }
232
+
233
+ textarea,
234
+ textarea.form-control,
235
+ input.form-control,
236
+ input[type=text],
237
+ input[type=password],
238
+ input[type=email],
239
+ input[type=number],
240
+ [type=text].form-control,
241
+ [type=password].form-control,
242
+ [type=email].form-control,
243
+ [type=tel].form-control,
244
+ [contenteditable].form-control {
245
+ padding: 0;
246
+ border: none;
247
+ border-radius: 0;
248
+ appearance: none;
249
+ box-shadow: inset 0 -1px 0 #ddd;
250
+ font-size: 16px;
251
+ line-height: 2.5;
252
+ transition: all 0.2s;
253
+
254
+ &:focus {
255
+ box-shadow: inset 0 -2px 0 $brand-primary;
256
+ }
257
+
258
+ &[disabled],
259
+ &[readonly] {
260
+ box-shadow: none;
261
+ border-bottom: 1px dotted #ddd;
262
+ }
263
+
264
+ &.input {
265
+ &-sm {
266
+ font-size: $font-size-sm;
267
+ }
268
+
269
+ &-lg {
270
+ font-size: $font-size-lg;
271
+ }
272
+ }
273
+ }
274
+
275
+ select,
276
+ select.form-control {
277
+ border: 0;
278
+ border-radius: 0;
279
+ appearance: none;
280
+ padding-left: 0;
281
+ padding-right: 0\9; // remove padding for < ie9 since default arrow can't be removed
282
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
283
+ background-size: 13px;
284
+ background-repeat: no-repeat;
285
+ background-position: right center;
286
+ box-shadow: inset 0 -1px 0 #ddd;
287
+ font-size: 16px;
288
+ line-height: 1.5;
289
+
290
+ &::-ms-expand {
291
+ display: none;
292
+ }
293
+
294
+ &.input {
295
+ &-sm {
296
+ font-size: $font-size-sm;
297
+ }
298
+
299
+ &-lg {
300
+ font-size: $font-size-lg;
301
+ }
302
+ }
303
+
304
+ &:focus {
305
+ box-shadow: inset 0 -2px 0 $brand-primary;
306
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=);
307
+ }
308
+
309
+ &[multiple] {
310
+ background: none;
311
+ }
312
+ }
313
+
314
+ .radio,
315
+ .radio-inline,
316
+ .checkbox,
317
+ .checkbox-inline {
318
+ label {
319
+ padding-left: 25px;
320
+ }
321
+
322
+ input[type="radio"],
323
+ input[type="checkbox"] {
324
+ margin-left: -25px;
325
+ }
326
+ }
327
+
328
+ input[type="radio"],
329
+ .radio input[type="radio"],
330
+ .radio-inline input[type="radio"] {
331
+ position: relative;
332
+ margin-right: 4px;
333
+ vertical-align: top;
334
+ border: none;
335
+ background-color: transparent;
336
+ appearance: none;
337
+ cursor: pointer;
338
+
339
+ &:focus {
340
+ outline: none;
341
+ }
342
+
343
+ &:before,
344
+ &:after {
345
+ content: "";
346
+ display: block;
347
+ width: 18px;
348
+ height: 18px;
349
+ border-radius: 50%;
350
+ transition: 240ms;
351
+ }
352
+
353
+ &:before {
354
+ position: absolute;
355
+ left: 0;
356
+ top: 1px;
357
+ background-color: $brand-primary;
358
+ transform: scale(0);
359
+ }
360
+
361
+ &:after {
362
+ position: relative;
363
+ top: -2px;
364
+ border: 2px solid $gray;
365
+ }
366
+
367
+ &:checked:before {
368
+ transform: scale(0.5);
369
+ }
370
+
371
+ &:disabled:checked:before {
372
+ background-color: $gray-light;
373
+ }
374
+
375
+ &:checked:after {
376
+ border-color: $brand-primary;
377
+ }
378
+
379
+ &:disabled:after,
380
+ &:disabled:checked:after {
381
+ border-color: $gray-light;
382
+ }
383
+ }
384
+
385
+ input[type="checkbox"],
386
+ .checkbox input[type="checkbox"],
387
+ .checkbox-inline input[type="checkbox"] {
388
+ position: relative;
389
+ border: none;
390
+ margin-bottom: -4px;
391
+ appearance: none;
392
+ cursor: pointer;
393
+
394
+ &:focus {
395
+ outline: none;
396
+ }
397
+
398
+ &:focus:after {
399
+ border-color: $brand-primary;
400
+ }
401
+
402
+ &:after {
403
+ content: "";
404
+ display: block;
405
+ width: 18px;
406
+ height: 18px;
407
+ margin-right: 5px;
408
+ border: 2px solid $gray;
409
+ border-radius: 2px;
410
+ transition: 240ms;
411
+ }
412
+
413
+ &:checked:before {
414
+ content: "";
415
+ position: absolute;
416
+ top: 4px;
417
+ left: 6px;
418
+ display: table;
419
+ width: 6px;
420
+ height: 12px;
421
+ border: 2px solid #fff;
422
+ border-top-width: 0;
423
+ border-left-width: 0;
424
+ transform: rotate(45deg);
425
+ }
426
+
427
+ &:checked:after {
428
+ background-color: $brand-primary;
429
+ border-color: $brand-primary;
430
+ }
431
+
432
+ &:disabled:after {
433
+ border-color: $gray-light;
434
+ }
435
+
436
+ &:disabled:checked:after {
437
+ background-color: $gray-light;
438
+ border-color: transparent;
439
+ }
440
+ }
441
+
442
+ .has-warning {
443
+ input:not([type=checkbox]),
444
+ .form-control,
445
+ input.form-control[readonly],
446
+ input[type=text][readonly],
447
+ [type=text].form-control[readonly],
448
+ input:not([type=checkbox]):focus,
449
+ .form-control:focus {
450
+ border-bottom: none;
451
+ box-shadow: inset 0 -2px 0 $brand-warning;
452
+ }
453
+ }
454
+
455
+ .has-error {
456
+ input:not([type=checkbox]),
457
+ .form-control,
458
+ input.form-control[readonly],
459
+ input[type=text][readonly],
460
+ [type=text].form-control[readonly],
461
+ input:not([type=checkbox]):focus,
462
+ .form-control:focus {
463
+ border-bottom: none;
464
+ box-shadow: inset 0 -2px 0 $brand-danger;
465
+ }
466
+ }
467
+
468
+ .has-success {
469
+ input:not([type=checkbox]),
470
+ .form-control,
471
+ input.form-control[readonly],
472
+ input[type=text][readonly],
473
+ [type=text].form-control[readonly],
474
+ input:not([type=checkbox]):focus,
475
+ .form-control:focus {
476
+ border-bottom: none;
477
+ box-shadow: inset 0 -2px 0 $brand-success;
478
+ }
479
+ }
480
+
481
+ // Remove the Bootstrap feedback styles for input addons
482
+ .input-group-addon {
483
+ .has-warning &, .has-error &, .has-success & {
484
+ color: $input-color;
485
+ border-color: $input-group-addon-border-color;
486
+ background-color: $input-group-addon-bg;
487
+ }
488
+ }
489
+
490
+ .form-group-lg {
491
+ select,
492
+ select.form-control {
493
+ line-height: 1.5;
494
+ }
495
+ }
496
+
497
+ // Navs ========================================================================
498
+
499
+ .nav-tabs {
500
+ .nav-item + .nav-item {
501
+ margin-left: 0;
502
+ }
503
+
504
+ .nav-link,
505
+ .nav-link:focus {
506
+ margin-right: 0;
507
+ background-color: transparent;
508
+ border: none;
509
+ color: $body-color;
510
+ box-shadow: inset 0 -1px 0 #ddd;
511
+ transition: all 0.2s;
512
+
513
+ &:hover {
514
+ background-color: transparent;
515
+ box-shadow: inset 0 -2px 0 $brand-primary;
516
+ color: $brand-primary;
517
+ }
518
+ }
519
+
520
+ .nav-link.active,
521
+ .nav-link.active:focus {
522
+ border: none;
523
+ box-shadow: inset 0 -2px 0 $brand-primary;
524
+ color: $brand-primary;
525
+
526
+ &:hover {
527
+ border: none;
528
+ color: $brand-primary;
529
+ }
530
+ }
531
+
532
+ .nav-link.disabled {
533
+ box-shadow: inset 0 -1px 0 #ddd;
534
+ }
535
+
536
+ &.nav-justified {
537
+
538
+ .nav-link,
539
+ .nav-link:hover,
540
+ .nav-link:focus,
541
+ .nav-link.active,
542
+ .nav-link.active:hover,
543
+ .nav-link.active:focus {
544
+ border: none;
545
+ }
546
+ }
547
+
548
+ .dropdown-menu {
549
+ margin-top: 0;
550
+ }
551
+ }
552
+
553
+ .dropdown-menu {
554
+ margin-top: 0;
555
+ border: none;
556
+ box-shadow: 0 1px 4px rgba(0,0,0,.3);
557
+ }
558
+
559
+ // Indicators ==================================================================
560
+
561
+ .alert {
562
+
563
+ h1, h2, h3, h4, h5, h6 {
564
+ color: #fff;
565
+ }
566
+
567
+ a:not(.close):not(.btn),
568
+ .alert-link {
569
+ color: #fff;
570
+ font-weight: bold;
571
+ }
572
+
573
+ .close {
574
+ color: #fff;
575
+ }
576
+ }
577
+
578
+ .tag {
579
+ padding: 4px 6px 4px;
580
+ }
581
+
582
+ .progress {
583
+ height: 6px;
584
+ border-radius: 0;
585
+ }
586
+
587
+ // Progress bars ===============================================================
588
+
589
+ // Containers ==================================================================
590
+
591
+ .close {
592
+ font-size: 34px;
593
+ font-weight: 300;
594
+ line-height: 24px;
595
+ opacity: 0.6;
596
+ transition: all 0.2s;
597
+
598
+ &:hover {
599
+ opacity: 1;
600
+ }
601
+ }
602
+
603
+ .popover {
604
+ border: none;
605
+ box-shadow: 0 1px 4px rgba(0,0,0,.3);
606
+ }
607
+
608
+ .carousel {
609
+ &-caption {
610
+ h1, h2, h3, h4, h5, h6 {
611
+ color: inherit;
612
+ }
613
+ }
614
+ }