sass-rails-bootstrap 2.0.2 → 2.0.3a
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -5
- data/lib/sass-rails-bootstrap/version.rb +1 -1
- 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 +28 -32
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +32 -36
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +28 -20
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +46 -27
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +18 -10
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +25 -17
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +4 -6
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +44 -18
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +12 -7
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +40 -35
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +31 -21
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +25 -11
- data/vendor/assets/stylesheets/twitter/_bootstrap-responsive.scss +41 -0
- data/vendor/assets/stylesheets/twitter/_bootstrap.scss +3 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +5 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +56 -35
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +16 -10
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +11 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +4 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +4 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +15 -19
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +58 -28
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.sass +77 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +1 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +49 -34
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +66 -37
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +31 -28
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +16 -7
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +3 -3
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.sass +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.sass +134 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.sass +15 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.sass +139 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.sass +50 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +45 -4
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +22 -6
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +11 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +7 -6
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +11 -4
- metadata +14 -75
- data/lib/tasks/sass-rails-bootstrap_tasks.rake +0 -4
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -56
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -58
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -2
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/sass-rails-bootstrap_test.rb +0 -7
- data/test/test_helper.rb +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap/_badges.sass +0 -44
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.sass +0 -45
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.sass +0 -333
@@ -0,0 +1,77 @@
|
|
1
|
+
// LABELS & BADGES
|
2
|
+
// ---------------
|
3
|
+
|
4
|
+
// Base classes
|
5
|
+
.label,
|
6
|
+
.badge
|
7
|
+
font-size: $baseFontSize * 0.846
|
8
|
+
font-weight: bold
|
9
|
+
line-height: 14px // ensure proper line-height if floated
|
10
|
+
color: $white
|
11
|
+
vertical-align: baseline
|
12
|
+
white-space: nowrap
|
13
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
14
|
+
background-color: $grayLight
|
15
|
+
|
16
|
+
|
17
|
+
// Set unique padding and border-radii
|
18
|
+
.label
|
19
|
+
padding: 1px 4px 2px
|
20
|
+
+border-radius(3px)
|
21
|
+
|
22
|
+
.badge
|
23
|
+
padding: 1px 9px 2px
|
24
|
+
+border-radius(9px)
|
25
|
+
|
26
|
+
|
27
|
+
// Hover state, but only for links
|
28
|
+
a
|
29
|
+
&.label:hover,
|
30
|
+
&.badge:hover
|
31
|
+
color: $white
|
32
|
+
text-decoration: none
|
33
|
+
cursor: pointer
|
34
|
+
|
35
|
+
|
36
|
+
// Colors
|
37
|
+
// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
|
38
|
+
|
39
|
+
// Important (red)
|
40
|
+
.label-important,
|
41
|
+
.badge-important
|
42
|
+
background-color: $errorText
|
43
|
+
.label-important[href],
|
44
|
+
.badge-important[href]
|
45
|
+
background-color: darken($errorText, 10%)
|
46
|
+
|
47
|
+
// Warnings (orange)
|
48
|
+
.label-warning,
|
49
|
+
.badge-warning
|
50
|
+
background-color: $orange
|
51
|
+
.label-warning[href],
|
52
|
+
.badge-warning[href]
|
53
|
+
background-color: darken($orange, 10%)
|
54
|
+
|
55
|
+
// Success (green)
|
56
|
+
.label-success,
|
57
|
+
.badge-success
|
58
|
+
background-color: $successText
|
59
|
+
.label-success[href],
|
60
|
+
.badge-success[href]
|
61
|
+
background-color: darken($successText, 10%)
|
62
|
+
|
63
|
+
// Info (turquoise)
|
64
|
+
.label-info,
|
65
|
+
.badge-info
|
66
|
+
background-color: $infoText
|
67
|
+
.label-info[href],
|
68
|
+
.badge-info[href]
|
69
|
+
background-color: darken($infoText, 10%)
|
70
|
+
|
71
|
+
// Inverse (black)
|
72
|
+
.label-inverse,
|
73
|
+
.badge-inverse
|
74
|
+
background-color: $grayDark
|
75
|
+
.label-inverse[href],
|
76
|
+
.badge-inverse[href]
|
77
|
+
background-color: darken($grayDark, 10%)
|
@@ -56,10 +56,11 @@
|
|
56
56
|
|
57
57
|
// Sizing shortcuts
|
58
58
|
// -------------------------
|
59
|
-
=size($height
|
59
|
+
=size($height, $width)
|
60
60
|
width: $width
|
61
61
|
height: $height
|
62
|
-
|
62
|
+
|
63
|
+
=square($size)
|
63
64
|
+size($size, $size)
|
64
65
|
|
65
66
|
// Placeholder text
|
@@ -78,23 +79,25 @@
|
|
78
79
|
text-overflow: ellipsis
|
79
80
|
white-space: nowrap
|
80
81
|
|
81
|
-
//
|
82
|
+
// CSS image replacement
|
82
83
|
// -------------------------
|
83
|
-
// Source:
|
84
|
+
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
84
85
|
=hide-text
|
85
|
-
|
86
|
-
|
87
|
-
|
86
|
+
font: 0/0 a
|
87
|
+
color: transparent
|
88
|
+
text-shadow: none
|
89
|
+
background-color: transparent
|
90
|
+
border: 0
|
88
91
|
|
89
92
|
// FONTS
|
90
93
|
// --------------------------------------------------
|
91
94
|
|
92
95
|
=font-family-serif
|
93
|
-
font-family:
|
96
|
+
font-family: $serifFontFamily
|
94
97
|
=font-family-sans-serif
|
95
|
-
font-family:
|
98
|
+
font-family: $sansFontFamily
|
96
99
|
=font-family-monospace
|
97
|
-
font-family:
|
100
|
+
font-family: $monoFontFamily
|
98
101
|
|
99
102
|
=font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
100
103
|
font-size: $size
|
@@ -123,8 +126,7 @@
|
|
123
126
|
display: block
|
124
127
|
width: 100%
|
125
128
|
min-height: 28px // Make inputs at least the height of their button counterpart
|
126
|
-
// Makes inputs behave like true block-level elements
|
127
|
-
+box-sizing(border-box)
|
129
|
+
+box-sizing(border-box) // Makes inputs behave like true block-level elements
|
128
130
|
|
129
131
|
// Mixin for form field states
|
130
132
|
=form-field-state($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5)
|
@@ -155,13 +157,13 @@
|
|
155
157
|
// --------------------------------------------------
|
156
158
|
|
157
159
|
// Border Radius
|
158
|
-
=border-radius($radius
|
160
|
+
=border-radius($radius)
|
159
161
|
-webkit-border-radius: $radius
|
160
162
|
-moz-border-radius: $radius
|
161
163
|
border-radius: $radius
|
162
164
|
|
163
165
|
// Drop shadows
|
164
|
-
=box-shadow($shadow
|
166
|
+
=box-shadow($shadow)
|
165
167
|
-webkit-box-shadow: $shadow
|
166
168
|
-moz-box-shadow: $shadow
|
167
169
|
box-shadow: $shadow
|
@@ -189,28 +191,36 @@
|
|
189
191
|
-o-transform: scale($ratio)
|
190
192
|
transform: scale($ratio)
|
191
193
|
|
192
|
-
=translate($x
|
194
|
+
=translate($x, $y)
|
193
195
|
-webkit-transform: translate($x, $y)
|
194
196
|
-moz-transform: translate($x, $y)
|
195
197
|
-ms-transform: translate($x, $y)
|
196
198
|
-o-transform: translate($x, $y)
|
197
199
|
transform: translate($x, $y)
|
198
200
|
|
199
|
-
=skew($x
|
201
|
+
=skew($x, $y)
|
200
202
|
-webkit-transform: skew($x, $y)
|
201
203
|
-moz-transform: skew($x, $y)
|
202
204
|
-ms-transform: skew($x, $y)
|
203
205
|
-o-transform: skew($x, $y)
|
204
206
|
transform: skew($x, $y)
|
205
207
|
|
206
|
-
=translate3d($x
|
208
|
+
=translate3d($x, $y, $z)
|
207
209
|
-webkit-transform: translate($x, $y, $z)
|
208
210
|
-moz-transform: translate($x, $y, $z)
|
209
211
|
-ms-transform: translate($x, $y, $z)
|
210
212
|
-o-transform: translate($x, $y, $z)
|
211
213
|
transform: translate($x, $y, $z)
|
212
214
|
|
213
|
-
|
215
|
+
// Backface visibility
|
216
|
+
// Prevent browsers from flickering when using CSS 3D transforms.
|
217
|
+
// Default value is `visible`, but can be changed to `hidden`.
|
218
|
+
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples.
|
219
|
+
=backface-visibility($visibility)
|
220
|
+
-webkit-backface-visibility: $visibility
|
221
|
+
-moz-backface-visibility: $visibility
|
222
|
+
-ms-backface-visibility: $visibility
|
223
|
+
backface-visibility: $visibility
|
214
224
|
|
215
225
|
// Background clipping
|
216
226
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
@@ -239,16 +249,17 @@
|
|
239
249
|
=user-select($select)
|
240
250
|
-webkit-user-select: $select
|
241
251
|
-moz-user-select: $select
|
252
|
+
-ms-user-select: $select
|
242
253
|
-o-user-select: $select
|
243
254
|
user-select: $select
|
244
255
|
|
245
256
|
// Resize anything
|
246
|
-
=resizable($direction
|
257
|
+
=resizable($direction)
|
247
258
|
resize: $direction // Options: horizontal, vertical, both
|
248
259
|
overflow: auto // Safari fix
|
249
260
|
|
250
261
|
// CSS3 Content Columns
|
251
|
-
=content-columns($columnCount, $columnGap: $
|
262
|
+
=content-columns($columnCount, $columnGap: $gridGutterWidth)
|
252
263
|
-webkit-column-count: $columnCount
|
253
264
|
-moz-column-count: $columnCount
|
254
265
|
column-count: $columnCount
|
@@ -257,7 +268,7 @@
|
|
257
268
|
column-gap: $columnGap
|
258
269
|
|
259
270
|
// Opacity
|
260
|
-
=opacity($opacity
|
271
|
+
=opacity($opacity)
|
261
272
|
opacity: $opacity / 100
|
262
273
|
filter: alpha(opacity=#{$opacity})
|
263
274
|
|
@@ -353,29 +364,30 @@
|
|
353
364
|
// -------------------------
|
354
365
|
// Dividers (basically an hr) within dropdowns and nav lists
|
355
366
|
=nav-divider
|
356
|
-
height: 1px
|
357
|
-
margin: 5px 1px
|
358
|
-
overflow: hidden
|
359
|
-
background-color: #e5e5e5
|
360
|
-
border-bottom: 1px solid $white
|
361
|
-
|
362
367
|
// IE7 needs a set width since we gave a height. Restricting just
|
363
368
|
// to IE7 to keep the 1px left/right space in other browsers.
|
364
369
|
// It is unclear where IE is getting the extra space that we need
|
365
370
|
// to negative-margin away, but so it goes.
|
366
371
|
*width: 100%
|
372
|
+
height: 1px
|
373
|
+
margin: 5px 1px
|
367
374
|
*margin: -5px 0 5px
|
375
|
+
overflow: hidden
|
376
|
+
background-color: #e5e5e5
|
377
|
+
border-bottom: 1px solid $white
|
368
378
|
|
369
379
|
// Button backgrounds
|
370
380
|
// ---------------------------------------
|
371
381
|
=button-background($startColor, $endColor)
|
372
382
|
// gradient-bar will set the background to a pleasing blend of these, to support IE<=9
|
373
383
|
+gradient-bar($startColor, $endColor)
|
384
|
+
*background-color: $endColor /* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
374
385
|
+reset-filter
|
375
386
|
|
376
387
|
// In these cases the gradient won't cover the background, so we override
|
377
388
|
&:hover, &:active, &.active, &.disabled, &[disabled]
|
378
389
|
background-color: $endColor
|
390
|
+
*background-color: darken($endColor, 5%)
|
379
391
|
|
380
392
|
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
381
393
|
&:active,
|
@@ -427,8 +439,8 @@
|
|
427
439
|
|
428
440
|
// Centered container element
|
429
441
|
=container-fixed
|
430
|
-
margin-left: auto
|
431
442
|
margin-right: auto
|
443
|
+
margin-left: auto
|
432
444
|
+clearfix
|
433
445
|
|
434
446
|
|
@@ -445,9 +457,9 @@
|
|
445
457
|
margin-left: $gridGutterWidth * -1
|
446
458
|
+clearfix
|
447
459
|
|
448
|
-
=make-column($columns: 1)
|
460
|
+
=make-column($columns: 1, $offset: 0)
|
449
461
|
float: left
|
450
|
-
margin-left: $gridGutterWidth
|
462
|
+
margin-left: $gridGutterWidth * $offset + $gridGutterWidth * ($offset - 1) + $gridGutterWidth * 2
|
451
463
|
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1))
|
452
464
|
|
453
465
|
|
@@ -456,7 +468,7 @@
|
|
456
468
|
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
|
457
469
|
|
458
470
|
=core-grid-offset($columns, $gridColumnWidth, $gridGutterWidth)
|
459
|
-
margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns
|
471
|
+
margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns + 1)
|
460
472
|
|
461
473
|
=core-grid-generate($gridColumnWidth, $gridGutterWidth)
|
462
474
|
.row
|
@@ -484,21 +496,24 @@
|
|
484
496
|
|
485
497
|
=fluid-grid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
486
498
|
width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
|
499
|
+
*width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1) - 0.5px / $gridRowWidth * 100 * 1%
|
487
500
|
|
488
501
|
=fluid-grid-generate($fluidGridColumnWidth, $fluidGridGutterWidth)
|
489
502
|
.row-fluid
|
490
503
|
width: 100%
|
491
504
|
+clearfix
|
492
505
|
|
493
|
-
|
506
|
+
[class*="span"]
|
507
|
+
+input-block-level
|
494
508
|
float: left
|
495
509
|
margin-left: $fluidGridGutterWidth
|
510
|
+
*margin-left: $fluidGridGutterWidth - 0.5px / $gridRowWidth * 100 * 1%
|
496
511
|
|
497
|
-
|
512
|
+
[class*="span"]:first-child
|
498
513
|
margin-left: 0
|
499
514
|
|
500
515
|
@for $i from 1 through $gridColumns
|
501
|
-
|
516
|
+
.span#{$i}
|
502
517
|
+fluid-grid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
503
518
|
|
504
519
|
|
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
|
17
17
|
.navbar-inner
|
18
|
+
min-height: $navbarHeight
|
18
19
|
padding-left: 20px
|
19
20
|
padding-right: 20px
|
20
21
|
+gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
|
@@ -27,59 +28,49 @@
|
|
27
28
|
.navbar .container
|
28
29
|
width: auto
|
29
30
|
|
30
|
-
// Navbar button for toggling navbar items in responsive layouts
|
31
|
-
.btn-navbar
|
32
|
-
display: none
|
33
|
-
float: right
|
34
|
-
padding: 7px 10px
|
35
|
-
margin-left: 5px
|
36
|
-
margin-right: 5px
|
37
|
-
+button-background($navbarBackgroundHighlight, $navbarBackground)
|
38
|
-
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)
|
39
|
-
+box-shadow($shadow)
|
40
|
-
|
41
|
-
.btn-navbar .icon-bar
|
42
|
-
display: block
|
43
|
-
width: 18px
|
44
|
-
height: 2px
|
45
|
-
background-color: #f5f5f5
|
46
|
-
+border-radius(1px)
|
47
|
-
+box-shadow(0 1px 0 rgba(0,0,0,.25))
|
48
|
-
|
49
|
-
.btn-navbar .icon-bar + .icon-bar
|
50
|
-
margin-top: 3px
|
51
|
-
|
52
31
|
// Override the default collapsed state
|
53
32
|
.nav-collapse.collapse
|
54
33
|
height: auto
|
55
34
|
|
56
|
-
|
57
35
|
// Brand, links, text, and buttons
|
58
36
|
.navbar
|
59
37
|
color: $navbarText
|
38
|
+
|
60
39
|
// Hover and active states
|
61
40
|
.brand:hover
|
62
41
|
text-decoration: none
|
42
|
+
|
63
43
|
// Website or project name
|
64
44
|
.brand
|
65
45
|
float: left
|
66
46
|
display: block
|
67
|
-
|
47
|
+
// Vertically center the text given $navbarHeight
|
48
|
+
$elementHeight: 20px
|
49
|
+
padding: (($navbarHeight - $elementHeight) / 2 - 2) 20px (($navbarHeight - $elementHeight) / 2 + 2)
|
68
50
|
margin-left: -20px // negative indent to left-align the text down the page
|
69
51
|
font-size: 20px
|
70
52
|
font-weight: 200
|
71
53
|
line-height: 1
|
72
|
-
color: $
|
54
|
+
color: $navbarBrandColor
|
55
|
+
|
73
56
|
// Plain text in topbar
|
74
57
|
.navbar-text
|
75
58
|
margin-bottom: 0
|
76
59
|
line-height: $navbarHeight
|
60
|
+
|
61
|
+
// Janky solution for now to account for links outside the .nav
|
62
|
+
.navbar-link
|
63
|
+
color: $navbarLinkColor
|
64
|
+
&:hover
|
65
|
+
color: $navbarLinkColorHover
|
66
|
+
|
77
67
|
// Buttons in navbar
|
78
68
|
.btn,
|
79
69
|
.btn-group
|
80
70
|
+navbar-vertical-align(30px) // vertically center in navbar
|
81
71
|
.btn-group .btn
|
82
|
-
margin
|
72
|
+
margin: 0 // then undo the margin here so we don't accidentally double it
|
73
|
+
|
83
74
|
|
84
75
|
// Navbar forms
|
85
76
|
.navbar-form
|
@@ -105,6 +96,7 @@
|
|
105
96
|
input
|
106
97
|
margin-top: 0 // remove the margin on top since it's on the parent
|
107
98
|
|
99
|
+
|
108
100
|
// Navbar search
|
109
101
|
.navbar-search
|
110
102
|
position: relative
|
@@ -117,7 +109,7 @@
|
|
117
109
|
color: $white
|
118
110
|
background-color: $navbarSearchBackground
|
119
111
|
border: 1px solid $navbarSearchBorder
|
120
|
-
$shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px
|
112
|
+
$shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)
|
121
113
|
+box-shadow($shadow)
|
122
114
|
+transition(none)
|
123
115
|
|
@@ -190,12 +182,29 @@
|
|
190
182
|
// Links
|
191
183
|
.navbar .nav > li > a
|
192
184
|
float: none
|
193
|
-
|
185
|
+
// Vertically center the text given $navbarHeight
|
186
|
+
$elementHeight: 20px
|
187
|
+
padding: (($navbarHeight - $elementHeight) / 2 - 1) 10px (($navbarHeight - $elementHeight) / 2 + 1)
|
194
188
|
line-height: 19px
|
195
189
|
color: $navbarLinkColor
|
196
190
|
text-decoration: none
|
197
191
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25)
|
198
192
|
|
193
|
+
// Buttons
|
194
|
+
.navbar .btn
|
195
|
+
display: inline-block
|
196
|
+
padding: 4px 10px 4px
|
197
|
+
// Vertically center the button given $navbarHeight
|
198
|
+
$elementHeight: 28px
|
199
|
+
margin: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2)
|
200
|
+
line-height: $baseLineHeight
|
201
|
+
|
202
|
+
.navbar .btn-group
|
203
|
+
margin: 0
|
204
|
+
// Vertically center the button given $navbarHeight
|
205
|
+
$elementHeight: 28px
|
206
|
+
padding: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2)
|
207
|
+
|
199
208
|
// Hover
|
200
209
|
.navbar .nav > li > a:hover
|
201
210
|
background-color: $navbarLinkBackgroundHover // "transparent" is default to differentiate :hover from .active
|
@@ -224,6 +233,26 @@
|
|
224
233
|
margin-left: 10px
|
225
234
|
margin-right: 0
|
226
235
|
|
236
|
+
// Navbar button for toggling navbar items in responsive layouts
|
237
|
+
// These definitions need to come after '.navbar .btn'
|
238
|
+
.navbar .btn-navbar
|
239
|
+
display: none
|
240
|
+
float: right
|
241
|
+
padding: 7px 10px
|
242
|
+
margin-left: 5px
|
243
|
+
margin-right: 5px
|
244
|
+
+button-background($navbarBackgroundHighlight, $navbarBackground)
|
245
|
+
$shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075)
|
246
|
+
+box-shadow($shadow)
|
247
|
+
.navbar .btn-navbar .icon-bar
|
248
|
+
display: block
|
249
|
+
width: 18px
|
250
|
+
height: 2px
|
251
|
+
background-color: #f5f5f5
|
252
|
+
+border-radius(1px)
|
253
|
+
+box-shadow(0 1px 0 rgba(0, 0, 0, 0.25))
|
254
|
+
.btn-navbar .icon-bar + .icon-bar
|
255
|
+
margin-top: 3px
|
227
256
|
|
228
257
|
|
229
258
|
// Dropdown menus
|
@@ -268,27 +297,27 @@
|
|
268
297
|
top: auto
|
269
298
|
|
270
299
|
// Dropdown toggle caret
|
271
|
-
.navbar .nav .dropdown-toggle .caret,
|
272
|
-
.navbar .nav .open
|
300
|
+
.navbar .nav li.dropdown .dropdown-toggle .caret,
|
301
|
+
.navbar .nav li.dropdown.open .caret
|
273
302
|
border-top-color: $white
|
274
303
|
border-bottom-color: $white
|
275
|
-
.navbar .nav .active .caret
|
304
|
+
.navbar .nav li.dropdown.active .caret
|
276
305
|
+opacity(100)
|
277
306
|
|
278
307
|
// Remove background color from open dropdown
|
279
|
-
.navbar .nav .open > .dropdown-toggle,
|
280
|
-
.navbar .nav .active > .dropdown-toggle,
|
281
|
-
.navbar .nav .open.active > .dropdown-toggle
|
308
|
+
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
309
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
310
|
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle
|
282
311
|
background-color: transparent
|
283
312
|
|
284
313
|
// Dropdown link on hover
|
285
|
-
.navbar .nav .active > .dropdown-toggle:hover
|
314
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle:hover
|
286
315
|
color: $white
|
287
316
|
|
288
317
|
// Right aligned menus need alt position
|
289
318
|
// TODO: rejigger this at some point to simplify the selectors
|
290
|
-
.navbar .
|
291
|
-
.navbar .
|
319
|
+
.navbar .pull-right .dropdown-menu,
|
320
|
+
.navbar .dropdown-menu.pull-right
|
292
321
|
left: auto
|
293
322
|
right: 0
|
294
323
|
&:before
|
@@ -19,6 +19,10 @@
|
|
19
19
|
text-decoration: none
|
20
20
|
background-color: $grayLighter
|
21
21
|
|
22
|
+
// Redeclare pull classes because of specifity
|
23
|
+
.nav > .pull-right
|
24
|
+
float: right
|
25
|
+
|
22
26
|
// Nav headers (for dropdowns and lists)
|
23
27
|
.nav .nav-header
|
24
28
|
display: block
|
@@ -211,14 +215,14 @@
|
|
211
215
|
// -------------------------
|
212
216
|
.nav-tabs .open .dropdown-toggle,
|
213
217
|
.nav-pills .open .dropdown-toggle,
|
214
|
-
.nav > .open.active > a:hover
|
218
|
+
.nav > li.dropdown.open.active > a:hover
|
215
219
|
color: $white
|
216
220
|
background-color: $grayLight
|
217
221
|
border-color: $grayLight
|
218
222
|
|
219
|
-
.nav .open .caret,
|
220
|
-
.nav .open.active .caret,
|
221
|
-
.nav .open a:hover .caret
|
223
|
+
.nav li.dropdown.open .caret,
|
224
|
+
.nav li.dropdown.open.active .caret,
|
225
|
+
.nav li.dropdown.open a:hover .caret
|
222
226
|
border-top-color: $white
|
223
227
|
border-bottom-color: $white
|
224
228
|
+opacity(100)
|
@@ -241,13 +245,12 @@
|
|
241
245
|
+clearfix
|
242
246
|
|
243
247
|
.tab-content
|
244
|
-
|
245
|
-
width: 100%
|
248
|
+
overflow: auto
|
246
249
|
|
247
250
|
// Remove border on bottom, left, right
|
248
|
-
.tabs-below .nav-tabs,
|
249
|
-
.tabs-right .nav-tabs,
|
250
|
-
.tabs-left .nav-tabs
|
251
|
+
.tabs-below > .nav-tabs,
|
252
|
+
.tabs-right > .nav-tabs,
|
253
|
+
.tabs-left > .nav-tabs
|
251
254
|
border-bottom: 0
|
252
255
|
|
253
256
|
// Show/hide tabbable areas
|
@@ -264,69 +267,69 @@
|
|
264
267
|
// BOTTOM
|
265
268
|
// ------
|
266
269
|
|
267
|
-
.tabs-below .nav-tabs
|
270
|
+
.tabs-below > .nav-tabs
|
268
271
|
border-top: 1px solid #ddd
|
269
272
|
|
270
|
-
.tabs-below .nav-tabs > li
|
273
|
+
.tabs-below > .nav-tabs > li
|
271
274
|
margin-top: -1px
|
272
275
|
margin-bottom: 0
|
273
276
|
|
274
|
-
.tabs-below .nav-tabs > li > a
|
277
|
+
.tabs-below > .nav-tabs > li > a
|
275
278
|
+border-radius(0 0 4px 4px)
|
276
279
|
&:hover
|
277
280
|
border-bottom-color: transparent
|
278
281
|
border-top-color: #ddd
|
279
282
|
|
280
|
-
.tabs-below .nav-tabs .active > a,
|
281
|
-
.tabs-below .nav-tabs .active > a:hover
|
283
|
+
.tabs-below > .nav-tabs > .active > a,
|
284
|
+
.tabs-below > .nav-tabs > .active > a:hover
|
282
285
|
border-color: transparent #ddd #ddd #ddd
|
283
286
|
|
284
287
|
// LEFT & RIGHT
|
285
288
|
// ------------
|
286
289
|
|
287
290
|
// Common styles
|
288
|
-
.tabs-left .nav-tabs > li,
|
289
|
-
.tabs-right .nav-tabs > li
|
291
|
+
.tabs-left > .nav-tabs > li,
|
292
|
+
.tabs-right > .nav-tabs > li
|
290
293
|
float: none
|
291
294
|
|
292
|
-
.tabs-left .nav-tabs > li > a,
|
293
|
-
.tabs-right .nav-tabs > li > a
|
295
|
+
.tabs-left > .nav-tabs > li > a,
|
296
|
+
.tabs-right > .nav-tabs > li > a
|
294
297
|
min-width: 74px
|
295
298
|
margin-right: 0
|
296
299
|
margin-bottom: 3px
|
297
300
|
|
298
301
|
// Tabs on the left
|
299
|
-
.tabs-left .nav-tabs
|
302
|
+
.tabs-left > .nav-tabs
|
300
303
|
float: left
|
301
304
|
margin-right: 19px
|
302
305
|
border-right: 1px solid #ddd
|
303
306
|
|
304
|
-
.tabs-left .nav-tabs > li > a
|
307
|
+
.tabs-left > .nav-tabs > li > a
|
305
308
|
margin-right: -1px
|
306
309
|
+border-radius(4px 0 0 4px)
|
307
310
|
|
308
|
-
.tabs-left .nav-tabs > li > a:hover
|
311
|
+
.tabs-left > .nav-tabs > li > a:hover
|
309
312
|
border-color: $grayLighter #ddd $grayLighter $grayLighter
|
310
313
|
|
311
|
-
.tabs-left .nav-tabs .active > a,
|
312
|
-
.tabs-left .nav-tabs .active > a:hover
|
314
|
+
.tabs-left > .nav-tabs .active > a,
|
315
|
+
.tabs-left > .nav-tabs .active > a:hover
|
313
316
|
border-color: #ddd transparent #ddd #ddd
|
314
317
|
*border-right-color: $white
|
315
318
|
|
316
319
|
// Tabs on the right
|
317
|
-
.tabs-right .nav-tabs
|
320
|
+
.tabs-right > .nav-tabs
|
318
321
|
float: right
|
319
322
|
margin-left: 19px
|
320
323
|
border-left: 1px solid #ddd
|
321
324
|
|
322
|
-
.tabs-right .nav-tabs > li > a
|
325
|
+
.tabs-right > .nav-tabs > li > a
|
323
326
|
margin-left: -1px
|
324
327
|
+border-radius(0 4px 4px 0)
|
325
328
|
|
326
|
-
.tabs-right .nav-tabs > li > a:hover
|
329
|
+
.tabs-right > .nav-tabs > li > a:hover
|
327
330
|
border-color: $grayLighter $grayLighter $grayLighter #ddd
|
328
331
|
|
329
|
-
.tabs-right .nav-tabs .active > a,
|
330
|
-
.tabs-right .nav-tabs .active > a:hover
|
332
|
+
.tabs-right > .nav-tabs .active > a,
|
333
|
+
.tabs-right > .nav-tabs .active > a:hover
|
331
334
|
border-color: #ddd #ddd #ddd transparent
|
332
335
|
*border-left-color: $white
|