bootswatch-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/.gitmodules +3 -0
  2. data/HISTORY.md +7 -0
  3. data/README.md +16 -7
  4. data/Rakefile +32 -0
  5. data/converter +112 -0
  6. data/lib/bootswatch-rails/version.rb +1 -1
  7. data/vendor/assets/stylesheets/bootswatch/amelia/_bootswatch.scss +375 -229
  8. data/vendor/assets/stylesheets/bootswatch/amelia/_variables.scss +166 -60
  9. data/vendor/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +122 -37
  10. data/vendor/assets/stylesheets/bootswatch/cerulean/_variables.scss +148 -43
  11. data/vendor/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +62 -61
  12. data/vendor/assets/stylesheets/bootswatch/cosmo/_variables.scss +22 -23
  13. data/vendor/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +352 -236
  14. data/vendor/assets/stylesheets/bootswatch/cyborg/_variables.scss +147 -42
  15. data/vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss +277 -72
  16. data/vendor/assets/stylesheets/bootswatch/journal/_variables.scss +159 -54
  17. data/vendor/assets/stylesheets/bootswatch/readable/_bootswatch.scss +21 -381
  18. data/vendor/assets/stylesheets/bootswatch/readable/_variables.scss +161 -56
  19. data/vendor/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +46 -29
  20. data/vendor/assets/stylesheets/bootswatch/simplex/_variables.scss +42 -20
  21. data/vendor/assets/stylesheets/bootswatch/slate/_bootswatch.scss +420 -267
  22. data/vendor/assets/stylesheets/bootswatch/slate/_variables.scss +150 -45
  23. data/vendor/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +55 -102
  24. data/vendor/assets/stylesheets/bootswatch/spacelab/_variables.scss +94 -70
  25. data/vendor/assets/stylesheets/bootswatch/spruce/_bootswatch.scss +476 -301
  26. data/vendor/assets/stylesheets/bootswatch/spruce/_variables.scss +171 -66
  27. data/vendor/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +293 -255
  28. data/vendor/assets/stylesheets/bootswatch/superhero/_variables.scss +132 -30
  29. data/vendor/assets/stylesheets/bootswatch/united/_bootswatch.scss +85 -44
  30. data/vendor/assets/stylesheets/bootswatch/united/_variables.scss +143 -38
  31. metadata +5 -2
@@ -1,11 +1,9 @@
1
- // Variables to customize the look and feel of Bootstrap
2
- // Swatch: Readable
3
- // Version: 2.0.2
4
- // -----------------------------------------------------
5
-
1
+ // Readable 2.2.2
2
+ // Variables
3
+ // --------------------------------------------------
6
4
 
7
5
 
8
- // GLOBAL VALUES
6
+ // Global values
9
7
  // --------------------------------------------------
10
8
 
11
9
 
@@ -14,18 +12,18 @@
14
12
  $black: #000;
15
13
  $grayDarker: #222;
16
14
  $grayDark: #333;
17
- $gray: #777;
15
+ $gray: #555;
18
16
  $grayLight: #999;
19
- $grayLighter: #CDCDCD;
17
+ $grayLighter: #eee;
20
18
  $white: #fff;
21
19
 
22
20
 
23
21
  // Accent colors
24
22
  // -------------------------
25
- $blue: #049cdb;
23
+ $blue: #0063AC;
26
24
  $blueDark: #0064cd;
27
- $green: #46a546;
28
- $red: #9C0001;
25
+ $green: #1C9B47;
26
+ $red: #9c0001;
29
27
  $yellow: #ffc40d;
30
28
  $orange: #f89406;
31
29
  $pink: #c3325f;
@@ -34,94 +32,129 @@ $purple: #7a43b6;
34
32
 
35
33
  // Scaffolding
36
34
  // -------------------------
37
- $bodyBackground: #FDFDFA;
38
- $textColor: #090000;
35
+ $bodyBackground: #F6F6F6;
36
+ $textColor: $grayDark;
39
37
 
40
38
 
41
39
  // Links
42
40
  // -------------------------
43
41
  $linkColor: $red;
44
- $linkColorHover: lighten($linkColor, .08);
42
+ $linkColorHover: darken($linkColor, 5%);
45
43
 
46
44
 
47
45
  // Typography
48
46
  // -------------------------
