bootswatch-rails 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. data/README.md +1 -0
  2. data/lib/bootswatch-rails/version.rb +1 -1
  3. data/vendor/assets/stylesheets/bootswatch/amelia/_bootswatch.scss +13 -13
  4. data/vendor/assets/stylesheets/bootswatch/amelia/_variables.scss +15 -15
  5. data/vendor/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +9 -9
  6. data/vendor/assets/stylesheets/bootswatch/cerulean/_variables.scss +16 -16
  7. data/vendor/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +592 -0
  8. data/vendor/assets/stylesheets/bootswatch/cosmo/_variables.scss +302 -0
  9. data/vendor/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +16 -16
  10. data/vendor/assets/stylesheets/bootswatch/cyborg/_variables.scss +9 -9
  11. data/vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss +1 -1
  12. data/vendor/assets/stylesheets/bootswatch/journal/_variables.scss +11 -11
  13. data/vendor/assets/stylesheets/bootswatch/readable/_bootswatch.scss +1 -1
  14. data/vendor/assets/stylesheets/bootswatch/readable/_variables.scss +13 -13
  15. data/vendor/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +1 -1
  16. data/vendor/assets/stylesheets/bootswatch/simplex/_variables.scss +16 -16
  17. data/vendor/assets/stylesheets/bootswatch/slate/_bootswatch.scss +26 -26
  18. data/vendor/assets/stylesheets/bootswatch/slate/_variables.scss +11 -11
  19. data/vendor/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +4 -4
  20. data/vendor/assets/stylesheets/bootswatch/spacelab/_variables.scss +16 -16
  21. data/vendor/assets/stylesheets/bootswatch/spruce/_bootswatch.scss +13 -13
  22. data/vendor/assets/stylesheets/bootswatch/spruce/_variables.scss +17 -17
  23. data/vendor/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +39 -39
  24. data/vendor/assets/stylesheets/bootswatch/superhero/_variables.scss +13 -13
  25. data/vendor/assets/stylesheets/bootswatch/united/_bootswatch.scss +3 -3
  26. data/vendor/assets/stylesheets/bootswatch/united/_variables.scss +17 -17
  27. metadata +12 -5
