sass-rails-bootstrap 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +13 -0
- data/README.md +99 -0
- data/Rakefile +38 -0
- data/lib/sass-rails-bootstrap/engine.rb +4 -0
- data/lib/sass-rails-bootstrap/version.rb +3 -0
- data/lib/sass-rails-bootstrap.rb +5 -0
- data/lib/tasks/sass-rails-bootstrap_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +56 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/sass-rails-bootstrap_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +161 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +138 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +92 -0
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +210 -0
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +95 -0
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +125 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +271 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/stylesheets/twitter/_bootstrap.scss +66 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.sass +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_badges.sass +44 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.sass +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +155 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +161 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.sass +105 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +130 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +492 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.sass +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.sass +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.sass +45 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +13 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +517 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.sass +87 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +300 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +332 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.sass +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.sass +45 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.sass +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +105 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +115 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.sass +333 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.sass +25 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +273 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +158 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +34 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.sass +43 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +209 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.sass +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +199 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.sass +23 -0
- metadata +183 -0
@@ -0,0 +1,492 @@
|
|
1
|
+
// Base styles for various input types, form layouts, and states
|
2
|
+
// -------------------------------------------------------------
|
3
|
+
|
4
|
+
|
5
|
+
// GENERAL STYLES
|
6
|
+
// --------------
|
7
|
+
|
8
|
+
// Make all forms have space below them
|
9
|
+
form
|
10
|
+
margin: 0 0 $baseLineHeight
|
11
|
+
|
12
|
+
fieldset
|
13
|
+
padding: 0
|
14
|
+
margin: 0
|
15
|
+
border: 0
|
16
|
+
|
17
|
+
// Groups of fields with labels on top (legends)
|
18
|
+
legend
|
19
|
+
display: block
|
20
|
+
width: 100%
|
21
|
+
padding: 0
|
22
|
+
margin-bottom: $baseLineHeight * 1.5
|
23
|
+
font-size: $baseFontSize * 1.5
|
24
|
+
line-height: $baseLineHeight * 2
|
25
|
+
color: $grayDark
|
26
|
+
border: 0
|
27
|
+
border-bottom: 1px solid #eee
|
28
|
+
// Small
|
29
|
+
small
|
30
|
+
font-size: $baseLineHeight * 0.75
|
31
|
+
color: $grayLight
|
32
|
+
|
33
|
+
// Set font for forms
|
34
|
+
label,
|
35
|
+
input,
|
36
|
+
button,
|
37
|
+
select,
|
38
|
+
textarea
|
39
|
+
+font-shorthand($baseFontSize, normal, $baseLineHeight) // Set size, weight, line-height here
|
40
|
+
|
41
|
+
input,
|
42
|
+
button,
|
43
|
+
select,
|
44
|
+
text-area
|
45
|
+
font-family: $baseFontFamily // And only set font-family here for those that need it (note the missing label element)
|
46
|
+
|
47
|
+
// Identify controls by their labels
|
48
|
+
label
|
49
|
+
display: block
|
50
|
+
margin-bottom: 5px
|
51
|
+
color: $grayDark
|
52
|
+
|
53
|
+
// Inputs, Textareas, Selects
|
54
|
+
input,
|
55
|
+
textarea,
|
56
|
+
select,
|
57
|
+
.uneditable-input
|
58
|
+
display: inline-block
|
59
|
+
width: 210px
|
60
|
+
height: $baseLineHeight
|
61
|
+
padding: 4px
|
62
|
+
margin-bottom: 9px
|
63
|
+
font-size: $baseFontSize
|
64
|
+
line-height: $baseLineHeight
|
65
|
+
color: $gray
|
66
|
+
border: 1px solid $inputBorder
|
67
|
+
+border-radius(3px)
|
68
|
+
|
69
|
+
.uneditable-textarea
|
70
|
+
width: auto
|
71
|
+
height: auto
|
72
|
+
|
73
|
+
// Inputs within a label
|
74
|
+
label input,
|
75
|
+
label textarea,
|
76
|
+
label select
|
77
|
+
display: block
|
78
|
+
|
79
|
+
// Mini reset for unique input types
|
80
|
+
input[type="image"],
|
81
|
+
input[type="checkbox"],
|
82
|
+
input[type="radio"]
|
83
|
+
width: auto
|
84
|
+
height: auto
|
85
|
+
padding: 0
|
86
|
+
margin: 3px 0
|
87
|
+
*margin-top: 0 // IE7
|
88
|
+
line-height: normal
|
89
|
+
cursor: pointer
|
90
|
+
+border-radius(0)
|
91
|
+
border: 0 \9 // IE9 and down
|
92
|
+
|
93
|
+
input[type="image"]
|
94
|
+
border: 0
|
95
|
+
|
96
|
+
// Reset the file input to browser defaults
|
97
|
+
input[type="file"]
|
98
|
+
padding: initial
|
99
|
+
line-height: initial
|
100
|
+
border: initial
|
101
|
+
background-color: $inputBackground
|
102
|
+
background-color: initial
|
103
|
+
+box-shadow(none)
|
104
|
+
|
105
|
+
// Help out input buttons
|
106
|
+
input[type="button"],
|
107
|
+
input[type="reset"],
|
108
|
+
input[type="submit"]
|
109
|
+
width: auto
|
110
|
+
height: auto
|
111
|
+
|
112
|
+
// Set the height of select and file controls to match text inputs
|
113
|
+
select,
|
114
|
+
input[type="file"]
|
115
|
+
height: 28px /* In IE7, the height of the select element cannot be changed by height, only font-size */
|
116
|
+
*margin-top: 4px /* For IE7, add top margin to align select with labels */
|
117
|
+
line-height: 28px
|
118
|
+
|
119
|
+
// Reset line-height for IE
|
120
|
+
input[type="file"]
|
121
|
+
line-height: 18px \9
|
122
|
+
|
123
|
+
// Chrome on Linux and Mobile Safari need background-color
|
124
|
+
select
|
125
|
+
width: 220px // default input width + 10px of padding that doesn't get applied
|
126
|
+
background-color: $inputBackground
|
127
|
+
|
128
|
+
// Make multiple select elements height not fixed
|
129
|
+
select[multiple],
|
130
|
+
select[size]
|
131
|
+
height: auto
|
132
|
+
|
133
|
+
// Remove shadow from image inputs
|
134
|
+
input[type="image"]
|
135
|
+
+box-shadow(none)
|
136
|
+
|
137
|
+
// Make textarea height behave
|
138
|
+
textarea
|
139
|
+
height: auto
|
140
|
+
|
141
|
+
// Hidden inputs
|
142
|
+
input[type="hidden"]
|
143
|
+
display: none
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
// CHECKBOXES & RADIOS
|
148
|
+
// -------------------
|
149
|
+
|
150
|
+
// Indent the labels to position radios/checkboxes as hanging
|
151
|
+
.radio,
|
152
|
+
.checkbox
|
153
|
+
padding-left: 18px
|
154
|
+
|
155
|
+
.radio input[type="radio"],
|
156
|
+
.checkbox input[type="checkbox"]
|
157
|
+
float: left
|
158
|
+
margin-left: -18px
|
159
|
+
|
160
|
+
// Move the options list down to align with labels
|
161
|
+
.controls > .radio:first-child,
|
162
|
+
.controls > .checkbox:first-child
|
163
|
+
padding-top: 5px // has to be padding because margin collaspes
|
164
|
+
|
165
|
+
// Radios and checkboxes on same line
|
166
|
+
.radio.inline,
|
167
|
+
.checkbox.inline
|
168
|
+
display: inline-block
|
169
|
+
padding-top: 5px
|
170
|
+
margin-bottom: 0
|
171
|
+
vertical-align: middle
|
172
|
+
|
173
|
+
.radio.inline + .radio.inline,
|
174
|
+
.checkbox.inline + .checkbox.inline
|
175
|
+
margin-left: 10px // space out consecutive inline controls
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
// FOCUS STATE
|
180
|
+
// -----------
|
181
|
+
|
182
|
+
input,
|
183
|
+
textarea
|
184
|
+
+box-shadow(inset 0 1px 1px rgba(0,0,0,.075))
|
185
|
+
$transition: border linear .2s, box-shadow linear .2s
|
186
|
+
+transition($transition)
|
187
|
+
|
188
|
+
input:focus,
|
189
|
+
textarea:focus
|
190
|
+
border-color: rgba(82,168,236,.8)
|
191
|
+
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)
|
192
|
+
+box-shadow($shadow)
|
193
|
+
outline: 0
|
194
|
+
outline: thin dotted \9 /* IE6-9 */
|
195
|
+
|
196
|
+
input[type="file"]:focus,
|
197
|
+
input[type="radio"]:focus,
|
198
|
+
input[type="checkbox"]:focus,
|
199
|
+
select:focus
|
200
|
+
+box-shadow(none) // override for file inputs
|
201
|
+
+tab-focus
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
// INPUT SIZES
|
206
|
+
// -----------
|
207
|
+
|
208
|
+
// General classes for quick sizes
|
209
|
+
.input-mini
|
210
|
+
width: 60px
|
211
|
+
.input-small
|
212
|
+
width: 90px
|
213
|
+
.input-medium
|
214
|
+
width: 150px
|
215
|
+
.input-large
|
216
|
+
width: 210px
|
217
|
+
.input-xlarge
|
218
|
+
width: 270px
|
219
|
+
.input-xxlarge
|
220
|
+
width: 530px
|
221
|
+
|
222
|
+
// Grid style input sizes
|
223
|
+
input[class*="span"],
|
224
|
+
select[class*="span"],
|
225
|
+
textarea[class*="span"],
|
226
|
+
.uneditable-input
|
227
|
+
float: none
|
228
|
+
margin-left: 0
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
// GRID SIZING FOR INPUTS
|
233
|
+
// ----------------------
|
234
|
+
|
235
|
+
+input-grid-generate($gridColumnWidth, $gridGutterWidth)
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
// DISABLED STATE
|
240
|
+
// --------------
|
241
|
+
|
242
|
+
// Disabled and read-only inputs
|
243
|
+
input[disabled],
|
244
|
+
select[disabled],
|
245
|
+
textarea[disabled],
|
246
|
+
input[readonly],
|
247
|
+
select[readonly],
|
248
|
+
textarea[readonly]
|
249
|
+
background-color: $inputDisabledBackground
|
250
|
+
border-color: #ddd
|
251
|
+
cursor: not-allowed
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
// FORM FIELD FEEDBACK STATES
|
256
|
+
// --------------------------
|
257
|
+
|
258
|
+
.control-group.warning
|
259
|
+
+form-field-state($warningText, $warningText, $warningBackground)
|
260
|
+
.control-group.error
|
261
|
+
+form-field-state($errorText, $errorText, $errorBackground)
|
262
|
+
.control-group.success
|
263
|
+
+form-field-state($successText, $successText, $successBackground)
|
264
|
+
|
265
|
+
// HTML5 invalid states
|
266
|
+
// Shares styles with the .control-group.error above
|
267
|
+
input:focus:required:invalid,
|
268
|
+
textarea:focus:required:invalid,
|
269
|
+
select:focus:required:invalid
|
270
|
+
color: #b94a48
|
271
|
+
border-color: #ee5f5b
|
272
|
+
&:focus
|
273
|
+
border-color: darken(#ee5f5b, 10%)
|
274
|
+
+box-shadow(0 0 6px lighten(#ee5f5b, 20%))
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
// FORM ACTIONS
|
279
|
+
// ------------
|
280
|
+
|
281
|
+
.form-actions
|
282
|
+
padding: ($baseLineHeight - 1) 20px $baseLineHeight
|
283
|
+
margin-top: $baseLineHeight
|
284
|
+
margin-bottom: $baseLineHeight
|
285
|
+
background-color: $grayLighter
|
286
|
+
border-top: 1px solid #ddd
|
287
|
+
+clearfix
|
288
|
+
|
289
|
+
// For text that needs to appear as an input but should not be an input
|
290
|
+
.uneditable-input
|
291
|
+
display: block
|
292
|
+
background-color: $inputBackground
|
293
|
+
border-color: #eee
|
294
|
+
+box-shadow(inset 0 1px 2px rgba(0,0,0,.025))
|
295
|
+
cursor: not-allowed
|
296
|
+
|
297
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
298
|
+
+placeholder($grayLight)
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
// HELP TEXT
|
303
|
+
// ---------
|
304
|
+
|
305
|
+
.help-block,
|
306
|
+
.help-inline
|
307
|
+
color: $gray // lighten the text some for contrast
|
308
|
+
|
309
|
+
|
310
|
+
.help-block
|
311
|
+
display: block // account for any element using help-block
|
312
|
+
margin-bottom: $baseLineHeight / 2
|
313
|
+
|
314
|
+
.help-inline
|
315
|
+
display: inline-block
|
316
|
+
+ie7-inline-block
|
317
|
+
vertical-align: middle
|
318
|
+
padding-left: 5px
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
// INPUT GROUPS
|
323
|
+
// ------------
|
324
|
+
|
325
|
+
// Allow us to put symbols and text within the input field for a cleaner look
|
326
|
+
.input-prepend,
|
327
|
+
.input-append
|
328
|
+
margin-bottom: 5px
|
329
|
+
input,
|
330
|
+
select,
|
331
|
+
.uneditable-input
|
332
|
+
*margin-left: 0
|
333
|
+
+border-radius(0 3px 3px 0)
|
334
|
+
&:focus
|
335
|
+
position: relative
|
336
|
+
z-index: 2
|
337
|
+
.uneditable-input
|
338
|
+
border-left-color: #ccc
|
339
|
+
.add-on
|
340
|
+
display: inline-block
|
341
|
+
width: auto
|
342
|
+
min-width: 16px
|
343
|
+
height: $baseLineHeight
|
344
|
+
padding: 4px 5px
|
345
|
+
font-weight: normal
|
346
|
+
line-height: $baseLineHeight
|
347
|
+
text-align: center
|
348
|
+
text-shadow: 0 1px 0 $white
|
349
|
+
vertical-align: middle
|
350
|
+
background-color: $grayLighter
|
351
|
+
border: 1px solid #ccc
|
352
|
+
.add-on,
|
353
|
+
.btn
|
354
|
+
+border-radius(3px 0 0 3px)
|
355
|
+
.active
|
356
|
+
background-color: lighten($green, 30)
|
357
|
+
border-color: $green
|
358
|
+
|
359
|
+
.input-prepend
|
360
|
+
.add-on,
|
361
|
+
.btn
|
362
|
+
margin-right: -1px
|
363
|
+
|
364
|
+
.input-append
|
365
|
+
input,
|
366
|
+
select,
|
367
|
+
.uneditable-input
|
368
|
+
+border-radius(3px 0 0 3px)
|
369
|
+
.uneditable-input
|
370
|
+
border-left-color: #eee
|
371
|
+
border-right-color: #ccc
|
372
|
+
.add-on,
|
373
|
+
.btn
|
374
|
+
margin-left: -1px
|
375
|
+
+border-radius(0 3px 3px 0)
|
376
|
+
|
377
|
+
// Remove all border-radius for inputs with both prepend and append
|
378
|
+
.input-prepend.input-append
|
379
|
+
input,
|
380
|
+
select,
|
381
|
+
.uneditable-input
|
382
|
+
+border-radius(0)
|
383
|
+
.add-on:first-child,
|
384
|
+
.btn:first-child
|
385
|
+
margin-right: -1px
|
386
|
+
+border-radius(3px 0 0 3px)
|
387
|
+
.add-on:last-child,
|
388
|
+
.btn:last-child
|
389
|
+
margin-left: -1px
|
390
|
+
+border-radius(0 3px 3px 0)
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
// SEARCH FORM
|
395
|
+
// -----------
|
396
|
+
|
397
|
+
.search-query
|
398
|
+
padding-left: 14px
|
399
|
+
padding-right: 14px
|
400
|
+
margin-bottom: 0 // remove the default margin on all inputs
|
401
|
+
+border-radius(14px)
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
// HORIZONTAL & VERTICAL FORMS
|
406
|
+
// ---------------------------
|
407
|
+
|
408
|
+
// Common properties
|
409
|
+
// -----------------
|
410
|
+
|
411
|
+
.form-search,
|
412
|
+
.form-inline,
|
413
|
+
.form-horizontal
|
414
|
+
input,
|
415
|
+
textarea,
|
416
|
+
select,
|
417
|
+
.help-inline,
|
418
|
+
.uneditable-input,
|
419
|
+
.input-prepend,
|
420
|
+
.input-append
|
421
|
+
display: inline-block
|
422
|
+
margin-bottom: 0
|
423
|
+
// Re-hide hidden elements due to specifity
|
424
|
+
.hide
|
425
|
+
display: none
|
426
|
+
|
427
|
+
.form-search label,
|
428
|
+
.form-inline label
|
429
|
+
display: inline-block
|
430
|
+
|
431
|
+
// Remove margin for input-prepend/-append
|
432
|
+
.form-search .input-append,
|
433
|
+
.form-inline .input-append,
|
434
|
+
.form-search .input-prepend,
|
435
|
+
.form-inline .input-prepend
|
436
|
+
margin-bottom: 0
|
437
|
+
|
438
|
+
// Inline checkbox/radio labels (remove padding on left)
|
439
|
+
.form-search .radio,
|
440
|
+
.form-inline .radio,
|
441
|
+
.form-search .checkbox,
|
442
|
+
.form-inline .checkbox
|
443
|
+
padding-left: 0
|
444
|
+
margin-bottom: 0
|
445
|
+
vertical-align: middle
|
446
|
+
|
447
|
+
// Remove float and margin, set to inline-block
|
448
|
+
.form-search .radio input[type="radio"],
|
449
|
+
.form-search .checkbox input[type="checkbox"],
|
450
|
+
.form-inline .radio input[type="radio"],
|
451
|
+
.form-inline .checkbox input[type="checkbox"]
|
452
|
+
float: left
|
453
|
+
margin-left: 0
|
454
|
+
margin-right: 3px
|
455
|
+
|
456
|
+
// Margin to space out fieldsets
|
457
|
+
.control-group
|
458
|
+
margin-bottom: $baseLineHeight / 2
|
459
|
+
|
460
|
+
// Legend collapses margin, so next element is responsible for spacing
|
461
|
+
legend + .control-group
|
462
|
+
margin-top: $baseLineHeight
|
463
|
+
-webkit-margin-top-collapse: separate
|
464
|
+
|
465
|
+
|
466
|
+
// Horizontal-specific styles
|
467
|
+
// --------------------------
|
468
|
+
|
469
|
+
.form-horizontal
|
470
|
+
// Increase spacing between groups
|
471
|
+
.control-group
|
472
|
+
margin-bottom: $baseLineHeight
|
473
|
+
+clearfix
|
474
|
+
// Float the labels left
|
475
|
+
.control-label
|
476
|
+
float: left
|
477
|
+
width: 140px
|
478
|
+
padding-top: 5px
|
479
|
+
text-align: right
|
480
|
+
// Move over all input controls and content
|
481
|
+
.controls
|
482
|
+
margin-left: 160px
|
483
|
+
// Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls
|
484
|
+
*display: inline-block
|
485
|
+
*margin-left: 0
|
486
|
+
*padding-left: 20px
|
487
|
+
.help-block
|
488
|
+
margin-top: $baseLineHeight / 2
|
489
|
+
margin-bottom: 0
|
490
|
+
// Move over buttons in .form-actions to align with .controls
|
491
|
+
.form-actions
|
492
|
+
padding-left: 160px
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit
|
5
|
+
padding: 60px
|
6
|
+
margin-bottom: 30px
|
7
|
+
background-color: $heroUnitBackground
|
8
|
+
+border-radius(6px)
|
9
|
+
h1
|
10
|
+
margin-bottom: 0
|
11
|
+
font-size: 60px
|
12
|
+
line-height: 1
|
13
|
+
color: $heroUnitHeadingColor
|
14
|
+
letter-spacing: -1px
|
15
|
+
p
|
16
|
+
font-size: 18px
|
17
|
+
font-weight: 200
|
18
|
+
line-height: $baseLineHeight * 1.5
|
19
|
+
color: $heroUnitLeadColor
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.label
|
5
|
+
padding: 1px 4px 2px
|
6
|
+
font-size: $baseFontSize * 0.846
|
7
|
+
font-weight: bold
|
8
|
+
line-height: 13px // ensure proper line-height if floated
|
9
|
+
color: $white
|
10
|
+
vertical-align: middle
|
11
|
+
white-space: nowrap
|
12
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
13
|
+
background-color: $grayLight
|
14
|
+
+border-radius(3px)
|
15
|
+
|
16
|
+
// Hover state
|
17
|
+
.label:hover
|
18
|
+
color: $white
|
19
|
+
text-decoration: none
|
20
|
+
|
21
|
+
// Colors
|
22
|
+
.label-important
|
23
|
+
background-color: $errorText
|
24
|
+
.label-important:hover
|
25
|
+
background-color: darken($errorText, 10%)
|
26
|
+
|
27
|
+
.label-warning
|
28
|
+
background-color: $orange
|
29
|
+
.label-warning:hover
|
30
|
+
background-color: darken($orange, 10%)
|
31
|
+
|
32
|
+
.label-success
|
33
|
+
background-color: $successText
|
34
|
+
.label-success:hover
|
35
|
+
background-color: darken($successText, 10%)
|
36
|
+
|
37
|
+
.label-info
|
38
|
+
background-color: $infoText
|
39
|
+
.label-info:hover
|
40
|
+
background-color: darken($infoText, 10%)
|
41
|
+
|
42
|
+
.label-inverse
|
43
|
+
background-color: $grayDark
|
44
|
+
.label-inverse:hover
|
45
|
+
background-color: darken($grayDark, 10%)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Fixed-width and fluid (with sidebar) layouts
|
2
|
+
// --------------------------------------------
|
3
|
+
|
4
|
+
|
5
|
+
// Container (centered, fixed-width layouts)
|
6
|
+
.container
|
7
|
+
+container-fixed
|
8
|
+
|
9
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
10
|
+
.container-fluid
|
11
|
+
padding-left: $gridGutterWidth
|
12
|
+
padding-right: $gridGutterWidth
|
13
|
+
+clearfix
|