49
- $baseFontSize: 19px;
50
- $baseFontFamily: Georgia, "Times New Roman", Times, serif;
51
- $baseLineHeight: $baseFontSize * 1.6;
52
- $altFontFamily: Georgia, "Times New Roman", Times, serif;
47
+ $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
48
+ $serifFontFamily: "Lora", Georgia, "Times New Roman", Times, serif;
49
+ $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
50
+
51
+ $baseFontSize: 17px;
52
+ $baseFontFamily: $serifFontFamily;
53
+ $baseLineHeight: 26px;
54
+ $altFontFamily: $sansFontFamily;
53
55
 
54
56
  $headingsFontFamily: inherit; // empty to use BS default, $baseFontFamily
55
57
  $headingsFontWeight: bold; // instead of browser default, bold
56
58
  $headingsColor: inherit; // empty to use BS default, $textColor
57
59
 
58
60
 
61
+ // Component sizing
62
+ // -------------------------
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ $fontSizeLarge: $baseFontSize * 1.25; // ~18px
66
+ $fontSizeSmall: $baseFontSize * 0.85; // ~12px
67
+ $fontSizeMini: $baseFontSize * 0.75; // ~11px
68
+
69
+ $paddingLarge: 11px 19px; // 44px
70
+ $paddingSmall: 2px 10px; // 26px
71
+ $paddingMini: 0px 6px; // 22px
72
+
73
+ $baseBorderRadius: 4px;
74
+ $borderRadiusLarge: 6px;
75
+ $borderRadiusSmall: 3px;
76
+
77
+
59
78
  // Tables
60
79
  // -------------------------
61
80
  $tableBackground: transparent; // overall background-color
62
- $tableBackgroundAccent: darken($bodyBackground, .02); // for striping
63
- $tableBackgroundHover: darken($bodyBackground, .04); // for hover
81
+ $tableBackgroundAccent: #f9f9f9; // for striping
82
+ $tableBackgroundHover: #f5f5f5; // for hover
64
83
  $tableBorder: #ddd; // table and cell border
65
84
 
66
-
67
85
  // Buttons
68
86
  // -------------------------
69
87
  $btnBackground: $white;
70
- $btnBackgroundHighlight: darken($white, .1);
71
- $btnBorder: darken($white, .2);
88
+ $btnBackgroundHighlight: darken($white, 10%);
89
+ $btnBorder: #bbb;
72
90
 
73
- $btnPrimaryBackground: $linkColor;
74
- $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, .15);
91
+ $btnPrimaryBackground: lighten($linkColor, 5%);
92
+ $btnPrimaryBackgroundHighlight: $linkColor;
75
93
 
76
- $btnInfoBackground: #5bc0de;
77
- $btnInfoBackgroundHighlight: #2f96b4;
94
+ $btnInfoBackground: lighten($blue, 5%);
95
+ $btnInfoBackgroundHighlight: $blue;
78
96
 
79
- $btnSuccessBackground: #62c462;
80
- $btnSuccessBackgroundHighlight: #51a351;
97
+ $btnSuccessBackground: lighten($green, 5%);
98
+ $btnSuccessBackgroundHighlight: $green;
81
99
 
82
- $btnWarningBackground: lighten($orange, .15);
100
+ $btnWarningBackground: lighten($orange, 5%);
83
101
  $btnWarningBackgroundHighlight: $orange;
84
102
 
85
- $btnDangerBackground: #ee5f5b;
86
- $btnDangerBackgroundHighlight: #bd362f;
103
+ $btnDangerBackground: lighten($red, 5%);
104
+ $btnDangerBackgroundHighlight: $red;
87
105
 
88
- $btnInverseBackground: $gray;
89
- $btnInverseBackgroundHighlight: $grayDarker;
106
+ $btnInverseBackground: lighten($grayDark, 5%);
107
+ $btnInverseBackgroundHighlight: $grayDark;
90
108
 
91
109
 
92
110
  // Forms
93
111
  // -------------------------
94
112
  $inputBackground: $white;
95
113
  $inputBorder: #ccc;
114
+ $inputBorderRadius: $baseBorderRadius;
96
115
  $inputDisabledBackground: $grayLighter;
116
+ $formActionsBackground: #f5f5f5;
117
+ $inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
97
118
 
98
119
 
99
120
  // Dropdowns
100
121
  // -------------------------
