bootstrap-sass-rails 2.0.0.3 → 2.0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bootstrap/sass/rails/version.rb +1 -1
- data/test/dummy/log/test.log +869 -0
- data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -0
- data/test/dummy/tmp/cache/assets/D04/3C0/sprockets%2F29d763bd40cc25622b1f04b876a5c3e3 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
- data/test/dummy/tmp/cache/assets/D7C/3E0/sprockets%2F53c81ab87ec56a748428a59da9a5d5de +0 -0
- data/test/dummy/tmp/cache/assets/E3A/D90/sprockets%2Fce0dbefdb4416ebc42589ecdbf7d7857 +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_accordion.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_alerts.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_carousel.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_close.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_code.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_component-animations.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_hero-unit.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_layouts.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_modals.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navbar.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navs.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_pager.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_popovers.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_sprites.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_thumbnails.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tooltip.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_utilities.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_wells.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.cssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/individual.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/variables.css.scssc +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +8 -5
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +5 -2
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +6 -5
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +2 -2
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +2 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +25 -6
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +13 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +51 -44
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +23 -7
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +76 -21
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +11 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +11 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +23 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +9 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +7 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +14 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +2 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +3 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +8 -0
- metadata +126 -12
- data/vendor/assets/stylesheets/twitter/bootstrap/_patterns.scss +0 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +0 -18
@@ -11,12 +11,16 @@ pre {
|
|
11
11
|
color: $grayDark;
|
12
12
|
@include border-radius(3px);
|
13
13
|
}
|
14
|
+
|
15
|
+
// Inline code
|
14
16
|
code {
|
15
17
|
padding: 3px 4px;
|
16
18
|
color: #d14;
|
17
19
|
background-color: #f7f7f9;
|
18
20
|
border: 1px solid #e1e1e8;
|
19
21
|
}
|
22
|
+
|
23
|
+
// Blocks of code
|
20
24
|
pre {
|
21
25
|
display: block;
|
22
26
|
padding: ($baseLineHeight - 1) / 2;
|
@@ -30,6 +34,7 @@ pre {
|
|
30
34
|
white-space: pre;
|
31
35
|
white-space: pre-wrap;
|
32
36
|
word-break: break-all;
|
37
|
+
word-wrap: break-word;
|
33
38
|
|
34
39
|
// Make prettyprint styles more spaced out for readability
|
35
40
|
&.prettyprint {
|
@@ -39,6 +44,14 @@ pre {
|
|
39
44
|
// Account for some code outputs that place code tags in pre tags
|
40
45
|
code {
|
41
46
|
padding: 0;
|
47
|
+
color: inherit;
|
42
48
|
background-color: transparent;
|
49
|
+
border: 0;
|
43
50
|
}
|
44
51
|
}
|
52
|
+
|
53
|
+
// Enable scrollable blocks of code
|
54
|
+
.pre-scrollable {
|
55
|
+
max-height: 340px;
|
56
|
+
overflow-y: scroll;
|
57
|
+
}
|
@@ -46,7 +46,6 @@
|
|
46
46
|
float: left;
|
47
47
|
display: none; // none by default, but block on "open" of the menu
|
48
48
|
min-width: 160px;
|
49
|
-
max-width: 220px;
|
50
49
|
_width: 160px;
|
51
50
|
padding: 4px 0;
|
52
51
|
margin: 0; // override default ul
|
@@ -93,7 +92,7 @@
|
|
93
92
|
padding: 3px 15px;
|
94
93
|
clear: both;
|
95
94
|
font-weight: normal;
|
96
|
-
line-height:
|
95
|
+
line-height: $baseLineHeight;
|
97
96
|
color: $gray;
|
98
97
|
white-space: nowrap;
|
99
98
|
}
|
@@ -28,6 +28,12 @@ legend {
|
|
28
28
|
color: $grayDark;
|
29
29
|
border: 0;
|
30
30
|
border-bottom: 1px solid #eee;
|
31
|
+
|
32
|
+
// Small
|
33
|
+
small {
|
34
|
+
font-size: $baseLineHeight * .75;
|
35
|
+
color: $grayLight;
|
36
|
+
}
|
31
37
|
}
|
32
38
|
|
33
39
|
// Set font for forms
|
@@ -36,7 +42,13 @@ input,
|
|
36
42
|
button,
|
37
43
|
select,
|
38
44
|
textarea {
|
39
|
-
@include font-
|
45
|
+
@include font-shorthand($baseFontSize,normal,$baseLineHeight); // Set size, weight, line-height here
|
46
|
+
}
|
47
|
+
input,
|
48
|
+
button,
|
49
|
+
select,
|
50
|
+
textarea {
|
51
|
+
@include font-sans-serif($baseFontSize,normal,$baseLineHeight); // And only set font-family here for those that need it (note the missing label element)
|
40
52
|
}
|
41
53
|
|
42
54
|
// Identify controls by their labels
|
@@ -84,13 +96,17 @@ input[type="radio"] {
|
|
84
96
|
margin: 3px 0;
|
85
97
|
*margin-top: 0; /* IE7 */
|
86
98
|
line-height: normal;
|
87
|
-
border: 0;
|
88
99
|
cursor: pointer;
|
89
|
-
border-radius
|
100
|
+
@include border-radius(0);
|
101
|
+
border: 0 \9; /* IE9 and down */
|
102
|
+
}
|
103
|
+
input[type="image"] {
|
104
|
+
border: 0;
|
90
105
|
}
|
91
106
|
|
92
107
|
// Reset the file input to browser defaults
|
93
108
|
input[type="file"] {
|
109
|
+
width: auto;
|
94
110
|
padding: initial;
|
95
111
|
line-height: initial;
|
96
112
|
border: initial;
|
@@ -115,6 +131,11 @@ input[type="file"] {
|
|
115
131
|
line-height: 28px;
|
116
132
|
}
|
117
133
|
|
134
|
+
// Reset line-height for IE
|
135
|
+
input[type="file"] {
|
136
|
+
line-height: 18px \9;
|
137
|
+
}
|
138
|
+
|
118
139
|
// Chrome on Linux and Mobile Safari need background-color
|
119
140
|
select {
|
120
141
|
width: 220px; // default input width + 10px of padding that doesn't get applied
|
@@ -165,9 +186,11 @@ input[type="hidden"] {
|
|
165
186
|
}
|
166
187
|
|
167
188
|
// Radios and checkboxes on same line
|
189
|
+
// TODO v3: Convert .inline to .control-inline
|
168
190
|
.radio.inline,
|
169
191
|
.checkbox.inline {
|
170
192
|
display: inline-block;
|
193
|
+
padding-top: 5px;
|
171
194
|
margin-bottom: 0;
|
172
195
|
vertical-align: middle;
|
173
196
|
}
|
@@ -175,11 +198,6 @@ input[type="hidden"] {
|
|
175
198
|
.checkbox.inline + .checkbox.inline {
|
176
199
|
margin-left: 10px; // space out consecutive inline controls
|
177
200
|
}
|
178
|
-
// But don't forget to remove their padding on first-child
|
179
|
-
.controls > .radio.inline:first-child,
|
180
|
-
.controls > .checkbox.inline:first-child {
|
181
|
-
padding-top: 0;
|
182
|
-
}
|
183
201
|
|
184
202
|
|
185
203
|
|
@@ -198,9 +216,10 @@ textarea:focus {
|
|
198
216
|
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
199
217
|
@include box-shadow($shadow);
|
200
218
|
outline: 0;
|
201
|
-
outline: thin dotted \9; /* IE6-
|
219
|
+
outline: thin dotted \9; /* IE6-9 */
|
202
220
|
}
|
203
221
|
input[type="file"]:focus,
|
222
|
+
input[type="radio"]:focus,
|
204
223
|
input[type="checkbox"]:focus,
|
205
224
|
select:focus {
|
206
225
|
@include box-shadow(none); // override for file inputs
|
@@ -260,33 +279,6 @@ textarea[readonly] {
|
|
260
279
|
// FORM FIELD FEEDBACK STATES
|
261
280
|
// --------------------------
|
262
281
|
|
263
|
-
// Mixin for form field states
|
264
|
-
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
265
|
-
// Set the text color
|
266
|
-
> label,
|
267
|
-
.help-block,
|
268
|
-
.help-inline {
|
269
|
-
color: $textColor;
|
270
|
-
}
|
271
|
-
// Style inputs accordingly
|
272
|
-
input,
|
273
|
-
select,
|
274
|
-
textarea {
|
275
|
-
color: $textColor;
|
276
|
-
border-color: $borderColor;
|
277
|
-
&:focus {
|
278
|
-
border-color: darken($borderColor, 10%);
|
279
|
-
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
280
|
-
}
|
281
|
-
}
|
282
|
-
// Give a small background color for input-prepend/-append
|
283
|
-
.input-prepend .add-on,
|
284
|
-
.input-append .add-on {
|
285
|
-
color: $textColor;
|
286
|
-
background-color: $backgroundColor;
|
287
|
-
border-color: $textColor;
|
288
|
-
}
|
289
|
-
}
|
290
282
|
// Warning
|
291
283
|
.control-group.warning {
|
292
284
|
@include formFieldState($warningText, $warningText, $warningBackground);
|
@@ -309,7 +301,7 @@ select:focus:required:invalid {
|
|
309
301
|
border-color: #ee5f5b;
|
310
302
|
&:focus {
|
311
303
|
border-color: darken(#ee5f5b, 10%);
|
312
|
-
@include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
304
|
+
@include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
313
305
|
}
|
314
306
|
}
|
315
307
|
|
@@ -344,6 +336,7 @@ select:focus:required:invalid {
|
|
344
336
|
// ---------
|
345
337
|
|
346
338
|
.help-block {
|
339
|
+
display: block; // account for any element using help-block
|
347
340
|
margin-top: 5px;
|
348
341
|
margin-bottom: 0;
|
349
342
|
color: $grayLight;
|
@@ -412,7 +405,8 @@ select:focus:required:invalid {
|
|
412
405
|
@include border-radius(3px 0 0 3px);
|
413
406
|
}
|
414
407
|
.uneditable-input {
|
415
|
-
border-
|
408
|
+
border-left-color: #eee;
|
409
|
+
border-right-color: #ccc;
|
416
410
|
}
|
417
411
|
.add-on {
|
418
412
|
margin-right: 0;
|
@@ -461,6 +455,10 @@ select:focus:required:invalid {
|
|
461
455
|
display: inline-block;
|
462
456
|
margin-bottom: 0;
|
463
457
|
}
|
458
|
+
// Re-hide hidden elements due to specifity
|
459
|
+
.hide {
|
460
|
+
display: none;
|
461
|
+
}
|
464
462
|
}
|
465
463
|
.form-search label,
|
466
464
|
.form-inline label,
|
@@ -477,28 +475,37 @@ select:focus:required:invalid {
|
|
477
475
|
.form-inline .input-prepend .add-on {
|
478
476
|
vertical-align: middle;
|
479
477
|
}
|
478
|
+
// Inline checkbox/radio labels
|
479
|
+
.form-search .radio,
|
480
|
+
.form-inline .radio,
|
481
|
+
.form-search .checkbox,
|
482
|
+
.form-inline .checkbox {
|
483
|
+
margin-bottom: 0;
|
484
|
+
vertical-align: middle;
|
485
|
+
}
|
480
486
|
|
481
487
|
// Margin to space out fieldsets
|
482
488
|
.control-group {
|
483
489
|
margin-bottom: $baseLineHeight / 2;
|
484
490
|
}
|
485
491
|
|
492
|
+
// Legend collapses margin, so next element is responsible for spacing
|
493
|
+
legend + .control-group {
|
494
|
+
margin-top: $baseLineHeight;
|
495
|
+
-webkit-margin-top-collapse: separate;
|
496
|
+
}
|
497
|
+
|
486
498
|
// Horizontal-specific styles
|
487
499
|
// --------------------------
|
488
500
|
|
489
501
|
.form-horizontal {
|
490
|
-
// Legend collapses margin, so we're relegated to padding
|
491
|
-
legend + .control-group {
|
492
|
-
margin-top: $baseLineHeight;
|
493
|
-
-webkit-margin-top-collapse: separate;
|
494
|
-
}
|
495
502
|
// Increase spacing between groups
|
496
503
|
.control-group {
|
497
504
|
margin-bottom: $baseLineHeight;
|
498
505
|
@include clearfix();
|
499
506
|
}
|
500
507
|
// Float the labels left
|
501
|
-
.control-
|
508
|
+
.control-label {
|
502
509
|
float: left;
|
503
510
|
width: 140px;
|
504
511
|
padding-top: 5px;
|
@@ -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%); }
|
@@ -9,7 +9,7 @@
|
|
9
9
|
// Clearfix
|
10
10
|
// --------
|
11
11
|
// For clearing floats like a boss h5bp.com/q
|
12
|
-
@mixin clearfix
|
12
|
+
@mixin clearfix {
|
13
13
|
*zoom: 1;
|
14
14
|
&:before,
|
15
15
|
&:after {
|
@@ -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,6 +89,15 @@
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
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
|
+
}
|
100
|
+
|
92
101
|
|
93
102
|
|
94
103
|
// FONTS
|
@@ -212,18 +221,18 @@
|
|
212
221
|
margin-left: 0;
|
213
222
|
}
|
214
223
|
// Default columns
|
215
|
-
.span1 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1); }
|
216
|
-
.span2 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2); }
|
217
|
-
.span3 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3); }
|
218
|
-
.span4 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4); }
|
219
|
-
.span5 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5); }
|
220
|
-
.span6 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6); }
|
221
|
-
.span7 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7); }
|
222
|
-
.span8 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8); }
|
223
|
-
.span9 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9); }
|
224
|
-
.span10 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10); }
|
225
|
-
.span11 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11); }
|
226
|
-
.span12 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12); }
|
224
|
+
> .span1 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1); }
|
225
|
+
> .span2 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2); }
|
226
|
+
> .span3 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3); }
|
227
|
+
> .span4 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4); }
|
228
|
+
> .span5 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5); }
|
229
|
+
> .span6 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6); }
|
230
|
+
> .span7 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7); }
|
231
|
+
> .span8 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8); }
|
232
|
+
> .span9 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9); }
|
233
|
+
> .span10 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10); }
|
234
|
+
> .span11 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11); }
|
235
|
+
> .span12 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12); }
|
227
236
|
}
|
228
237
|
}
|
229
238
|
|
@@ -253,6 +262,52 @@
|
|
253
262
|
}
|
254
263
|
}
|
255
264
|
|
265
|
+
// Make a Grid
|
266
|
+
// -------------------------
|
267
|
+
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
268
|
+
@mixin makeRow() {
|
269
|
+
margin-left: $gridGutterWidth * -1;
|
270
|
+
@include clearfix();
|
271
|
+
}
|
272
|
+
@mixin makeColumn($columns: 1) {
|
273
|
+
float: left;
|
274
|
+
margin-left: $gridGutterWidth;
|
275
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
// Form field states (used in forms.scss)
|
281
|
+
// --------------------------------------------------
|
282
|
+
|
283
|
+
// Mixin for form field states
|
284
|
+
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
285
|
+
// Set the text color
|
286
|
+
> label,
|
287
|
+
.help-block,
|
288
|
+
.help-inline {
|
289
|
+
color: $textColor;
|
290
|
+
}
|
291
|
+
// Style inputs accordingly
|
292
|
+
input,
|
293
|
+
select,
|
294
|
+
textarea {
|
295
|
+
color: $textColor;
|
296
|
+
border-color: $borderColor;
|
297
|
+
&:focus {
|
298
|
+
border-color: darken($borderColor, 10%);
|
299
|
+
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
300
|
+
}
|
301
|
+
}
|
302
|
+
// Give a small background color for input-prepend/-append
|
303
|
+
.input-prepend .add-on,
|
304
|
+
.input-append .add-on {
|
305
|
+
color: $textColor;
|
306
|
+
background-color: $backgroundColor;
|
307
|
+
border-color: $textColor;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
256
311
|
|
257
312
|
|
258
313
|
// CSS3 PROPERTIES
|
@@ -303,13 +358,6 @@
|
|
303
358
|
-o-transform: translate($x, $y);
|
304
359
|
transform: translate($x, $y);
|
305
360
|
}
|
306
|
-
@mixin skew($x: 0, $y: 0) {
|
307
|
-
-webkit-transform: translate($x, $y);
|
308
|
-
-moz-transform: translate($x, $y);
|
309
|
-
-ms-transform: translate($x, $y);
|
310
|
-
-o-transform: translate($x, $y);
|
311
|
-
transform: translate($x, $y);
|
312
|
-
}
|
313
361
|
@mixin skew($x: 0, $y: 0) {
|
314
362
|
-webkit-transform: skew($x, $y);
|
315
363
|
-moz-transform: skew($x, $y);
|
@@ -317,6 +365,13 @@
|
|
317
365
|
-o-transform: skew($x, $y);
|
318
366
|
transform: skew($x, $y);
|
319
367
|
}
|
368
|
+
@mixin translate3d($x: 0, $y: 0, $z: 0) {
|
369
|
+
-webkit-transform: translate($x, $y, $z);
|
370
|
+
-moz-transform: translate($x, $y, $z);
|
371
|
+
-ms-transform: translate($x, $y, $z);
|
372
|
+
-o-transform: translate($x, $y, $z);
|
373
|
+
transform: translate($x, $y, $z);
|
374
|
+
}
|
320
375
|
|
321
376
|
// Background clipping
|
322
377
|
// 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(80);
|
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;
|