bootstrap-sass-rails 1.4.0 → 1.4.0.1

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.
@@ -0,0 +1,216 @@
1
+ /* Mixins.scss
2
+ * Snippets of reusable CSS to develop faster and keep code readable
3
+ * ----------------------------------------------------------------- */
4
+
5
+
6
+ // Clearfix for clearing floats like a boss h5bp.com/q
7
+ @mixin clearfix() {
8
+ zoom: 1;
9
+ &:before,
10
+ &:after {
11
+ display: table;
12
+ content: "";
13
+ zoom: 1;
14
+ }
15
+ &:after {
16
+ clear: both;
17
+ }
18
+ }
19
+
20
+ // Center-align a block level element
21
+ @mixin center-block() {
22
+ display: block;
23
+ margin-left: auto;
24
+ margin-right: auto;
25
+ }
26
+
27
+ // Sizing shortcuts
28
+ @mixin size($height: 5px, $width: 5px) {
29
+ height: $height;
30
+ width: $width;
31
+ }
32
+ @mixin square($size: 5px) {
33
+ @include size($size, $size);
34
+ }
35
+
36
+ // Input placeholder text
37
+ @mixin placeholder($color: $grayLight) {
38
+ :-moz-placeholder {
39
+ color: $color;
40
+ }
41
+ ::-webkit-input-placeholder {
42
+ color: $color;
43
+ }
44
+ }
45
+
46
+ // Font Stacks
47
+ @mixin shorthand-font($weight: normal, $size: 14px, $lineHeight: 20px) {
48
+ font-size: $size;
49
+ font-weight: $weight;
50
+ line-height: $lineHeight;
51
+ }
52
+ @mixin sans-serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
53
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
54
+ font-size: $size;
55
+ font-weight: $weight;
56
+ line-height: $lineHeight;
57
+ }
58
+ @mixin serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
59
+ font-family: "Georgia", Times New Roman, Times, serif;
60
+ font-size: $size;
61
+ font-weight: $weight;
62
+ line-height: $lineHeight;
63
+ }
64
+ @mixin monospace-font($weight: normal, $size: 12px, $lineHeight: 20px) {
65
+ font-family: "Monaco", Courier New, monospace;
66
+ font-size: $size;
67
+ font-weight: $weight;
68
+ line-height: $lineHeight;
69
+ }
70
+
71
+ // Grid System
72
+ @mixin fixed-container() {
73
+ width: $siteWidth;
74
+ margin-left: auto;
75
+ margin-right: auto;
76
+ @include clearfix();
77
+ }
78
+ @mixin columns($columnSpan: 1) {
79
+ width: ($gridColumnWidth * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1));
80
+ }
81
+ @mixin offset($columnOffset: 1) {
82
+ margin-left: ($gridColumnWidth * $columnOffset) + ($gridGutterWidth * ($columnOffset - 1)) + $extraSpace;
83
+ }
84
+ // Necessary grid styles for every column to make them appear next to each other horizontally
85
+ @mixin gridColumn() {
86
+ display: inline;
87
+ float: left;
88
+ margin-left: $gridGutterWidth;
89
+ }
90
+ // makeColumn can be used to mark any element (e.g., .content-primary) as a column without changing markup to .span something
91
+ @mixin makeColumn($columnSpan: 1) {
92
+ @include gridColumn();
93
+ @include columns($columnSpan);
94
+ }
95
+
96
+ // Border Radius
97
+ @mixin border-radius($radius: 5px) {
98
+ -webkit-border-radius: $radius;
99
+ -moz-border-radius: $radius;
100
+ border-radius: $radius;
101
+ }
102
+
103
+ // Drop shadows
104
+ @mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
105
+ -webkit-box-shadow: $shadow;
106
+ -moz-box-shadow: $shadow;
107
+ box-shadow: $shadow;
108
+ }
109
+
110
+ // Transitions
111
+ @mixin transition($transition) {
112
+ -webkit-transition: $transition;
113
+ -moz-transition: $transition;
114
+ -ms-transition: $transition;
115
+ -o-transition: $transition;
116
+ transition: $transition;
117
+ }
118
+
119
+ // Background clipping
120
+ @mixin background-clip($clip) {
121
+ -webkit-background-clip: $clip;
122
+ -moz-background-clip: $clip;
123
+ background-clip: $clip;
124
+ }
125
+
126
+ // CSS3 Content Columns
127
+ @mixin content-columns($columnCount, $columnGap: 20px) {
128
+ -webkit-column-count: $columnCount;
129
+ -moz-column-count: $columnCount;
130
+ column-count: $columnCount;
131
+ -webkit-column-gap: $columnGap;
132
+ -moz-column-gap: $columnGap;
133
+ column-gap: $columnGap;
134
+ }
135
+
136
+ // Make any element resizable for prototyping
137
+ @mixin resizable($direction: both) {
138
+ resize: $direction; // Options are horizontal, vertical, both
139
+ overflow: auto; // Safari fix
140
+ }
141
+
142
+ // Add an alphatransparency value to any background or border color (via Elyse Holladay)
143
+ @mixin background-translucent($color: $white, $alpha: 1) {
144
+ background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
145
+ }
146
+ @mixin border-translucent($color: $white, $alpha: 1) {
147
+ border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
148
+ background-clip: padding-box;
149
+ }
150
+
151
+ // Gradient Bar Colors for buttons and allerts
152
+ @mixin gradientBar($primaryColor, $secondaryColor) {
153
+ @include vertical-gradient($primaryColor, $secondaryColor);
154
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
155
+ border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
156
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
157
+ }
158
+
159
+ // Gradients
160
+ @mixin horizontal-gradient($startColor: #555, $endColor: #333) {
161
+ background-color: $endColor;
162
+ background-repeat: repeat-x;
163
+ background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
164
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
165
+ background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
166
+ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
167
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
168
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
169
+ background-image: linear-gradient(left, $startColor, $endColor); // Le standard
170
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$startColor}, endColorstr=#{$endColor}, GradientType=1); // IE9 and down
171
+ }
172
+ @mixin vertical-gradient($startColor: #555, $endColor: #333) {
173
+ background-color: $endColor;
174
+ background-repeat: repeat-x;
175
+ background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
176
+ background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
177
+ background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
178
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
179
+ background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
180
+ background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
181
+ background-image: linear-gradient(top, $startColor, $endColor); // The standard
182
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$startColor}, endColorstr=#{$endColor}, GradientType=0); // IE9 and down
183
+ }
184
+ @mixin directional-gradient($startColor: #555, $endColor: #333, $deg: 45deg) {
185
+ background-color: $endColor;
186
+ background-repeat: repeat-x;
187
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
188
+ background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
189
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
190
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
191
+ background-image: linear-gradient($deg, $startColor, $endColor); // The standard
192
+ }
193
+ @mixin vertical-three-colors-gradient($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
194
+ background-color: $endColor;
195
+ background-repeat: no-repeat;
196
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
197
+ background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
198
+ background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
199
+ background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
200
+ background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
201
+ background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
202
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$startColor}, endColorstr=#{$endColor}, GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
203
+ }
204
+
205
+ // Reset filters for IE
206
+ @mixin reset-filter() {
207
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
208
+ }
209
+
210
+ // Opacity
211
+ @mixin opacity($opacity: 100) {
212
+ filter: alpha(opacity=#{$opacity});
213
+ -khtml-opacity: $opacity / 100;
214
+ -moz-opacity: $opacity / 100;
215
+ opacity: $opacity / 100;
216
+ }
@@ -0,0 +1,1056 @@
1
+ /* Patterns.scss
2
+ * Repeatable UI elements outside the base styles provided from the scaffolding
3
+ * ---------------------------------------------------------------------------- */
4
+
5
+
6
+ // TOPBAR
7
+ // ------
8
+
9
+ // Topbar for Branding and Nav
10
+ .topbar {
11
+ height: 40px;
12
+ position: fixed;
13
+ top: 0;
14
+ left: 0;
15
+ right: 0;
16
+ z-index: 10000;
17
+ overflow: visible;
18
+
19
+ // Links get text shadow
20
+ a {
21
+ color: $grayLight;
22
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
23
+ }
24
+
25
+ // Hover and active states
26
+ // h3 for backwards compatibility
27
+ h3 a:hover,
28
+ .brand:hover,
29
+ ul .active > a {
30
+ background-color: #333;
31
+ background-color: rgba(255,255,255,.05);
32
+ color: $white;
33
+ text-decoration: none;
34
+ }
35
+
36
+ // Website name
37
+ // h3 left for backwards compatibility
38
+ h3 {
39
+ position: relative;
40
+ }
41
+ h3 a,
42
+ .brand {
43
+ float: left;
44
+ display: block;
45
+ padding: 8px 20px 12px;
46
+ margin-left: -20px; // negative indent to left-align the text down the page
47
+ color: $white;
48
+ font-size: 20px;
49
+ font-weight: 200;
50
+ line-height: 1;
51
+ }
52
+
53
+ // Plain text in topbar
54
+ p {
55
+ margin: 0;
56
+ line-height: 40px;
57
+ a:hover {
58
+ background-color: transparent;
59
+ color: $white;
60
+ }
61
+ }
62
+
63
+ // Search Form
64
+ form {
65
+ float: left;
66
+ margin: 5px 0 0 0;
67
+ position: relative;
68
+ @include opacity(100);
69
+ }
70
+ // Todo: remove from v2.0 when ready, added for legacy
71
+ form.pull-right {
72
+ float: right;
73
+ }
74
+ input {
75
+ background-color: #444;
76
+ background-color: rgba(255,255,255,.3);
77
+ @include sans-serif-font(13px, normal, 1);
78
+ padding: 4px 9px;
79
+ color: $white;
80
+ color: rgba(255,255,255,.75);
81
+ border: 1px solid #111;
82
+ @include border-radius(4px);
83
+ $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
84
+ @include box-shadow($shadow);
85
+ @include transition(none);
86
+
87
+ // Placeholder text gets special styles; can't be bundled together though for some reason
88
+ &:-moz-placeholder {
89
+ color: $grayLighter;
90
+ }
91
+ &::-webkit-input-placeholder {
92
+ color: $grayLighter;
93
+ }
94
+ // Hover states
95
+ &:hover {
96
+ background-color: $grayLight;
97
+ background-color: rgba(255,255,255,.5);
98
+ color: $white;
99
+ }
100
+ // Focus states (we use .focused since IE8 and down doesn't support :focus)
101
+ &:focus,
102
+ &.focused {
103
+ outline: 0;
104
+ background-color: $white;
105
+ color: $grayDark;
106
+ text-shadow: 0 1px 0 $white;
107
+ border: 0;
108
+ padding: 5px 10px;
109
+ @include box-shadow(0 0 3px rgba(0,0,0,.15));
110
+ }
111
+ }
112
+ }
113
+
114
+ // gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
115
+ // For backwards compatibility, include .topbar .fill
116
+ .topbar-inner,
117
+ .topbar .fill {
118
+ background-color: #222;
119
+ @include vertical-gradient(#333, #222);
120
+ $shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
121
+ @include box-shadow($shadow);
122
+ }
123
+
124
+
125
+ // NAVIGATION
126
+ // ----------
127
+
128
+ // Topbar Nav
129
+ // ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
130
+ // For backwards compatibility, leave in .topbar div > ul
131
+ .topbar div > ul,
132
+ .nav {
133
+ display: block;
134
+ float: left;
135
+ margin: 0 10px 0 0;
136
+ position: relative;
137
+ left: 0;
138
+ > li {
139
+ display: block;
140
+ float: left;
141
+ }
142
+ a {
143
+ display: block;
144
+ float: none;
145
+ padding: 10px 10px 11px;
146
+ line-height: 19px;
147
+ text-decoration: none;
148
+ &:hover {
149
+ color: $white;
150
+ text-decoration: none;
151
+ }
152
+ }
153
+ .active > a {
154
+ background-color: #222;
155
+ background-color: rgba(0,0,0,.5);
156
+ }
157
+
158
+ // Secondary (floated right) nav in topbar
159
+ &.secondary-nav {
160
+ float: right;
161
+ margin-left: 10px;
162
+ margin-right: 0;
163
+ // backwards compatibility
164
+ .menu-dropdown,
165
+ .dropdown-menu {
166
+ right: 0;
167
+ border: 0;
168
+ }
169
+ }
170
+ // Dropdowns within the .nav
171
+ // a.menu:hover and li.open .menu for backwards compatibility
172
+ a.menu:hover,
173
+ li.open .menu,
174
+ .dropdown-toggle:hover,
175
+ .dropdown.open .dropdown-toggle {
176
+ background: #444;
177
+ background: rgba(255,255,255,.05);
178
+ }
179
+ // .menu-dropdown for backwards compatibility
180
+ .menu-dropdown,
181
+ .dropdown-menu {
182
+ background-color: #333;
183
+ // a.menu for backwards compatibility
184
+ a.menu,
185
+ .dropdown-toggle {
186
+ color: $white;
187
+ &.open {
188
+ background: #444;
189
+ background: rgba(255,255,255,.05);
190
+ }
191
+ }
192
+ li a {
193
+ color: #999;
194
+ text-shadow: 0 1px 0 rgba(0,0,0,.5);
195
+ &:hover {
196
+ @include vertical-gradient(#292929,#191919);
197
+ color: $white;
198
+ }
199
+ }
200
+ .active a {
201
+ color: $white;
202
+ }
203
+ .divider {
204
+ background-color: #222;
205
+ border-color: #444;
206
+ }
207
+ }
208
+ }
209
+
210
+ // For backwards compatibility with new dropdowns, redeclare dropdown link padding
211
+ .topbar ul .menu-dropdown li a,
212
+ .topbar ul .dropdown-menu li a {
213
+ padding: 4px 15px;
214
+ }
215
+
216
+ // Dropdown Menus
217
+ // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
218
+ // li.menu for backwards compatibility
219
+ li.menu,
220
+ .dropdown {
221
+ position: relative;
222
+ }
223
+ // The link that is clicked to toggle the dropdown
224
+ // a.menu for backwards compatibility
225
+ a.menu:after,
226
+ .dropdown-toggle:after {
227
+ width: 0;
228
+ height: 0;
229
+ display: inline-block;
230
+ content: "&darr;";
231
+ text-indent: -99999px;
232
+ vertical-align: top;
233
+ margin-top: 8px;
234
+ margin-left: 4px;
235
+ border-left: 4px solid transparent;
236
+ border-right: 4px solid transparent;
237
+ border-top: 4px solid $white;
238
+ @include opacity(50);
239
+ }
240
+ // The dropdown menu (ul)
241
+ // .menu-dropdown for backwards compatibility
242
+ .menu-dropdown,
243
+ .dropdown-menu {
244
+ background-color: $white;
245
+ float: left;
246
+ display: none; // None by default, but block on "open" of the menu
247
+ position: absolute;
248
+ top: 40px;
249
+ z-index: 900;
250
+ min-width: 160px;
251
+ max-width: 220px;
252
+ _width: 160px;
253
+ margin-left: 0; // override default ul styles
254
+ margin-right: 0;
255
+ padding: 6px 0;
256
+ zoom: 1; // do we need this?
257
+ border-color: #999;
258
+ border-color: rgba(0,0,0,.2);
259
+ border-style: solid;
260
+ border-width: 0 1px 1px;
261
+ @include border-radius(0 0 6px 6px);
262
+ @include box-shadow(0 2px 4px rgba(0,0,0,.2));
263
+ @include background-clip(padding-box);
264
+
265
+ // Unfloat any li's to make them stack
266
+ li {
267
+ float: none;
268
+ display: block;
269
+ background-color: none;
270
+ }
271
+ // Dividers (basically an hr) within the dropdown
272
+ .divider {
273
+ height: 1px;
274
+ margin: 5px 0;
275
+ overflow: hidden;
276
+ background-color: #eee;
277
+ border-bottom: 1px solid $white;
278
+ }
279
+ }
280
+
281
+ .topbar .dropdown-menu,
282
+ .dropdown-menu {
283
+ // Links within the dropdown menu
284
+ a {
285
+ display: block;
286
+ padding: 4px 15px;
287
+ clear: both;
288
+ font-weight: normal;
289
+ line-height: 18px;
290
+ color: $gray;
291
+ text-shadow: 0 1px 0 $white;
292
+ // Hover state
293
+ &:hover,
294
+ &.hover {
295
+ @include vertical-gradient(#eeeeee, #dddddd);
296
+ color: $grayDark;
297
+ text-decoration: none;
298
+ $shadow: inset 0 1px 0 rgba(0,0,0,.025), inset 0 -1px rgba(0,0,0,.025);
299
+ @include box-shadow($shadow);
300
+ }
301
+ }
302
+ }
303
+
304
+ // Open state for the dropdown
305
+ // .open for backwards compatibility
306
+ .open,
307
+ .dropdown.open {
308
+ // .menu for backwards compatibility
309
+ .menu,
310
+ .dropdown-toggle {
311
+ color: $white;
312
+ background: #ccc;
313
+ background: rgba(0,0,0,.3);
314
+ }
315
+ // .menu-dropdown for backwards compatibility
316
+ .menu-dropdown,
317
+ .dropdown-menu {
318
+ display: block;
319
+ }
320
+ }
321
+
322
+
323
+ // TABS AND PILLS
324
+ // --------------
325
+
326
+ // Common styles
327
+ .tabs,
328
+ .pills {
329
+ margin: 0 0 $baseline;
330
+ padding: 0;
331
+ list-style: none;
332
+ @include clearfix();
333
+ > li {
334
+ float: left;
335
+ > a {
336
+ display: block;
337
+ }
338
+ }
339
+ }
340
+
341
+ // Tabs
342
+ .tabs {
343
+ border-color: #ddd;
344
+ border-style: solid;
345
+ border-width: 0 0 1px;
346
+ > li {
347
+ position: relative; // For the dropdowns mostly
348
+ margin-bottom: -1px;
349
+ > a {
350
+ padding: 0 15px;
351
+ margin-right: 2px;
352
+ line-height: ($baseline * 2) - 2;
353
+ border: 1px solid transparent;
354
+ @include border-radius(4px 4px 0 0);
355
+ &:hover {
356
+ text-decoration: none;
357
+ background-color: #eee;
358
+ border-color: #eee #eee #ddd;
359
+ }
360
+ }
361
+ }
362
+ // Active state, and it's :hover to override normal :hover
363
+ .active > a,
364
+ .active > a:hover {
365
+ color: $gray;
366
+ background-color: $white;
367
+ border: 1px solid #ddd;
368
+ border-bottom-color: transparent;
369
+ cursor: default;
370
+ }
371
+ }
372
+
373
+ // Dropdowns in tabs
374
+ .tabs {
375
+ // first one for backwards compatibility
376
+ .menu-dropdown,
377
+ .dropdown-menu {
378
+ top: 35px;
379
+ border-width: 1px;
380
+ @include border-radius(0 6px 6px 6px);
381
+ }
382
+ // first one for backwards compatibility
383
+ a.menu:after,
384
+ .dropdown-toggle:after {
385
+ border-top-color: #999;
386
+ margin-top: 15px;
387
+ margin-left: 5px;
388
+ }
389
+ // first one for backwards compatibility
390
+ li.open.menu .menu,
391
+ .open.dropdown .dropdown-toggle {
392
+ border-color: #999;
393
+ }
394
+ // first one for backwards compatibility
395
+ li.open a.menu:after,
396
+ .dropdown.open .dropdown-toggle:after {
397
+ border-top-color: #555;
398
+ }
399
+ }
400
+
401
+ // Pills
402
+ .pills {
403
+ a {
404
+ margin: 5px 3px 5px 0;
405
+ padding: 0 15px;
406
+ line-height: 30px;
407
+ text-shadow: 0 1px 1px $white;
408
+ @include border-radius(15px);
409
+ &:hover {
410
+ color: $white;
411
+ text-decoration: none;
412
+ text-shadow: 0 1px 1px rgba(0,0,0,.25);
413
+ background-color: $linkColorHover;
414
+ }
415
+ }
416
+ .active a {
417
+ color: $white;
418
+ text-shadow: 0 1px 1px rgba(0,0,0,.25);
419
+ background-color: $linkColor;
420
+ }
421
+ }
422
+
423
+ // Stacked pills
424
+ .pills-vertical > li {
425
+ float: none;
426
+ }
427
+
428
+ // Tabbable areas
429
+ .tab-content,
430
+ .pill-content {
431
+ }
432
+ .tab-content > .tab-pane,
433
+ .pill-content > .pill-pane {
434
+ display: none;
435
+ }
436
+ .tab-content > .active,
437
+ .pill-content > .active {
438
+ display: block;
439
+ }
440
+
441
+
442
+ // BREADCRUMBS
443
+ // -----------
444
+
445
+ .breadcrumb {
446
+ padding: 7px 14px;
447
+ margin: 0 0 $baseline;
448
+ @include vertical-gradient(#ffffff, #f5f5f5);
449
+ border: 1px solid #ddd;
450
+ @include border-radius(3px);
451
+ @include box-shadow(inset 0 1px 0 $white);
452
+ li {
453
+ display: inline;
454
+ text-shadow: 0 1px 0 $white;
455
+ }
456
+ .divider {
457
+ padding: 0 5px;
458
+ color: $grayLight;
459
+ }
460
+ .active a {
461
+ color: $grayDark;
462
+ }
463
+ }
464
+
465
+
466
+ // PAGE HEADERS
467
+ // ------------
468
+
469
+ .hero-unit {
470
+ background-color: #f5f5f5;
471
+ margin-bottom: 30px;
472
+ padding: 60px;
473
+ @include border-radius(6px);
474
+ h1 {
475
+ margin-bottom: 0;
476
+ font-size: 60px;
477
+ line-height: 1;
478
+ letter-spacing: -1px;
479
+ }
480
+ p {
481
+ font-size: 18px;
482
+ font-weight: 200;
483
+ line-height: $baseline * 1.5;
484
+ }
485
+ }
486
+ footer {
487
+ margin-top: $baseline - 1;
488
+ padding-top: $baseline - 1;
489
+ border-top: 1px solid #eee;
490
+ }
491
+
492
+
493
+ // PAGE HEADERS
494
+ // ------------
495
+
496
+ .page-header {
497
+ margin-bottom: $baseline - 1;
498
+ border-bottom: 1px solid #ddd;
499
+ @include box-shadow(0 1px 0 rgba(255,255,255,.5));
500
+ h1 {
501
+ margin-bottom: ($baseline / 2) - 1px;
502
+ }
503
+ }
504
+
505
+
506
+ // BUTTON STYLES
507
+ // -------------
508
+
509
+ // Shared colors for buttons and alerts
510
+ .btn,
511
+ .alert-message {
512
+ // Set text color
513
+ &.danger,
514
+ &.danger:hover,
515
+ &.error,
516
+ &.error:hover,
517
+ &.success,
518
+ &.success:hover,
519
+ &.info,
520
+ &.info:hover {
521
+ color: $white
522
+ }
523
+ // Sets the close button to the middle of message
524
+ .close{
525
+ font-family: Arial, sans-serif;
526
+ line-height: 18px;
527
+ }
528
+ // Danger and error appear as red
529
+ &.danger,
530
+ &.error {
531
+ @include gradientBar(#ee5f5b, #c43c35);
532
+ }
533
+ // Success appears as green
534
+ &.success {
535
+ @include gradientBar(#62c462, #57a957);
536
+ }
537
+ // Info appears as a neutral blue
538
+ &.info {
539
+ @include gradientBar(#5bc0de, #339bb9);
540
+ }
541
+ }
542
+
543
+ // Base .btn styles
544
+ .btn {
545
+ // Button Base
546
+ cursor: pointer;
547
+ display: inline-block;
548
+ @include vertical-three-colors-gradient(#ffffff, #ffffff, 25%, darken(#ffffff, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
549
+ padding: 5px 14px 6px;
550
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
551
+ color: #333;
552
+ font-size: $basefont;
553
+ line-height: normal;
554
+ border: 1px solid #ccc;
555
+ border-bottom-color: #bbb;
556
+ @include border-radius(4px);
557
+ $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
558
+ @include box-shadow($shadow);
559
+
560
+ &:hover {
561
+ background-position: 0 -15px;
562
+ color: #333;
563
+ text-decoration: none;
564
+ }
565
+
566
+ // Focus state for keyboard and accessibility
567
+ &:focus {
568
+ outline: 1px dotted #666;
569
+ }
570
+
571
+ // Primary Button Type
572
+ &.primary {
573
+ color: $white;
574
+ @include gradientBar($blue, $blueDark)
575
+ }
576
+
577
+ // Transitions
578
+ @include transition(.1s linear all);
579
+
580
+ // Active and Disabled states
581
+ &.active,
582
+ &:active {
583
+ $shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05);
584
+ @include box-shadow($shadow);
585
+ }
586
+ &.disabled {
587
+ cursor: default;
588
+ background-image: none;
589
+ @include reset-filter();
590
+ @include opacity(65);
591
+ @include box-shadow(none);
592
+ }
593
+ &[disabled] {
594
+ // disabled pseudo can't be included with .disabled
595
+ // def because IE8 and below will drop it ;_;
596
+ cursor: default;
597
+ background-image: none;
598
+ @include reset-filter();
599
+ @include opacity(65);
600
+ @include box-shadow(none);
601
+ }
602
+
603
+ // Button Sizes
604
+ &.large {
605
+ font-size: $basefont + 2px;
606
+ line-height: normal;
607
+ padding: 9px 14px 9px;
608
+ @include border-radius(6px);
609
+ }
610
+ &.small {
611
+ padding: 7px 9px 7px;
612
+ font-size: $basefont - 2px;
613
+ }
614
+ }
615
+ // Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons
616
+ :root .alert-message,
617
+ :root .btn {
618
+ border-radius: 0 \0;
619
+ }
620
+
621
+ // Help Firefox not be a jerk about adding extra padding to buttons
622
+ button.btn,
623
+ input[type=submit].btn {
624
+ &::-moz-focus-inner {
625
+ padding: 0;
626
+ border: 0;
627
+ }
628
+ }
629
+
630
+
631
+ // CLOSE ICONS
632
+ // -----------
633
+ .close {
634
+ float: right;
635
+ color: $black;
636
+ font-size: 20px;
637
+ font-weight: bold;
638
+ line-height: $baseline * .75;
639
+ text-shadow: 0 1px 0 rgba(255,255,255,1);
640
+ @include opacity(25);
641
+ &:hover {
642
+ color: $black;
643
+ text-decoration: none;
644
+ @include opacity(40);
645
+ }
646
+ }
647
+
648
+
649
+ // ERROR STYLES
650
+ // ------------
651
+
652
+ // Base alert styles
653
+ .alert-message {
654
+ position: relative;
655
+ padding: 7px 15px;
656
+ margin-bottom: $baseline;
657
+ color: $grayDark;
658
+ @include gradientBar(#fceec1, #eedc94); // warning by default
659
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
660
+ border-width: 1px;
661
+ border-style: solid;
662
+ @include border-radius(4px);
663
+ @include box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
664
+
665
+ // Adjust close icon
666
+ .close {
667
+ margin-top: 1px;
668
+ *margin-top: 0; // For IE7
669
+ }
670
+
671
+ // Make links same color as text and stand out more
672
+ a {
673
+ font-weight: bold;
674
+ color: $grayDark;
675
+ }
676
+ &.danger p a,
677
+ &.error p a,
678
+ &.success p a,
679
+ &.info p a {
680
+ color: $white;
681
+ }
682
+
683
+ // Remove extra margin from content
684
+ h5 {
685
+ line-height: $baseline;
686
+ }
687
+ p {
688
+ margin-bottom: 0;
689
+ }
690
+ div {
691
+ margin-top: 5px;
692
+ margin-bottom: 2px;
693
+ line-height: 28px;
694
+ }
695
+ .btn {
696
+ // Provide actions with buttons
697
+ @include box-shadow(0 1px 0 rgba(255,255,255,.25));
698
+ }
699
+
700
+ &.block-message {
701
+ background-image: none;
702
+ background-color: lighten(#fceec1, 5%);
703
+ @include reset-filter();
704
+ padding: 14px;
705
+ border-color: #fceec1;
706
+ @include box-shadow(none);
707
+ ul, p {
708
+ margin-right: 30px;
709
+ }
710
+ ul {
711
+ margin-bottom: 0;
712
+ }
713
+ li {
714
+ color: $grayDark;
715
+ }
716
+ .alert-actions {
717
+ margin-top: 5px;
718
+ }
719
+ &.error,
720
+ &.success,
721
+ &.info {
722
+ color: $grayDark;
723
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
724
+ }
725
+ &.error {
726
+ background-color: lighten(#f56a66, 25%);
727
+ border-color: lighten(#f56a66, 20%);
728
+ }
729
+ &.success {
730
+ background-color: lighten(#62c462, 30%);
731
+ border-color: lighten(#62c462, 25%);
732
+ }
733
+ &.info {
734
+ background-color: lighten(#6bd0ee, 25%);
735
+ border-color: lighten(#6bd0ee, 20%);
736
+ }
737
+ // Change link color back
738
+ &.danger p a,
739
+ &.error p a,
740
+ &.success p a,
741
+ &.info p a {
742
+ color: $grayDark;
743
+ }
744
+
745
+ }
746
+ }
747
+
748
+
749
+ // PAGINATION
750
+ // ----------
751
+
752
+ .pagination {
753
+ height: $baseline * 2;
754
+ margin: $baseline 0;
755
+ ul {
756
+ float: left;
757
+ margin: 0;
758
+ border: 1px solid #ddd;
759
+ border: 1px solid rgba(0,0,0,.15);
760
+ @include border-radius(3px);
761
+ @include box-shadow(0 1px 2px rgba(0,0,0,.05));
762
+ }
763
+ li {
764
+ display: inline;
765
+ }
766
+ a {
767
+ float: left;
768
+ padding: 0 14px;
769
+ line-height: ($baseline * 2) - 2;
770
+ border-right: 1px solid;
771
+ border-right-color: #ddd;
772
+ border-right-color: rgba(0,0,0,.15);
773
+ *border-right-color: #ddd; /* IE6-7 */
774
+ text-decoration: none;
775
+ }
776
+ a:hover,
777
+ .active a {
778
+ background-color: lighten($blue, 45%);
779
+ }
780
+ .disabled a,
781
+ .disabled a:hover {
782
+ background-color: transparent;
783
+ color: $grayLight;
784
+ }
785
+ .next a {
786
+ border: 0;
787
+ }
788
+ }
789
+
790
+
791
+ // WELLS
792
+ // -----
793
+
794
+ .well {
795
+ background-color: #f5f5f5;
796
+ margin-bottom: 20px;
797
+ padding: 19px;
798
+ min-height: 20px;
799
+ border: 1px solid #eee;
800
+ border: 1px solid rgba(0,0,0,.05);
801
+ @include border-radius(4px);
802
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
803
+ blockquote {
804
+ border-color: #ddd;
805
+ border-color: rgba(0,0,0,.15);
806
+ }
807
+ }
808
+
809
+
810
+ // MODALS
811
+ // ------
812
+
813
+ .modal-backdrop {
814
+ background-color: $black;
815
+ position: fixed;
816
+ top: 0;
817
+ left: 0;
818
+ right: 0;
819
+ bottom: 0;
820
+ z-index: 10000;
821
+ // Fade for backdrop
822
+ &.fade { opacity: 0; }
823
+ }
824
+
825
+ .modal-backdrop,
826
+ .modal-backdrop.fade.in {
827
+ @include opacity(80);
828
+ }
829
+
830
+ .modal {
831
+ position: fixed;
832
+ top: 50%;
833
+ left: 50%;
834
+ z-index: 11000;
835
+ width: 560px;
836
+ margin: -250px 0 0 -280px;
837
+ background-color: $white;
838
+ border: 1px solid #999;
839
+ border: 1px solid rgba(0,0,0,.3);
840
+ *border: 1px solid #999; /* IE6-7 */
841
+ @include border-radius(6px);
842
+ @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
843
+ @include background-clip(padding-box);
844
+ .close { margin-top: 7px; }
845
+ &.fade {
846
+ @include transition('opacity .3s linear, top .3s ease-out');
847
+ top: -25%;
848
+ }
849
+ &.fade.in { top: 50%; }
850
+ }
851
+ .modal-header {
852
+ border-bottom: 1px solid #eee;
853
+ padding: 5px 15px;
854
+ }
855
+ .modal-body {
856
+ padding: 15px;
857
+ }
858
+ .modal-body form {
859
+ margin-bottom: 0;
860
+ }
861
+ .modal-footer {
862
+ background-color: #f5f5f5;
863
+ padding: 14px 15px 15px;
864
+ border-top: 1px solid #ddd;
865
+ @include border-radius(0 0 6px 6px);
866
+ @include box-shadow(inset 0 1px 0 $white);
867
+ @include clearfix();
868
+ margin-bottom: 0;
869
+ .btn {
870
+ float: right;
871
+ margin-left: 5px;
872
+ }
873
+ }
874
+
875
+ // Fix the stacking of these components when in modals
876
+ .modal .popover,
877
+ .modal .twipsy {
878
+ z-index: 12000;
879
+ }
880
+
881
+
882
+ // POPOVER ARROWS
883
+ // --------------
884
+
885
+ @mixin above-popoverArrow($arrowWidth: 5px) {
886
+ bottom: 0;
887
+ left: 50%;
888
+ margin-left: -$arrowWidth;
889
+ border-left: $arrowWidth solid transparent;
890
+ border-right: $arrowWidth solid transparent;
891
+ border-top: $arrowWidth solid $black;
892
+ }
893
+ @mixin left-popoverArrow($arrowWidth: 5px) {
894
+ top: 50%;
895
+ right: 0;
896
+ margin-top: -$arrowWidth;
897
+ border-top: $arrowWidth solid transparent;
898
+ border-bottom: $arrowWidth solid transparent;
899
+ border-left: $arrowWidth solid $black;
900
+ }
901
+ @mixin below-popoverArrow($arrowWidth: 5px) {
902
+ top: 0;
903
+ left: 50%;
904
+ margin-left: -$arrowWidth;
905
+ border-left: $arrowWidth solid transparent;
906
+ border-right: $arrowWidth solid transparent;
907
+ border-bottom: $arrowWidth solid $black;
908
+ }
909
+ @mixin right-popoverArrow($arrowWidth: 5px) {
910
+ top: 50%;
911
+ left: 0;
912
+ margin-top: -$arrowWidth;
913
+ border-top: $arrowWidth solid transparent;
914
+ border-bottom: $arrowWidth solid transparent;
915
+ border-right: $arrowWidth solid $black;
916
+ }
917
+
918
+ // TWIPSY
919
+ // ------
920
+
921
+ .twipsy {
922
+ display: block;
923
+ position: absolute;
924
+ visibility: visible;
925
+ padding: 5px;
926
+ font-size: 11px;
927
+ z-index: 1000;
928
+ @include opacity(80);
929
+ &.fade.in {
930
+ @include opacity(80);
931
+ }
932
+ &.above .twipsy-arrow { @include above-popoverArrow(); }
933
+ &.left .twipsy-arrow { @include left-popoverArrow(); }
934
+ &.below .twipsy-arrow { @include below-popoverArrow(); }
935
+ &.right .twipsy-arrow { @include right-popoverArrow(); }
936
+ }
937
+ .twipsy-inner {
938
+ padding: 3px 8px;
939
+ background-color: $black;
940
+ color: white;
941
+ text-align: center;
942
+ max-width: 200px;
943
+ text-decoration: none;
944
+ @include border-radius(4px);
945
+ }
946
+ .twipsy-arrow {
947
+ position: absolute;
948
+ width: 0;
949
+ height: 0;
950
+ }
951
+
952
+
953
+ // POPOVERS
954
+ // --------
955
+
956
+ .popover {
957
+ position: absolute;
958
+ top: 0;
959
+ left: 0;
960
+ z-index: 1000;
961
+ padding: 5px;
962
+ display: none;
963
+ &.above .arrow { @include above-popoverArrow(); }
964
+ &.right .arrow { @include right-popoverArrow(); }
965
+ &.below .arrow { @include below-popoverArrow(); }
966
+ &.left .arrow { @include left-popoverArrow(); }
967
+ .arrow {
968
+ position: absolute;
969
+ width: 0;
970
+ height: 0;
971
+ }
972
+ .inner {
973
+ background: $black;
974
+ background: rgba(0,0,0,.8);
975
+ padding: 3px;
976
+ overflow: hidden;
977
+ width: 280px;
978
+ @include border-radius(6px);
979
+ @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
980
+ }
981
+ .title {
982
+ background-color: #f5f5f5;
983
+ padding: 9px 15px;
984
+ line-height: 1;
985
+ @include border-radius(3px 3px 0 0);
986
+ border-bottom:1px solid #eee;
987
+ }
988
+ .content {
989
+ background-color: $white;
990
+ padding: 14px;
991
+ @include border-radius(0 0 3px 3px);
992
+ @include background-clip(padding-box);
993
+ p, ul, ol {
994
+ margin-bottom: 0;
995
+ }
996
+ }
997
+ }
998
+
999
+
1000
+ // PATTERN ANIMATIONS
1001
+ // ------------------
1002
+
1003
+ .fade {
1004
+ @include transition(opacity .15s linear);
1005
+ opacity: 0;
1006
+ &.in {
1007
+ opacity: 1;
1008
+ }
1009
+ }
1010
+
1011
+
1012
+ // LABELS
1013
+ // ------
1014
+
1015
+ .label {
1016
+ padding: 1px 3px 2px;
1017
+ font-size: $basefont * .75;
1018
+ font-weight: bold;
1019
+ color: $white;
1020
+ text-transform: uppercase;
1021
+ white-space: nowrap;
1022
+ background-color: $grayLight;
1023
+ @include border-radius(3px);
1024
+ &.important { background-color: #c43c35; }
1025
+ &.warning { background-color: $orange; }
1026
+ &.success { background-color: $green; }
1027
+ &.notice { background-color: lighten($blue, 25%); }
1028
+ }
1029
+
1030
+
1031
+ // MEDIA GRIDS
1032
+ // -----------
1033
+
1034
+ .media-grid {
1035
+ margin-left: -$gridGutterWidth;
1036
+ margin-bottom: 0;
1037
+ @include clearfix();
1038
+ li {
1039
+ display: inline;
1040
+ }
1041
+ a {
1042
+ float: left;
1043
+ padding: 4px;
1044
+ margin: 0 0 $baseline $gridGutterWidth;
1045
+ border: 1px solid #ddd;
1046
+ @include border-radius(4px);
1047
+ @include box-shadow(0 1px 1px rgba(0,0,0,.075));
1048
+ img {
1049
+ display: block;
1050
+ }
1051
+ &:hover {
1052
+ border-color: $linkColor;
1053
+ @include box-shadow(0 1px 4px rgba(0,105,214,.25));
1054
+ }
1055
+ }
1056
+ }