101
- $dropdownBackground: $white;
122
+ $dropdownBackground: $bodyBackground;
102
123
  $dropdownBorder: rgba(0,0,0,.2);
103
- $dropdownLinkColor: $linkColor;
104
- $dropdownLinkColorHover: $linkColorHover;
105
- $dropdownLinkBackgroundHover: transparent;
124
+ $dropdownDividerTop: #e5e5e5;
125
+ $dropdownDividerBottom: $white;
106
126
 
127
+ $dropdownLinkColor: $grayDark;
128
+ $dropdownLinkColorHover: $white;
129
+ $dropdownLinkColorActive: $white;
130
+
131
+ $dropdownLinkBackgroundActive: $linkColor;
132
+ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive;
107
133
 
108
134
 
109
135
 
110
136
  // COMPONENT VARIABLES
111
137
  // --------------------------------------------------
112
138
 
139
+
113
140
  // Z-index master list
114
141
  // -------------------------
115
142
  // Used for a bird's eye view of components dependent on the z-axis
116
143
  // Try to avoid customizing these :)
117
144
  $zindexDropdown: 1000;
118
145
  $zindexPopover: 1010;
119
- $zindexTooltip: 1020;
146
+ $zindexTooltip: 1030;
120
147
  $zindexFixedNavbar: 1030;
121
148
  $zindexModalBackdrop: 1040;
122
149
  $zindexModal: 1050;
123
150
 
124
151
 
152
+ // Sprite icons path
153
+ // -------------------------
154
+ $iconSpritePath: "../img/glyphicons-halflings.png";
155
+ $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
156
+
157
+
125
158
  // Input placeholder text color
126
159
  // -------------------------
127
160
  $placeholderText: $grayLight;
@@ -132,28 +165,65 @@ $placeholderText: $grayLight;
132
165
  $hrBorder: $grayLighter;
133
166
 
134
167
 
168
+ // Horizontal forms & lists
169
+ // -------------------------
170
+ $horizontalComponentOffset: 180px;
171
+
172
+
173
+ // Wells
174
+ // -------------------------
175
+ $wellBackground: #f5f5f5;
176
+
177
+
135
178
  // Navbar
136
179
  // -------------------------
137
- $navbarHeight: 40px;
138
- $navbarBackground: $bodyBackground;
180
+ $navbarCollapseWidth: 979px;
181
+ $navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
182
+
183
+ $navbarHeight: 60px;
139
184
  $navbarBackgroundHighlight: $bodyBackground;
185
+ $navbarBackground: $bodyBackground;
186
+ $navbarBorder: darken($navbarBackground, 12%);
140
187
 
141
188
  $navbarText: $textColor;
142
- $navbarLinkColor: $linkColor;
143
- $navbarLinkColorHover: $linkColorHover;
144
- $navbarLinkColorActive: $linkColorHover;
189
+ $navbarLinkColor: $textColor;
190
+ $navbarLinkColorHover: $textColor;
191
+ $navbarLinkColorActive: $textColor;
145
192
  $navbarLinkBackgroundHover: transparent;
146
- $navbarLinkBackgroundActive: $navbarBackground;
193
+ $navbarLinkBackgroundActive: darken($navbarBackground, 5%);
194
+
195
+ $navbarBrandColor: $navbarLinkColor;
196
+
197
+ // Inverted navbar
198
+ $navbarInverseBackground: $grayDark;
199
+ $navbarInverseBackgroundHighlight: $grayDark;
200
+ $navbarInverseBorder: #252525;
201
+
202
+ $navbarInverseText: $grayLight;
203
+ $navbarInverseLinkColor: $grayLight;
204
+ $navbarInverseLinkColorHover: $white;
205
+ $navbarInverseLinkColorActive: $navbarInverseLinkColorHover;
206
+ $navbarInverseLinkBackgroundHover: transparent;
207
+ $navbarInverseLinkBackgroundActive: $navbarInverseBackground;
208
+
209
+ $navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%);
210
+ $navbarInverseSearchBackgroundFocus: $white;
211
+ $navbarInverseSearchBorder: $navbarInverseBackground;
212
+ $navbarInverseSearchPlaceholderColor: #ccc;
213
+
214
+ $navbarInverseBrandColor: $navbarInverseLinkColor;
215
+
147
216
 
