sass_twitter_bootstrap 0.1.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +59 -0
- data/lib/sass_twitter_bootstrap.rb +3 -0
- data/stylesheets/_bootstrap.sass +67 -0
- data/stylesheets/sass_twitter_bootstrap/_accordion.sass +24 -0
- data/stylesheets/sass_twitter_bootstrap/_alerts.sass +65 -0
- data/stylesheets/sass_twitter_bootstrap/_bootstrap.sass +1 -0
- data/stylesheets/sass_twitter_bootstrap/_breadcrumbs.sass +18 -0
- data/stylesheets/sass_twitter_bootstrap/_button-groups.sass +129 -0
- data/stylesheets/sass_twitter_bootstrap/_buttons.sass +166 -0
- data/stylesheets/sass_twitter_bootstrap/_carousel.sass +95 -0
- data/stylesheets/sass_twitter_bootstrap/_close.sass +16 -0
- data/stylesheets/sass_twitter_bootstrap/_code.sass +51 -0
- data/stylesheets/sass_twitter_bootstrap/_component-animations.sass +16 -0
- data/stylesheets/sass_twitter_bootstrap/_dropdowns.sass +120 -0
- data/stylesheets/sass_twitter_bootstrap/_forms.sass +482 -0
- data/stylesheets/sass_twitter_bootstrap/_grid.sass +8 -0
- data/stylesheets/sass_twitter_bootstrap/_hero-unit.sass +17 -0
- data/stylesheets/sass_twitter_bootstrap/_labels.sass +42 -0
- data/stylesheets/sass_twitter_bootstrap/_layouts.sass +14 -0
- data/stylesheets/sass_twitter_bootstrap/_mixins.sass +487 -0
- data/stylesheets/sass_twitter_bootstrap/_modals.sass +84 -0
- data/stylesheets/sass_twitter_bootstrap/_navbar.sass +268 -0
- data/stylesheets/sass_twitter_bootstrap/_navs.sass +326 -0
- data/stylesheets/sass_twitter_bootstrap/_pager.sass +29 -0
- data/stylesheets/sass_twitter_bootstrap/_pagination.sass +53 -0
- data/stylesheets/sass_twitter_bootstrap/_popovers.sass +55 -0
- data/stylesheets/sass_twitter_bootstrap/_print.sass +15 -0
- data/stylesheets/sass_twitter_bootstrap/_progress-bars.sass +89 -0
- data/stylesheets/sass_twitter_bootstrap/_reset.sass +130 -0
- data/stylesheets/sass_twitter_bootstrap/_scaffolding.sass +25 -0
- data/stylesheets/sass_twitter_bootstrap/_sprites.sass +394 -0
- data/stylesheets/sass_twitter_bootstrap/_tables.sass +134 -0
- data/stylesheets/sass_twitter_bootstrap/_thumbnails.sass +34 -0
- data/stylesheets/sass_twitter_bootstrap/_tooltip.sass +43 -0
- data/stylesheets/sass_twitter_bootstrap/_type.sass +193 -0
- data/stylesheets/sass_twitter_bootstrap/_utilities.sass +20 -0
- data/stylesheets/sass_twitter_bootstrap/_variables.sass +101 -0
- data/stylesheets/sass_twitter_bootstrap/_wells.sass +15 -0
- data/templates/project/bootstrap.sass +67 -0
- data/templates/project/manifest.rb +20 -0
- data/templates/project/responsive.sass +255 -0
- metadata +110 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
// COMPONENT ANIMATIONS
|
2
|
+
// --------------------
|
3
|
+
|
4
|
+
.fade
|
5
|
+
+transition(opacity 0.15s linear)
|
6
|
+
opacity: 0
|
7
|
+
&.in
|
8
|
+
opacity: 1
|
9
|
+
|
10
|
+
.collapse
|
11
|
+
+transition(height 0.35s ease)
|
12
|
+
position: relative
|
13
|
+
overflow: hidden
|
14
|
+
height: 0
|
15
|
+
&.in
|
16
|
+
height: auto
|
@@ -0,0 +1,120 @@
|
|
1
|
+
// DROPDOWN MENUS
|
2
|
+
// --------------
|
3
|
+
|
4
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
5
|
+
.dropdown
|
6
|
+
position: relative
|
7
|
+
|
8
|
+
.dropdown-toggle
|
9
|
+
// The caret makes the toggle a bit too tall in IE7
|
10
|
+
*margin-bottom: -3px
|
11
|
+
|
12
|
+
.dropdown-toggle:active,
|
13
|
+
.open .dropdown-toggle
|
14
|
+
outline: 0
|
15
|
+
|
16
|
+
// Dropdown arrow/caret
|
17
|
+
.caret
|
18
|
+
display: inline-block
|
19
|
+
width: 0
|
20
|
+
height: 0
|
21
|
+
text-indent: -99999px
|
22
|
+
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
23
|
+
// do the content that text-indent is hiding, either, so we're ok.
|
24
|
+
*text-indent: 0
|
25
|
+
vertical-align: top
|
26
|
+
border-left: 4px solid transparent
|
27
|
+
border-right: 4px solid transparent
|
28
|
+
border-top: 4px solid $black
|
29
|
+
+opacity(30)
|
30
|
+
content: "\2193"
|
31
|
+
|
32
|
+
.dropdown .caret
|
33
|
+
margin-top: 8px
|
34
|
+
margin-left: 2px
|
35
|
+
|
36
|
+
.dropdown:hover .caret,
|
37
|
+
.open.dropdown .caret
|
38
|
+
+opacity(100)
|
39
|
+
|
40
|
+
// The dropdown menu (ul)
|
41
|
+
.dropdown-menu
|
42
|
+
position: absolute
|
43
|
+
top: 100%
|
44
|
+
left: 0
|
45
|
+
z-index: $zindexDropdown
|
46
|
+
float: left
|
47
|
+
display: none
|
48
|
+
// none by default, but block on "open" of the menu
|
49
|
+
min-width: 160px
|
50
|
+
_width: 160px
|
51
|
+
padding: 4px 0
|
52
|
+
margin: 0
|
53
|
+
// override default ul
|
54
|
+
list-style: none
|
55
|
+
background-color: $white
|
56
|
+
border-color: #ccc
|
57
|
+
border-color: rgba(0, 0, 0, 0.2)
|
58
|
+
border-style: solid
|
59
|
+
border-width: 1px
|
60
|
+
+border-radius(0 0 5px 5px)
|
61
|
+
+box-shadow(0 5px 10px rgba(0, 0, 0, 0.2))
|
62
|
+
-webkit-background-clip: padding-box
|
63
|
+
-moz-background-clip: padding
|
64
|
+
background-clip: padding-box
|
65
|
+
*border-right-width: 2px
|
66
|
+
*border-bottom-width: 2px
|
67
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
68
|
+
&.bottom-up
|
69
|
+
top: auto
|
70
|
+
bottom: 100%
|
71
|
+
margin-bottom: 2px
|
72
|
+
// Dividers (basically an hr) within the dropdown
|
73
|
+
.divider
|
74
|
+
height: 1px
|
75
|
+
margin: 5px 1px
|
76
|
+
overflow: hidden
|
77
|
+
background-color: #e5e5e5
|
78
|
+
border-bottom: 1px solid $white
|
79
|
+
// IE7 needs a set width since we gave a height. Restricting just
|
80
|
+
// to IE7 to keep the 1px left/right space in other browsers.
|
81
|
+
// It is unclear where IE is getting the extra space that we need
|
82
|
+
// to negative-margin away, but so it goes.
|
83
|
+
*width: 100%
|
84
|
+
*margin: -5px 0 5px
|
85
|
+
// Links within the dropdown menu
|
86
|
+
a
|
87
|
+
display: block
|
88
|
+
padding: 3px 15px
|
89
|
+
clear: both
|
90
|
+
font-weight: normal
|
91
|
+
line-height: $baseLineHeight
|
92
|
+
color: $gray
|
93
|
+
white-space: nowrap
|
94
|
+
|
95
|
+
// Hover state
|
96
|
+
|
97
|
+
.dropdown-menu li > a:hover,
|
98
|
+
.dropdown-menu .active > a,
|
99
|
+
.dropdown-menu .active > a:hover
|
100
|
+
color: $white
|
101
|
+
text-decoration: none
|
102
|
+
background-color: $linkColor
|
103
|
+
|
104
|
+
// Open state for the dropdown
|
105
|
+
.dropdown.open
|
106
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
107
|
+
// make the menu appear below buttons that appeared later on the page
|
108
|
+
*z-index: $zindexDropdown
|
109
|
+
.dropdown-toggle
|
110
|
+
color: $white
|
111
|
+
background: #ccc
|
112
|
+
background: rgba(0, 0, 0, 0.3)
|
113
|
+
.dropdown-menu
|
114
|
+
display: block
|
115
|
+
|
116
|
+
// Typeahead
|
117
|
+
.typeahead
|
118
|
+
margin-top: 2px
|
119
|
+
// give it some space to breathe
|
120
|
+
+border-radius(4px)
|
@@ -0,0 +1,482 @@
|
|
1
|
+
// Forms.less
|
2
|
+
// Base styles for various input types, form layouts, and states
|
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
|
+
|
35
|
+
label,
|
36
|
+
input,
|
37
|
+
button,
|
38
|
+
select,
|
39
|
+
textarea
|
40
|
+
+font-sans-serif($baseFontSize, normal, $baseLineHeight)
|
41
|
+
|
42
|
+
input,
|
43
|
+
button,
|
44
|
+
select,
|
45
|
+
textarea
|
46
|
+
+font-sans-serif
|
47
|
+
// And only set font-family here for those that need it (note the missing label element)
|
48
|
+
|
49
|
+
// Identify controls by their labels
|
50
|
+
label
|
51
|
+
display: block
|
52
|
+
margin-bottom: 5px
|
53
|
+
color: $grayDark
|
54
|
+
|
55
|
+
// Inputs, Textareas, Selects
|
56
|
+
|
57
|
+
input,
|
58
|
+
textarea,
|
59
|
+
select,
|
60
|
+
.uneditable-input
|
61
|
+
display: inline-block
|
62
|
+
width: 210px
|
63
|
+
height: $baseLineHeight
|
64
|
+
padding: 4px
|
65
|
+
margin-bottom: 9px
|
66
|
+
font-size: $baseFontSize
|
67
|
+
line-height: $baseLineHeight
|
68
|
+
color: $gray
|
69
|
+
border: 1px solid #ccc
|
70
|
+
+border-radius(3px)
|
71
|
+
|
72
|
+
.uneditable-textarea
|
73
|
+
width: auto
|
74
|
+
height: auto
|
75
|
+
|
76
|
+
// Inputs within a label
|
77
|
+
|
78
|
+
label input,
|
79
|
+
label textarea,
|
80
|
+
label select
|
81
|
+
display: block
|
82
|
+
|
83
|
+
// Mini reset for unique input types
|
84
|
+
|
85
|
+
input[type="image"],
|
86
|
+
input[type="checkbox"],
|
87
|
+
input[type="radio"]
|
88
|
+
width: auto
|
89
|
+
height: auto
|
90
|
+
padding: 0
|
91
|
+
margin: 3px 0
|
92
|
+
*margin-top: 0
|
93
|
+
/* IE7
|
94
|
+
line-height: normal
|
95
|
+
cursor: pointer
|
96
|
+
+border-radius(0)
|
97
|
+
// Nuke border-radius for IE9 only
|
98
|
+
border: 0 \9
|
99
|
+
/* IE9 and down
|
100
|
+
|
101
|
+
input[type="image"]
|
102
|
+
border: 0
|
103
|
+
|
104
|
+
// Reset the file input to browser defaults
|
105
|
+
input[type="file"]
|
106
|
+
width: auto
|
107
|
+
padding: initial
|
108
|
+
line-height: initial
|
109
|
+
border: initial
|
110
|
+
background-color: $white
|
111
|
+
background-color: initial
|
112
|
+
+box-shadow(none)
|
113
|
+
|
114
|
+
// Help out input buttons
|
115
|
+
|
116
|
+
input[type=button],
|
117
|
+
input[type=reset],
|
118
|
+
input[type=submit]
|
119
|
+
width: auto
|
120
|
+
height: auto
|
121
|
+
|
122
|
+
// Set the height of select and file controls to match text inputs
|
123
|
+
|
124
|
+
select,
|
125
|
+
input[type="file"]
|
126
|
+
height: 28px
|
127
|
+
/* In IE7, the height of the select element cannot be changed by height, only font-size
|
128
|
+
*margin-top: 4px
|
129
|
+
/* For IE7, add top margin to align select with labels
|
130
|
+
line-height: 28px
|
131
|
+
|
132
|
+
// Reset line-height for IE
|
133
|
+
input[type="file"]
|
134
|
+
line-height: 18px \9
|
135
|
+
|
136
|
+
// Chrome on Linux and Mobile Safari need background-color
|
137
|
+
select
|
138
|
+
width: 220px
|
139
|
+
// default input width + 10px of padding that doesn't get applied
|
140
|
+
background-color: $white
|
141
|
+
|
142
|
+
// Make multiple select elements height not fixed
|
143
|
+
|
144
|
+
select[multiple],
|
145
|
+
select[size]
|
146
|
+
height: auto
|
147
|
+
|
148
|
+
// Remove shadow from image inputs
|
149
|
+
input[type="image"]
|
150
|
+
+box-shadow(none)
|
151
|
+
|
152
|
+
// Make textarea height behave
|
153
|
+
textarea
|
154
|
+
height: auto
|
155
|
+
|
156
|
+
// Hidden inputs
|
157
|
+
input[type="hidden"]
|
158
|
+
display: none
|
159
|
+
|
160
|
+
// CHECKBOXES & RADIOS
|
161
|
+
// -------------------
|
162
|
+
|
163
|
+
// Indent the labels to position radios/checkboxes as hanging
|
164
|
+
|
165
|
+
.radio,
|
166
|
+
.checkbox
|
167
|
+
padding-left: 18px
|
168
|
+
|
169
|
+
.radio input[type="radio"],
|
170
|
+
.checkbox input[type="checkbox"]
|
171
|
+
float: left
|
172
|
+
margin-left: -18px
|
173
|
+
|
174
|
+
// Move the options list down to align with labels
|
175
|
+
|
176
|
+
.controls > .radio:first-child,
|
177
|
+
.controls > .checkbox:first-child
|
178
|
+
padding-top: 5px
|
179
|
+
// has to be padding because margin collaspes
|
180
|
+
|
181
|
+
// Radios and checkboxes on same line
|
182
|
+
// TODO v3: Convert .inline to .control-inline
|
183
|
+
|
184
|
+
.radio.inline,
|
185
|
+
.checkbox.inline
|
186
|
+
display: inline-block
|
187
|
+
margin-bottom: 0
|
188
|
+
vertical-align: middle
|
189
|
+
|
190
|
+
.radio.inline + .radio.inline,
|
191
|
+
.checkbox.inline + .checkbox.inline
|
192
|
+
margin-left: 10px
|
193
|
+
// space out consecutive inline controls
|
194
|
+
|
195
|
+
// FOCUS STATE
|
196
|
+
// -----------
|
197
|
+
|
198
|
+
input,
|
199
|
+
textarea
|
200
|
+
+box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075))
|
201
|
+
$transition: border linear 0.2s, box-shadow linear 0.2s
|
202
|
+
+transition($transition)
|
203
|
+
|
204
|
+
input:focus,
|
205
|
+
textarea:focus
|
206
|
+
border-color: rgba(82, 168, 236, 0.8)
|
207
|
+
$shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6)
|
208
|
+
+box-shadow($shadow)
|
209
|
+
outline: 0
|
210
|
+
outline: thin dotted \9
|
211
|
+
/* IE6-8
|
212
|
+
|
213
|
+
input[type="file"]:focus,
|
214
|
+
input[type="radio"]:focus,
|
215
|
+
input[type="checkbox"]:focus,
|
216
|
+
select:focus
|
217
|
+
+box-shadow(none)
|
218
|
+
// override for file inputs
|
219
|
+
+tab-focus
|
220
|
+
|
221
|
+
// INPUT SIZES
|
222
|
+
// -----------
|
223
|
+
|
224
|
+
// General classes for quick sizes
|
225
|
+
.input-mini
|
226
|
+
width: 60px
|
227
|
+
|
228
|
+
.input-small
|
229
|
+
width: 90px
|
230
|
+
|
231
|
+
.input-medium
|
232
|
+
width: 150px
|
233
|
+
|
234
|
+
.input-large
|
235
|
+
width: 210px
|
236
|
+
|
237
|
+
.input-xlarge
|
238
|
+
width: 270px
|
239
|
+
|
240
|
+
.input-xxlarge
|
241
|
+
width: 530px
|
242
|
+
|
243
|
+
// Grid style input sizes
|
244
|
+
|
245
|
+
input[class*="span"],
|
246
|
+
select[class*="span"],
|
247
|
+
textarea[class*="span"],
|
248
|
+
.uneditable-input
|
249
|
+
float: none
|
250
|
+
margin-left: 0
|
251
|
+
|
252
|
+
// GRID SIZING FOR INPUTS
|
253
|
+
// ----------------------
|
254
|
+
|
255
|
+
+inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth)
|
256
|
+
|
257
|
+
// DISABLED STATE
|
258
|
+
// --------------
|
259
|
+
|
260
|
+
// Disabled and read-only inputs
|
261
|
+
|
262
|
+
input[disabled],
|
263
|
+
select[disabled],
|
264
|
+
textarea[disabled],
|
265
|
+
input[readonly],
|
266
|
+
select[readonly],
|
267
|
+
textarea[readonly]
|
268
|
+
background-color: #f5f5f5
|
269
|
+
border-color: #ddd
|
270
|
+
cursor: not-allowed
|
271
|
+
|
272
|
+
// FORM FIELD FEEDBACK STATES
|
273
|
+
// --------------------------
|
274
|
+
|
275
|
+
// Warning
|
276
|
+
.control-group.warning
|
277
|
+
+formFieldState($warningText, $warningText, $warningBackground)
|
278
|
+
|
279
|
+
// Error
|
280
|
+
.control-group.error
|
281
|
+
+formFieldState($errorText, $errorText, $errorBackground)
|
282
|
+
|
283
|
+
// Success
|
284
|
+
.control-group.success
|
285
|
+
+formFieldState($successText, $successText, $successBackground)
|
286
|
+
|
287
|
+
// HTML5 invalid states
|
288
|
+
// Shares styles with the .control-group.error above
|
289
|
+
|
290
|
+
input:focus:required:invalid,
|
291
|
+
textarea:focus:required:invalid,
|
292
|
+
select:focus:required:invalid
|
293
|
+
color: #b94a48
|
294
|
+
border-color: #ee5f5b
|
295
|
+
&:focus
|
296
|
+
border-color: darken(#ee5f5b, 10%)
|
297
|
+
+box-shadow(0 0 6px lighten(#ee5f5b, 20%))
|
298
|
+
|
299
|
+
// FORM ACTIONS
|
300
|
+
// ------------
|
301
|
+
|
302
|
+
.form-actions
|
303
|
+
padding: $baseLineHeight - 1 20px $baseLineHeight
|
304
|
+
margin-top: $baseLineHeight
|
305
|
+
margin-bottom: $baseLineHeight
|
306
|
+
background-color: #f5f5f5
|
307
|
+
border-top: 1px solid #ddd
|
308
|
+
|
309
|
+
// For text that needs to appear as an input but should not be an input
|
310
|
+
.uneditable-input
|
311
|
+
display: block
|
312
|
+
background-color: $white
|
313
|
+
border-color: #eee
|
314
|
+
+box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.025))
|
315
|
+
cursor: not-allowed
|
316
|
+
|
317
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
318
|
+
+placeholder($grayLight)
|
319
|
+
|
320
|
+
// HELP TEXT
|
321
|
+
// ---------
|
322
|
+
|
323
|
+
.help-block
|
324
|
+
display: block
|
325
|
+
// account for any element using help-block
|
326
|
+
margin-top: 5px
|
327
|
+
margin-bottom: 0
|
328
|
+
color: $grayLight
|
329
|
+
|
330
|
+
.help-inline
|
331
|
+
display: inline-block
|
332
|
+
+ie7-inline-block
|
333
|
+
margin-bottom: 9px
|
334
|
+
vertical-align: middle
|
335
|
+
padding-left: 5px
|
336
|
+
|
337
|
+
// INPUT GROUPS
|
338
|
+
// ------------
|
339
|
+
|
340
|
+
// Allow us to put symbols and text within the input field for a cleaner look
|
341
|
+
|
342
|
+
.input-prepend,
|
343
|
+
.input-append
|
344
|
+
margin-bottom: 5px
|
345
|
+
+clearfix
|
346
|
+
// Clear the float to prevent wrapping
|
347
|
+
input,
|
348
|
+
.uneditable-input
|
349
|
+
+border-radius(0 3px 3px 0)
|
350
|
+
&:focus
|
351
|
+
position: relative
|
352
|
+
z-index: 2
|
353
|
+
.uneditable-input
|
354
|
+
border-left-color: #ccc
|
355
|
+
.add-on
|
356
|
+
float: left
|
357
|
+
display: block
|
358
|
+
width: auto
|
359
|
+
min-width: 16px
|
360
|
+
height: $baseLineHeight
|
361
|
+
margin-right: -1px
|
362
|
+
padding: 4px 5px
|
363
|
+
font-weight: normal
|
364
|
+
line-height: $baseLineHeight
|
365
|
+
color: $grayLight
|
366
|
+
text-align: center
|
367
|
+
text-shadow: 0 1px 0 $white
|
368
|
+
background-color: #f5f5f5
|
369
|
+
border: 1px solid #ccc
|
370
|
+
+border-radius(3px 0 0 3px)
|
371
|
+
.active
|
372
|
+
background-color: lighten($green, 30)
|
373
|
+
border-color: $green
|
374
|
+
|
375
|
+
.input-prepend
|
376
|
+
.add-on
|
377
|
+
*margin-top: 1px
|
378
|
+
/* IE6-7
|
379
|
+
|
380
|
+
.input-append
|
381
|
+
input,
|
382
|
+
.uneditable-input
|
383
|
+
float: left
|
384
|
+
+border-radius(3px 0 0 3px)
|
385
|
+
.uneditable-input
|
386
|
+
border-left-color: #eee
|
387
|
+
border-right-color: #ccc
|
388
|
+
.add-on
|
389
|
+
margin-right: 0
|
390
|
+
margin-left: -1px
|
391
|
+
+border-radius(0 3px 3px 0)
|
392
|
+
input:first-child
|
393
|
+
// In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
|
394
|
+
// inherit the sum of its ancestors' margins.
|
395
|
+
*margin-left: -160px
|
396
|
+
& + .add-on
|
397
|
+
*margin-left: -21px
|
398
|
+
|
399
|
+
// SEARCH FORM
|
400
|
+
// -----------
|
401
|
+
|
402
|
+
.search-query
|
403
|
+
padding-left: 14px
|
404
|
+
padding-right: 14px
|
405
|
+
margin-bottom: 0
|
406
|
+
// remove the default margin on all inputs
|
407
|
+
+border-radius(14px)
|
408
|
+
|
409
|
+
// HORIZONTAL & VERTICAL FORMS
|
410
|
+
// ---------------------------
|
411
|
+
|
412
|
+
// Common properties
|
413
|
+
// -----------------
|
414
|
+
|
415
|
+
.form-search,
|
416
|
+
.form-inline,
|
417
|
+
.form-horizontal
|
418
|
+
input,
|
419
|
+
textarea,
|
420
|
+
select,
|
421
|
+
.help-inline,
|
422
|
+
.uneditable-input
|
423
|
+
display: inline-block
|
424
|
+
margin-bottom: 0
|
425
|
+
// Re-hide hidden elements due to specifity
|
426
|
+
.hide
|
427
|
+
display: none
|
428
|
+
|
429
|
+
.form-search label,
|
430
|
+
.form-inline label,
|
431
|
+
.form-search .input-append,
|
432
|
+
.form-inline .input-append,
|
433
|
+
.form-search .input-prepend,
|
434
|
+
.form-inline .input-prepend
|
435
|
+
display: inline-block
|
436
|
+
|
437
|
+
// Make the prepend and append add-on vertical-align: middle;
|
438
|
+
|
439
|
+
.form-search .input-append .add-on,
|
440
|
+
.form-inline .input-prepend .add-on,
|
441
|
+
.form-search .input-append .add-on,
|
442
|
+
.form-inline .input-prepend .add-on
|
443
|
+
vertical-align: middle
|
444
|
+
|
445
|
+
// Inline checkbox/radio labels
|
446
|
+
|
447
|
+
.form-search .radio,
|
448
|
+
.form-inline .radio,
|
449
|
+
.form-search .checkbox,
|
450
|
+
.form-inline .checkbox
|
451
|
+
margin-bottom: 0
|
452
|
+
vertical-align: middle
|
453
|
+
|
454
|
+
// Margin to space out fieldsets
|
455
|
+
.control-group
|
456
|
+
margin-bottom: $baseLineHeight / 2
|
457
|
+
|
458
|
+
// Legend collapses margin, so next element is responsible for spacing
|
459
|
+
legend + .control-group
|
460
|
+
margin-top: $baseLineHeight
|
461
|
+
-webkit-margin-top-collapse: separate
|
462
|
+
|
463
|
+
// Horizontal-specific styles
|
464
|
+
// --------------------------
|
465
|
+
|
466
|
+
.form-horizontal
|
467
|
+
// Increase spacing between groups
|
468
|
+
.control-group
|
469
|
+
margin-bottom: $baseLineHeight
|
470
|
+
+clearfix
|
471
|
+
// Float the labels left
|
472
|
+
.control-group > label
|
473
|
+
float: left
|
474
|
+
width: 140px
|
475
|
+
padding-top: 5px
|
476
|
+
text-align: right
|
477
|
+
// Move over all input controls and content
|
478
|
+
.controls
|
479
|
+
margin-left: 160px
|
480
|
+
// Move over buttons in .form-actions to align with .controls
|
481
|
+
.form-actions
|
482
|
+
padding-left: 160px
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit
|
5
|
+
padding: 60px
|
6
|
+
margin-bottom: 30px
|
7
|
+
background-color: #f5f5f5
|
8
|
+
+border-radius(6px)
|
9
|
+
h1
|
10
|
+
margin-bottom: 0
|
11
|
+
font-size: 60px
|
12
|
+
line-height: 1
|
13
|
+
letter-spacing: -1px
|
14
|
+
p
|
15
|
+
font-size: 18px
|
16
|
+
font-weight: 200
|
17
|
+
line-height: $baseLineHeight * 1.5
|
@@ -0,0 +1,42 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
// Base
|
5
|
+
.label
|
6
|
+
padding: 2px 4px 3px
|
7
|
+
font-size: $baseFontSize * 0.85
|
8
|
+
font-weight: bold
|
9
|
+
color: $white
|
10
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
11
|
+
background-color: $grayLight
|
12
|
+
+border-radius(3px)
|
13
|
+
|
14
|
+
// Hover state
|
15
|
+
.label:hover
|
16
|
+
color: $white
|
17
|
+
text-decoration: none
|
18
|
+
|
19
|
+
// Colors
|
20
|
+
.label-important
|
21
|
+
background-color: $errorText
|
22
|
+
|
23
|
+
.label-important:hover
|
24
|
+
background-color: darken($errorText, 10%)
|
25
|
+
|
26
|
+
.label-warning
|
27
|
+
background-color: $orange
|
28
|
+
|
29
|
+
.label-warning:hover
|
30
|
+
background-color: darken($orange, 10%)
|
31
|
+
|
32
|
+
.label-success
|
33
|
+
background-color: $successText
|
34
|
+
|
35
|
+
.label-success:hover
|
36
|
+
background-color: darken($successText, 10%)
|
37
|
+
|
38
|
+
.label-info
|
39
|
+
background-color: $infoText
|
40
|
+
|
41
|
+
.label-info:hover
|
42
|
+
background-color: darken($infoText, 10%)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Layouts
|
3
|
+
// Fixed-width and fluid (with sidebar) layouts
|
4
|
+
// --------------------------------------------
|
5
|
+
|
6
|
+
// Container (centered, fixed-width layouts)
|
7
|
+
.container
|
8
|
+
+container-fixed
|
9
|
+
|
10
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
11
|
+
.container-fluid
|
12
|
+
padding-left: $gridGutterWidth
|
13
|
+
padding-right: $gridGutterWidth
|
14
|
+
+clearfix
|