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.
- data/.gitmodules +3 -0
- data/HISTORY.md +7 -0
- data/README.md +16 -7
- data/Rakefile +32 -0
- data/converter +112 -0
- data/lib/bootswatch-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/bootswatch/amelia/_bootswatch.scss +375 -229
- data/vendor/assets/stylesheets/bootswatch/amelia/_variables.scss +166 -60
- data/vendor/assets/stylesheets/bootswatch/cerulean/_bootswatch.scss +122 -37
- data/vendor/assets/stylesheets/bootswatch/cerulean/_variables.scss +148 -43
- data/vendor/assets/stylesheets/bootswatch/cosmo/_bootswatch.scss +62 -61
- data/vendor/assets/stylesheets/bootswatch/cosmo/_variables.scss +22 -23
- data/vendor/assets/stylesheets/bootswatch/cyborg/_bootswatch.scss +352 -236
- data/vendor/assets/stylesheets/bootswatch/cyborg/_variables.scss +147 -42
- data/vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss +277 -72
- data/vendor/assets/stylesheets/bootswatch/journal/_variables.scss +159 -54
- data/vendor/assets/stylesheets/bootswatch/readable/_bootswatch.scss +21 -381
- data/vendor/assets/stylesheets/bootswatch/readable/_variables.scss +161 -56
- data/vendor/assets/stylesheets/bootswatch/simplex/_bootswatch.scss +46 -29
- data/vendor/assets/stylesheets/bootswatch/simplex/_variables.scss +42 -20
- data/vendor/assets/stylesheets/bootswatch/slate/_bootswatch.scss +420 -267
- data/vendor/assets/stylesheets/bootswatch/slate/_variables.scss +150 -45
- data/vendor/assets/stylesheets/bootswatch/spacelab/_bootswatch.scss +55 -102
- data/vendor/assets/stylesheets/bootswatch/spacelab/_variables.scss +94 -70
- data/vendor/assets/stylesheets/bootswatch/spruce/_bootswatch.scss +476 -301
- data/vendor/assets/stylesheets/bootswatch/spruce/_variables.scss +171 -66
- data/vendor/assets/stylesheets/bootswatch/superhero/_bootswatch.scss +293 -255
- data/vendor/assets/stylesheets/bootswatch/superhero/_variables.scss +132 -30
- data/vendor/assets/stylesheets/bootswatch/united/_bootswatch.scss +85 -44
- data/vendor/assets/stylesheets/bootswatch/united/_variables.scss +143 -38
- metadata +5 -2
@@ -1,9 +1,9 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
4
|
-
|
1
|
+
// Superhero 2.2.2
|
2
|
+
// Variables
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
5
|
|
6
|
-
//
|
6
|
+
// Global values
|
7
7
|
// --------------------------------------------------
|
8
8
|
|
9
9
|
|
@@ -58,22 +58,38 @@ $headingsFontWeight: bold; // instead of browser default, bold
|
|
58
58
|
$headingsColor: $orange; // empty to use BS default, $textColor
|
59
59
|
|
60
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
|
+
|
61
78
|
// Tables
|
62
79
|
// -------------------------
|
63
|
-
$tableBackground: darken($blue,
|
80
|
+
$tableBackground: darken($blue, 3%); // overall background-color
|
64
81
|
$tableBackgroundAccent: $blue; // for striping
|
65
|
-
$tableBackgroundHover: lighten($blue,
|
82
|
+
$tableBackgroundHover: lighten($blue, 5%); // for hover
|
66
83
|
$tableBorder: transparent; // table and cell border
|
67
84
|
|
68
|
-
|
69
85
|
// Buttons
|
70
86
|
// -------------------------
|
71
87
|
$btnBackground: $white;
|
72
|
-
$btnBackgroundHighlight: darken($white,
|
73
|
-
$btnBorder: darken($white,
|
88
|
+
$btnBackgroundHighlight: darken($white, 10%);
|
89
|
+
$btnBorder: darken($white, 20%);
|
74
90
|
|
75
91
|
$btnPrimaryBackground: $linkColor;
|
76
|
-
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground,
|
92
|
+
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%);
|
77
93
|
|
78
94
|
$btnInfoBackground: #5bc0de;
|
79
95
|
$btnInfoBackgroundHighlight: #2f96b4;
|
@@ -81,7 +97,7 @@ $btnInfoBackgroundHighlight: #2f96b4;
|
|
81
97
|
$btnSuccessBackground: #62c462;
|
82
98
|
$btnSuccessBackgroundHighlight: #51a351;
|
83
99
|
|
84
|
-
$btnWarningBackground: lighten($orange,
|
100
|
+
$btnWarningBackground: lighten($orange, 15%);
|
85
101
|
$btnWarningBackgroundHighlight: $orange;
|
86
102
|
|
87
103
|
$btnDangerBackground: #ee5f5b;
|
@@ -95,37 +111,50 @@ $btnInverseBackgroundHighlight: $grayDarker;
|
|
95
111
|
// -------------------------
|
96
112
|
$inputBackground: $white;
|
97
113
|
$inputBorder: #ccc;
|
98
|
-
$inputBorderRadius:
|
114
|
+
$inputBorderRadius: $baseBorderRadius;
|
99
115
|
$inputDisabledBackground: $grayLighter;
|
100
116
|
$formActionsBackground: transparent;
|
117
|
+
$inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
118
|
+
|
101
119
|
|
102
120
|
// Dropdowns
|
103
121
|
// -------------------------
|
104
|
-
$dropdownBackground: lighten($blue,
|
105
|
-
$dropdownBorder:
|
106
|
-
$dropdownLinkColor: $textColor;
|
107
|
-
$dropdownLinkColorHover: $white;
|
108
|
-
$dropdownLinkBackgroundHover: $linkColor;
|
122
|
+
$dropdownBackground: lighten($blue, 10%);
|
123
|
+
$dropdownBorder: transparent;
|
109
124
|
$dropdownDividerTop: transparent;
|
110
125
|
$dropdownDividerBottom: $blue;
|
111
126
|
|
127
|
+
$dropdownLinkColor: $textColor;
|
128
|
+
$dropdownLinkColorHover: $white;
|
129
|
+
$dropdownLinkColorActive: $white;
|
130
|
+
|
131
|
+
$dropdownLinkBackgroundActive: $linkColor;
|
132
|
+
$dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive;
|
133
|
+
|
112
134
|
|
113
135
|
|
114
136
|
// COMPONENT VARIABLES
|
115
137
|
// --------------------------------------------------
|
116
138
|
|
139
|
+
|
117
140
|
// Z-index master list
|
118
141
|
// -------------------------
|
119
142
|
// Used for a bird's eye view of components dependent on the z-axis
|
120
143
|
// Try to avoid customizing these :)
|
121
144
|
$zindexDropdown: 1000;
|
122
145
|
$zindexPopover: 1010;
|
123
|
-
$zindexTooltip:
|
146
|
+
$zindexTooltip: 1030;
|
124
147
|
$zindexFixedNavbar: 1030;
|
125
148
|
$zindexModalBackdrop: 1040;
|
126
149
|
$zindexModal: 1050;
|
127
150
|
|
128
151
|
|
152
|
+
// Sprite icons path
|
153
|
+
// -------------------------
|
154
|
+
$iconSpritePath: "../img/glyphicons-halflings.png";
|
155
|
+
$iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
156
|
+
|
157
|
+
|
129
158
|
// Input placeholder text color
|
130
159
|
// -------------------------
|
131
160
|
$placeholderText: $grayLight;
|
@@ -136,11 +165,25 @@ $placeholderText: $grayLight;
|
|
136
165
|
$hrBorder: transparent;
|
137
166
|
|
138
167
|
|
168
|
+
// Horizontal forms & lists
|
169
|
+
// -------------------------
|
170
|
+
$horizontalComponentOffset: 180px;
|
171
|
+
|
172
|
+
|
173
|
+
// Wells
|
174
|
+
// -------------------------
|
175
|
+
$wellBackground: $blue;
|
176
|
+
|
177
|
+
|
139
178
|
// Navbar
|
140
179
|
// -------------------------
|
141
|
-
$
|
180
|
+
$navbarCollapseWidth: 979px;
|
181
|
+
$navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
|
182
|
+
|
183
|
+
$navbarHeight: 70px;
|
142
184
|
$navbarBackground: $blueDark;
|
143
185
|
$navbarBackgroundHighlight: $navbarBackground;
|
186
|
+
$navbarBorder: darken($navbarBackground, 5%);
|
144
187
|
|
145
188
|
$navbarText: $grayLight;
|
146
189
|
$navbarLinkColor: $orange;
|
@@ -149,12 +192,34 @@ $navbarLinkColorActive: $navbarLinkColorHover;
|
|
149
192
|
$navbarLinkBackgroundHover: transparent;
|
150
193
|
$navbarLinkBackgroundActive: $navbarBackground;
|
151
194
|
|
152
|
-
$navbarSearchBackground: lighten($navbarBackground, .25);
|
153
|
-
$navbarSearchBackgroundFocus: $white;
|
154
|
-
$navbarSearchBorder: darken($navbarSearchBackground, .3);
|
155
|
-
$navbarSearchPlaceholderColor: #ccc;
|
156
195
|
$navbarBrandColor: $navbarLinkColor;
|
157
196
|
|
197
|
+
// Inverted navbar
|
198
|
+
$navbarInverseBackground: $blue;
|
199
|
+
$navbarInverseBackgroundHighlight: $navbarInverseBackground;
|
200
|
+
$navbarInverseBorder: darken($navbarBackground, 5%);
|
201
|
+
|
202
|
+
$navbarInverseText: $grayLight;
|
203
|
+
$navbarInverseLinkColor: $orange;
|
204
|
+
$navbarInverseLinkColorHover: $orange;
|
205
|
+
$navbarInverseLinkColorActive: $navbarInverseLinkColorHover;
|
206
|
+
$navbarInverseLinkBackgroundHover: transparent;
|
207
|
+
$navbarInverseLinkBackgroundActive: $navbarInverseBackground;
|
208
|
+
|
209
|
+
$navbarInverseSearchBackground: $white;
|
210
|
+
$navbarInverseSearchBackgroundFocus: $white;
|
211
|
+
$navbarInverseSearchBorder: $navbarInverseBackground;
|
212
|
+
$navbarInverseSearchPlaceholderColor: $grayLight;
|
213
|
+
|
214
|
+
$navbarInverseBrandColor: $navbarInverseLinkColor;
|
215
|
+
|
216
|
+
|
217
|
+
// Pagination
|
218
|
+
// -------------------------
|
219
|
+
$paginationBackground: $blue;
|
220
|
+
$paginationBorder: transparent;
|
221
|
+
$paginationActiveBackground: $orange;
|
222
|
+
|
158
223
|
|
159
224
|
// Hero unit
|
160
225
|
// -------------------------
|
@@ -167,25 +232,43 @@ $heroUnitLeadColor: inherit;
|
|
167
232
|
// -------------------------
|
168
233
|
$warningText: #c09853;
|
169
234
|
$warningBackground: #fcf8e3;
|
170
|
-
$warningBorder: darken(adjust-hue($warningBackground, -10),
|
235
|
+
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
|
171
236
|
|
172
237
|
$errorText: #b94a48;
|
173
238
|
$errorBackground: #f2dede;
|
174
|
-
$errorBorder: darken(adjust-hue($errorBackground, -10),
|
239
|
+
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
|
175
240
|
|
176
241
|
$successText: #468847;
|
177
242
|
$successBackground: #dff0d8;
|
178
|
-
$successBorder: darken(adjust-hue($successBackground, -10),
|
243
|
+
$successBorder: darken(adjust-hue($successBackground, -10), 5%);
|
179
244
|
|
180
245
|
$infoText: #3a87ad;
|
181
246
|
$infoBackground: #d9edf7;
|
182
|
-
$infoBorder: darken(adjust-hue($infoBackground, -10),
|
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%);
|
261
|
+
|
262
|
+
// Special enhancement for popovers
|
263
|
+
$popoverArrowOuterWidth: $popoverArrowWidth + 1;
|
264
|
+
$popoverArrowOuterColor: rgba(0,0,0,.25);
|
183
265
|
|
184
266
|
|
185
267
|
|
186
268
|
// GRID
|
187
269
|
// --------------------------------------------------
|
188
270
|
|
271
|
+
|
189
272
|
// Default 940px grid
|
190
273
|
// -------------------------
|
191
274
|
$gridColumns: 12;
|
@@ -193,7 +276,26 @@ $gridColumnWidth: 60px;
|
|
193
276
|
$gridGutterWidth: 20px;
|
194
277
|
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
195
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
|
+
|
289
|
+
|
196
290
|
// Fluid grid
|
197
291
|
// -------------------------
|
198
|
-
$fluidGridColumnWidth:
|
199
|
-
$fluidGridGutterWidth:
|
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,87 +1,128 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
// United 2.2.2
|
2
|
+
// Bootswatch
|
3
3
|
// -----------------------------------------------------
|
4
4
|
|
5
|
+
|
5
6
|
// TYPOGRAPHY
|
6
7
|
// -----------------------------------------------------
|
7
8
|
|
8
|
-
@import url(
|
9
|
+
@import url(//fonts.googleapis.com/css?family=Ubuntu);
|
10
|
+
|
11
|
+
// SCAFFOLDING
|
12
|
+
// -----------------------------------------------------
|
9
13
|
|
10
14
|
// NAVBAR
|
11
15
|
// -----------------------------------------------------
|
12
16
|
|
13
|
-
.navbar
|
14
|
-
|
15
|
-
|
17
|
+
.navbar {
|
18
|
+
|
19
|
+
.nav > li > a {
|
20
|
+
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
21
|
+
border-left: 1px solid rgba(255, 255, 255, 0.1);
|
16
22
|
|
17
|
-
|
18
|
-
|
23
|
+
&:hover {
|
24
|
+
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
25
|
+
}
|
19
26
|
}
|
20
|
-
}
|
21
27
|
|
22
|
-
|
23
|
-
.
|
24
|
-
|
25
|
-
|
26
|
-
}
|
28
|
+
.nav > .active > a,
|
29
|
+
.nav > .active > a:hover {
|
30
|
+
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
31
|
+
}
|
27
32
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
+
.divider-vertical {
|
34
|
+
background-color: inherit;
|
35
|
+
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
36
|
+
}
|
33
37
|
|
34
|
-
.navbar
|
35
|
-
|
36
|
-
|
38
|
+
.navbar-text {
|
39
|
+
padding: 9px 10px 11px;
|
40
|
+
line-height: 19px;
|
41
|
+
color: $white;
|
42
|
+
}
|
37
43
|
|
38
|
-
|
39
|
-
|
44
|
+
.navbar-search .search-query {
|
45
|
+
margin-bottom: 3px;
|
46
|
+
border: 1px solid darken($navbarBackground, 15%);
|
40
47
|
}
|
41
48
|
}
|
42
49
|
|
43
|
-
|
44
|
-
|
45
|
-
|
50
|
+
@media (max-width: $navbarCollapseWidth) {
|
51
|
+
|
52
|
+
.navbar .nav-collapse {
|
53
|
+
|
54
|
+
.nav li > a {
|
55
|
+
color: $white;
|
56
|
+
border-left: 0px solid $orange;
|
57
|
+
border-right: 0px solid $orange;
|
58
|
+
|
59
|
+
&:hover {
|
60
|
+
background-color: rgba(0, 0, 0, 0.3) !important;
|
61
|
+
background-image: none;
|
62
|
+
}
|
63
|
+
}
|
46
64
|
|
47
|
-
.navbar
|
48
|
-
|
49
|
-
|
50
|
-
|
65
|
+
.navbar-form,
|
66
|
+
.navbar-search {
|
67
|
+
border-top: 0px solid $orange;
|
68
|
+
border-bottom: 0px solid $orange;
|
69
|
+
@include box-shadow(none);
|
70
|
+
}
|
51
71
|
|
52
|
-
|
53
|
-
|
72
|
+
.nav-header {
|
73
|
+
color: $grayLighter;
|
74
|
+
}
|
54
75
|
}
|
55
76
|
}
|
56
77
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
78
|
+
// NAV
|
79
|
+
// -----------------------------------------------------
|
80
|
+
|
81
|
+
.nav-tabs .open .dropdown-toggle,
|
82
|
+
.nav-pills .open .dropdown-toggle,
|
83
|
+
.nav > li.dropdown.open.active > a:hover {
|
84
|
+
border-right: 1px solid #C03D14;
|
85
|
+
border-left: 1px solid #E6633A;
|
62
86
|
}
|
63
87
|
|
64
88
|
// BUTTONS
|
65
89
|
// -----------------------------------------------------
|
66
90
|
|
67
91
|
.btn-primary {
|
68
|
-
@include buttonBackground(lighten($btnPrimaryBackground,
|
92
|
+
@include buttonBackground(lighten($btnPrimaryBackground, 15%), $btnPrimaryBackground);
|
69
93
|
}
|
70
94
|
|
71
95
|
.btn-warning {
|
72
|
-
@include buttonBackground(lighten($yellow,
|
96
|
+
@include buttonBackground(lighten($yellow, 15%), $yellow);
|
73
97
|
}
|
74
98
|
|
75
|
-
//
|
99
|
+
// TABLES
|
100
|
+
// -----------------------------------------------------
|
101
|
+
|
102
|
+
// FORMS
|
103
|
+
// -----------------------------------------------------
|
104
|
+
|
105
|
+
// DROPDOWNS
|
106
|
+
// -----------------------------------------------------
|
107
|
+
|
108
|
+
// ALERTS, LABELS, BADGES
|
76
109
|
// -----------------------------------------------------
|
77
110
|
|
78
111
|
.alert {
|
79
112
|
text-shadow: none;
|
80
113
|
}
|
81
114
|
|
82
|
-
//
|
115
|
+
// MISC
|
83
116
|
// -----------------------------------------------------
|
84
117
|
|
85
|
-
.
|
86
|
-
|
118
|
+
.hero-unit {
|
119
|
+
border: 1px solid rgba(0,0,0,.05);
|
120
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
121
|
+
|
122
|
+
h1 {
|
123
|
+
line-height: 1.6em;
|
124
|
+
}
|
87
125
|
}
|
126
|
+
|
127
|
+
// MEDIA QUERIES
|
128
|
+
// -----------------------------------------------------
|
@@ -1,11 +1,9 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
//
|
4
|
-
// -----------------------------------------------------
|
5
|
-
|
1
|
+
// United 2.2.2
|
2
|
+
// Variables
|
3
|
+
// --------------------------------------------------
|
6
4
|
|
7
5
|
|
8
|
-
//
|
6
|
+
// Global values
|
9
7
|
// --------------------------------------------------
|
10
8
|
|
11
9
|
|
@@ -16,7 +14,7 @@ $grayDarker: #222;
|
|
16
14
|
$grayDark: #333;
|
17
15
|
$gray: #555;
|
18
16
|
$grayLight: #999;
|
19
|
-
$grayLighter: #
|
17
|
+
$grayLighter: #F5F5F5;
|
20
18
|
$white: #fff;
|
21
19
|
|
22
20
|
|
@@ -41,21 +39,42 @@ $textColor: $grayDark;
|
|
41
39
|
// Links
|
42
40
|
// -------------------------
|
43
41
|
$linkColor: $orange;
|
44
|
-
$linkColorHover: darken($linkColor,
|
42
|
+
$linkColorHover: darken($linkColor, 15%);
|
45
43
|
|
46
44
|
|
47
45
|
// Typography
|
48
46
|
// -------------------------
|
49
|
-
$
|
50
|
-
$
|
51
|
-
$
|
52
|
-
|
47
|
+
$sansFontFamily: 'Ubuntu', Tahoma, sans-serif;
|
48
|
+
$serifFontFamily: Georgia, "Times New Roman", Times, serif;
|
49
|
+
$monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
|
50
|
+
|
51
|
+
$baseFontSize: 14px;
|
52
|
+
$baseFontFamily: $sansFontFamily;
|
53
|
+
$baseLineHeight: 20px;
|
54
|
+
$altFontFamily: $serifFontFamily;
|
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
|
@@ -63,23 +82,22 @@ $tableBackgroundAccent: #f9f9f9; // for striping
|
|
63
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,
|
71
|
-
$btnBorder: darken($white,
|
88
|
+
$btnBackgroundHighlight: darken($white, 10%);
|
89
|
+
$btnBorder: darken($white, 20%);
|
72
90
|
|
73
91
|
$btnPrimaryBackground: $linkColor;
|
74
|
-
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground,
|
92
|
+
$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%);
|
75
93
|
|
76
|
-
$btnInfoBackground: lighten($purple,
|
94
|
+
$btnInfoBackground: lighten($purple, 15%);
|
77
95
|
$btnInfoBackgroundHighlight: $purple;
|
78
96
|
|
79
97
|
$btnSuccessBackground: #62c462;
|
80
98
|
$btnSuccessBackgroundHighlight: #51a351;
|
81
99
|
|
82
|
-
$btnWarningBackground: lighten($orange,
|
100
|
+
$btnWarningBackground: lighten($orange, 15%);
|
83
101
|
$btnWarningBackgroundHighlight: $orange;
|
84
102
|
|
85
103
|
$btnDangerBackground: #ee5f5b;
|
@@ -93,35 +111,50 @@ $btnInverseBackgroundHighlight: $grayDarker;
|
|
93
111
|
// -------------------------
|
94
112
|
$inputBackground: $white;
|
95
113
|
$inputBorder: #ccc;
|
114
|
+
$inputBorderRadius: $baseBorderRadius;
|
96
115
|
$inputDisabledBackground: $grayLighter;
|
116
|
+
$formActionsBackground: transparent;
|
117
|
+
$inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
97
118
|
|
98
119
|
|
99
120
|
// Dropdowns
|
100
121
|
// -------------------------
|
101
122
|
$dropdownBackground: $white;
|
102
123
|
$dropdownBorder: rgba(0,0,0,.2);
|
124
|
+
$dropdownDividerTop: #e5e5e5;
|
125
|
+
$dropdownDividerBottom: $white;
|
126
|
+
|
103
127
|
$dropdownLinkColor: $linkColor;
|
104
128
|
$dropdownLinkColorHover: $white;
|
105
|
-
$
|
129
|
+
$dropdownLinkColorActive: $white;
|
106
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:
|
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
|
// -------------------------
|
180
|
+
$navbarCollapseWidth: 979px;
|
181
|
+
$navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
|
182
|
+
|
137
183
|
$navbarHeight: 40px;
|
138
|
-
$navbarBackground: $orange;
|
139
184
|
$navbarBackgroundHighlight: #CE4213;
|
185
|
+
$navbarBackground: $orange;
|
186
|
+
$navbarBorder: darken($navbarBackground, 5%);
|
140
187
|
|
141
188
|
$navbarText: $white;
|
142
189
|
$navbarLinkColor: $white;
|
143
190
|
$navbarLinkColorHover: $white;
|
144
191
|
$navbarLinkColorActive: $navbarLinkColorHover;
|
145
|
-
$navbarLinkBackgroundHover:
|
146
|
-
$navbarLinkBackgroundActive: $navbarBackground;
|
192
|
+
$navbarLinkBackgroundHover: darken($navbarBackground, 12%);
|
193
|
+
$navbarLinkBackgroundActive: darken($navbarBackground, 12%);
|
194
|
+
|
195
|
+
$navbarBrandColor: $navbarLinkColor;
|
196
|
+
|
197
|
+
// Inverted navbar
|
198
|
+
$navbarInverseBackground: $purple;
|
199
|
+
$navbarInverseBackgroundHighlight: lighten($purple, 4%);
|
200
|
+
$navbarInverseBorder: darken($navbarInverseBackground, 5%);
|
201
|
+
|
202
|
+
$navbarInverseText: $white;
|
203
|
+
$navbarInverseLinkColor: $white;
|
204
|
+
$navbarInverseLinkColorHover: $white;
|
205
|
+
$navbarInverseLinkColorActive: $navbarInverseLinkColorHover;
|
206
|
+
$navbarInverseLinkBackgroundHover: darken($navbarInverseBackground, 8%);
|
207
|
+
$navbarInverseLinkBackgroundActive: darken($navbarInverseBackground, 8%);
|
208
|
+
|
209
|
+
$navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%);
|
210
|
+
$navbarInverseSearchBackgroundFocus: $white;
|
211
|
+
$navbarInverseSearchBorder: $navbarInverseBackground;
|
212
|
+
$navbarInverseSearchPlaceholderColor: #eee;
|
213
|
+
|
214
|
+
$navbarInverseBrandColor: $navbarInverseLinkColor;
|
215
|
+
|
147
216
|
|
148
|
-
|
149
|
-
|
150
|
-
$
|
151
|
-
$
|
217
|
+
// Pagination
|
218
|
+
// -------------------------
|
219
|
+
$paginationBackground: #fff;
|
220
|
+
$paginationBorder: #ddd;
|
221
|
+
$paginationActiveBackground: #f5f5f5;
|
152
222
|
|
153
223
|
|
154
224
|
// Hero unit
|
155
225
|
// -------------------------
|
156
|
-
$heroUnitBackground:
|
226
|
+
$heroUnitBackground: $grayLighter;
|
157
227
|
$heroUnitHeadingColor: inherit;
|
158
228
|
$heroUnitLeadColor: inherit;
|
159
229
|
|
@@ -161,27 +231,44 @@ $heroUnitLeadColor: inherit;
|
|
161
231
|
// Form states and alerts
|
162
232
|
// -------------------------
|
163
233
|
$warningText: #ECA918;
|
164
|
-
$warningBackground: lighten($warningText,
|
165
|
-
$warningBorder: darken(adjust-hue($warningBackground, -10),
|
234
|
+
$warningBackground: lighten($warningText, 40%);
|
235
|
+
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
|
166
236
|
|
167
237
|
$errorText: #DF382C;
|
168
|
-
$errorBackground: lighten($errorText,
|
169
|
-
$errorBorder: darken(adjust-hue($errorBackground, -10),
|
238
|
+
$errorBackground: lighten($errorText, 40%);
|
239
|
+
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
|
170
240
|
|
171
241
|
$successText: #38B44A;
|
172
|
-
$successBackground: lighten($successText,
|
173
|
-
$successBorder: darken(adjust-hue($successBackground, -10),
|
242
|
+
$successBackground: lighten($successText, 40%);
|
243
|
+
$successBorder: darken(adjust-hue($successBackground, -10), 5%);
|
174
244
|
|
175
245
|
$infoText: $purple;
|
176
|
-
$infoBackground: lighten($purple,
|
177
|
-
$infoBorder: darken(adjust-hue($infoBackground, -10),
|
246
|
+
$infoBackground: lighten($purple, 50%);
|
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:
|
196
|
-
$fluidGridGutterWidth:
|
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);
|