bootstrap-sass-rails 2.0.1.2 → 2.0.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.
- data/lib/bootstrap/sass/rails/version.rb +1 -1
- data/test/cases/usage_css_spec.rb +1 -0
- data/test/dummy/log/test.log +76 -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/_badges.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/_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.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/vendor/assets/javascripts/twitter/bootstrap/alert.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +4 -2
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +7 -3
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +4 -2
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +7 -7
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +2 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +2 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_badges.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +2 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +31 -8
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +17 -13
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +3 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +3 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +45 -28
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +76 -43
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +2 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +3 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +8 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +162 -158
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +12 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +76 -34
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +19 -9
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +6 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +16 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +72 -28
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +3 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +26 -17
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +21 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +98 -6
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +10 -0
- metadata +14 -11
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// -----------
|
|
3
3
|
|
|
4
4
|
// Fixed (940px)
|
|
5
|
-
@include
|
|
5
|
+
@include grid-core($gridColumnWidth, $gridGutterWidth);
|
|
6
6
|
|
|
7
7
|
// Fluid (940px)
|
|
8
|
-
@include
|
|
8
|
+
@include grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth);
|
|
@@ -4,17 +4,19 @@
|
|
|
4
4
|
.hero-unit {
|
|
5
5
|
padding: 60px;
|
|
6
6
|
margin-bottom: 30px;
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: $heroUnitBackground;
|
|
8
8
|
@include border-radius(6px);
|
|
9
9
|
h1 {
|
|
10
10
|
margin-bottom: 0;
|
|
11
11
|
font-size: 60px;
|
|
12
12
|
line-height: 1;
|
|
13
|
+
color: $heroUnitHeadingColor;
|
|
13
14
|
letter-spacing: -1px;
|
|
14
15
|
}
|
|
15
16
|
p {
|
|
16
17
|
font-size: 18px;
|
|
17
18
|
font-weight: 200;
|
|
18
19
|
line-height: $baseLineHeight * 1.5;
|
|
20
|
+
color: $heroUnitLeadColor;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
// Base
|
|
5
5
|
.label {
|
|
6
|
-
padding:
|
|
7
|
-
font-size: $baseFontSize * .
|
|
6
|
+
padding: 11x 4px 3px;
|
|
7
|
+
font-size: $baseFontSize * .846;
|
|
8
8
|
font-weight: bold;
|
|
9
|
+
line-height: 13px; // ensure proper line-height if floated
|
|
9
10
|
color: $white;
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
white-space: nowrap;
|
|
10
13
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
11
14
|
background-color: $grayLight;
|
|
12
15
|
@include border-radius(3px);
|
|
@@ -30,3 +33,6 @@
|
|
|
30
33
|
|
|
31
34
|
.label-info { background-color: $infoText; }
|
|
32
35
|
.label-info:hover { background-color: darken($infoText, 10%); }
|
|
36
|
+
|
|
37
|
+
.label-inverse { background-color: $grayDark; }
|
|
38
|
+
.label-inverse:hover { background-color: darken($grayDark, 10%); }
|
|
@@ -98,6 +98,14 @@
|
|
|
98
98
|
white-space: nowrap;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
// New image replacement
|
|
102
|
+
// -------------------------
|
|
103
|
+
// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
|
|
104
|
+
@mixin hide-text {
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
text-indent: 100%;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
}
|
|
101
109
|
|
|
102
110
|
|
|
103
111
|
// FONTS
|
|
@@ -132,154 +140,19 @@
|
|
|
132
140
|
|
|
133
141
|
|
|
134
142
|
|
|
135
|
-
//
|
|
143
|
+
// FORMS
|
|
136
144
|
// --------------------------------------------------
|
|
137
145
|
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
width:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
@include
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// Le grid system
|
|
148
|
-
// -------------------------
|
|
149
|
-
// Setup the mixins to be used
|
|
150
|
-
@mixin gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
|
151
|
-
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
|
152
|
-
}
|
|
153
|
-
@mixin gridSystem-offset($gridColumnWidth, $gridGutterWidth, $columns) {
|
|
154
|
-
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)) + ($gridGutterWidth * 2);
|
|
155
|
-
}
|
|
156
|
-
@mixin gridSystem-gridColumn($gridGutterWidth) {
|
|
157
|
-
float: left;
|
|
158
|
-
margin-left: $gridGutterWidth;
|
|
159
|
-
}
|
|
160
|
-
// Take these values and mixins, and make 'em do their thang
|
|
161
|
-
@mixin gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
|
162
|
-
// Row surrounds the columns
|
|
163
|
-
.row {
|
|
164
|
-
margin-left: $gridGutterWidth * -1;
|
|
165
|
-
@include clearfix();
|
|
166
|
-
}
|
|
167
|
-
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
|
168
|
-
[class*="span"] {
|
|
169
|
-
@include gridSystem-gridColumn($gridGutterWidth);
|
|
170
|
-
}
|
|
171
|
-
// Default columns
|
|
172
|
-
.span1 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1); }
|
|
173
|
-
.span2 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2); }
|
|
174
|
-
.span3 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3); }
|
|
175
|
-
.span4 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4); }
|
|
176
|
-
.span5 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5); }
|
|
177
|
-
.span6 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6); }
|
|
178
|
-
.span7 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7); }
|
|
179
|
-
.span8 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8); }
|
|
180
|
-
.span9 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9); }
|
|
181
|
-
.span10 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10); }
|
|
182
|
-
.span11 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11); }
|
|
183
|
-
.span12,
|
|
184
|
-
.container { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12); }
|
|
185
|
-
// Offset column options
|
|
186
|
-
.offset1 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 1); }
|
|
187
|
-
.offset2 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 2); }
|
|
188
|
-
.offset3 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 3); }
|
|
189
|
-
.offset4 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 4); }
|
|
190
|
-
.offset5 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 5); }
|
|
191
|
-
.offset6 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 6); }
|
|
192
|
-
.offset7 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 7); }
|
|
193
|
-
.offset8 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 8); }
|
|
194
|
-
.offset9 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 9); }
|
|
195
|
-
.offset10 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 10); }
|
|
196
|
-
.offset11 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 11); }
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// Fluid grid system
|
|
200
|
-
// -------------------------
|
|
201
|
-
// Setup the mixins to be used
|
|
202
|
-
@mixin fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns) {
|
|
203
|
-
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
|
204
|
-
}
|
|
205
|
-
@mixin fluidGridSystem-gridColumn($fluidGridGutterWidth) {
|
|
206
|
-
float: left;
|
|
207
|
-
margin-left: $fluidGridGutterWidth;
|
|
208
|
-
}
|
|
209
|
-
// Take these values and mixins, and make 'em do their thang
|
|
210
|
-
@mixin fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
|
211
|
-
// Row surrounds the columns
|
|
212
|
-
.row-fluid {
|
|
213
|
-
width: 100%;
|
|
214
|
-
@include clearfix();
|
|
215
|
-
|
|
216
|
-
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
|
217
|
-
> [class*="span"] {
|
|
218
|
-
@include fluidGridSystem-gridColumn($fluidGridGutterWidth);
|
|
219
|
-
}
|
|
220
|
-
> [class*="span"]:first-child {
|
|
221
|
-
margin-left: 0;
|
|
222
|
-
}
|
|
223
|
-
// Default columns
|
|
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); }
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
// Input grid system
|
|
242
|
-
// -------------------------
|
|
243
|
-
@mixin inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
|
244
|
-
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 10;
|
|
245
|
-
}
|
|
246
|
-
@mixin inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
|
247
|
-
input,
|
|
248
|
-
textarea,
|
|
249
|
-
.uneditable-input {
|
|
250
|
-
&.span1 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1); }
|
|
251
|
-
&.span2 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2); }
|
|
252
|
-
&.span3 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3); }
|
|
253
|
-
&.span4 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4); }
|
|
254
|
-
&.span5 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5); }
|
|
255
|
-
&.span6 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6); }
|
|
256
|
-
&.span7 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7); }
|
|
257
|
-
&.span8 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8); }
|
|
258
|
-
&.span9 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9); }
|
|
259
|
-
&.span10 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10); }
|
|
260
|
-
&.span11 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11); }
|
|
261
|
-
&.span12 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12); }
|
|
262
|
-
}
|
|
263
|
-
}
|
|
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));
|
|
146
|
+
// Block level inputs
|
|
147
|
+
@mixin input-block-level {
|
|
148
|
+
display: block;
|
|
149
|
+
width: 100%;
|
|
150
|
+
min-height: 28px; /* Make inputs at least the height of their button counterpart */
|
|
151
|
+
/* Makes inputs behave like true block-level elements */
|
|
152
|
+
@include box-sizing(border-box)
|
|
276
153
|
}
|
|
277
154
|
|
|
278
155
|
|
|
279
|
-
|
|
280
|
-
// Form field states (used in forms.scss)
|
|
281
|
-
// --------------------------------------------------
|
|
282
|
-
|
|
283
156
|
// Mixin for form field states
|
|
284
157
|
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
|
285
158
|
// Set the text color
|
|
@@ -394,6 +267,7 @@
|
|
|
394
267
|
@mixin box-sizing($boxmodel) {
|
|
395
268
|
-webkit-box-sizing: $boxmodel;
|
|
396
269
|
-moz-box-sizing: $boxmodel;
|
|
270
|
+
-ms-box-sizing: $boxmodel;
|
|
397
271
|
box-sizing: $boxmodel;
|
|
398
272
|
}
|
|
399
273
|
|
|
@@ -498,8 +372,8 @@
|
|
|
498
372
|
background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor);
|
|
499
373
|
background-image: -moz-radial-gradient(circle, $innerColor, $outerColor);
|
|
500
374
|
background-image: -ms-radial-gradient(circle, $innerColor, $outerColor);
|
|
375
|
+
background-image: -o-radial-gradient(circle, $innerColor, $outerColor);
|
|
501
376
|
background-repeat: no-repeat;
|
|
502
|
-
// Opera cannot do radial gradients yet
|
|
503
377
|
}
|
|
504
378
|
@mixin gradient-striped($color, $angle: -45deg) {
|
|
505
379
|
background-color: $color;
|
|
@@ -516,8 +390,30 @@
|
|
|
516
390
|
}
|
|
517
391
|
|
|
518
392
|
|
|
519
|
-
|
|
520
|
-
//
|
|
393
|
+
|
|
394
|
+
// COMPONENT MIXINS
|
|
395
|
+
// --------------------------------------------------
|
|
396
|
+
|
|
397
|
+
// Horizontal dividers
|
|
398
|
+
// -------------------------
|
|
399
|
+
// Dividers (basically an hr) within dropdowns and nav lists
|
|
400
|
+
@mixin nav-divider() {
|
|
401
|
+
height: 1px;
|
|
402
|
+
margin: (($baseLineHeight / 2) - 1) 1px; // 8px 1px
|
|
403
|
+
overflow: hidden;
|
|
404
|
+
background-color: #e5e5e5;
|
|
405
|
+
border-bottom: 1px solid $white;
|
|
406
|
+
|
|
407
|
+
// IE7 needs a set width since we gave a height. Restricting just
|
|
408
|
+
// to IE7 to keep the 1px left/right space in other browsers.
|
|
409
|
+
// It is unclear where IE is getting the extra space that we need
|
|
410
|
+
// to negative-margin away, but so it goes.
|
|
411
|
+
*width: 100%;
|
|
412
|
+
*margin: -5px 0 5px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// Button backgrounds
|
|
416
|
+
// ------------------
|
|
521
417
|
@mixin buttonBackground($startColor, $endColor) {
|
|
522
418
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
|
523
419
|
@include gradientBar($startColor, $endColor);
|
|
@@ -535,42 +431,150 @@
|
|
|
535
431
|
}
|
|
536
432
|
}
|
|
537
433
|
|
|
434
|
+
// Navbar vertical align
|
|
435
|
+
// -------------------------
|
|
436
|
+
// Vertically center elements in the navbar.
|
|
437
|
+
// Example: an element has a height of 30px, so write out `@include navbarVerticalAlign(30px);` to calculate the appropriate top margin.
|
|
438
|
+
@mixin navbarVerticalAlign($elementHeight) {
|
|
439
|
+
margin-top: ($navbarHeight - $elementHeight) / 2;
|
|
440
|
+
}
|
|
538
441
|
|
|
539
|
-
//
|
|
540
|
-
// --------------------------------------------------
|
|
541
|
-
|
|
542
|
-
// POPOVER ARROWS
|
|
442
|
+
// Popover arrows
|
|
543
443
|
// -------------------------
|
|
544
444
|
// For tipsies and popovers
|
|
545
|
-
@mixin popoverArrow-top($arrowWidth: 5px) {
|
|
445
|
+
@mixin popoverArrow-top($arrowWidth: 5px, $color: $black) {
|
|
546
446
|
bottom: 0;
|
|
547
447
|
left: 50%;
|
|
548
448
|
margin-left: -$arrowWidth;
|
|
549
449
|
border-left: $arrowWidth solid transparent;
|
|
550
450
|
border-right: $arrowWidth solid transparent;
|
|
551
|
-
border-top: $arrowWidth solid $
|
|
451
|
+
border-top: $arrowWidth solid $color;
|
|
552
452
|
}
|
|
553
|
-
@mixin popoverArrow-left($arrowWidth: 5px) {
|
|
453
|
+
@mixin popoverArrow-left($arrowWidth: 5px, $color: $black) {
|
|
554
454
|
top: 50%;
|
|
555
455
|
right: 0;
|
|
556
456
|
margin-top: -$arrowWidth;
|
|
557
457
|
border-top: $arrowWidth solid transparent;
|
|
558
458
|
border-bottom: $arrowWidth solid transparent;
|
|
559
|
-
border-left: $arrowWidth solid $
|
|
459
|
+
border-left: $arrowWidth solid $color;
|
|
560
460
|
}
|
|
561
|
-
@mixin popoverArrow-bottom($arrowWidth: 5px) {
|
|
461
|
+
@mixin popoverArrow-bottom($arrowWidth: 5px, $color: $black) {
|
|
562
462
|
top: 0;
|
|
563
463
|
left: 50%;
|
|
564
464
|
margin-left: -$arrowWidth;
|
|
565
465
|
border-left: $arrowWidth solid transparent;
|
|
566
466
|
border-right: $arrowWidth solid transparent;
|
|
567
|
-
border-bottom: $arrowWidth solid $
|
|
467
|
+
border-bottom: $arrowWidth solid $color;
|
|
568
468
|
}
|
|
569
|
-
@mixin popoverArrow-right($arrowWidth: 5px) {
|
|
469
|
+
@mixin popoverArrow-right($arrowWidth: 5px, $color: $black) {
|
|
570
470
|
top: 50%;
|
|
571
471
|
left: 0;
|
|
572
472
|
margin-top: -$arrowWidth;
|
|
573
473
|
border-top: $arrowWidth solid transparent;
|
|
574
474
|
border-bottom: $arrowWidth solid transparent;
|
|
575
|
-
border-right: $arrowWidth solid $
|
|
475
|
+
border-right: $arrowWidth solid $color;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// Grid System
|
|
479
|
+
// -----------
|
|
480
|
+
|
|
481
|
+
// Centered container element
|
|
482
|
+
@mixin container-fixed() {
|
|
483
|
+
margin-left: auto;
|
|
484
|
+
margin-right: auto;
|
|
485
|
+
@include clearfix();
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// Table columns
|
|
489
|
+
@mixin tableColumns($columnSpan: 1) {
|
|
490
|
+
float: none; // undo default grid column styles
|
|
491
|
+
width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
|
|
492
|
+
margin-left: 0; // undo default grid column styles
|
|
493
|
+
}
|
|
494
|
+
// TODO: MOJ - Port this
|
|
495
|
+
// Make a Grid
|
|
496
|
+
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
|
497
|
+
@mixin makeRow() {
|
|
498
|
+
margin-left: $gridGutterWidth * -1;
|
|
499
|
+
@include clearfix();
|
|
500
|
+
}
|
|
501
|
+
@mixin makeColumn($columns: 1) {
|
|
502
|
+
float: left;
|
|
503
|
+
margin-left: $gridGutterWidth;
|
|
504
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// The Grid
|
|
508
|
+
@mixin grid-core-offset($columns) {
|
|
509
|
+
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)) + ($gridGutterWidth * 2);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@mixin grid-core-span($columns) {
|
|
513
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@mixin grid-core($gridColumnWidth, $gridGutterWidth) {
|
|
517
|
+
.row {
|
|
518
|
+
margin-left: $gridGutterWidth * -1;
|
|
519
|
+
@include clearfix();
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
[class*="span"] {
|
|
523
|
+
float: left;
|
|
524
|
+
margin-left: $gridGutterWidth;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
// Set the container width, and override it for fixed navbars in media queries
|
|
528
|
+
.container,
|
|
529
|
+
.navbar-fixed-top .container,
|
|
530
|
+
.navbar-fixed-bottom .container { @include grid-core-span($gridColumns); }
|
|
531
|
+
|
|
532
|
+
// generate .spanX and .offsetX
|
|
533
|
+
@for $index from 1 through $gridColumns {
|
|
534
|
+
.span#{$index} { @include grid-core-span($index) }
|
|
535
|
+
.offset#{$index} { @include grid-core-offset($index) }
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
@mixin grid-fluid-span($columns) {
|
|
540
|
+
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@mixin grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth) {
|
|
544
|
+
.row-fluid {
|
|
545
|
+
width: 100%;
|
|
546
|
+
@include clearfix();
|
|
547
|
+
> [class*="span"] {
|
|
548
|
+
float: left;
|
|
549
|
+
margin-left: $fluidGridGutterWidth;
|
|
550
|
+
}
|
|
551
|
+
> [class*="span"]:first-child {
|
|
552
|
+
margin-left: 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
// generate .spanX
|
|
556
|
+
@for $index from 1 through $gridColumns {
|
|
557
|
+
> .span#{$index} { @include grid-fluid-span($index); }
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
@mixin grid-input-span($columns) {
|
|
563
|
+
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 10;
|
|
564
|
+
}
|
|
565
|
+
@mixin grid-input($gridColumnWidth, $gridGutterWidth) {
|
|
566
|
+
input,
|
|
567
|
+
textarea,
|
|
568
|
+
.uneditable-input {
|
|
569
|
+
margin-left: 0; // override margin-left from core grid system
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// generate .spanX
|
|
573
|
+
@for $index from 1 through $gridColumns {
|
|
574
|
+
input.span#{$index},
|
|
575
|
+
textarea.span#{$index},
|
|
576
|
+
.uneditable-input.span#{$index} {
|
|
577
|
+
@include grid-input-span($index);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
576
580
|
}
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
top: 50%;
|
|
34
34
|
left: 50%;
|
|
35
35
|
z-index: $zindexModal;
|
|
36
|
-
max-height: 500px;
|
|
37
36
|
overflow: auto;
|
|
38
37
|
width: 560px;
|
|
39
38
|
margin: -250px 0 0 -280px;
|
|
@@ -59,10 +58,12 @@
|
|
|
59
58
|
|
|
60
59
|
// Body (where all modal content resises)
|
|
61
60
|
.modal-body {
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
max-height: 400px;
|
|
62
63
|
padding: 15px;
|
|
63
64
|
}
|
|
64
65
|
// Remove bottom margin if need be
|
|
65
|
-
.modal-
|
|
66
|
+
.modal-form {
|
|
66
67
|
margin-bottom: 0;
|
|
67
68
|
}
|
|
68
69
|
|
|
@@ -70,14 +71,20 @@
|
|
|
70
71
|
.modal-footer {
|
|
71
72
|
padding: 14px 15px 15px;
|
|
72
73
|
margin-bottom: 0;
|
|
74
|
+
text-align: right;
|
|
73
75
|
background-color: #f5f5f5;
|
|
74
76
|
border-top: 1px solid #ddd;
|
|
75
77
|
@include border-radius(0 0 6px 6px);
|
|
76
78
|
@include box-shadow(inset 0 1px 0 $white);
|
|
77
|
-
@include clearfix();
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
|
80
|
+
|
|
81
|
+
// Properly space out buttons
|
|
82
|
+
.btn + .btn {
|
|
80
83
|
margin-left: 5px;
|
|
81
84
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
|
82
85
|
}
|
|
86
|
+
// but override tht for button groups
|
|
87
|
+
.btn-group .btn + .btn {
|
|
88
|
+
margin-left: -1px;
|
|
89
|
+
}
|
|
83
90
|
}
|