148
- $navbarSearchBackground: lighten($navbarBackground, .25);
149
- $navbarSearchBackgroundFocus: $white;
150
- $navbarSearchBorder: darken($navbarSearchBackground, .3);
151
- $navbarSearchPlaceholderColor: #ccc;
217
+ // Pagination
218
+ // -------------------------
219
+ $paginationBackground: #fff;
220
+ $paginationBorder: #ddd;
221
+ $paginationActiveBackground: #f5f5f5;
152
222
 
153
223
 
154
224
  // Hero unit
155
225
  // -------------------------
156
- $heroUnitBackground: $white;
226
+ $heroUnitBackground: $grayLighter;
157
227
  $heroUnitHeadingColor: inherit;
158
228
  $heroUnitLeadColor: inherit;
159
229
 
@@ -162,26 +232,43 @@ $heroUnitLeadColor: inherit;
162
232
  // -------------------------
163
233
  $warningText: #c09853;
164
234
  $warningBackground: #fcf8e3;
165
- $warningBorder: darken(adjust-hue($warningBackground, -10), .03);
235
+ $warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
166
236
 
167
237
  $errorText: #b94a48;
168
238
  $errorBackground: #f2dede;
169
- $errorBorder: darken(adjust-hue($errorBackground, -10), .03);
239
+ $errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
170
240
 
171
241
  $successText: #468847;
172
242
  $successBackground: #dff0d8;
173
- $successBorder: darken(adjust-hue($successBackground, -10), .05);
243
+ $successBorder: darken(adjust-hue($successBackground, -10), 5%);
174
244
 
175
245
  $infoText: #3a87ad;
176
246
  $infoBackground: #d9edf7;
177
- $infoBorder: darken(adjust-hue($infoBackground, -10), .07);
247
+ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
248
+
249
+
250
+ // Tooltips and popovers
251
+ // -------------------------
252
+ $tooltipColor: #fff;
253
+ $tooltipBackground: #000;
254
+ $tooltipArrowWidth: 5px;
255
+ $tooltipArrowColor: $tooltipBackground;
256
+
257
+ $popoverBackground: #fff;
258
+ $popoverArrowWidth: 10px;
259
+ $popoverArrowColor: #fff;
260
+ $popoverTitleBackground: darken($popoverBackground, 3%);
178
261
 
262
+ // Special enhancement for popovers
263
+ $popoverArrowOuterWidth: $popoverArrowWidth + 1;
264
+ $popoverArrowOuterColor: rgba(0,0,0,.25);
179
265
 
180
266
 
181
267
 
182
268
  // GRID
183
269
  // --------------------------------------------------
184
270
 
271
+
185
272
  // Default 940px grid
186
273
  // -------------------------
187
274
  $gridColumns: 12;
@@ -189,8 +276,26 @@ $gridColumnWidth: 60px;
189
276
  $gridGutterWidth: 20px;
190
277
  $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
191
278
 
279
+ // 1200px min
280
+ $gridColumnWidth1200: 70px;
281
+ $gridGutterWidth1200: 30px;
282
+ $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1));
283
+
284
+ // 768px-979px
285
+ $gridColumnWidth768: 42px;
286
+ $gridGutterWidth768: 20px;
287
+ $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1));
288
+
192
289
 
193
290
  // Fluid grid
194
291
  // -------------------------
195
- $fluidGridColumnWidth: 6.382978723%;
196
- $fluidGridGutterWidth: 2.127659574%;
292
+ $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth);
293
+ $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth);
294
+
295
+ // 1200px min
296
+ $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200);
297
+ $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200);
298
+
299
+ // 768px-979px
300
+ $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768);
301
+ $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768);
@@ -1,14 +1,14 @@
1
+ // Simplex 2.2.2
1
2
  // Bootswatch.less
2
- // Swatch: Simplex
3
- // Version: 2.1.1
4
3
  // -----------------------------------------------------
5
4
 
5
+
6
6
  $boxShadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
7
7
 
8
8
  // TYPOGRAPHY
9
9
  // -----------------------------------------------------
10
10
 
11
- @import url('https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,700');
11
+ @import url('//fonts.googleapis.com/css?family=Josefin+Sans:300,400,700');
12
12
 
13
13
  // SCAFFOLDING
14
14
  // -----------------------------------------------------
@@ -75,20 +75,19 @@ hr {
75
75
  .dropdown-menu a {
76
76
  font-family: $headingsFontFamily;
77
77
  }
78
- }
79
78
 
