bootstrap-on-rails 0.0.2 → 3.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +16 -7
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +47 -47
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/bootstrap/affix.js +48 -32
- data/app/assets/javascripts/bootstrap/alert.js +14 -20
- data/app/assets/javascripts/bootstrap/button.js +34 -33
- data/app/assets/javascripts/bootstrap/carousel.js +60 -54
- data/app/assets/javascripts/bootstrap/collapse.js +27 -36
- data/app/assets/javascripts/bootstrap/dropdown.js +36 -39
- data/app/assets/javascripts/bootstrap/modal.js +90 -56
- data/app/assets/javascripts/bootstrap/popover.js +21 -25
- data/app/assets/javascripts/bootstrap/scrollspy.js +56 -44
- data/app/assets/javascripts/bootstrap/tab.js +17 -24
- data/app/assets/javascripts/bootstrap/tooltip.js +158 -87
- data/app/assets/javascripts/bootstrap/transition.js +24 -21
- data/app/assets/stylesheets/bootstrap/alerts.less +4 -3
- data/app/assets/stylesheets/bootstrap/badges.less +27 -23
- data/app/assets/stylesheets/bootstrap/bootstrap.less +3 -2
- data/app/assets/stylesheets/bootstrap/breadcrumbs.less +4 -1
- data/app/assets/stylesheets/bootstrap/button-groups.less +36 -49
- data/app/assets/stylesheets/bootstrap/buttons.less +16 -17
- data/app/assets/stylesheets/bootstrap/carousel.less +18 -6
- data/app/assets/stylesheets/bootstrap/close.less +0 -0
- data/app/assets/stylesheets/bootstrap/code.less +16 -1
- data/app/assets/stylesheets/bootstrap/component-animations.less +6 -4
- data/app/assets/stylesheets/bootstrap/dropdowns.less +33 -10
- data/app/assets/stylesheets/bootstrap/forms.less +236 -60
- data/app/assets/stylesheets/bootstrap/glyphicons.less +5 -9
- data/app/assets/stylesheets/bootstrap/grid.less +40 -49
- data/app/assets/stylesheets/bootstrap/input-groups.less +51 -21
- data/app/assets/stylesheets/bootstrap/jumbotron.less +15 -7
- data/app/assets/stylesheets/bootstrap/labels.less +7 -1
- data/app/assets/stylesheets/bootstrap/list-group.less +47 -4
- data/app/assets/stylesheets/bootstrap/media.less +0 -0
- data/app/assets/stylesheets/bootstrap/mixins.less +35 -854
- data/app/assets/stylesheets/bootstrap/mixins/alerts.less +14 -0
- data/app/assets/stylesheets/bootstrap/mixins/background-variant.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/border-radius.less +18 -0
- data/app/assets/stylesheets/bootstrap/mixins/buttons.less +50 -0
- data/app/assets/stylesheets/bootstrap/mixins/center-block.less +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/clearfix.less +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/forms.less +81 -0
- data/app/assets/stylesheets/bootstrap/mixins/gradients.less +59 -0
- data/app/assets/stylesheets/bootstrap/mixins/grid-framework.less +91 -0
- data/app/assets/stylesheets/bootstrap/mixins/grid.less +122 -0
- data/app/assets/stylesheets/bootstrap/mixins/hide-text.less +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/image.less +34 -0
- data/app/assets/stylesheets/bootstrap/mixins/labels.less +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/list-group.less +29 -0
- data/app/assets/stylesheets/bootstrap/mixins/nav-divider.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/opacity.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/pagination.less +23 -0
- data/app/assets/stylesheets/bootstrap/mixins/panels.less +24 -0
- data/app/assets/stylesheets/bootstrap/mixins/progress-bar.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/reset-filter.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/resize.less +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/responsive-visibility.less +15 -0
- data/app/assets/stylesheets/bootstrap/mixins/size.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/tab-focus.less +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/table-row.less +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/text-emphasis.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/text-overflow.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/app/assets/stylesheets/bootstrap/modals.less +38 -20
- data/app/assets/stylesheets/bootstrap/navbar.less +103 -72
- data/app/assets/stylesheets/bootstrap/navs.less +3 -23
- data/app/assets/stylesheets/bootstrap/normalize.less +153 -134
- data/app/assets/stylesheets/bootstrap/pager.less +5 -5
- data/app/assets/stylesheets/bootstrap/pagination.less +6 -3
- data/app/assets/stylesheets/bootstrap/panels.less +117 -46
- data/app/assets/stylesheets/bootstrap/popovers.less +12 -12
- data/app/assets/stylesheets/bootstrap/print.less +0 -4
- data/app/assets/stylesheets/bootstrap/progress-bars.less +27 -14
- data/app/assets/stylesheets/bootstrap/responsive-embed.less +34 -0
- data/app/assets/stylesheets/bootstrap/responsive-utilities.less +109 -124
- data/app/assets/stylesheets/bootstrap/scaffolding.less +34 -3
- data/app/assets/stylesheets/bootstrap/tables.less +23 -26
- data/app/assets/stylesheets/bootstrap/theme.less +12 -1
- data/app/assets/stylesheets/bootstrap/thumbnails.less +10 -4
- data/app/assets/stylesheets/bootstrap/tooltip.less +1 -1
- data/app/assets/stylesheets/bootstrap/type.less +151 -117
- data/app/assets/stylesheets/bootstrap/utilities.less +1 -0
- data/app/assets/stylesheets/bootstrap/variables.less +399 -190
- data/app/assets/stylesheets/bootstrap/wells.less +1 -1
- data/bootstrap-on-rails.gemspec +1 -1
- data/lib/bootstrap-on-rails/version.rb +1 -1
- metadata +33 -3
@@ -48,6 +48,12 @@
|
|
48
48
|
background-color: darken(@btn-color, 12%);
|
49
49
|
border-color: darken(@btn-color, 14%);
|
50
50
|
}
|
51
|
+
|
52
|
+
&:disabled,
|
53
|
+
&[disabled] {
|
54
|
+
background-color: darken(@btn-color, 12%);
|
55
|
+
background-image: none;
|
56
|
+
}
|
51
57
|
}
|
52
58
|
|
53
59
|
// Common styles
|
@@ -63,9 +69,9 @@
|
|
63
69
|
.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
|
64
70
|
.btn-primary { .btn-styles(@btn-primary-bg); }
|
65
71
|
.btn-success { .btn-styles(@btn-success-bg); }
|
72
|
+
.btn-info { .btn-styles(@btn-info-bg); }
|
66
73
|
.btn-warning { .btn-styles(@btn-warning-bg); }
|
67
74
|
.btn-danger { .btn-styles(@btn-danger-bg); }
|
68
|
-
.btn-info { .btn-styles(@btn-info-bg); }
|
69
75
|
|
70
76
|
|
71
77
|
|
@@ -191,6 +197,11 @@
|
|
191
197
|
.progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); }
|
192
198
|
.progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); }
|
193
199
|
|
200
|
+
// Reset the striped class because our mixins don't do multiple gradients and
|
201
|
+
// the above custom styles override the new `.progress-bar-striped` in v3.2.0.
|
202
|
+
.progress-bar-striped {
|
203
|
+
#gradient > .striped();
|
204
|
+
}
|
194
205
|
|
195
206
|
|
196
207
|
//
|
@@ -5,12 +5,18 @@
|
|
5
5
|
|
6
6
|
// Mixin and adjust the regular image class
|
7
7
|
.thumbnail {
|
8
|
-
|
9
|
-
|
8
|
+
display: block;
|
9
|
+
padding: @thumbnail-padding;
|
10
10
|
margin-bottom: @line-height-computed;
|
11
|
+
line-height: @line-height-base;
|
12
|
+
background-color: @thumbnail-bg;
|
13
|
+
border: 1px solid @thumbnail-border;
|
14
|
+
border-radius: @thumbnail-border-radius;
|
15
|
+
.transition(all .2s ease-in-out);
|
11
16
|
|
12
|
-
> img
|
13
|
-
|
17
|
+
> img,
|
18
|
+
a > img {
|
19
|
+
&:extend(.img-responsive);
|
14
20
|
margin-left: auto;
|
15
21
|
margin-right: auto;
|
16
22
|
}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
line-height: 1.4;
|
14
14
|
.opacity(0);
|
15
15
|
|
16
|
-
&.in { .opacity(
|
16
|
+
&.in { .opacity(@tooltip-opacity); }
|
17
17
|
&.top { margin-top: -3px; padding: @tooltip-arrow-width 0; }
|
18
18
|
&.right { margin-left: 3px; padding: 0 @tooltip-arrow-width; }
|
19
19
|
&.bottom { margin-top: 3px; padding: @tooltip-arrow-width 0; }
|
@@ -3,75 +3,6 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
// Body text
|
7
|
-
// -------------------------
|
8
|
-
|
9
|
-
p {
|
10
|
-
margin: 0 0 (@line-height-computed / 2);
|
11
|
-
}
|
12
|
-
.lead {
|
13
|
-
margin-bottom: @line-height-computed;
|
14
|
-
font-size: floor(@font-size-base * 1.15);
|
15
|
-
font-weight: 200;
|
16
|
-
line-height: 1.4;
|
17
|
-
|
18
|
-
@media (min-width: @screen-sm-min) {
|
19
|
-
font-size: (@font-size-base * 1.5);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
// Emphasis & misc
|
25
|
-
// -------------------------
|
26
|
-
|
27
|
-
// Ex: 14px base font * 85% = about 12px
|
28
|
-
small,
|
29
|
-
.small { font-size: 85%; }
|
30
|
-
|
31
|
-
// Undo browser default styling
|
32
|
-
cite { font-style: normal; }
|
33
|
-
|
34
|
-
// Contextual emphasis
|
35
|
-
.text-muted {
|
36
|
-
color: @text-muted;
|
37
|
-
}
|
38
|
-
.text-primary {
|
39
|
-
color: @brand-primary;
|
40
|
-
&:hover {
|
41
|
-
color: darken(@brand-primary, 10%);
|
42
|
-
}
|
43
|
-
}
|
44
|
-
.text-warning {
|
45
|
-
color: @state-warning-text;
|
46
|
-
&:hover {
|
47
|
-
color: darken(@state-warning-text, 10%);
|
48
|
-
}
|
49
|
-
}
|
50
|
-
.text-danger {
|
51
|
-
color: @state-danger-text;
|
52
|
-
&:hover {
|
53
|
-
color: darken(@state-danger-text, 10%);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
.text-success {
|
57
|
-
color: @state-success-text;
|
58
|
-
&:hover {
|
59
|
-
color: darken(@state-success-text, 10%);
|
60
|
-
}
|
61
|
-
}
|
62
|
-
.text-info {
|
63
|
-
color: @state-info-text;
|
64
|
-
&:hover {
|
65
|
-
color: darken(@state-info-text, 10%);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
// Alignment
|
70
|
-
.text-left { text-align: left; }
|
71
|
-
.text-right { text-align: right; }
|
72
|
-
.text-center { text-align: center; }
|
73
|
-
|
74
|
-
|
75
6
|
// Headings
|
76
7
|
// -------------------------
|
77
8
|
|
@@ -90,9 +21,9 @@ h1, h2, h3, h4, h5, h6,
|
|
90
21
|
}
|
91
22
|
}
|
92
23
|
|
93
|
-
h1,
|
94
|
-
h2,
|
95
|
-
h3 {
|
24
|
+
h1, .h1,
|
25
|
+
h2, .h2,
|
26
|
+
h3, .h3 {
|
96
27
|
margin-top: @line-height-computed;
|
97
28
|
margin-bottom: (@line-height-computed / 2);
|
98
29
|
|
@@ -101,9 +32,9 @@ h3 {
|
|
101
32
|
font-size: 65%;
|
102
33
|
}
|
103
34
|
}
|
104
|
-
h4,
|
105
|
-
h5,
|
106
|
-
h6 {
|
35
|
+
h4, .h4,
|
36
|
+
h5, .h5,
|
37
|
+
h6, .h6 {
|
107
38
|
margin-top: (@line-height-computed / 2);
|
108
39
|
margin-bottom: (@line-height-computed / 2);
|
109
40
|
|
@@ -121,6 +52,100 @@ h5, .h5 { font-size: @font-size-h5; }
|
|
121
52
|
h6, .h6 { font-size: @font-size-h6; }
|
122
53
|
|
123
54
|
|
55
|
+
// Body text
|
56
|
+
// -------------------------
|
57
|
+
|
58
|
+
p {
|
59
|
+
margin: 0 0 (@line-height-computed / 2);
|
60
|
+
}
|
61
|
+
|
62
|
+
.lead {
|
63
|
+
margin-bottom: @line-height-computed;
|
64
|
+
font-size: floor((@font-size-base * 1.15));
|
65
|
+
font-weight: 300;
|
66
|
+
line-height: 1.4;
|
67
|
+
|
68
|
+
@media (min-width: @screen-sm-min) {
|
69
|
+
font-size: (@font-size-base * 1.5);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Emphasis & misc
|
75
|
+
// -------------------------
|
76
|
+
|
77
|
+
// Ex: (12px small font / 14px base font) * 100% = about 85%
|
78
|
+
small,
|
79
|
+
.small {
|
80
|
+
font-size: floor((100% * @font-size-small / @font-size-base));
|
81
|
+
}
|
82
|
+
|
83
|
+
// Undo browser default styling
|
84
|
+
cite {
|
85
|
+
font-style: normal;
|
86
|
+
}
|
87
|
+
|
88
|
+
mark,
|
89
|
+
.mark {
|
90
|
+
background-color: @state-warning-bg;
|
91
|
+
padding: .2em;
|
92
|
+
}
|
93
|
+
|
94
|
+
// Alignment
|
95
|
+
.text-left { text-align: left; }
|
96
|
+
.text-right { text-align: right; }
|
97
|
+
.text-center { text-align: center; }
|
98
|
+
.text-justify { text-align: justify; }
|
99
|
+
.text-nowrap { white-space: nowrap; }
|
100
|
+
|
101
|
+
// Transformation
|
102
|
+
.text-lowercase { text-transform: lowercase; }
|
103
|
+
.text-uppercase { text-transform: uppercase; }
|
104
|
+
.text-capitalize { text-transform: capitalize; }
|
105
|
+
|
106
|
+
// Contextual colors
|
107
|
+
.text-muted {
|
108
|
+
color: @text-muted;
|
109
|
+
}
|
110
|
+
.text-primary {
|
111
|
+
.text-emphasis-variant(@brand-primary);
|
112
|
+
}
|
113
|
+
.text-success {
|
114
|
+
.text-emphasis-variant(@state-success-text);
|
115
|
+
}
|
116
|
+
.text-info {
|
117
|
+
.text-emphasis-variant(@state-info-text);
|
118
|
+
}
|
119
|
+
.text-warning {
|
120
|
+
.text-emphasis-variant(@state-warning-text);
|
121
|
+
}
|
122
|
+
.text-danger {
|
123
|
+
.text-emphasis-variant(@state-danger-text);
|
124
|
+
}
|
125
|
+
|
126
|
+
// Contextual backgrounds
|
127
|
+
// For now we'll leave these alongside the text classes until v4 when we can
|
128
|
+
// safely shift things around (per SemVer rules).
|
129
|
+
.bg-primary {
|
130
|
+
// Given the contrast here, this is the only class to have its color inverted
|
131
|
+
// automatically.
|
132
|
+
color: #fff;
|
133
|
+
.bg-variant(@brand-primary);
|
134
|
+
}
|
135
|
+
.bg-success {
|
136
|
+
.bg-variant(@state-success-bg);
|
137
|
+
}
|
138
|
+
.bg-info {
|
139
|
+
.bg-variant(@state-info-bg);
|
140
|
+
}
|
141
|
+
.bg-warning {
|
142
|
+
.bg-variant(@state-warning-bg);
|
143
|
+
}
|
144
|
+
.bg-danger {
|
145
|
+
.bg-variant(@state-danger-bg);
|
146
|
+
}
|
147
|
+
|
148
|
+
|
124
149
|
// Page header
|
125
150
|
// -------------------------
|
126
151
|
|
@@ -131,9 +156,8 @@ h6, .h6 { font-size: @font-size-h6; }
|
|
131
156
|
}
|
132
157
|
|
133
158
|
|
134
|
-
|
135
159
|
// Lists
|
136
|
-
//
|
160
|
+
// -------------------------
|
137
161
|
|
138
162
|
// Unordered and Ordered lists
|
139
163
|
ul,
|
@@ -157,20 +181,18 @@ ol {
|
|
157
181
|
// Inline turns list items into inline-block
|
158
182
|
.list-inline {
|
159
183
|
.list-unstyled();
|
184
|
+
margin-left: -5px;
|
160
185
|
|
161
186
|
> li {
|
162
187
|
display: inline-block;
|
163
188
|
padding-left: 5px;
|
164
189
|
padding-right: 5px;
|
165
|
-
|
166
|
-
&:first-child {
|
167
|
-
padding-left: 0;
|
168
|
-
}
|
169
190
|
}
|
170
191
|
}
|
171
192
|
|
172
193
|
// Description Lists
|
173
194
|
dl {
|
195
|
+
margin-top: 0; // Remove browser default
|
174
196
|
margin-bottom: @line-height-computed;
|
175
197
|
}
|
176
198
|
dt,
|
@@ -189,24 +211,28 @@ dd {
|
|
189
211
|
// Defaults to being stacked without any of the below styles applied, until the
|
190
212
|
// grid breakpoint is reached (default of ~768px).
|
191
213
|
|
192
|
-
|
193
|
-
|
214
|
+
.dl-horizontal {
|
215
|
+
dd {
|
216
|
+
&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
|
217
|
+
}
|
218
|
+
|
219
|
+
@media (min-width: @grid-float-breakpoint) {
|
194
220
|
dt {
|
195
221
|
float: left;
|
196
|
-
width: (@
|
222
|
+
width: (@dl-horizontal-offset - 20);
|
197
223
|
clear: left;
|
198
224
|
text-align: right;
|
199
225
|
.text-overflow();
|
200
226
|
}
|
201
227
|
dd {
|
202
|
-
margin-left: @
|
203
|
-
.clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
228
|
+
margin-left: @dl-horizontal-offset;
|
204
229
|
}
|
205
230
|
}
|
206
231
|
}
|
207
232
|
|
208
|
-
|
209
|
-
//
|
233
|
+
|
234
|
+
// Misc
|
235
|
+
// -------------------------
|
210
236
|
|
211
237
|
// Abbreviations and acronyms
|
212
238
|
abbr[title],
|
@@ -215,7 +241,7 @@ abbr[data-original-title] {
|
|
215
241
|
cursor: help;
|
216
242
|
border-bottom: 1px dotted @abbr-border-color;
|
217
243
|
}
|
218
|
-
|
244
|
+
.initialism {
|
219
245
|
font-size: 90%;
|
220
246
|
text-transform: uppercase;
|
221
247
|
}
|
@@ -224,43 +250,51 @@ abbr.initialism {
|
|
224
250
|
blockquote {
|
225
251
|
padding: (@line-height-computed / 2) @line-height-computed;
|
226
252
|
margin: 0 0 @line-height-computed;
|
253
|
+
font-size: @blockquote-font-size;
|
227
254
|
border-left: 5px solid @blockquote-border-color;
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
255
|
+
|
256
|
+
p,
|
257
|
+
ul,
|
258
|
+
ol {
|
259
|
+
&:last-child {
|
260
|
+
margin-bottom: 0;
|
261
|
+
}
|
235
262
|
}
|
236
|
-
|
263
|
+
|
264
|
+
// Note: Deprecated small and .small as of v3.1.0
|
265
|
+
// Context: https://github.com/twbs/bootstrap/issues/11660
|
266
|
+
footer,
|
267
|
+
small,
|
268
|
+
.small {
|
237
269
|
display: block;
|
270
|
+
font-size: 80%; // back to default font-size
|
238
271
|
line-height: @line-height-base;
|
239
272
|
color: @blockquote-small-color;
|
273
|
+
|
240
274
|
&:before {
|
241
|
-
content: '\2014 \00A0'; //
|
275
|
+
content: '\2014 \00A0'; // em dash, nbsp
|
242
276
|
}
|
243
277
|
}
|
278
|
+
}
|
244
279
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
}
|
280
|
+
// Opposite alignment of blockquote
|
281
|
+
//
|
282
|
+
// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
|
283
|
+
.blockquote-reverse,
|
284
|
+
blockquote.pull-right {
|
285
|
+
padding-right: 15px;
|
286
|
+
padding-left: 0;
|
287
|
+
border-right: 5px solid @blockquote-border-color;
|
288
|
+
border-left: 0;
|
289
|
+
text-align: right;
|
290
|
+
|
291
|
+
// Account for citation
|
292
|
+
footer,
|
293
|
+
small,
|
294
|
+
.small {
|
295
|
+
&:before { content: ''; }
|
296
|
+
&:after {
|
297
|
+
content: '\00A0 \2014'; // nbsp, em dash
|
264
298
|
}
|
265
299
|
}
|
266
300
|
}
|
@@ -3,116 +3,141 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
|
7
|
-
//
|
8
|
-
|
9
|
-
// Grays
|
10
|
-
// -------------------------
|
6
|
+
//== Colors
|
7
|
+
//
|
8
|
+
//## Gray and brand colors for use across Bootstrap.
|
11
9
|
|
12
10
|
@gray-darker: lighten(#000, 13.5%); // #222
|
13
11
|
@gray-dark: lighten(#000, 20%); // #333
|
14
12
|
@gray: lighten(#000, 33.5%); // #555
|
15
|
-
@gray-light: lighten(#000,
|
13
|
+
@gray-light: lighten(#000, 46.7%); // #777
|
16
14
|
@gray-lighter: lighten(#000, 93.5%); // #eee
|
17
15
|
|
18
|
-
// Brand colors
|
19
|
-
// -------------------------
|
20
|
-
|
21
16
|
@brand-primary: #428bca;
|
22
17
|
@brand-success: #5cb85c;
|
18
|
+
@brand-info: #5bc0de;
|
23
19
|
@brand-warning: #f0ad4e;
|
24
20
|
@brand-danger: #d9534f;
|
25
|
-
@brand-info: #5bc0de;
|
26
21
|
|
27
|
-
// Scaffolding
|
28
|
-
// -------------------------
|
29
22
|
|
23
|
+
//== Scaffolding
|
24
|
+
//
|
25
|
+
//## Settings for some of the most global styles.
|
26
|
+
|
27
|
+
//** Background color for `<body>`.
|
30
28
|
@body-bg: #fff;
|
29
|
+
//** Global text color on `<body>`.
|
31
30
|
@text-color: @gray-dark;
|
32
31
|
|
33
|
-
|
34
|
-
// -------------------------
|
35
|
-
|
32
|
+
//** Global textual link color.
|
36
33
|
@link-color: @brand-primary;
|
34
|
+
//** Link hover color set via `darken()` function.
|
37
35
|
@link-hover-color: darken(@link-color, 15%);
|
38
36
|
|
39
|
-
|
40
|
-
|
37
|
+
|
38
|
+
//== Typography
|
39
|
+
//
|
40
|
+
//## Font, line-height, and color for body text, headings, and more.
|
41
41
|
|
42
42
|
@font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
43
43
|
@font-family-serif: Georgia, "Times New Roman", Times, serif;
|
44
|
-
|
44
|
+
//** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
|
45
|
+
@font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
45
46
|
@font-family-base: @font-family-sans-serif;
|
46
47
|
|
47
48
|
@font-size-base: 14px;
|
48
|
-
@font-size-large: ceil(@font-size-base * 1.25); // ~18px
|
49
|
-
@font-size-small: ceil(@font-size-base * 0.85); // ~12px
|
49
|
+
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
50
|
+
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
50
51
|
|
51
|
-
@font-size-h1: floor(@font-size-base * 2.6); // ~36px
|
52
|
-
@font-size-h2: floor(@font-size-base * 2.15); // ~30px
|
53
|
-
@font-size-h3: ceil(@font-size-base * 1.7); // ~24px
|
54
|
-
@font-size-h4: ceil(@font-size-base * 1.25); // ~18px
|
52
|
+
@font-size-h1: floor((@font-size-base * 2.6)); // ~36px
|
53
|
+
@font-size-h2: floor((@font-size-base * 2.15)); // ~30px
|
54
|
+
@font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
|
55
|
+
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
|
55
56
|
@font-size-h5: @font-size-base;
|
56
|
-
@font-size-h6: ceil(@font-size-base * 0.85); // ~12px
|
57
|
+
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
|
57
58
|
|
59
|
+
//** Unit-less `line-height` for use in components like buttons.
|
58
60
|
@line-height-base: 1.428571429; // 20/14
|
59
|
-
|
61
|
+
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
62
|
+
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
|
60
63
|
|
61
|
-
|
64
|
+
//** By default, this inherits from the `<body>`.
|
65
|
+
@headings-font-family: inherit;
|
62
66
|
@headings-font-weight: 500;
|
63
67
|
@headings-line-height: 1.1;
|
64
68
|
@headings-color: inherit;
|
65
69
|
|
66
70
|
|
67
|
-
|
68
|
-
//
|
71
|
+
//== Iconography
|
72
|
+
//
|
73
|
+
//## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
|
69
74
|
|
75
|
+
//** Load fonts from this directory.
|
70
76
|
@icon-font-path: "../fonts/";
|
77
|
+
//** File name for all font files.
|
71
78
|
@icon-font-name: "glyphicons-halflings-regular";
|
79
|
+
//** Element ID within SVG icon file.
|
80
|
+
@icon-font-svg-id: "glyphicons_halflingsregular";
|
72
81
|
|
73
82
|
|
74
|
-
|
75
|
-
//
|
76
|
-
|
83
|
+
//== Components
|
84
|
+
//
|
85
|
+
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
86
|
+
|
87
|
+
@padding-base-vertical: 6px;
|
88
|
+
@padding-base-horizontal: 12px;
|
77
89
|
|
78
|
-
@padding-
|
79
|
-
@padding-
|
90
|
+
@padding-large-vertical: 10px;
|
91
|
+
@padding-large-horizontal: 16px;
|
80
92
|
|
81
|
-
@padding-
|
82
|
-
@padding-
|
93
|
+
@padding-small-vertical: 5px;
|
94
|
+
@padding-small-horizontal: 10px;
|
83
95
|
|
84
|
-
@padding-
|
85
|
-
@padding-
|
96
|
+
@padding-xs-vertical: 1px;
|
97
|
+
@padding-xs-horizontal: 5px;
|
86
98
|
|
87
|
-
@line-height-large:
|
88
|
-
@line-height-small:
|
99
|
+
@line-height-large: 1.33;
|
100
|
+
@line-height-small: 1.5;
|
89
101
|
|
90
|
-
@border-radius-base:
|
91
|
-
@border-radius-large:
|
92
|
-
@border-radius-small:
|
102
|
+
@border-radius-base: 4px;
|
103
|
+
@border-radius-large: 6px;
|
104
|
+
@border-radius-small: 3px;
|
93
105
|
|
94
|
-
|
95
|
-
@component-active-
|
106
|
+
//** Global color for active items (e.g., navs or dropdowns).
|
107
|
+
@component-active-color: #fff;
|
108
|
+
//** Global background color for active items (e.g., navs or dropdowns).
|
109
|
+
@component-active-bg: @brand-primary;
|
96
110
|
|
97
|
-
|
98
|
-
@caret-width-
|
111
|
+
//** Width of the `border` for generating carets that indicator dropdowns.
|
112
|
+
@caret-width-base: 4px;
|
113
|
+
//** Carets increase slightly in size for larger components.
|
114
|
+
@caret-width-large: 5px;
|
99
115
|
|
100
|
-
// Tables
|
101
|
-
// -------------------------
|
102
116
|
|
103
|
-
|
104
|
-
|
117
|
+
//== Tables
|
118
|
+
//
|
119
|
+
//## Customizes the `.table` component with basic values, each used across all table variations.
|
120
|
+
|
121
|
+
//** Padding for `<th>`s and `<td>`s.
|
122
|
+
@table-cell-padding: 8px;
|
123
|
+
//** Padding for cells in `.table-condensed`.
|
124
|
+
@table-condensed-cell-padding: 5px;
|
105
125
|
|
106
|
-
|
107
|
-
@table-bg
|
108
|
-
|
109
|
-
@table-bg-
|
126
|
+
//** Default background color used for all tables.
|
127
|
+
@table-bg: transparent;
|
128
|
+
//** Background color used for `.table-striped`.
|
129
|
+
@table-bg-accent: #f9f9f9;
|
130
|
+
//** Background color used for `.table-hover`.
|
131
|
+
@table-bg-hover: #f5f5f5;
|
132
|
+
@table-bg-active: @table-bg-hover;
|
110
133
|
|
111
|
-
|
134
|
+
//** Border color for table and cell borders.
|
135
|
+
@table-border-color: #ddd;
|
112
136
|
|
113
137
|
|
114
|
-
|
115
|
-
//
|
138
|
+
//== Buttons
|
139
|
+
//
|
140
|
+
//## For each of Bootstrap's buttons, define text, background and border color.
|
116
141
|
|
117
142
|
@btn-font-weight: normal;
|
118
143
|
|
@@ -128,6 +153,10 @@
|
|
128
153
|
@btn-success-bg: @brand-success;
|
129
154
|
@btn-success-border: darken(@btn-success-bg, 5%);
|
130
155
|
|
156
|
+
@btn-info-color: #fff;
|
157
|
+
@btn-info-bg: @brand-info;
|
158
|
+
@btn-info-border: darken(@btn-info-bg, 5%);
|
159
|
+
|
131
160
|
@btn-warning-color: #fff;
|
132
161
|
@btn-warning-bg: @brand-warning;
|
133
162
|
@btn-warning-border: darken(@btn-warning-bg, 5%);
|
@@ -136,101 +165,128 @@
|
|
136
165
|
@btn-danger-bg: @brand-danger;
|
137
166
|
@btn-danger-border: darken(@btn-danger-bg, 5%);
|
138
167
|
|
139
|
-
@btn-info-color: #fff;
|
140
|
-
@btn-info-bg: @brand-info;
|
141
|
-
@btn-info-border: darken(@btn-info-bg, 5%);
|
142
|
-
|
143
168
|
@btn-link-disabled-color: @gray-light;
|
144
169
|
|
145
170
|
|
146
|
-
|
147
|
-
//
|
171
|
+
//== Forms
|
172
|
+
//
|
173
|
+
//##
|
148
174
|
|
175
|
+
//** `<input>` background color
|
149
176
|
@input-bg: #fff;
|
177
|
+
//** `<input disabled>` background color
|
150
178
|
@input-bg-disabled: @gray-lighter;
|
151
179
|
|
180
|
+
//** Text color for `<input>`s
|
152
181
|
@input-color: @gray;
|
182
|
+
//** `<input>` border color
|
153
183
|
@input-border: #ccc;
|
184
|
+
//** `<input>` border radius
|
154
185
|
@input-border-radius: @border-radius-base;
|
186
|
+
//** Border color for inputs on focus
|
155
187
|
@input-border-focus: #66afe9;
|
156
188
|
|
189
|
+
//** Placeholder text color
|
157
190
|
@input-color-placeholder: @gray-light;
|
158
191
|
|
192
|
+
//** Default `.form-control` height
|
159
193
|
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
|
160
|
-
|
194
|
+
//** Large `.form-control` height
|
195
|
+
@input-height-large: (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
|
196
|
+
//** Small `.form-control` height
|
161
197
|
@input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
|
162
198
|
|
163
199
|
@legend-color: @gray-dark;
|
164
200
|
@legend-border-color: #e5e5e5;
|
165
201
|
|
202
|
+
//** Background color for textual input addons
|
166
203
|
@input-group-addon-bg: @gray-lighter;
|
204
|
+
//** Border color for textual input addons
|
167
205
|
@input-group-addon-border-color: @input-border;
|
168
206
|
|
169
207
|
|
170
|
-
|
171
|
-
//
|
208
|
+
//== Dropdowns
|
209
|
+
//
|
210
|
+
//## Dropdown menu container and contents.
|
172
211
|
|
212
|
+
//** Background for the dropdown menu.
|
173
213
|
@dropdown-bg: #fff;
|
214
|
+
//** Dropdown menu `border-color`.
|
174
215
|
@dropdown-border: rgba(0,0,0,.15);
|
216
|
+
//** Dropdown menu `border-color` **for IE8**.
|
175
217
|
@dropdown-fallback-border: #ccc;
|
218
|
+
//** Divider color for between dropdown items.
|
176
219
|
@dropdown-divider-bg: #e5e5e5;
|
177
220
|
|
221
|
+
//** Dropdown link text color.
|
178
222
|
@dropdown-link-color: @gray-dark;
|
223
|
+
//** Hover color for dropdown links.
|
179
224
|
@dropdown-link-hover-color: darken(@gray-dark, 5%);
|
225
|
+
//** Hover background for dropdown links.
|
180
226
|
@dropdown-link-hover-bg: #f5f5f5;
|
181
227
|
|
228
|
+
//** Active dropdown menu item text color.
|
182
229
|
@dropdown-link-active-color: @component-active-color;
|
230
|
+
//** Active dropdown menu item background color.
|
183
231
|
@dropdown-link-active-bg: @component-active-bg;
|
184
232
|
|
233
|
+
//** Disabled dropdown menu item background color.
|
185
234
|
@dropdown-link-disabled-color: @gray-light;
|
186
235
|
|
236
|
+
//** Text color for headers within dropdown menus.
|
187
237
|
@dropdown-header-color: @gray-light;
|
188
238
|
|
239
|
+
//** Deprecated `@dropdown-caret-color` as of v3.1.0
|
189
240
|
@dropdown-caret-color: #000;
|
190
241
|
|
191
242
|
|
192
|
-
|
193
|
-
//
|
194
|
-
|
195
|
-
|
196
|
-
//
|
197
|
-
//
|
198
|
-
// Used for a bird's eye view of components dependent on the z-axis
|
199
|
-
// Try to avoid customizing these :)
|
243
|
+
//-- Z-index master list
|
244
|
+
//
|
245
|
+
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
246
|
+
// of components dependent on the z-axis and are designed to all work together.
|
247
|
+
//
|
248
|
+
// Note: These variables are not generated into the Customizer.
|
200
249
|
|
201
250
|
@zindex-navbar: 1000;
|
202
251
|
@zindex-dropdown: 1000;
|
203
|
-
@zindex-popover:
|
204
|
-
@zindex-tooltip:
|
252
|
+
@zindex-popover: 1060;
|
253
|
+
@zindex-tooltip: 1070;
|
205
254
|
@zindex-navbar-fixed: 1030;
|
206
255
|
@zindex-modal-background: 1040;
|
207
256
|
@zindex-modal: 1050;
|
208
257
|
|
209
|
-
|
210
|
-
|
258
|
+
|
259
|
+
//== Media queries breakpoints
|
260
|
+
//
|
261
|
+
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.
|
211
262
|
|
212
263
|
// Extra small screen / phone
|
213
|
-
|
264
|
+
//** Deprecated `@screen-xs` as of v3.0.1
|
214
265
|
@screen-xs: 480px;
|
266
|
+
//** Deprecated `@screen-xs-min` as of v3.2.0
|
215
267
|
@screen-xs-min: @screen-xs;
|
268
|
+
//** Deprecated `@screen-phone` as of v3.0.1
|
216
269
|
@screen-phone: @screen-xs-min;
|
217
270
|
|
218
271
|
// Small screen / tablet
|
219
|
-
|
272
|
+
//** Deprecated `@screen-sm` as of v3.0.1
|
220
273
|
@screen-sm: 768px;
|
221
274
|
@screen-sm-min: @screen-sm;
|
275
|
+
//** Deprecated `@screen-tablet` as of v3.0.1
|
222
276
|
@screen-tablet: @screen-sm-min;
|
223
277
|
|
224
278
|
// Medium screen / desktop
|
225
|
-
|
279
|
+
//** Deprecated `@screen-md` as of v3.0.1
|
226
280
|
@screen-md: 992px;
|
227
281
|
@screen-md-min: @screen-md;
|
282
|
+
//** Deprecated `@screen-desktop` as of v3.0.1
|
228
283
|
@screen-desktop: @screen-md-min;
|
229
284
|
|
230
285
|
// Large screen / wide desktop
|
231
|
-
|
286
|
+
//** Deprecated `@screen-lg` as of v3.0.1
|
232
287
|
@screen-lg: 1200px;
|
233
288
|
@screen-lg-min: @screen-lg;
|
289
|
+
//** Deprecated `@screen-lg-desktop` as of v3.0.1
|
234
290
|
@screen-lg-desktop: @screen-lg-min;
|
235
291
|
|
236
292
|
// So media queries don't overlap when required, provide a maximum
|
@@ -239,26 +295,52 @@
|
|
239
295
|
@screen-md-max: (@screen-lg-min - 1);
|
240
296
|
|
241
297
|
|
242
|
-
|
243
|
-
//
|
298
|
+
//== Grid system
|
299
|
+
//
|
300
|
+
//## Define your custom responsive grid.
|
244
301
|
|
245
|
-
|
302
|
+
//** Number of columns in the grid.
|
246
303
|
@grid-columns: 12;
|
247
|
-
|
304
|
+
//** Padding between columns. Gets divided in half for the left and right.
|
248
305
|
@grid-gutter-width: 30px;
|
249
|
-
//
|
306
|
+
// Navbar collapse
|
307
|
+
//** Point at which the navbar becomes uncollapsed.
|
250
308
|
@grid-float-breakpoint: @screen-sm-min;
|
309
|
+
//** Point at which the navbar begins collapsing.
|
310
|
+
@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
|
311
|
+
|
312
|
+
|
313
|
+
//== Container sizes
|
314
|
+
//
|
315
|
+
//## Define the maximum width of `.container` for different screen sizes.
|
251
316
|
|
317
|
+
// Small screen / tablet
|
318
|
+
@container-tablet: ((720px + @grid-gutter-width));
|
319
|
+
//** For `@screen-sm-min` and up.
|
320
|
+
@container-sm: @container-tablet;
|
252
321
|
|
253
|
-
//
|
254
|
-
|
322
|
+
// Medium screen / desktop
|
323
|
+
@container-desktop: ((940px + @grid-gutter-width));
|
324
|
+
//** For `@screen-md-min` and up.
|
325
|
+
@container-md: @container-desktop;
|
326
|
+
|
327
|
+
// Large screen / wide desktop
|
328
|
+
@container-large-desktop: ((1140px + @grid-gutter-width));
|
329
|
+
//** For `@screen-lg-min` and up.
|
330
|
+
@container-lg: @container-large-desktop;
|
331
|
+
|
332
|
+
|
333
|
+
//== Navbar
|
334
|
+
//
|
335
|
+
//##
|
255
336
|
|
256
337
|
// Basics of a navbar
|
257
338
|
@navbar-height: 50px;
|
258
339
|
@navbar-margin-bottom: @line-height-computed;
|
259
340
|
@navbar-border-radius: @border-radius-base;
|
260
|
-
@navbar-padding-horizontal: floor(@grid-gutter-width / 2);
|
341
|
+
@navbar-padding-horizontal: floor((@grid-gutter-width / 2));
|
261
342
|
@navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);
|
343
|
+
@navbar-collapse-max-height: 340px;
|
262
344
|
|
263
345
|
@navbar-default-color: #777;
|
264
346
|
@navbar-default-bg: #f8f8f8;
|
@@ -280,12 +362,11 @@
|
|
280
362
|
|
281
363
|
// Navbar toggle
|
282
364
|
@navbar-default-toggle-hover-bg: #ddd;
|
283
|
-
@navbar-default-toggle-icon-bar-bg: #
|
365
|
+
@navbar-default-toggle-icon-bar-bg: #888;
|
284
366
|
@navbar-default-toggle-border-color: #ddd;
|
285
367
|
|
286
368
|
|
287
369
|
// Inverted navbar
|
288
|
-
//
|
289
370
|
// Reset inverted navbar basics
|
290
371
|
@navbar-inverse-color: @gray-light;
|
291
372
|
@navbar-inverse-bg: #222;
|
@@ -311,9 +392,11 @@
|
|
311
392
|
@navbar-inverse-toggle-border-color: #333;
|
312
393
|
|
313
394
|
|
314
|
-
|
315
|
-
//
|
395
|
+
//== Navs
|
396
|
+
//
|
397
|
+
//##
|
316
398
|
|
399
|
+
//=== Shared nav styles
|
317
400
|
@nav-link-padding: 10px 15px;
|
318
401
|
@nav-link-hover-bg: @gray-lighter;
|
319
402
|
|
@@ -321,9 +404,8 @@
|
|
321
404
|
@nav-disabled-link-hover-color: @gray-light;
|
322
405
|
|
323
406
|
@nav-open-link-hover-color: #fff;
|
324
|
-
@nav-open-caret-border-color: #fff;
|
325
407
|
|
326
|
-
|
408
|
+
//== Tabs
|
327
409
|
@nav-tabs-border-color: #ddd;
|
328
410
|
|
329
411
|
@nav-tabs-link-hover-border-color: @gray-lighter;
|
@@ -335,122 +417,188 @@
|
|
335
417
|
@nav-tabs-justified-link-border-color: #ddd;
|
336
418
|
@nav-tabs-justified-active-link-border-color: @body-bg;
|
337
419
|
|
338
|
-
|
420
|
+
//== Pills
|
339
421
|
@nav-pills-border-radius: @border-radius-base;
|
340
422
|
@nav-pills-active-link-hover-bg: @component-active-bg;
|
341
423
|
@nav-pills-active-link-hover-color: @component-active-color;
|
342
424
|
|
343
425
|
|
344
|
-
|
345
|
-
//
|
426
|
+
//== Pagination
|
427
|
+
//
|
428
|
+
//##
|
346
429
|
|
430
|
+
@pagination-color: @link-color;
|
347
431
|
@pagination-bg: #fff;
|
348
432
|
@pagination-border: #ddd;
|
349
433
|
|
434
|
+
@pagination-hover-color: @link-hover-color;
|
350
435
|
@pagination-hover-bg: @gray-lighter;
|
436
|
+
@pagination-hover-border: #ddd;
|
351
437
|
|
352
|
-
@pagination-active-bg: @brand-primary;
|
353
438
|
@pagination-active-color: #fff;
|
439
|
+
@pagination-active-bg: @brand-primary;
|
440
|
+
@pagination-active-border: @brand-primary;
|
354
441
|
|
355
442
|
@pagination-disabled-color: @gray-light;
|
443
|
+
@pagination-disabled-bg: #fff;
|
444
|
+
@pagination-disabled-border: #ddd;
|
356
445
|
|
357
446
|
|
358
|
-
|
359
|
-
//
|
447
|
+
//== Pager
|
448
|
+
//
|
449
|
+
//##
|
360
450
|
|
451
|
+
@pager-bg: @pagination-bg;
|
452
|
+
@pager-border: @pagination-border;
|
361
453
|
@pager-border-radius: 15px;
|
362
|
-
@pager-disabled-color: @gray-light;
|
363
454
|
|
455
|
+
@pager-hover-bg: @pagination-hover-bg;
|
456
|
+
|
457
|
+
@pager-active-bg: @pagination-active-bg;
|
458
|
+
@pager-active-color: @pagination-active-color;
|
364
459
|
|
365
|
-
|
366
|
-
|
460
|
+
@pager-disabled-color: @pagination-disabled-color;
|
461
|
+
|
462
|
+
|
463
|
+
//== Jumbotron
|
464
|
+
//
|
465
|
+
//##
|
367
466
|
|
368
467
|
@jumbotron-padding: 30px;
|
369
468
|
@jumbotron-color: inherit;
|
370
469
|
@jumbotron-bg: @gray-lighter;
|
371
470
|
@jumbotron-heading-color: inherit;
|
372
|
-
@jumbotron-font-size: ceil(@font-size-base * 1.5);
|
471
|
+
@jumbotron-font-size: ceil((@font-size-base * 1.5));
|
373
472
|
|
374
473
|
|
375
|
-
|
376
|
-
//
|
474
|
+
//== Form states and alerts
|
475
|
+
//
|
476
|
+
//## Define colors for form feedback states and, by default, alerts.
|
377
477
|
|
378
|
-
@state-success-text: #
|
478
|
+
@state-success-text: #3c763d;
|
379
479
|
@state-success-bg: #dff0d8;
|
380
480
|
@state-success-border: darken(spin(@state-success-bg, -10), 5%);
|
381
481
|
|
382
|
-
@state-info-text: #
|
482
|
+
@state-info-text: #31708f;
|
383
483
|
@state-info-bg: #d9edf7;
|
384
484
|
@state-info-border: darken(spin(@state-info-bg, -10), 7%);
|
385
485
|
|
386
|
-
@state-warning-text: #
|
486
|
+
@state-warning-text: #8a6d3b;
|
387
487
|
@state-warning-bg: #fcf8e3;
|
388
488
|
@state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
|
389
489
|
|
390
|
-
@state-danger-text: #
|
490
|
+
@state-danger-text: #a94442;
|
391
491
|
@state-danger-bg: #f2dede;
|
392
492
|
@state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
|
393
493
|
|
394
494
|
|
395
|
-
|
396
|
-
//
|
495
|
+
//== Tooltips
|
496
|
+
//
|
497
|
+
//##
|
498
|
+
|
499
|
+
//** Tooltip max width
|
397
500
|
@tooltip-max-width: 200px;
|
501
|
+
//** Tooltip text color
|
398
502
|
@tooltip-color: #fff;
|
503
|
+
//** Tooltip background color
|
399
504
|
@tooltip-bg: #000;
|
505
|
+
@tooltip-opacity: .9;
|
400
506
|
|
507
|
+
//** Tooltip arrow width
|
401
508
|
@tooltip-arrow-width: 5px;
|
509
|
+
//** Tooltip arrow color
|
402
510
|
@tooltip-arrow-color: @tooltip-bg;
|
403
511
|
|
404
512
|
|
405
|
-
|
406
|
-
//
|
513
|
+
//== Popovers
|
514
|
+
//
|
515
|
+
//##
|
516
|
+
|
517
|
+
//** Popover body background color
|
407
518
|
@popover-bg: #fff;
|
519
|
+
//** Popover maximum width
|
408
520
|
@popover-max-width: 276px;
|
521
|
+
//** Popover border color
|
409
522
|
@popover-border-color: rgba(0,0,0,.2);
|
523
|
+
//** Popover fallback border color
|
410
524
|
@popover-fallback-border-color: #ccc;
|
411
525
|
|
526
|
+
//** Popover title background color
|
412
527
|
@popover-title-bg: darken(@popover-bg, 3%);
|
413
528
|
|
529
|
+
//** Popover arrow width
|
414
530
|
@popover-arrow-width: 10px;
|
531
|
+
//** Popover arrow color
|
415
532
|
@popover-arrow-color: #fff;
|
416
533
|
|
534
|
+
//** Popover outer arrow width
|
417
535
|
@popover-arrow-outer-width: (@popover-arrow-width + 1);
|
418
|
-
|
419
|
-
@popover-arrow-outer-
|
536
|
+
//** Popover outer arrow color
|
537
|
+
@popover-arrow-outer-color: fadein(@popover-border-color, 5%);
|
538
|
+
//** Popover outer arrow fallback color
|
539
|
+
@popover-arrow-outer-fallback-color: darken(@popover-fallback-border-color, 20%);
|
420
540
|
|
421
541
|
|
422
|
-
|
423
|
-
//
|
542
|
+
//== Labels
|
543
|
+
//
|
544
|
+
//##
|
424
545
|
|
546
|
+
//** Default label background color
|
425
547
|
@label-default-bg: @gray-light;
|
548
|
+
//** Primary label background color
|
426
549
|
@label-primary-bg: @brand-primary;
|
550
|
+
//** Success label background color
|
427
551
|
@label-success-bg: @brand-success;
|
552
|
+
//** Info label background color
|
428
553
|
@label-info-bg: @brand-info;
|
554
|
+
//** Warning label background color
|
429
555
|
@label-warning-bg: @brand-warning;
|
556
|
+
//** Danger label background color
|
430
557
|
@label-danger-bg: @brand-danger;
|
431
558
|
|
559
|
+
//** Default label text color
|
432
560
|
@label-color: #fff;
|
561
|
+
//** Default text color of a linked label
|
433
562
|
@label-link-hover-color: #fff;
|
434
563
|
|
435
564
|
|
436
|
-
|
437
|
-
//
|
438
|
-
|
565
|
+
//== Modals
|
566
|
+
//
|
567
|
+
//##
|
568
|
+
|
569
|
+
//** Padding applied to the modal body
|
570
|
+
@modal-inner-padding: 15px;
|
439
571
|
|
572
|
+
//** Padding applied to the modal title
|
440
573
|
@modal-title-padding: 15px;
|
574
|
+
//** Modal title line-height
|
441
575
|
@modal-title-line-height: @line-height-base;
|
442
576
|
|
577
|
+
//** Background color of modal content area
|
443
578
|
@modal-content-bg: #fff;
|
579
|
+
//** Modal content border color
|
444
580
|
@modal-content-border-color: rgba(0,0,0,.2);
|
581
|
+
//** Modal content border color **for IE8**
|
445
582
|
@modal-content-fallback-border-color: #999;
|
446
583
|
|
584
|
+
//** Modal backdrop background color
|
447
585
|
@modal-backdrop-bg: #000;
|
586
|
+
//** Modal backdrop opacity
|
587
|
+
@modal-backdrop-opacity: .5;
|
588
|
+
//** Modal header border color
|
448
589
|
@modal-header-border-color: #e5e5e5;
|
590
|
+
//** Modal footer border color
|
449
591
|
@modal-footer-border-color: @modal-header-border-color;
|
450
592
|
|
593
|
+
@modal-lg: 900px;
|
594
|
+
@modal-md: 600px;
|
595
|
+
@modal-sm: 300px;
|
596
|
+
|
597
|
+
|
598
|
+
//== Alerts
|
599
|
+
//
|
600
|
+
//## Define alert colors, border radius, and padding.
|
451
601
|
|
452
|
-
// Alerts
|
453
|
-
// -------------------------
|
454
602
|
@alert-padding: 15px;
|
455
603
|
@alert-border-radius: @border-radius-base;
|
456
604
|
@alert-link-font-weight: bold;
|
@@ -472,38 +620,73 @@
|
|
472
620
|
@alert-danger-border: @state-danger-border;
|
473
621
|
|
474
622
|
|
475
|
-
|
476
|
-
//
|
623
|
+
//== Progress bars
|
624
|
+
//
|
625
|
+
//##
|
626
|
+
|
627
|
+
//** Background color of the whole progress component
|
477
628
|
@progress-bg: #f5f5f5;
|
629
|
+
//** Progress bar text color
|
478
630
|
@progress-bar-color: #fff;
|
479
631
|
|
632
|
+
//** Default progress bar color
|
480
633
|
@progress-bar-bg: @brand-primary;
|
634
|
+
//** Success progress bar color
|
481
635
|
@progress-bar-success-bg: @brand-success;
|
636
|
+
//** Warning progress bar color
|
482
637
|
@progress-bar-warning-bg: @brand-warning;
|
638
|
+
//** Danger progress bar color
|
483
639
|
@progress-bar-danger-bg: @brand-danger;
|
640
|
+
//** Info progress bar color
|
484
641
|
@progress-bar-info-bg: @brand-info;
|
485
642
|
|
486
643
|
|
487
|
-
|
488
|
-
//
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
@list-group-
|
495
|
-
|
496
|
-
@list-group-
|
497
|
-
|
498
|
-
|
499
|
-
@list-group-
|
500
|
-
|
644
|
+
//== List group
|
645
|
+
//
|
646
|
+
//##
|
647
|
+
|
648
|
+
//** Background color on `.list-group-item`
|
649
|
+
@list-group-bg: #fff;
|
650
|
+
//** `.list-group-item` border color
|
651
|
+
@list-group-border: #ddd;
|
652
|
+
//** List group border radius
|
653
|
+
@list-group-border-radius: @border-radius-base;
|
654
|
+
|
655
|
+
//** Background color of single list items on hover
|
656
|
+
@list-group-hover-bg: #f5f5f5;
|
657
|
+
//** Text color of active list items
|
658
|
+
@list-group-active-color: @component-active-color;
|
659
|
+
//** Background color of active list items
|
660
|
+
@list-group-active-bg: @component-active-bg;
|
661
|
+
//** Border color of active list elements
|
662
|
+
@list-group-active-border: @list-group-active-bg;
|
663
|
+
//** Text color for content within active list items
|
664
|
+
@list-group-active-text-color: lighten(@list-group-active-bg, 40%);
|
665
|
+
|
666
|
+
//** Text color of disabled list items
|
667
|
+
@list-group-disabled-color: @gray-light;
|
668
|
+
//** Background color of disabled list items
|
669
|
+
@list-group-disabled-bg: @gray-lighter;
|
670
|
+
//** Text color for content within disabled list items
|
671
|
+
@list-group-disabled-text-color: @list-group-disabled-color;
|
672
|
+
|
673
|
+
@list-group-link-color: #555;
|
674
|
+
@list-group-link-hover-color: @list-group-link-color;
|
675
|
+
@list-group-link-heading-color: #333;
|
676
|
+
|
677
|
+
|
678
|
+
//== Panels
|
679
|
+
//
|
680
|
+
//##
|
501
681
|
|
502
|
-
// Panels
|
503
|
-
// -------------------------
|
504
682
|
@panel-bg: #fff;
|
505
|
-
@panel-
|
683
|
+
@panel-body-padding: 15px;
|
684
|
+
@panel-heading-padding: 10px 15px;
|
685
|
+
@panel-footer-padding: @panel-heading-padding;
|
506
686
|
@panel-border-radius: @border-radius-base;
|
687
|
+
|
688
|
+
//** Border color for elements within panels
|
689
|
+
@panel-inner-border: #ddd;
|
507
690
|
@panel-footer-bg: #f5f5f5;
|
508
691
|
|
509
692
|
@panel-default-text: @gray-dark;
|
@@ -518,6 +701,10 @@
|
|
518
701
|
@panel-success-border: @state-success-border;
|
519
702
|
@panel-success-heading-bg: @state-success-bg;
|
520
703
|
|
704
|
+
@panel-info-text: @state-info-text;
|
705
|
+
@panel-info-border: @state-info-border;
|
706
|
+
@panel-info-heading-bg: @state-info-bg;
|
707
|
+
|
521
708
|
@panel-warning-text: @state-warning-text;
|
522
709
|
@panel-warning-border: @state-warning-border;
|
523
710
|
@panel-warning-heading-bg: @state-warning-bg;
|
@@ -526,34 +713,46 @@
|
|
526
713
|
@panel-danger-border: @state-danger-border;
|
527
714
|
@panel-danger-heading-bg: @state-danger-bg;
|
528
715
|
|
529
|
-
@panel-info-text: @state-info-text;
|
530
|
-
@panel-info-border: @state-info-border;
|
531
|
-
@panel-info-heading-bg: @state-info-bg;
|
532
716
|
|
717
|
+
//== Thumbnails
|
718
|
+
//
|
719
|
+
//##
|
533
720
|
|
534
|
-
|
535
|
-
// -------------------------
|
721
|
+
//** Padding around the thumbnail image
|
536
722
|
@thumbnail-padding: 4px;
|
723
|
+
//** Thumbnail background color
|
537
724
|
@thumbnail-bg: @body-bg;
|
725
|
+
//** Thumbnail border color
|
538
726
|
@thumbnail-border: #ddd;
|
727
|
+
//** Thumbnail border radius
|
539
728
|
@thumbnail-border-radius: @border-radius-base;
|
540
729
|
|
730
|
+
//** Custom text color for thumbnail captions
|
541
731
|
@thumbnail-caption-color: @text-color;
|
732
|
+
//** Padding around the thumbnail caption
|
542
733
|
@thumbnail-caption-padding: 9px;
|
543
734
|
|
544
735
|
|
545
|
-
|
546
|
-
//
|
736
|
+
//== Wells
|
737
|
+
//
|
738
|
+
//##
|
739
|
+
|
547
740
|
@well-bg: #f5f5f5;
|
741
|
+
@well-border: darken(@well-bg, 7%);
|
548
742
|
|
549
743
|
|
550
|
-
|
551
|
-
//
|
744
|
+
//== Badges
|
745
|
+
//
|
746
|
+
//##
|
747
|
+
|
552
748
|
@badge-color: #fff;
|
749
|
+
//** Linked badge text color on hover
|
553
750
|
@badge-link-hover-color: #fff;
|
554
751
|
@badge-bg: @gray-light;
|
555
752
|
|
753
|
+
//** Badge text color in active nav link
|
556
754
|
@badge-active-color: @link-color;
|
755
|
+
//** Badge background color in active nav link
|
557
756
|
@badge-active-bg: #fff;
|
558
757
|
|
559
758
|
@badge-font-weight: bold;
|
@@ -561,16 +760,25 @@
|
|
561
760
|
@badge-border-radius: 10px;
|
562
761
|
|
563
762
|
|
564
|
-
|
565
|
-
//
|
566
|
-
|
567
|
-
|
568
|
-
@breadcrumb-
|
569
|
-
@breadcrumb-
|
763
|
+
//== Breadcrumbs
|
764
|
+
//
|
765
|
+
//##
|
766
|
+
|
767
|
+
@breadcrumb-padding-vertical: 8px;
|
768
|
+
@breadcrumb-padding-horizontal: 15px;
|
769
|
+
//** Breadcrumb background color
|
770
|
+
@breadcrumb-bg: #f5f5f5;
|
771
|
+
//** Breadcrumb text color
|
772
|
+
@breadcrumb-color: #ccc;
|
773
|
+
//** Text color of current page in the breadcrumb
|
774
|
+
@breadcrumb-active-color: @gray-light;
|
775
|
+
//** Textual separator for between breadcrumb elements
|
776
|
+
@breadcrumb-separator: "/";
|
570
777
|
|
571
778
|
|
572
|
-
|
573
|
-
//
|
779
|
+
//== Carousel
|
780
|
+
//
|
781
|
+
//##
|
574
782
|
|
575
783
|
@carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
576
784
|
|
@@ -585,53 +793,54 @@
|
|
585
793
|
@carousel-caption-color: #fff;
|
586
794
|
|
587
795
|
|
588
|
-
|
589
|
-
//
|
796
|
+
//== Close
|
797
|
+
//
|
798
|
+
//##
|
799
|
+
|
590
800
|
@close-font-weight: bold;
|
591
801
|
@close-color: #000;
|
592
802
|
@close-text-shadow: 0 1px 0 #fff;
|
593
803
|
|
594
804
|
|
595
|
-
|
596
|
-
//
|
805
|
+
//== Code
|
806
|
+
//
|
807
|
+
//##
|
808
|
+
|
597
809
|
@code-color: #c7254e;
|
598
810
|
@code-bg: #f9f2f4;
|
599
811
|
|
812
|
+
@kbd-color: #fff;
|
813
|
+
@kbd-bg: #333;
|
814
|
+
|
600
815
|
@pre-bg: #f5f5f5;
|
601
816
|
@pre-color: @gray-dark;
|
602
817
|
@pre-border-color: #ccc;
|
603
818
|
@pre-scrollable-max-height: 340px;
|
604
819
|
|
605
|
-
|
606
|
-
|
820
|
+
|
821
|
+
//== Type
|
822
|
+
//
|
823
|
+
//##
|
824
|
+
|
825
|
+
//** Horizontal offset for forms and lists.
|
826
|
+
@component-offset-horizontal: 180px;
|
827
|
+
//** Text muted color
|
607
828
|
@text-muted: @gray-light;
|
829
|
+
//** Abbreviations and acronyms border color
|
608
830
|
@abbr-border-color: @gray-light;
|
831
|
+
//** Headings small color
|
609
832
|
@headings-small-color: @gray-light;
|
833
|
+
//** Blockquote small color
|
610
834
|
@blockquote-small-color: @gray-light;
|
835
|
+
//** Blockquote font size
|
836
|
+
@blockquote-font-size: (@font-size-base * 1.25);
|
837
|
+
//** Blockquote border color
|
611
838
|
@blockquote-border-color: @gray-lighter;
|
839
|
+
//** Page header border color
|
612
840
|
@page-header-border-color: @gray-lighter;
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
// Hr border color
|
841
|
+
//** Width of horizontal description list titles
|
842
|
+
@dl-horizontal-offset: @component-offset-horizontal;
|
843
|
+
//** Horizontal line color.
|
618
844
|
@hr-border: @gray-lighter;
|
619
845
|
|
620
|
-
// Horizontal forms & lists
|
621
|
-
@component-offset-horizontal: 180px;
|
622
|
-
|
623
|
-
|
624
|
-
// Container sizes
|
625
|
-
// --------------------------------------------------
|
626
|
-
|
627
|
-
// Small screen / tablet
|
628
|
-
@container-tablet: ((720px + @grid-gutter-width));
|
629
|
-
@container-sm: @container-tablet;
|
630
846
|
|
631
|
-
// Medium screen / desktop
|
632
|
-
@container-desktop: ((940px + @grid-gutter-width));
|
633
|
-
@container-md: @container-desktop;
|
634
|
-
|
635
|
-
// Large screen / wide desktop
|
636
|
-
@container-large-desktop: ((1140px + @grid-gutter-width));
|
637
|
-
@container-lg: @container-large-desktop;
|