@@ -0,0 +1,302 @@
1
+ // Variables to customize the look and feel of Bootstrap
2
+ // Swatch: Cosmo
3
+ // Version: 2.0.2
4
+ // -----------------------------------------------------
5
+
6
+
7
+ // Global values
8
+ // --------------------------------------------------
9
+
10
+
11
+ // Grays
12
+ // -------------------------
13
+ $black: #000;
14
+ $grayDarker: #080808;
15
+ $grayDark: #999;
16
+ $gray: #bbb;
17
+ $grayLight: #dfdfdf;
18
+ $grayLighter: #eee;
19
+ $white: #fff;
20
+
21
+
22
+ // Accent colors
23
+ // -------------------------
24
+ $blue: #007FFF;
25
+ $blueDark: #1F26B6;
26
+ $green: #3FB618;
27
+ $red: #FF0039;
28
+ $yellow: #FFA500;
29
+ $orange: #FF7518;
30
+ $pink: #E671B8;
31
+ $purple: #9954BB;
32
+
33
+
34
+ // Scaffolding
35
+ // -------------------------
36
+ $bodyBackground: $white;
37
+ $textColor: #555;
38
+
39
+
40
+ // Links
41
+ // -------------------------
42
+ $linkColor: $blue;
43
+ $linkColorHover: darken($linkColor, 0.1);
44
+
45
+
46
+ // Typography
47
+ // -------------------------
48
+ $sansFontFamily: "Open Sans", Calibri, Candara, Arial, sans-serif;
49
+ $serifFontFamily: Georgia, "Times New Roman", Times, serif;
50
+ $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
51
+
52
+ $baseFontSize: 14px;
53
+ $baseFontFamily: $sansFontFamily;
54
+ $baseLineHeight: 20px;
55
+ $altFontFamily: $serifFontFamily;
56
+
57
+ $headingsFontFamily: inherit; // empty to use BS default, $baseFontFamily
58
+ $headingsFontWeight: 300; // instead of browser default, bold
59
+ $headingsColor: $grayDarker; // empty to use BS default, $textColor
60
+
61
+
62
+ // Component sizing
63
+ // -------------------------
64
+ // Based on 14px font-size and 20px line-height
65
+
66
+ $fontSizeLarge: $baseFontSize * 1.25; // ~18px
67
+ $fontSizeSmall: $baseFontSize * 0.85; // ~12px
68
+ $fontSizeMini: $baseFontSize * 0.75; // ~11px
69
+
70
+ $paddingLarge: 11px 19px; // 44px
71
+ $paddingSmall: 2px 10px; // 26px
72
+ $paddingMini: 1px 6px; // 24px
73
+
74
+ $baseBorderRadius: 0px;
75
+ $borderRadiusLarge: 0px;
76
+ $borderRadiusSmall: 0px;
77
+
78
+
79
+ // Tables
80
+ // -------------------------
81
+ $tableBackground: transparent; // overall background-color
82
+ $tableBackgroundAccent: #f9f9f9; // for striping
83
+ $tableBackgroundHover: #E8F8FD; // for hover
84
+ $tableBorder: #ddd; // table and cell border
85
+
86
+ // Buttons
87
+ // -------------------------
88
+ $btnBackground: $grayLighter;
89
+ $btnBackgroundHighlight: darken($grayLighter, 0.15);
90
+ $btnBorder: #bbb;
91
+
92
+ $btnPrimaryBackground: lighten($blue, 0.05);
93
+ $btnPrimaryBackgroundHighlight: darken($blue, 0.05);
94
+
95
+ $btnInfoBackground: lighten($purple, 0.05);
96
+ $btnInfoBackgroundHighlight: darken($purple, 0.05);
97
+
98
+ $btnSuccessBackground: lighten($green, 0.05);
99
+ $btnSuccessBackgroundHighlight: darken($green, 0.05);
100
+
101
+ $btnWarningBackground: lighten($orange, 0.05);
102
+ $btnWarningBackgroundHighlight: darken($orange, 0.05);
103
+
104
+ $btnDangerBackground: lighten($red, 0.05);
105
+ $btnDangerBackgroundHighlight: darken($red, 0.05);
106
+
107
+ $btnInverseBackground: lighten($black, 0.05);
108
+ $btnInverseBackgroundHighlight: darken($black, 0.05);
109
+
110
+
111
+ // Forms
112
+ // -------------------------
113
+ $inputBackground: $white;
114
+ $inputBorder: $gray;
115
+ $inputBorderRadius: $baseBorderRadius;
116
+ $inputDisabledBackground: $grayLighter;
117
+ $formActionsBackground: #f5f5f5;
118
+ $inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
119
+
120
+
121
+ // Dropdowns
122
+ // -------------------------
123
+ $dropdownBackground: $white;
124
+ $dropdownBorder: rgba(0,0,0,.2);
125
+ $dropdownDividerTop: #e5e5e5;
126
+ $dropdownDividerBottom: $white;
127
+
128
+ $dropdownLinkColor: $grayDark;
129
+ $dropdownLinkColorHover: $white;
130
+ $dropdownLinkColorActive: $dropdownLinkColor;
131
+
132
+ $dropdownLinkBackgroundActive: $blue;
133
+ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive;
134
+
135
+
136
+
137
+ // COMPONENT VARIABLES
138
+ // --------------------------------------------------
139
+
140
+
141
+ // Z-index master list
142
+ // -------------------------
143
+ // Used for a bird's eye view of components dependent on the z-axis
144
+ // Try to avoid customizing these :)
145
+ $zindexDropdown: 1000;
146
+ $zindexPopover: 1010;
147
+ $zindexTooltip: 1030;
148
+ $zindexFixedNavbar: 1030;
149
+ $zindexModalBackdrop: 1040;
150
+ $zindexModal: 1050;
151
+
152
+
153
+ // Sprite icons path
154
+ // -------------------------
155
+ $iconSpritePath: "../img/glyphicons-halflings.png";
156
+ $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
157
+
158
+
159
+ // Input placeholder text color
160
+ // -------------------------
161
+ $placeholderText: $gray;
162
+
163
+
164
+ // Hr border color
165
+ // -------------------------
166
+ $hrBorder: $grayLighter;
167
+
168
+
169
+ // Horizontal forms & lists
170
+ // -------------------------
171
+ $horizontalComponentOffset: 180px;
172
+
173
+
174
+ // Wells
175
+ // -------------------------
176
+ $wellBackground: $grayLighter;
177
+
178
+
179
+ // Navbar
180
+ // -------------------------
181
+ $navbarCollapseWidth: 979px;
182
+ $navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
183
+
184
+ $navbarHeight: 50px;
185
+ $navbarBackground: #0062ff;
186
+ $navbarBackgroundHighlight: $navbarBackground;
187
+ $navbarBorder: transparent;
188
+
189
+ $navbarText: $white;
190
+ $navbarLinkColor: $white;
191
+ $navbarLinkColorHover: $gray;
192
+ $navbarLinkColorActive: $white;
193
+ $navbarLinkBackgroundHover: rgba(0, 0, 0, 0.05);
194
+ $navbarLinkBackgroundActive: transparent;
195
+
196
+ $navbarBrandColor: $navbarLinkColor;
197
+
198
+ // Inverted navbar
199
+ $navbarInverseBackground: $blue;
200
+ $navbarInverseBackgroundHighlight: $navbarInverseBackground;
201
+ $navbarInverseBorder: transparent;
202
+
203
+ $navbarInverseText: $white;
204
+ $navbarInverseLinkColor: $white;
205
+ $navbarInverseLinkColorHover: $white;
206
+ $navbarInverseLinkColorActive: $navbarInverseLinkColorHover;
207
+ $navbarInverseLinkBackgroundHover: rgba(0, 0, 0, 0.05);
208
+ $navbarInverseLinkBackgroundActive: $navbarInverseBackground;
209
+
210
+ $navbarInverseSearchBackground: lighten($navbarInverseBackground, 0.25);
211
+ $navbarInverseSearchBackgroundFocus: $white;
212
+ $navbarInverseSearchBorder: $navbarInverseBackground;
213
+ $navbarInverseSearchPlaceholderColor: $grayDark;
214
+
215
+ $navbarInverseBrandColor: $navbarInverseLinkColor;
216
+
217
+
218
+ // Pagination
219
+ // -------------------------
220
+ $paginationBackground: $grayLight;
221
+ $paginationBorder: transparent;
222
+ $paginationActiveBackground: $blue;
223
+
224
+
225
+ // Hero unit
226
+ // -------------------------
227
+ $heroUnitBackground: $grayLighter;
228
+ $heroUnitHeadingColor: inherit;
229
+ $heroUnitLeadColor: inherit;
230
+
231
+
232
+ // Form states and alerts
233
+ // -------------------------
234
+ $warningText: $white;
235
+ $warningBackground: $orange;
236
+ $warningBorder: transparent;
237
+
238
+ $errorText: $white;
239
+ $errorBackground: $red;
240
+ $errorBorder: transparent;
241
+
242
+ $successText: $white;
243
+ $successBackground: $green;
244
+ $successBorder: transparent;
245
+
246
+ $infoText: $white;
247
+ $infoBackground: $purple;
248
+ $infoBorder: transparent;
249
+
250
+
251
+ // Tooltips and popovers
252
+ // -------------------------
253
+ $tooltipColor: #fff;
254
+ $tooltipBackground: #000;
255
+ $tooltipArrowWidth: 5px;
256
+ $tooltipArrowColor: $tooltipBackground;
257
+
258
+ $popoverBackground: $orange;
259
+ $popoverArrowWidth: 15px;
260
+ $popoverArrowColor: $orange;
261
+ $popoverTitleBackground: $orange;
262
+
263
+ // Special enhancement for popovers
264
+ $popoverArrowOuterWidth: $popoverArrowWidth + 1;
265
+ $popoverArrowOuterColor: transparent;
266
+
267
+
268
+
269
+ // GRID
270
+ // --------------------------------------------------
271
+
272
+
273
+ // Default 940px grid
274
+ // -------------------------
275
+ $gridColumns: 12;
276
+ $gridColumnWidth: 60px;
277
+ $gridGutterWidth: 20px;
278
+ $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
279
+
280
+ // 1200px min
281
+ $gridColumnWidth1200: 70px;
282
+ $gridGutterWidth1200: 30px;
283
+ $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1));
284
+
285
+ // 768px-979px
286
+ $gridColumnWidth768: 42px;
287
+ $gridGutterWidth768: 20px;
288
+ $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1));
289
+
290
+
291
+ // Fluid grid
292
+ // -------------------------
293
+ $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth);
294
+ $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth);
295
+
296
+ // 1200px min
297
+ $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200);
298
+ $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200);
299
+
300
+ // 768px-979px
301
+ $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768);
302
+ $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768);
@@ -272,7 +272,7 @@ div.subnav .nav .dropdown.open {
272
272
  .btn {
273
273
  @include border-radius(3px);
274
274
  @include box-shadow(1px 1px 2px #111);
275
- @include buttonBackground(darken($gray, 20%), darken($gray, 30%));
275
+ @include buttonBackground(darken($gray, .2), darken($gray, .3));
276
276
  color: $white;
277
277
  text-shadow: none;
278
278
 
@@ -283,27 +283,27 @@ div.subnav .nav .dropdown.open {
283
283
  }
284
284
 
285
285
  .btn-primary {
286
- @include buttonBackground($blueDark, darken($blueDark, 10%));
286
+ @include buttonBackground($blueDark, darken($blueDark, .1));
287
287
  }
288
288
 
289
289
  .btn-warning {
290
- @include buttonBackground(lighten($orange, 10%), $orange);
290
+ @include buttonBackground(lighten($orange, .1), $orange);
291
291
  }
292
292
 
293
293
  .btn-danger {
294
- @include buttonBackground(lighten($red, 10%), $red);
294
+ @include buttonBackground(lighten($red, .1), $red);
295
295
  }
296
296
 
297
297
  .btn-success {
298
- @include buttonBackground(lighten($green, 10%), $green);
298
+ @include buttonBackground(lighten($green, .1), $green);
299
299
  }
300
300
 
301
301
  .btn-info {
302
- @include buttonBackground(darken($gray, 40%), darken($gray, 50%));
302
+ @include buttonBackground(darken($gray, .4), darken($gray, .5));
303
303
  }
304
304
 
305
305
  .btn-inverse {
306
- @include buttonBackground(lighten($purple, 5%), $purple);
306
+ @include buttonBackground(lighten($purple, .05), $purple);
307
307
  }
308
308
 
309
309
  .btn-group .btn:first-child {
@@ -415,27 +415,27 @@ code, pre, pre.prettyprint {
415
415
  color: $grayLighter;
416
416
  }
417
417
 
418
- .label, .alert { background-color: darken($gray, 20%); }
418
+ .label, .alert { background-color: darken($gray, .2); }
419
419
 
420
- .label:hover { background-color: darken($gray, 30%); }
420
+ .label:hover { background-color: darken($gray, .3); }
421
421
 
422
422
 
423
423
  .label-important, .alert-danger,
424
424
  .alert-error { background-color: $red; }
425
425
 
426
- .label-important:hover { background-color: darken($red, 10%); }
426
+ .label-important:hover { background-color: darken($red, .1); }
427
427
 
428
- .label-warning { background-color: darken($orange, 10%); }
428
+ .label-warning { background-color: darken($orange, .1); }
429
429
 
430
- .label-warning:hover { background-color: darken($orange, 20%); }
430
+ .label-warning:hover { background-color: darken($orange, .2); }
431
431
 
432
- .label-success, .alert-success { background-color: darken($green, 3%); }
432
+ .label-success, .alert-success { background-color: darken($green, .03); }
433
433
 
434
- .label-success:hover { background-color: darken($green, 13%); }
434
+ .label-success:hover { background-color: darken($green, .13); }
435
435
 
436
- .label-info, .alert-info { background-color: darken($blueDark, 10%); }
436
+ .label-info, .alert-info { background-color: darken($blueDark, .1); }
437
437
 
438
- .label-info:hover { background-color: darken($blueDark, 20%); }
438
+ .label-info:hover { background-color: darken($blueDark, .2); }
439
439
 
440
440
  .alert,
441
441
  .alert .alert-heading,
@@ -67,11 +67,11 @@ $tableBorder: #222; // table and cell border
67
67
  // Buttons
68
68
  // -------------------------
69
69
  $btnBackground: $white;
70
- $btnBackgroundHighlight: darken($white, 10%);
70
+ $btnBackgroundHighlight: darken($white, .1);
71
71
  $btnBorder: rgba(0, 0, 0, 0);
72
72
 
73
73
  $btnPrimaryBackground: $blueDark;
74
- $btnPrimaryBackgroundHighlight: darken($blueDark, 10%);
74
+ $btnPrimaryBackgroundHighlight: darken($blueDark, .1);
75
75
 
76
76
  $btnInfoBackground: #5bc0de;
77
77
  $btnInfoBackgroundHighlight: #2f96b4;
@@ -79,7 +79,7 @@ $btnInfoBackgroundHighlight: #2f96b4;
79
79
  $btnSuccessBackground: #62c462;
80
80
  $btnSuccessBackgroundHighlight: #51a351;
81
81
 
82
- $btnWarningBackground: lighten($orange, 15%);
82
+ $btnWarningBackground: lighten($orange, .15);
83
83
  $btnWarningBackgroundHighlight: $orange;
84
84
 
85
85
  $btnDangerBackground: #ee5f5b;
@@ -145,9 +145,9 @@ $navbarLinkColorActive: $navbarLinkColorHover;
145
145
  $navbarLinkBackgroundHover: transparent;
146
146
  $navbarLinkBackgroundActive: $navbarBackground;
147
147
 
148
- $navbarSearchBackground: lighten($navbarBackground, 25%);
148
+ $navbarSearchBackground: lighten($navbarBackground, .25);
149
149
  $navbarSearchBackgroundFocus: $white;
150
- $navbarSearchBorder: darken($navbarSearchBackground, 30%);
150
+ $navbarSearchBorder: darken($navbarSearchBackground, .3);
151
151
  $navbarSearchPlaceholderColor: #ccc;
152
152
 
153
153
 
@@ -160,21 +160,21 @@ $heroUnitLeadColor: inherit;
160
160
 
161
161
  // Form states and alerts
162
162
  // -------------------------
163
- $warningText: darken(#c09853, 10%);
163
+ $warningText: darken(#c09853, .1);
164
164
  $warningBackground: $grayLighter;
165
165
  $warningBorder: transparent;
166
166
 
167
167
  $errorText: #b94a48;
168
168
  $errorBackground: $grayLighter;
169
- $errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
169
+ $errorBorder: darken(adjust-hue($errorBackground, -10), .03);
170
170
 
171
171
  $successText: #468847;
172
172
  $successBackground: $grayLighter;
173
- $successBorder: darken(adjust-hue($successBackground, -10), 5%);
173
+ $successBorder: darken(adjust-hue($successBackground, -10), .05);
174
174
 
175
175
  $infoText: $blueDark;
176
176
  $infoBackground: $grayLighter;
177
- $infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
177
+ $infoBorder: darken(adjust-hue($infoBackground, -10), .07);
178
178
 
179
179
 
180
180
 
@@ -109,7 +109,7 @@ div.subnav .nav > .active > a:hover {
109
109
  // -----------------------------------------------------
110
110
 
111
111
  .btn-primary {
112
- @include buttonBackground(lighten($linkColor, 5%), $linkColor);
112
+ @include buttonBackground(lighten($linkColor, .05), $linkColor);
113
113
  }
114
114
 
115
115