80
- .navbar-inverse {
79
+ .navbar-inverse {
81
80
 
82
- .navbar-inner {
83
- @include box-shadow(none);
84
- }
81
+ .navbar-inner {
82
+ @include box-shadow(none);
83
+ }
85
84
 
86
- .brand:hover {
87
- color: $white;
85
+ .brand:hover {
86
+ color: $white;
87
+ }
88
88
  }
89
89
  }
90
90
 
91
-
92
91
  @media (max-width: $navbarCollapseWidth) {
93
92
 
94
93
  .navbar .nav-collapse {
@@ -138,7 +137,7 @@ div.subnav {
138
137
  font-family: $headingsFontFamily;
139
138
 
140
139
  &.subnav-fixed {
141
- @include box-shadow(#{inset 0 5px #fff, $boxShadow});
140
+ @include box-shadow(inset 0 5px #fff, $boxShadow);
142
141
  }
143
142
 
144
143
  .nav > li > a {
@@ -176,7 +175,7 @@ div.subnav {
176
175
  .nav-tabs {
177
176
 
178
177
  & > li > a {
179
- background-color: darken($bodyBackground, .03);
178
+ background-color: darken($bodyBackground, 3%);
180
179
  border: 1px solid #ccc;
181
180
  color: $textColor;
182
181
 
@@ -307,14 +306,19 @@ div.subnav {
307
306
  }
308
307
 
309
308
  .breadcrumb {
310
- @include box-shadow(#{$boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1)});
309
+ background-color: $white;
311
310
  border: 0px solid transparent;
311
+ @include box-shadow($boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1));
312
312
 
313
313
  li {
314
- padding-top: 5px;
314
+ padding-top: 2px;
315
315
  text-shadow: none;
316
316
  }
317
317
 
318
+ .active {
319
+ color: $textColor;
320
+ }
321
+
318
322
  a {
319
323
  text-shadow: none;
320
324
  }
@@ -326,8 +330,9 @@ div.subnav {
326
330
 
327
331
  .pagination {
328
332
 
329
- li > a {
330
- padding: 4px 14px 0;
333
+ ul > li > a,
334
+ ul > li > span {
335
+ padding: 2px 14px 0;
331
336
  color: $textColor;
332
337
 
333
338
  &:hover {
@@ -336,10 +341,19 @@ div.subnav {
336
341
  }
337
342
  }
338
343
 
339
- li.active > a {
344
+ ul > .active > a,
345
+ ul > .active > span {
340
346
  background-color: $dropdownLinkBackgroundHover;
341
347
  color: $linkColor;
342
348
  }
349
+
350
+ ul > .disabled > a,
351
+ ul > .disabled > a:hover,
352
+ ul > .disabled > span,
353
+ ul > .disabled > span:hover {
354
+ background-color: transparent;
355
+ color: $textColor;
356
+ }
343
357
  }
344
358
 
345
359
 
@@ -402,13 +416,13 @@ i[class^="icon-"]{
402
416
  }
403
417
 
404
418
  .well {
405
- @include box-shadow(#{$boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1)});
419
+ @include box-shadow($boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1));
406
420
  border: none;
407
421
  }
408
422
 
409
423
  .hero-unit {
410
424
  background-color: $navbarBackground;
411
- @include box-shadow(#{$boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1)});
425
+ @include box-shadow($boxShadow, -1px -1px 0 rgba(0, 0, 0, 0.1));
412
426
  }
413
427
 
414
428
  .thumbnail {
@@ -420,17 +434,20 @@ i[class^="icon-"]{
420
434
  @include gradient-vertical(#e0e0e0, #e8e8e8);
421
435
  }
422
436
 
423
- .modal-header {
424
- border-bottom: none;
425
- }
437
+ .modal {
426
438
 
427
- .modal-header,
428
- .modal-body {
429
- background-color: $navbarBackground;
430
- }
439
+ .modal-header {
440
+ border-bottom: none;
441
+ }
431
442
 
432
- .modal-footer {
433
- background-color: $bodyBackground;
443
+ .modal-header,
444
+ .modal-body {
445
+ background-color: $navbarBackground;
446
+ }
447
+
448
+ .modal-footer {
449
+ background-color: $bodyBackground;
450
+ }
434
451
  }
435
452
 
436
453
  // MEDIA QUERIES