compass_twitter_bootstrap 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/build/convert.rb +13 -0
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +11 -6
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +2 -1
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +25 -7
- data/stylesheets/compass_twitter_bootstrap/_code.scss +13 -0
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +1 -2
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +48 -41
- data/stylesheets/compass_twitter_bootstrap/_labels.scss +23 -7
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +73 -21
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +11 -0
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +11 -4
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +20 -11
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +7 -5
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +14 -3
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +2 -2
- data/stylesheets/compass_twitter_bootstrap/_type.scss +3 -2
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +61 -53
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +11 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +1 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +2 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +23 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +1 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +48 -37
- data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +22 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +9 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +12 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +21 -11
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +1 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +7 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +11 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +2 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +3 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +61 -53
- metadata +10 -4
@@ -1,16 +1,32 @@
|
|
1
1
|
// LABELS
|
2
2
|
// ------
|
3
3
|
|
4
|
+
// Base
|
4
5
|
.label {
|
5
|
-
padding:
|
6
|
-
font-size: $baseFontSize * .
|
6
|
+
padding: 2px 4px 3px;
|
7
|
+
font-size: $baseFontSize * .85;
|
7
8
|
font-weight: bold;
|
8
9
|
color: $white;
|
9
|
-
text-
|
10
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
10
11
|
background-color: $grayLight;
|
11
12
|
@include border-radius(3px);
|
12
13
|
}
|
13
|
-
|
14
|
-
|
15
|
-
.label
|
16
|
-
|
14
|
+
|
15
|
+
// Hover state
|
16
|
+
.label:hover {
|
17
|
+
color: $white;
|
18
|
+
text-decoration: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Colors
|
22
|
+
.label-important { background-color: $errorText; }
|
23
|
+
.label-important:hover { background-color: darken($errorText, 10%); }
|
24
|
+
|
25
|
+
.label-warning { background-color: $orange; }
|
26
|
+
.label-warning:hover { background-color: darken($orange, 10%); }
|
27
|
+
|
28
|
+
.label-success { background-color: $successText; }
|
29
|
+
.label-success:hover { background-color: darken($successText, 10%); }
|
30
|
+
|
31
|
+
.label-info { background-color: $infoText; }
|
32
|
+
.label-info:hover { background-color: darken($infoText, 10%); }
|
@@ -25,7 +25,7 @@
|
|
25
25
|
// ------------------
|
26
26
|
@mixin tab-focus() {
|
27
27
|
// Default
|
28
|
-
outline: thin dotted;
|
28
|
+
outline: thin dotted #333;
|
29
29
|
// Webkit
|
30
30
|
outline: 5px auto -webkit-focus-ring-color;
|
31
31
|
outline-offset: -2px;
|
@@ -89,7 +89,14 @@
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
92
|
-
|
92
|
+
// Text overflow
|
93
|
+
// -------------------------
|
94
|
+
// Requires inline-block or block for proper styling
|
95
|
+
@mixin text-overflow() {
|
96
|
+
overflow: hidden;
|
97
|
+
text-overflow: ellipsis;
|
98
|
+
white-space: nowrap;
|
99
|
+
}
|
93
100
|
|
94
101
|
// FONTS
|
95
102
|
// --------------------------------------------------
|
@@ -223,18 +230,18 @@
|
|
223
230
|
margin-left: 0;
|
224
231
|
}
|
225
232
|
// Default columns
|
226
|
-
.span1 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1); }
|
227
|
-
.span2 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2); }
|
228
|
-
.span3 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3); }
|
229
|
-
.span4 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4); }
|
230
|
-
.span5 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5); }
|
231
|
-
.span6 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6); }
|
232
|
-
.span7 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7); }
|
233
|
-
.span8 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8); }
|
234
|
-
.span9 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9); }
|
235
|
-
.span10 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10); }
|
236
|
-
.span11 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11); }
|
237
|
-
.span12 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12); }
|
233
|
+
> .span1 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1); }
|
234
|
+
> .span2 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2); }
|
235
|
+
> .span3 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3); }
|
236
|
+
> .span4 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4); }
|
237
|
+
> .span5 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5); }
|
238
|
+
> .span6 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6); }
|
239
|
+
> .span7 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7); }
|
240
|
+
> .span8 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8); }
|
241
|
+
> .span9 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9); }
|
242
|
+
> .span10 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10); }
|
243
|
+
> .span11 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11); }
|
244
|
+
> .span12 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12); }
|
238
245
|
}
|
239
246
|
}
|
240
247
|
|
@@ -265,6 +272,51 @@
|
|
265
272
|
}
|
266
273
|
}
|
267
274
|
|
275
|
+
// Make a Grid
|
276
|
+
// -------------------------
|
277
|
+
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
278
|
+
@mixin makeRow() {
|
279
|
+
margin-left: $gridGutterWidth * -1;
|
280
|
+
@include clearfix();
|
281
|
+
}
|
282
|
+
@mixin makeColumn($columns: 1) {
|
283
|
+
float: left;
|
284
|
+
margin-left: $gridGutterWidth;
|
285
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
286
|
+
}
|
287
|
+
|
288
|
+
|
289
|
+
// Form field states (used in forms.less)
|
290
|
+
// --------------------------------------------------
|
291
|
+
|
292
|
+
// Mixin for form field states
|
293
|
+
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
294
|
+
// Set the text color
|
295
|
+
> label,
|
296
|
+
.help-block,
|
297
|
+
.help-inline {
|
298
|
+
color: $textColor;
|
299
|
+
}
|
300
|
+
// Style inputs accordingly
|
301
|
+
input,
|
302
|
+
select,
|
303
|
+
textarea {
|
304
|
+
color: $textColor;
|
305
|
+
border-color: $borderColor;
|
306
|
+
&:focus {
|
307
|
+
border-color: darken($borderColor, 10%);
|
308
|
+
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
309
|
+
}
|
310
|
+
}
|
311
|
+
// Give a small background color for input-prepend/-append
|
312
|
+
.input-prepend .add-on,
|
313
|
+
.input-append .add-on {
|
314
|
+
color: $textColor;
|
315
|
+
background-color: $backgroundColor;
|
316
|
+
border-color: $textColor;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
268
320
|
|
269
321
|
// CSS3 PROPERTIES
|
270
322
|
// --------------------------------------------------
|
@@ -308,13 +360,6 @@
|
|
308
360
|
-o-transform: translate($x, $y);
|
309
361
|
transform: translate($x, $y);
|
310
362
|
}
|
311
|
-
@mixin skew($x: 0, $y: 0) {
|
312
|
-
-webkit-transform: translate($x, $y);
|
313
|
-
-moz-transform: translate($x, $y);
|
314
|
-
-ms-transform: translate($x, $y);
|
315
|
-
-o-transform: translate($x, $y);
|
316
|
-
transform: translate($x, $y);
|
317
|
-
}
|
318
363
|
@mixin skew($x: 0, $y: 0) {
|
319
364
|
-webkit-transform: skew($x, $y);
|
320
365
|
-moz-transform: skew($x, $y);
|
@@ -322,6 +367,13 @@
|
|
322
367
|
-o-transform: skew($x, $y);
|
323
368
|
transform: skew($x, $y);
|
324
369
|
}
|
370
|
+
@mixin translate3d($x: 0, $y: 0, $z: 0) {
|
371
|
+
-webkit-transform: translate($x, $y, $z);
|
372
|
+
-moz-transform: translate($x, $y, $z);
|
373
|
+
-ms-transform: translate($x, $y, $z);
|
374
|
+
-o-transform: translate($x, $y, $z);
|
375
|
+
transform: translate($x, $y, $z);
|
376
|
+
}
|
325
377
|
|
326
378
|
// Background clipping
|
327
379
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// MODALS
|
2
2
|
// ------
|
3
3
|
|
4
|
+
// Recalculate z-index where appropriate
|
4
5
|
.modal-open {
|
5
6
|
.dropdown-menu { z-index: $zindexDropdown + $zindexModal; }
|
6
7
|
.dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
|
@@ -8,6 +9,7 @@
|
|
8
9
|
.tooltip { z-index: $zindexTooltip + $zindexModal; }
|
9
10
|
}
|
10
11
|
|
12
|
+
// Background
|
11
13
|
.modal-backdrop {
|
12
14
|
position: fixed;
|
13
15
|
top: 0;
|
@@ -25,6 +27,7 @@
|
|
25
27
|
@include opacity(0.8);
|
26
28
|
}
|
27
29
|
|
30
|
+
// Base modal
|
28
31
|
.modal {
|
29
32
|
position: fixed;
|
30
33
|
top: 50%;
|
@@ -53,9 +56,17 @@
|
|
53
56
|
// Close icon
|
54
57
|
.close { margin-top: 2px; }
|
55
58
|
}
|
59
|
+
|
60
|
+
// Body (where all modal content resises)
|
56
61
|
.modal-body {
|
57
62
|
padding: 15px;
|
58
63
|
}
|
64
|
+
// Remove bottom margin if need be
|
65
|
+
.modal-body .modal-form {
|
66
|
+
margin-bottom: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Footer (for actions)
|
59
70
|
.modal-footer {
|
60
71
|
padding: 14px 15px 15px;
|
61
72
|
margin-bottom: 0;
|
@@ -81,7 +81,7 @@
|
|
81
81
|
margin-top: 5px; // make buttons vertically centered in navbar
|
82
82
|
}
|
83
83
|
.btn-group .btn {
|
84
|
-
margin-top: 0;
|
84
|
+
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
85
85
|
}
|
86
86
|
}
|
87
87
|
|
@@ -104,6 +104,14 @@
|
|
104
104
|
input[type="radio"] {
|
105
105
|
margin-top: 3px;
|
106
106
|
}
|
107
|
+
.input-append,
|
108
|
+
.input-prepend {
|
109
|
+
margin-top: 6px;
|
110
|
+
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
111
|
+
input {
|
112
|
+
margin-top: 0; // remove the margin on top since it's on the parent
|
113
|
+
}
|
114
|
+
}
|
107
115
|
}
|
108
116
|
|
109
117
|
// Navbar search
|
@@ -133,7 +141,7 @@
|
|
133
141
|
background-color: $grayLight;
|
134
142
|
background-color: rgba(255,255,255,.5);
|
135
143
|
}
|
136
|
-
// Focus states (we use .focused since
|
144
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
137
145
|
&:focus,
|
138
146
|
&.focused {
|
139
147
|
padding: 5px 10px;
|
@@ -194,7 +202,7 @@
|
|
194
202
|
}
|
195
203
|
// Hover
|
196
204
|
.navbar .nav > li > a:hover {
|
197
|
-
background-color: transparent
|
205
|
+
background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
198
206
|
color: $navbarLinkColorHover;
|
199
207
|
text-decoration: none;
|
200
208
|
}
|
@@ -205,7 +213,6 @@
|
|
205
213
|
color: $navbarLinkColorHover;
|
206
214
|
text-decoration: none;
|
207
215
|
background-color: $navbarBackground;
|
208
|
-
background-color: rgba(0,0,0,.5);
|
209
216
|
}
|
210
217
|
|
211
218
|
// Dividers (basically a vertical hr)
|
@@ -21,6 +21,21 @@
|
|
21
21
|
background-color: $grayLighter;
|
22
22
|
}
|
23
23
|
|
24
|
+
// Nav headers (for dropdowns and lists)
|
25
|
+
.nav .nav-header {
|
26
|
+
display: block;
|
27
|
+
padding: 3px 15px;
|
28
|
+
font-size: 11px;
|
29
|
+
font-weight: bold;
|
30
|
+
line-height: $baseLineHeight;
|
31
|
+
color: $grayLight;
|
32
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
33
|
+
text-transform: uppercase;
|
34
|
+
}
|
35
|
+
// Space them out when they follow another list item (link)
|
36
|
+
.nav li + .nav-header {
|
37
|
+
margin-top: 9px;
|
38
|
+
}
|
24
39
|
|
25
40
|
|
26
41
|
// NAV LIST
|
@@ -33,21 +48,12 @@
|
|
33
48
|
}
|
34
49
|
.nav-list > li > a,
|
35
50
|
.nav-list .nav-header {
|
36
|
-
display: block;
|
37
|
-
padding: 3px 15px;
|
38
51
|
margin-left: -15px;
|
39
52
|
margin-right: -15px;
|
40
53
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
41
54
|
}
|
42
|
-
.nav-list
|
43
|
-
|
44
|
-
font-weight: bold;
|
45
|
-
line-height: $baseLineHeight;
|
46
|
-
color: $grayLight;
|
47
|
-
text-transform: uppercase;
|
48
|
-
}
|
49
|
-
.nav-list > li + .nav-header {
|
50
|
-
margin-top: 9px;
|
55
|
+
.nav-list > li > a {
|
56
|
+
padding: 3px 15px;
|
51
57
|
}
|
52
58
|
.nav-list .active > a,
|
53
59
|
.nav-list .active > a:hover {
|
@@ -249,6 +255,9 @@
|
|
249
255
|
.tabbable {
|
250
256
|
@include clearfix();
|
251
257
|
}
|
258
|
+
.tab-content {
|
259
|
+
overflow: hidden; // prevent content from running below tabs
|
260
|
+
}
|
252
261
|
|
253
262
|
// Remove border on bottom, left, right
|
254
263
|
.tabs-below .nav-tabs,
|
@@ -108,7 +108,7 @@ input[type="button"],
|
|
108
108
|
input[type="reset"],
|
109
109
|
input[type="submit"] {
|
110
110
|
cursor: pointer; // Cursors on all buttons applied consistently
|
111
|
-
-webkit-appearance: button; // Style
|
111
|
+
-webkit-appearance: button; // Style clickable inputs in iOS
|
112
112
|
}
|
113
113
|
input[type="search"] { // Appearance in Safari/Chrome
|
114
114
|
-webkit-appearance: textfield;
|
@@ -9,24 +9,26 @@
|
|
9
9
|
// All icons receive the styles of the <i> tag with a base class
|
10
10
|
// of .i and are then given a unique class to add width, height,
|
11
11
|
// and background-position. Your resulting HTML will look like
|
12
|
-
// <i class="
|
12
|
+
// <i class="icon-inbox"></i>.
|
13
13
|
|
14
14
|
// For the white version of the icons, just add the .icon-white class:
|
15
|
-
// <i class="
|
15
|
+
// <i class="icon-inbox icon-white"></i>
|
16
16
|
|
17
|
-
[class^="icon-"]
|
17
|
+
[class^="icon-"],
|
18
|
+
[class*=" icon-"] {
|
18
19
|
display: inline-block;
|
19
20
|
width: 14px;
|
20
21
|
height: 14px;
|
22
|
+
line-height: 14px;
|
21
23
|
vertical-align: text-top;
|
22
|
-
background-image: url(
|
24
|
+
background-image: image-url("$iconSpritePath");
|
23
25
|
background-position: 14px 14px;
|
24
26
|
background-repeat: no-repeat;
|
25
27
|
|
26
28
|
@include ie7-restore-right-whitespace();
|
27
29
|
}
|
28
30
|
.icon-white {
|
29
|
-
background-image: url(
|
31
|
+
background-image: image-url("$iconWhiteSpritePath");
|
30
32
|
}
|
31
33
|
|
32
34
|
.icon-glass { background-position: 0 0; }
|
@@ -25,14 +25,15 @@ table {
|
|
25
25
|
padding: 8px;
|
26
26
|
line-height: $baseLineHeight;
|
27
27
|
text-align: left;
|
28
|
+
vertical-align: top;
|
28
29
|
border-top: 1px solid #ddd;
|
29
30
|
}
|
30
31
|
th {
|
31
32
|
font-weight: bold;
|
32
|
-
vertical-align: bottom;
|
33
33
|
}
|
34
|
-
|
35
|
-
|
34
|
+
// Bottom align for column headings
|
35
|
+
thead th {
|
36
|
+
vertical-align: bottom;
|
36
37
|
}
|
37
38
|
// Remove top border from thead by default
|
38
39
|
thead:first-child tr th,
|
@@ -113,6 +114,16 @@ table {
|
|
113
114
|
}
|
114
115
|
|
115
116
|
|
117
|
+
// HOVER EFFECT
|
118
|
+
// ------------
|
119
|
+
// Placed here since it has to come after the potential zebra striping
|
120
|
+
.table {
|
121
|
+
tbody tr:hover td,
|
122
|
+
tbody tr:hover th {
|
123
|
+
background-color: #f5f5f5;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
116
127
|
|
117
128
|
// TABLE CELL SIZING
|
118
129
|
// -----------------
|
@@ -2,13 +2,13 @@
|
|
2
2
|
// ----------
|
3
3
|
|
4
4
|
.thumbnails {
|
5
|
-
margin-left:
|
5
|
+
margin-left: -$gridGutterWidth;
|
6
6
|
list-style: none;
|
7
7
|
@include clearfix();
|
8
8
|
}
|
9
9
|
.thumbnails > li {
|
10
10
|
float: left;
|
11
|
-
margin: 0 0 $baseLineHeight
|
11
|
+
margin: 0 0 $baseLineHeight $gridGutterWidth;
|
12
12
|
}
|
13
13
|
.thumbnail {
|
14
14
|
display: block;
|
@@ -110,7 +110,8 @@ ol {
|
|
110
110
|
li {
|
111
111
|
line-height: $baseLineHeight;
|
112
112
|
}
|
113
|
-
ul.unstyled
|
113
|
+
ul.unstyled,
|
114
|
+
ol.unstyled {
|
114
115
|
margin-left: 0;
|
115
116
|
list-style: none;
|
116
117
|
}
|
@@ -137,7 +138,7 @@ dd {
|
|
137
138
|
hr {
|
138
139
|
margin: $baseLineHeight 0;
|
139
140
|
border: 0;
|
140
|
-
border-top: 1px solid
|
141
|
+
border-top: 1px solid $hrBorder;
|
141
142
|
border-bottom: 1px solid $white;
|
142
143
|
}
|
143
144
|
|
@@ -8,36 +8,36 @@
|
|
8
8
|
// --------------------------------------------------
|
9
9
|
|
10
10
|
// Links
|
11
|
-
$linkColor: #08c;
|
12
|
-
$linkColorHover: darken($linkColor, 15%);
|
11
|
+
$linkColor: #08c !default;
|
12
|
+
$linkColorHover: darken($linkColor, 15%) !default;
|
13
13
|
|
14
14
|
// Grays
|
15
|
-
$black: #000;
|
16
|
-
$grayDarker: #222;
|
17
|
-
$grayDark: #333;
|
18
|
-
$gray: #555;
|
19
|
-
$grayLight: #999;
|
20
|
-
$grayLighter: #eee;
|
21
|
-
$white: #fff;
|
15
|
+
$black: #000 !default;
|
16
|
+
$grayDarker: #222 !default;
|
17
|
+
$grayDark: #333 !default;
|
18
|
+
$gray: #555 !default;
|
19
|
+
$grayLight: #999 !default;
|
20
|
+
$grayLighter: #eee !default;
|
21
|
+
$white: #fff !default;
|
22
22
|
|
23
23
|
// Accent colors
|
24
|
-
$blue: #049cdb;
|
25
|
-
$blueDark: #0064cd;
|
26
|
-
$green: #46a546;
|
27
|
-
$red: #9d261d;
|
28
|
-
$yellow: #ffc40d;
|
29
|
-
$orange: #f89406;
|
30
|
-
$pink: #c3325f;
|
31
|
-
$purple: #7a43b6;
|
24
|
+
$blue: #049cdb !default;
|
25
|
+
$blueDark: #0064cd !default;
|
26
|
+
$green: #46a546 !default;
|
27
|
+
$red: #9d261d !default;
|
28
|
+
$yellow: #ffc40d !default;
|
29
|
+
$orange: #f89406 !default;
|
30
|
+
$pink: #c3325f !default;
|
31
|
+
$purple: #7a43b6 !default;
|
32
32
|
|
33
33
|
// Typography
|
34
|
-
$baseFontSize: 13px;
|
35
|
-
$baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
36
|
-
$baseLineHeight: 18px;
|
37
|
-
$textColor: $grayDark;
|
34
|
+
$baseFontSize: 13px !default;
|
35
|
+
$baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
36
|
+
$baseLineHeight: 18px !default;
|
37
|
+
$textColor: $grayDark !default;
|
38
38
|
|
39
39
|
// Buttons
|
40
|
-
$primaryButtonBackground: $linkColor;
|
40
|
+
$primaryButtonBackground: $linkColor !default;
|
41
41
|
|
42
42
|
|
43
43
|
|
@@ -47,41 +47,49 @@ $primaryButtonBackground: $linkColor;
|
|
47
47
|
// Z-index master list
|
48
48
|
// Used for a bird's eye view of components dependent on the z-axis
|
49
49
|
// Try to avoid customizing these :)
|
50
|
-
$zindexDropdown:
|
51
|
-
$zindexPopover:
|
52
|
-
$zindexTooltip:
|
53
|
-
$zindexFixedNavbar:
|
54
|
-
$zindexModalBackdrop:
|
55
|
-
$zindexModal:
|
50
|
+
$zindexDropdown: 1000 !default;
|
51
|
+
$zindexPopover: 1010 !default;
|
52
|
+
$zindexTooltip: 1020 !default;
|
53
|
+
$zindexFixedNavbar: 1030 !default;
|
54
|
+
$zindexModalBackdrop: 1040 !default;
|
55
|
+
$zindexModal: 1050 !default;
|
56
|
+
|
57
|
+
// Sprite icons path
|
58
|
+
$iconSpritePath: "../img/glyphicons-halflings.png" !default;
|
59
|
+
$iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default;
|
56
60
|
|
57
61
|
// Input placeholder text color
|
58
|
-
$placeholderText:
|
62
|
+
$placeholderText: $grayLight !default;
|
63
|
+
|
64
|
+
// Hr border color
|
65
|
+
$hrBorder: $grayLighter !default;
|
59
66
|
|
60
67
|
// Navbar
|
61
|
-
$navbarHeight: 40px;
|
62
|
-
$navbarBackground: $grayDarker;
|
63
|
-
$navbarBackgroundHighlight: $grayDark;
|
68
|
+
$navbarHeight: 40px !default;
|
69
|
+
$navbarBackground: $grayDarker !default;
|
70
|
+
$navbarBackgroundHighlight: $grayDark !default;
|
71
|
+
$navbarLinkBackgroundHover: transparent !default;
|
64
72
|
|
65
|
-
$navbarText: $grayLight;
|
66
|
-
$navbarLinkColor: $grayLight;
|
67
|
-
$navbarLinkColorHover: $white;
|
73
|
+
$navbarText: $grayLight !default;
|
74
|
+
$navbarLinkColor: $grayLight !default;
|
75
|
+
$navbarLinkColorHover: $white !default;
|
68
76
|
|
69
77
|
// Form states and alerts
|
70
|
-
$warningText: #c09853;
|
71
|
-
$warningBackground: #fcf8e3;
|
72
|
-
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
|
78
|
+
$warningText: #c09853 !default;
|
79
|
+
$warningBackground: #fcf8e3 !default;
|
80
|
+
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%) !default;
|
73
81
|
|
74
|
-
$errorText: #b94a48;
|
75
|
-
$errorBackground: #f2dede;
|
76
|
-
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
|
82
|
+
$errorText: #b94a48 !default;
|
83
|
+
$errorBackground: #f2dede !default;
|
84
|
+
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%) !default;
|
77
85
|
|
78
|
-
$successText: #468847;
|
79
|
-
$successBackground: #dff0d8;
|
80
|
-
$successBorder: darken(adjust-hue($successBackground, -10), 5%);
|
86
|
+
$successText: #468847 !default;
|
87
|
+
$successBackground: #dff0d8 !default;
|
88
|
+
$successBorder: darken(adjust-hue($successBackground, -10), 5%) !default;
|
81
89
|
|
82
|
-
$infoText: #3a87ad;
|
83
|
-
$infoBackground: #d9edf7;
|
84
|
-
$infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
|
90
|
+
$infoText: #3a87ad !default;
|
91
|
+
$infoBackground: #d9edf7 !default;
|
92
|
+
$infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
|
85
93
|
|
86
94
|
|
87
95
|
|
@@ -89,11 +97,11 @@ $infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
|
|
89
97
|
// --------------------------------------------------
|
90
98
|
|
91
99
|
// Default 940px grid
|
92
|
-
$gridColumns: 12;
|
93
|
-
$gridColumnWidth: 60px;
|
94
|
-
$gridGutterWidth: 20px;
|
95
|
-
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
100
|
+
$gridColumns: 12 !default;
|
101
|
+
$gridColumnWidth: 60px !default;
|
102
|
+
$gridGutterWidth: 20px !default;
|
103
|
+
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
|
96
104
|
|
97
105
|
// Fluid grid
|
98
|
-
$fluidGridColumnWidth: 6.382978723
|
99
|
-
$fluidGridGutterWidth: 2.127659574
|
106
|
+
$fluidGridColumnWidth: 6.382978723% !default;
|
107
|
+
$fluidGridGutterWidth: 2.127659574% !default;
|