bootstrap-sass-rails 3.0.0.3 → 3.0.3.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.
- data/README.md +20 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +200 -199
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +4 -4
- data/app/assets/javascripts/twitter/bootstrap/alert.js +3 -3
- data/app/assets/javascripts/twitter/bootstrap/button.js +13 -7
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +8 -8
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +4 -4
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +8 -8
- data/app/assets/javascripts/twitter/bootstrap/modal.js +4 -4
- data/app/assets/javascripts/twitter/bootstrap/popover.js +4 -4
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +5 -5
- data/app/assets/javascripts/twitter/bootstrap/tab.js +5 -5
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +4 -4
- data/app/assets/javascripts/twitter/bootstrap/transition.js +3 -3
- data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -1
- data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +6 -6
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +2 -2
- data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +12 -33
- data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +4 -9
- data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +33 -10
- data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -0
- data/app/assets/stylesheets/twitter/bootstrap/_code.scss +5 -8
- data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +3 -9
- data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +33 -10
- data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +15 -10
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +36 -304
- data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +10 -1
- data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +10 -4
- data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +6 -0
- data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +14 -15
- data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +176 -65
- data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +5 -21
- data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +49 -58
- data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +43 -30
- data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +16 -6
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +2 -0
- data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +41 -7
- data/app/assets/stylesheets/twitter/bootstrap/_print.scss +6 -1
- data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +4 -19
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +37 -48
- data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -12
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +45 -50
- data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +26 -11
- data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +22 -15
- data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +8 -8
- data/app/assets/stylesheets/twitter/bootstrap/_type.scss +105 -62
- data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +15 -1
- data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +69 -47
- data/app/assets/stylesheets/twitter/bootstrap.css.scss +0 -10
- data/lib/bootstrap/sass/rails/engine.rb +9 -1
- data/lib/bootstrap/sass/rails/version.rb +1 -1
- data/lib/generators/bootstrap/customize_generator.rb +37 -0
- data/lib/generators/bootstrap/templates/USAGE +23 -0
- data/lib/generators/bootstrap/templates/bootstrap-custom.css.scss +18 -0
- data/lib/generators/bootstrap/templates/bootstrap-custom.js +3 -0
- data/test/cases/less_to_sass_spec.rb +1 -1
- data/test/cases/usage_css_spec.rb +0 -3
- metadata +27 -5
- checksums.yaml +0 -15
@@ -3,19 +3,69 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
+
// Headings
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
h1, h2, h3, h4, h5, h6,
|
10
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
11
|
+
font-family: $headings-font-family;
|
12
|
+
font-weight: $headings-font-weight;
|
13
|
+
line-height: $headings-line-height;
|
14
|
+
color: $headings-color;
|
15
|
+
|
16
|
+
small,
|
17
|
+
.small {
|
18
|
+
font-weight: normal;
|
19
|
+
line-height: 1;
|
20
|
+
color: $headings-small-color;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
h1,
|
25
|
+
h2,
|
26
|
+
h3 {
|
27
|
+
margin-top: $line-height-computed;
|
28
|
+
margin-bottom: ($line-height-computed / 2);
|
29
|
+
|
30
|
+
small,
|
31
|
+
.small {
|
32
|
+
font-size: 65%;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
h4,
|
36
|
+
h5,
|
37
|
+
h6 {
|
38
|
+
margin-top: ($line-height-computed / 2);
|
39
|
+
margin-bottom: ($line-height-computed / 2);
|
40
|
+
|
41
|
+
small,
|
42
|
+
.small {
|
43
|
+
font-size: 75%;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
h1, .h1 { font-size: $font-size-h1; }
|
48
|
+
h2, .h2 { font-size: $font-size-h2; }
|
49
|
+
h3, .h3 { font-size: $font-size-h3; }
|
50
|
+
h4, .h4 { font-size: $font-size-h4; }
|
51
|
+
h5, .h5 { font-size: $font-size-h5; }
|
52
|
+
h6, .h6 { font-size: $font-size-h6; }
|
53
|
+
|
54
|
+
|
6
55
|
// Body text
|
7
56
|
// -------------------------
|
8
57
|
|
9
58
|
p {
|
10
59
|
margin: 0 0 ($line-height-computed / 2);
|
11
60
|
}
|
61
|
+
|
12
62
|
.lead {
|
13
63
|
margin-bottom: $line-height-computed;
|
14
|
-
font-size: ($font-size-base * 1.15);
|
64
|
+
font-size: floor($font-size-base * 1.15);
|
15
65
|
font-weight: 200;
|
16
66
|
line-height: 1.4;
|
17
67
|
|
18
|
-
@media (min-width:
|
68
|
+
@media (min-width: $screen-sm-min) {
|
19
69
|
font-size: ($font-size-base * 1.5);
|
20
70
|
}
|
21
71
|
}
|
@@ -25,64 +75,51 @@ p {
|
|
25
75
|
// -------------------------
|
26
76
|
|
27
77
|
// Ex: 14px base font * 85% = about 12px
|
28
|
-
small
|
78
|
+
small,
|
79
|
+
.small { font-size: 85%; }
|
29
80
|
|
30
81
|
// Undo browser default styling
|
31
82
|
cite { font-style: normal; }
|
32
83
|
|
33
84
|
// Contextual emphasis
|
34
|
-
.text-muted
|
35
|
-
|
36
|
-
|
37
|
-
.text-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
// Alignment
|
42
|
-
.text-left { text-align: left; }
|
43
|
-
.text-right { text-align: right; }
|
44
|
-
.text-center { text-align: center; }
|
45
|
-
|
46
|
-
|
47
|
-
// Headings
|
48
|
-
// -------------------------
|
49
|
-
|
50
|
-
h1, h2, h3, h4, h5, h6,
|
51
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
52
|
-
font-family: $headings-font-family;
|
53
|
-
font-weight: $headings-font-weight;
|
54
|
-
line-height: $headings-line-height;
|
55
|
-
small {
|
56
|
-
font-weight: normal;
|
57
|
-
line-height: 1;
|
58
|
-
color: $headings-small-color;
|
85
|
+
.text-muted {
|
86
|
+
color: $text-muted;
|
87
|
+
}
|
88
|
+
.text-primary {
|
89
|
+
color: $brand-primary;
|
90
|
+
&:hover {
|
91
|
+
color: darken($brand-primary, 10%);
|
59
92
|
}
|
60
93
|
}
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
margin-bottom: ($line-height-computed / 2);
|
94
|
+
.text-warning {
|
95
|
+
color: $state-warning-text;
|
96
|
+
&:hover {
|
97
|
+
color: darken($state-warning-text, 10%);
|
98
|
+
}
|
67
99
|
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
100
|
+
.text-danger {
|
101
|
+
color: $state-danger-text;
|
102
|
+
&:hover {
|
103
|
+
color: darken($state-danger-text, 10%);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
.text-success {
|
107
|
+
color: $state-success-text;
|
108
|
+
&:hover {
|
109
|
+
color: darken($state-success-text, 10%);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
.text-info {
|
113
|
+
color: $state-info-text;
|
114
|
+
&:hover {
|
115
|
+
color: darken($state-info-text, 10%);
|
116
|
+
}
|
73
117
|
}
|
74
118
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
h5, .h5 { font-size: $font-size-base; }
|
80
|
-
h6, .h6 { font-size: ceil($font-size-base * 0.85); } // ~12px
|
81
|
-
|
82
|
-
h1 small, .h1 small { font-size: ceil($font-size-base * 1.70); } // ~24px
|
83
|
-
h2 small, .h2 small { font-size: ceil($font-size-base * 1.25); } // ~18px
|
84
|
-
h3 small, .h3 small,
|
85
|
-
h4 small, .h4 small { font-size: $font-size-base; }
|
119
|
+
// Alignment
|
120
|
+
.text-left { text-align: left; }
|
121
|
+
.text-right { text-align: right; }
|
122
|
+
.text-center { text-align: center; }
|
86
123
|
|
87
124
|
|
88
125
|
// Page header
|
@@ -95,7 +132,6 @@ h4 small, .h4 small { font-size: $font-size-base; }
|
|
95
132
|
}
|
96
133
|
|
97
134
|
|
98
|
-
|
99
135
|
// Lists
|
100
136
|
// --------------------------------------------------
|
101
137
|
|
@@ -105,7 +141,7 @@ ol {
|
|
105
141
|
margin-top: 0;
|
106
142
|
margin-bottom: ($line-height-computed / 2);
|
107
143
|
ul,
|
108
|
-
ol{
|
144
|
+
ol {
|
109
145
|
margin-bottom: 0;
|
110
146
|
}
|
111
147
|
}
|
@@ -117,18 +153,25 @@ ol {
|
|
117
153
|
padding-left: 0;
|
118
154
|
list-style: none;
|
119
155
|
}
|
156
|
+
|
120
157
|
// Inline turns list items into inline-block
|
121
158
|
.list-inline {
|
122
159
|
@extend .list-unstyled;
|
160
|
+
|
123
161
|
> li {
|
124
162
|
display: inline-block;
|
125
163
|
padding-left: 5px;
|
126
164
|
padding-right: 5px;
|
165
|
+
|
166
|
+
&:first-child {
|
167
|
+
padding-left: 0;
|
168
|
+
}
|
127
169
|
}
|
128
170
|
}
|
129
171
|
|
130
172
|
// Description Lists
|
131
173
|
dl {
|
174
|
+
margin-top: 0; // Remove browser default
|
132
175
|
margin-bottom: $line-height-computed;
|
133
176
|
}
|
134
177
|
dt,
|
@@ -168,12 +211,12 @@ dd {
|
|
168
211
|
|
169
212
|
// Abbreviations and acronyms
|
170
213
|
abbr[title],
|
171
|
-
//
|
214
|
+
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
172
215
|
abbr[data-original-title] {
|
173
216
|
cursor: help;
|
174
217
|
border-bottom: 1px dotted $abbr-border-color;
|
175
218
|
}
|
176
|
-
|
219
|
+
.initialism {
|
177
220
|
font-size: 90%;
|
178
221
|
text-transform: uppercase;
|
179
222
|
}
|
@@ -191,12 +234,13 @@ blockquote {
|
|
191
234
|
p:last-child {
|
192
235
|
margin-bottom: 0;
|
193
236
|
}
|
194
|
-
small
|
237
|
+
small,
|
238
|
+
.small {
|
195
239
|
display: block;
|
196
240
|
line-height: $line-height-base;
|
197
241
|
color: $blockquote-small-color;
|
198
242
|
&:before {
|
199
|
-
content: '\2014 \00A0'
|
243
|
+
content: '\2014 \00A0'; // EM DASH, NBSP
|
200
244
|
}
|
201
245
|
}
|
202
246
|
|
@@ -207,23 +251,23 @@ blockquote {
|
|
207
251
|
border-right: 5px solid $blockquote-border-color;
|
208
252
|
border-left: 0;
|
209
253
|
p,
|
210
|
-
small
|
254
|
+
small,
|
255
|
+
.small {
|
211
256
|
text-align: right;
|
212
257
|
}
|
213
|
-
small
|
258
|
+
small,
|
259
|
+
.small {
|
214
260
|
&:before {
|
215
261
|
content: '';
|
216
262
|
}
|
217
263
|
&:after {
|
218
|
-
content: '\00A0 \2014'
|
264
|
+
content: '\00A0 \2014'; // NBSP, EM DASH
|
219
265
|
}
|
220
266
|
}
|
221
267
|
}
|
222
268
|
}
|
223
269
|
|
224
270
|
// Quotes
|
225
|
-
q:before,
|
226
|
-
q:after,
|
227
271
|
blockquote:before,
|
228
272
|
blockquote:after {
|
229
273
|
content: "";
|
@@ -231,7 +275,6 @@ blockquote:after {
|
|
231
275
|
|
232
276
|
// Addresses
|
233
277
|
address {
|
234
|
-
display: block;
|
235
278
|
margin-bottom: $line-height-computed;
|
236
279
|
font-style: normal;
|
237
280
|
line-height: $line-height-base;
|
@@ -9,6 +9,9 @@
|
|
9
9
|
.clearfix {
|
10
10
|
@include clearfix();
|
11
11
|
}
|
12
|
+
.center-block {
|
13
|
+
@include center-block();
|
14
|
+
}
|
12
15
|
.pull-right {
|
13
16
|
float: right !important;
|
14
17
|
}
|
@@ -20,6 +23,7 @@
|
|
20
23
|
// Toggling content
|
21
24
|
// -------------------------
|
22
25
|
|
26
|
+
// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
|
23
27
|
.hide {
|
24
28
|
display: none !important;
|
25
29
|
}
|
@@ -30,7 +34,17 @@
|
|
30
34
|
visibility: hidden;
|
31
35
|
}
|
32
36
|
.text-hide {
|
33
|
-
@include hide
|
37
|
+
@include text-hide();
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Hide from screenreaders and browsers
|
42
|
+
//
|
43
|
+
// Credit: HTML5 Boilerplate
|
44
|
+
|
45
|
+
.hidden {
|
46
|
+
display: none !important;
|
47
|
+
visibility: hidden !important;
|
34
48
|
}
|
35
49
|
|
36
50
|
|
@@ -41,19 +41,28 @@ $link-hover-color: darken($link-color, 15%) !default;
|
|
41
41
|
|
42
42
|
$font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
|
43
43
|
$font-family-serif: Georgia, "Times New Roman", Times, serif !default;
|
44
|
-
$font-family-monospace:
|
44
|
+
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
|
45
45
|
$font-family-base: $font-family-sans-serif !default;
|
46
46
|
|
47
47
|
$font-size-base: 14px !default;
|
48
48
|
$font-size-large: ceil($font-size-base * 1.25) !default; // ~18px
|
49
49
|
$font-size-small: ceil($font-size-base * 0.85) !default; // ~12px
|
50
50
|
|
51
|
+
$font-size-h1: floor($font-size-base * 2.6) !default; // ~36px
|
52
|
+
$font-size-h2: floor($font-size-base * 2.15) !default; // ~30px
|
53
|
+
$font-size-h3: ceil($font-size-base * 1.7) !default; // ~24px
|
54
|
+
$font-size-h4: ceil($font-size-base * 1.25) !default; // ~18px
|
55
|
+
$font-size-h5: $font-size-base !default;
|
56
|
+
$font-size-h6: ceil($font-size-base * 0.85) !default; // ~12px
|
57
|
+
|
51
58
|
$line-height-base: 1.428571429 !default; // 20/14
|
52
59
|
$line-height-computed: floor($font-size-base * $line-height-base) !default; // ~20px
|
53
60
|
|
54
61
|
$headings-font-family: $font-family-base !default;
|
55
62
|
$headings-font-weight: 500 !default;
|
56
63
|
$headings-line-height: 1.1 !default;
|
64
|
+
$headings-color: inherit !default;
|
65
|
+
|
57
66
|
|
58
67
|
// Iconography
|
59
68
|
// -------------------------
|
@@ -75,6 +84,9 @@ $padding-large-horizontal: 16px !default;
|
|
75
84
|
$padding-small-vertical: 5px !default;
|
76
85
|
$padding-small-horizontal: 10px !default;
|
77
86
|
|
87
|
+
$padding-xs-vertical: 1px !default;
|
88
|
+
$padding-xs-horizontal: 5px !default;
|
89
|
+
|
78
90
|
$line-height-large: 1.33 !default;
|
79
91
|
$line-height-small: 1.5 !default;
|
80
92
|
|
@@ -82,6 +94,7 @@ $border-radius-base: 4px !default;
|
|
82
94
|
$border-radius-large: 6px !default;
|
83
95
|
$border-radius-small: 3px !default;
|
84
96
|
|
97
|
+
$component-active-color: #fff !default;
|
85
98
|
$component-active-bg: $brand-primary !default;
|
86
99
|
|
87
100
|
$caret-width-base: 4px !default;
|
@@ -147,7 +160,7 @@ $input-border-focus: #66afe9 !default;
|
|
147
160
|
$input-color-placeholder: $gray-light !default;
|
148
161
|
|
149
162
|
$input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
150
|
-
$input-height-large: (
|
163
|
+
$input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
|
151
164
|
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
|
152
165
|
|
153
166
|
$legend-color: $gray-dark !default;
|
@@ -165,19 +178,17 @@ $dropdown-border: rgba(0,0,0,.15) !default;
|
|
165
178
|
$dropdown-fallback-border: #ccc !default;
|
166
179
|
$dropdown-divider-bg: #e5e5e5 !default;
|
167
180
|
|
168
|
-
$dropdown-link-active-color: #fff !default;
|
169
|
-
$dropdown-link-active-bg: $component-active-bg !default;
|
170
|
-
|
171
181
|
$dropdown-link-color: $gray-dark !default;
|
172
|
-
$dropdown-link-hover-color:
|
173
|
-
$dropdown-link-hover-bg:
|
182
|
+
$dropdown-link-hover-color: darken($gray-dark, 5%) !default;
|
183
|
+
$dropdown-link-hover-bg: #f5f5f5 !default;
|
184
|
+
|
185
|
+
$dropdown-link-active-color: $component-active-color !default;
|
186
|
+
$dropdown-link-active-bg: $component-active-bg !default;
|
174
187
|
|
175
188
|
$dropdown-link-disabled-color: $gray-light !default;
|
176
189
|
|
177
190
|
$dropdown-header-color: $gray-light !default;
|
178
191
|
|
179
|
-
$dropdown-caret-color: #000 !default;
|
180
|
-
|
181
192
|
|
182
193
|
// COMPONENT VARIABLES
|
183
194
|
// --------------------------------------------------
|
@@ -200,25 +211,33 @@ $zindex-modal: 1050 !default;
|
|
200
211
|
// --------------------------------------------------
|
201
212
|
|
202
213
|
// Extra small screen / phone
|
214
|
+
// Note: Deprecated $screen-xs and $screen-phone as of v3.0.1
|
203
215
|
$screen-xs: 480px !default;
|
204
|
-
$screen-
|
216
|
+
$screen-xs-min: $screen-xs !default;
|
217
|
+
$screen-phone: $screen-xs-min !default;
|
205
218
|
|
206
219
|
// Small screen / tablet
|
220
|
+
// Note: Deprecated $screen-sm and $screen-tablet as of v3.0.1
|
207
221
|
$screen-sm: 768px !default;
|
208
|
-
$screen-
|
222
|
+
$screen-sm-min: $screen-sm !default;
|
223
|
+
$screen-tablet: $screen-sm-min !default;
|
209
224
|
|
210
225
|
// Medium screen / desktop
|
226
|
+
// Note: Deprecated $screen-md and $screen-desktop as of v3.0.1
|
211
227
|
$screen-md: 992px !default;
|
212
|
-
$screen-
|
228
|
+
$screen-md-min: $screen-md !default;
|
229
|
+
$screen-desktop: $screen-md-min !default;
|
213
230
|
|
214
231
|
// Large screen / wide desktop
|
232
|
+
// Note: Deprecated $screen-lg and $screen-lg-desktop as of v3.0.1
|
215
233
|
$screen-lg: 1200px !default;
|
216
|
-
$screen-lg-
|
234
|
+
$screen-lg-min: $screen-lg !default;
|
235
|
+
$screen-lg-desktop: $screen-lg-min !default;
|
217
236
|
|
218
237
|
// So media queries don't overlap when required, provide a maximum
|
219
|
-
$screen-xs-max: ($screen-sm - 1) !default;
|
220
|
-
$screen-sm-max: ($screen-md - 1) !default;
|
221
|
-
$screen-md-max: ($screen-lg - 1) !default;
|
238
|
+
$screen-xs-max: ($screen-sm-min - 1) !default;
|
239
|
+
$screen-sm-max: ($screen-md-min - 1) !default;
|
240
|
+
$screen-md-max: ($screen-lg-min - 1) !default;
|
222
241
|
|
223
242
|
|
224
243
|
// Grid system
|
@@ -228,8 +247,13 @@ $screen-md-max: ($screen-lg - 1) !default;
|
|
228
247
|
$grid-columns: 12 !default;
|
229
248
|
// Padding, to be divided by two and applied to the left and right of all columns
|
230
249
|
$grid-gutter-width: 30px !default;
|
231
|
-
|
232
|
-
|
250
|
+
|
251
|
+
// Navbar collapse
|
252
|
+
|
253
|
+
// Point at which the navbar becomes uncollapsed
|
254
|
+
$grid-float-breakpoint: $screen-sm-min !default;
|
255
|
+
// Point at which the navbar begins collapsing
|
256
|
+
$grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
|
233
257
|
|
234
258
|
|
235
259
|
// Navbar
|
@@ -238,13 +262,14 @@ $grid-float-breakpoint: $screen-tablet !default;
|
|
238
262
|
// Basics of a navbar
|
239
263
|
$navbar-height: 50px !default;
|
240
264
|
$navbar-margin-bottom: $line-height-computed !default;
|
241
|
-
$navbar-default-color: #777 !default;
|
242
|
-
$navbar-default-bg: #f8f8f8 !default;
|
243
|
-
$navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
|
244
265
|
$navbar-border-radius: $border-radius-base !default;
|
245
266
|
$navbar-padding-horizontal: floor($grid-gutter-width / 2) !default;
|
246
267
|
$navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
|
247
268
|
|
269
|
+
$navbar-default-color: #777 !default;
|
270
|
+
$navbar-default-bg: #f8f8f8 !default;
|
271
|
+
$navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
|
272
|
+
|
248
273
|
// Navbar links
|
249
274
|
$navbar-default-link-color: #777 !default;
|
250
275
|
$navbar-default-link-hover-color: #333 !default;
|
@@ -256,7 +281,7 @@ $navbar-default-link-disabled-bg: transparent !default;
|
|
256
281
|
|
257
282
|
// Navbar brand label
|
258
283
|
$navbar-default-brand-color: $navbar-default-link-color !default;
|
259
|
-
$navbar-default-brand-hover-color: darken($navbar-default-
|
284
|
+
$navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%) !default;
|
260
285
|
$navbar-default-brand-hover-bg: transparent !default;
|
261
286
|
|
262
287
|
// Navbar toggle
|
@@ -286,13 +311,6 @@ $navbar-inverse-brand-color: $navbar-inverse-link-color !default;
|
|
286
311
|
$navbar-inverse-brand-hover-color: #fff !default;
|
287
312
|
$navbar-inverse-brand-hover-bg: transparent !default;
|
288
313
|
|
289
|
-
// Inverted navbar search
|
290
|
-
// Normal navbar needs no special styles or vars
|
291
|
-
$navbar-inverse-search-bg: lighten($navbar-inverse-bg, 25%) !default;
|
292
|
-
$navbar-inverse-search-bg-focus: #fff !default;
|
293
|
-
$navbar-inverse-search-border: $navbar-inverse-bg !default;
|
294
|
-
$navbar-inverse-search-placeholder-color: #ccc !default;
|
295
|
-
|
296
314
|
// Inverted navbar toggle
|
297
315
|
$navbar-inverse-toggle-hover-bg: #333 !default;
|
298
316
|
$navbar-inverse-toggle-icon-bar-bg: #fff !default;
|
@@ -309,7 +327,6 @@ $nav-disabled-link-color: $gray-light !default;
|
|
309
327
|
$nav-disabled-link-hover-color: $gray-light !default;
|
310
328
|
|
311
329
|
$nav-open-link-hover-color: #fff !default;
|
312
|
-
$nav-open-caret-border-color: #fff !default;
|
313
330
|
|
314
331
|
// Tabs
|
315
332
|
$nav-tabs-border-color: #ddd !default;
|
@@ -324,8 +341,9 @@ $nav-tabs-justified-link-border-color: #ddd !default;
|
|
324
341
|
$nav-tabs-justified-active-link-border-color: $body-bg !default;
|
325
342
|
|
326
343
|
// Pills
|
344
|
+
$nav-pills-border-radius: $border-radius-base !default;
|
327
345
|
$nav-pills-active-link-hover-bg: $component-active-bg !default;
|
328
|
-
$nav-pills-active-link-hover-color:
|
346
|
+
$nav-pills-active-link-hover-color: $component-active-color !default;
|
329
347
|
|
330
348
|
|
331
349
|
// Pagination
|
@@ -355,29 +373,29 @@ $pager-disabled-color: $gray-light !default;
|
|
355
373
|
$jumbotron-padding: 30px !default;
|
356
374
|
$jumbotron-color: inherit !default;
|
357
375
|
$jumbotron-bg: $gray-lighter !default;
|
358
|
-
|
359
376
|
$jumbotron-heading-color: inherit !default;
|
377
|
+
$jumbotron-font-size: ceil($font-size-base * 1.5) !default;
|
360
378
|
|
361
379
|
|
362
380
|
// Form states and alerts
|
363
381
|
// -------------------------
|
364
382
|
|
365
|
-
$state-
|
366
|
-
$state-warning-bg: #fcf8e3 !default;
|
367
|
-
$state-warning-border: darken(adjust-hue($state-warning-bg, -10), 3%) !default;
|
368
|
-
|
369
|
-
$state-danger-text: #b94a48 !default;
|
370
|
-
$state-danger-bg: #f2dede !default;
|
371
|
-
$state-danger-border: darken(adjust-hue($state-danger-bg, -10), 3%) !default;
|
372
|
-
|
373
|
-
$state-success-text: #468847 !default;
|
383
|
+
$state-success-text: #3c763d !default;
|
374
384
|
$state-success-bg: #dff0d8 !default;
|
375
385
|
$state-success-border: darken(adjust-hue($state-success-bg, -10), 5%) !default;
|
376
386
|
|
377
|
-
$state-info-text: #
|
387
|
+
$state-info-text: #31708f !default;
|
378
388
|
$state-info-bg: #d9edf7 !default;
|
379
389
|
$state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default;
|
380
390
|
|
391
|
+
$state-warning-text: #8a6d3b !default;
|
392
|
+
$state-warning-bg: #fcf8e3 !default;
|
393
|
+
$state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default;
|
394
|
+
|
395
|
+
$state-danger-text: #a94442 !default;
|
396
|
+
$state-danger-bg: #f2dede !default;
|
397
|
+
$state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !default;
|
398
|
+
|
381
399
|
|
382
400
|
// Tooltips
|
383
401
|
// -------------------------
|
@@ -478,7 +496,7 @@ $list-group-border: #ddd !default;
|
|
478
496
|
$list-group-border-radius: $border-radius-base !default;
|
479
497
|
|
480
498
|
$list-group-hover-bg: #f5f5f5 !default;
|
481
|
-
$list-group-active-color:
|
499
|
+
$list-group-active-color: $component-active-color !default;
|
482
500
|
$list-group-active-bg: $component-active-bg !default;
|
483
501
|
$list-group-active-border: $list-group-active-bg !default;
|
484
502
|
|
@@ -553,6 +571,7 @@ $badge-border-radius: 10px !default;
|
|
553
571
|
$breadcrumb-bg: #f5f5f5 !default;
|
554
572
|
$breadcrumb-color: #ccc !default;
|
555
573
|
$breadcrumb-active-color: $gray-light !default;
|
574
|
+
$breadcrumb-separator: "/" !default;
|
556
575
|
|
557
576
|
|
558
577
|
// Carousel
|
@@ -573,8 +592,8 @@ $carousel-caption-color: #fff !default;
|
|
573
592
|
|
574
593
|
// Close
|
575
594
|
// ------------------------
|
576
|
-
$close-color: #000 !default;
|
577
595
|
$close-font-weight: bold !default;
|
596
|
+
$close-color: #000 !default;
|
578
597
|
$close-text-shadow: 0 1px 0 #fff !default;
|
579
598
|
|
580
599
|
|
@@ -611,10 +630,13 @@ $component-offset-horizontal: 180px !default;
|
|
611
630
|
// --------------------------------------------------
|
612
631
|
|
613
632
|
// Small screen / tablet
|
614
|
-
$container-tablet:
|
633
|
+
$container-tablet: ((720px + $grid-gutter-width)) !default;
|
634
|
+
$container-sm: $container-tablet !default;
|
615
635
|
|
616
636
|
// Medium screen / desktop
|
617
|
-
$container-desktop:
|
637
|
+
$container-desktop: ((940px + $grid-gutter-width)) !default;
|
638
|
+
$container-md: $container-desktop !default;
|
618
639
|
|
619
640
|
// Large screen / wide desktop
|
620
|
-
$container-
|
641
|
+
$container-large-desktop: ((1140px + $grid-gutter-width)) !default;
|
642
|
+
$container-lg: $container-large-desktop !default;
|
@@ -1,13 +1,3 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap v3.0.0
|
3
|
-
*
|
4
|
-
* Copyright 2013 Twitter, Inc
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
* Designed and built with all the love in the world by @mdo and @fat.
|
9
|
-
*/
|
10
|
-
|
11
1
|
// Core variables and mixins
|
12
2
|
@import "twitter/bootstrap/variables";
|
13
3
|
@import "twitter/bootstrap/mixins";
|
@@ -2,7 +2,15 @@ module Bootstrap
|
|
2
2
|
module Sass
|
3
3
|
module Rails
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
-
|
5
|
+
initializer :setup_bootstrap_sass_rails, group: :all do |app|
|
6
|
+
# Ten significant digits precision is required for calculations
|
7
|
+
# to work out in Bootstrap 3.0 - to match LESS/JS calculations
|
8
|
+
# bump the default precision to match IEEE-754 double precision
|
9
|
+
# floating point requirements
|
10
|
+
if ::Sass::Script::Number.precision < 10
|
11
|
+
::Sass::Script::Number.precision = 15
|
12
|
+
end
|
13
|
+
end
|
6
14
|
end
|
7
15
|
end
|
8
16
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
|
3
|
+
module Bootstrap
|
4
|
+
class CustomizeGenerator < Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../templates", __FILE__)
|
6
|
+
|
7
|
+
class_option :customize_variables, type: :boolean, default: true, desc: 'Customize variables to define colors, sizes and more inside your custom stylesheets'
|
8
|
+
class_option :css_components, type: :boolean, default: false, desc: 'Choose which SCSS files to compile into your custom build of Bootstrap'
|
9
|
+
class_option :js_components, type: :boolean, default: false, desc: 'Choose which JS files to compile into your custom build of Bootstrap'
|
10
|
+
|
11
|
+
# Copy all needed stylesheets in the asset directory of the application
|
12
|
+
def customize_default_variables
|
13
|
+
template "bootstrap-custom.css.scss", "app/assets/stylesheets/bootstrap-custom.css.scss"
|
14
|
+
end
|
15
|
+
|
16
|
+
def customize_css_components
|
17
|
+
if options.css_components?
|
18
|
+
append_file "app/assets/stylesheets/bootstrap-custom.css.scss" do
|
19
|
+
File.read File.expand_path("../../../../app/assets/stylesheets/twitter/bootstrap.css.scss", __FILE__)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def customize_js_components
|
25
|
+
if options.js_components?
|
26
|
+
template "bootstrap-custom.js", "app/assets/javascripts/bootstrap-custom.js"
|
27
|
+
append_file "app/assets/javascripts/bootstrap-custom.js" do
|
28
|
+
File.read File.expand_path("../../../../app/assets/javascripts/twitter/bootstrap.js", __FILE__)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def show_usage
|
34
|
+
readme "USAGE" if behavior == :invoke
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|