bootstrap_sass_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/app/assets/javascripts/bootstrap.js +12 -0
- data/app/assets/javascripts/bootstrap/affix.js +126 -0
- data/app/assets/javascripts/bootstrap/alert.js +98 -0
- data/app/assets/javascripts/bootstrap/button.js +109 -0
- data/app/assets/javascripts/bootstrap/carousel.js +217 -0
- data/app/assets/javascripts/bootstrap/collapse.js +179 -0
- data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
- data/app/assets/javascripts/bootstrap/modal.js +246 -0
- data/app/assets/javascripts/bootstrap/popover.js +117 -0
- data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
- data/app/assets/javascripts/bootstrap/tab.js +135 -0
- data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
- data/app/assets/javascripts/bootstrap/transition.js +56 -0
- data/app/assets/stylesheets/bootstrap.css.sass +59 -0
- data/app/assets/stylesheets/bootstrap/_alerts.css.sass +55 -0
- data/app/assets/stylesheets/bootstrap/_badges.css.sass +50 -0
- data/app/assets/stylesheets/bootstrap/_breadcrumbs.css.sass +19 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.css.sass +210 -0
- data/app/assets/stylesheets/bootstrap/_buttons.css.sass +135 -0
- data/app/assets/stylesheets/bootstrap/_carousel.css.sass +165 -0
- data/app/assets/stylesheets/bootstrap/_close.css.sass +28 -0
- data/app/assets/stylesheets/bootstrap/_code.css.sass +49 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.css.sass +25 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.css.sass +166 -0
- data/app/assets/stylesheets/bootstrap/_forms.css.sass +309 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.css.sass +827 -0
- data/app/assets/stylesheets/bootstrap/_grid.css.sass +483 -0
- data/app/assets/stylesheets/bootstrap/_input-groups.css.sass +117 -0
- data/app/assets/stylesheets/bootstrap/_jumbotron.css.sass +28 -0
- data/app/assets/stylesheets/bootstrap/_labels.css.sass +46 -0
- data/app/assets/stylesheets/bootstrap/_list-group.css.sass +71 -0
- data/app/assets/stylesheets/bootstrap/_media.css.sass +47 -0
- data/app/assets/stylesheets/bootstrap/_mixins.css.sass +754 -0
- data/app/assets/stylesheets/bootstrap/_modals.css.sass +127 -0
- data/app/assets/stylesheets/bootstrap/_navbar.css.sass +457 -0
- data/app/assets/stylesheets/bootstrap/_navs.css.sass +171 -0
- data/app/assets/stylesheets/bootstrap/_normalize.css.sass +375 -0
- data/app/assets/stylesheets/bootstrap/_pager.css.sass +39 -0
- data/app/assets/stylesheets/bootstrap/_pagination.css.sass +66 -0
- data/app/assets/stylesheets/bootstrap/_panels.css.sass +114 -0
- data/app/assets/stylesheets/bootstrap/_popovers.css.sass +124 -0
- data/app/assets/stylesheets/bootstrap/_print.css.sass +66 -0
- data/app/assets/stylesheets/bootstrap/_progress-bars.css.sass +90 -0
- data/app/assets/stylesheets/bootstrap/_responsive-utilities.css.sass +152 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.css.sass +108 -0
- data/app/assets/stylesheets/bootstrap/_tables.css.sass +176 -0
- data/app/assets/stylesheets/bootstrap/_theme.css.sass +228 -0
- data/app/assets/stylesheets/bootstrap/_thumbnails.css.sass +26 -0
- data/app/assets/stylesheets/bootstrap/_tooltip.css.sass +91 -0
- data/app/assets/stylesheets/bootstrap/_type.css.sass +251 -0
- data/app/assets/stylesheets/bootstrap/_utilities.css.sass +36 -0
- data/app/assets/stylesheets/bootstrap/_variables.css.sass +614 -0
- data/app/assets/stylesheets/bootstrap/_wells.css.sass +25 -0
- data/bin/convert-sass.sh +3 -0
- data/bootstrap_sass_rails.gemspec +25 -0
- data/lib/bootstrap_sass_rails.rb +13 -0
- data/lib/bootstrap_sass_rails/engine.rb +4 -0
- data/lib/bootstrap_sass_rails/version.rb +3 -0
- metadata +152 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// .modal-open - body class for killing the scroll
|
6
|
+
// .modal - container to scroll within
|
7
|
+
// .modal-dialog - positioning shell for the actual modal
|
8
|
+
// .modal-content - actual modal w/ bg and corners and shit
|
9
|
+
|
10
|
+
// Kill the scroll on the body
|
11
|
+
.modal-open
|
12
|
+
overflow: hidden
|
13
|
+
// Account for hiding of scrollbar
|
14
|
+
.navbar-fixed-top,
|
15
|
+
.navbar-fixed-bottom
|
16
|
+
margin-right: 15px
|
17
|
+
|
18
|
+
body.modal-open
|
19
|
+
margin-right: 15px
|
20
|
+
|
21
|
+
// Container that the modal scrolls within
|
22
|
+
.modal
|
23
|
+
display: none
|
24
|
+
overflow: auto
|
25
|
+
overflow-y: scroll
|
26
|
+
position: fixed
|
27
|
+
top: 0
|
28
|
+
right: 0
|
29
|
+
bottom: 0
|
30
|
+
left: 0
|
31
|
+
z-index: $zindex-modal-background
|
32
|
+
// When fading in the modal, animate it to slide down
|
33
|
+
&.fade .modal-dialog
|
34
|
+
+translate(0, -25%)
|
35
|
+
+transition-transform(0.3s ease-out)
|
36
|
+
&.in .modal-dialog
|
37
|
+
+translate(0, 0)
|
38
|
+
|
39
|
+
// Shell div to position the modal with bottom padding
|
40
|
+
.modal-dialog
|
41
|
+
margin-left: auto
|
42
|
+
margin-right: auto
|
43
|
+
width: auto
|
44
|
+
padding: 10px
|
45
|
+
z-index: $zindex-modal-background + 10
|
46
|
+
|
47
|
+
// Actual modal
|
48
|
+
.modal-content
|
49
|
+
position: relative
|
50
|
+
background-color: $modal-content-bg
|
51
|
+
border: 1px solid $modal-content-fallback-border-color
|
52
|
+
//old browsers fallback (ie8 etc)
|
53
|
+
border: 1px solid $modal-content-border-color
|
54
|
+
border-radius: $border-radius-large
|
55
|
+
+box-shadow(0 3px 9px rgba(0, 0, 0, 0.5))
|
56
|
+
background-clip: padding-box
|
57
|
+
// Remove focus outline from opened modal
|
58
|
+
outline: none
|
59
|
+
|
60
|
+
// Modal background
|
61
|
+
.modal-backdrop
|
62
|
+
position: fixed
|
63
|
+
top: 0
|
64
|
+
right: 0
|
65
|
+
bottom: 0
|
66
|
+
left: 0
|
67
|
+
z-index: $zindex-modal-background - 10
|
68
|
+
background-color: $modal-backdrop-bg
|
69
|
+
// Fade for backdrop
|
70
|
+
&.fade
|
71
|
+
+opacity(0)
|
72
|
+
&.in
|
73
|
+
+opacity(0.5)
|
74
|
+
|
75
|
+
// Modal header
|
76
|
+
// Top section of the modal w/ title and dismiss
|
77
|
+
.modal-header
|
78
|
+
padding: $modal-title-padding
|
79
|
+
border-bottom: 1px solid $modal-header-border-color
|
80
|
+
min-height: $modal-title-padding + $modal-title-line-height
|
81
|
+
|
82
|
+
// Close icon
|
83
|
+
.modal-header .close
|
84
|
+
margin-top: -2px
|
85
|
+
|
86
|
+
// Title text within header
|
87
|
+
.modal-title
|
88
|
+
margin: 0
|
89
|
+
line-height: $modal-title-line-height
|
90
|
+
|
91
|
+
// Modal body
|
92
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
93
|
+
.modal-body
|
94
|
+
position: relative
|
95
|
+
padding: $modal-inner-padding
|
96
|
+
|
97
|
+
// Footer (for actions)
|
98
|
+
.modal-footer
|
99
|
+
margin-top: 15px
|
100
|
+
padding: $modal-inner-padding - 1 $modal-inner-padding $modal-inner-padding
|
101
|
+
text-align: right
|
102
|
+
// right align buttons
|
103
|
+
border-top: 1px solid $modal-footer-border-color
|
104
|
+
+clearfix
|
105
|
+
// clear it in case folks use .pull-* classes on buttons
|
106
|
+
// Properly space out buttons
|
107
|
+
.btn + .btn
|
108
|
+
margin-left: 5px
|
109
|
+
margin-bottom: 0
|
110
|
+
// account for input[type="submit"] which gets the bottom margin like all other inputs
|
111
|
+
// but override that for button groups
|
112
|
+
.btn-group .btn + .btn
|
113
|
+
margin-left: -1px
|
114
|
+
// and override it for block buttons as well
|
115
|
+
.btn-block + .btn-block
|
116
|
+
margin-left: 0
|
117
|
+
|
118
|
+
// Scale up the modal
|
119
|
+
@media screen and (min-width: $screen-tablet)
|
120
|
+
.modal-dialog
|
121
|
+
left: 50%
|
122
|
+
right: auto
|
123
|
+
width: 600px
|
124
|
+
padding-top: 30px
|
125
|
+
padding-bottom: 30px
|
126
|
+
.modal-content
|
127
|
+
+box-shadow(0 5px 15px rgba(0, 0, 0, 0.5))
|
@@ -0,0 +1,457 @@
|
|
1
|
+
//
|
2
|
+
// Navbars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Wrapper and base class
|
6
|
+
//
|
7
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
8
|
+
// other navbar variations.
|
9
|
+
|
10
|
+
.navbar
|
11
|
+
position: relative
|
12
|
+
z-index: $zindex-navbar
|
13
|
+
min-height: $navbar-height
|
14
|
+
// Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
15
|
+
margin-bottom: $navbar-margin-bottom
|
16
|
+
border: 1px solid transparent
|
17
|
+
// Prevent floats from breaking the navbar
|
18
|
+
+clearfix
|
19
|
+
@media (min-width: $grid-float-breakpoint)
|
20
|
+
border-radius: $navbar-border-radius
|
21
|
+
|
22
|
+
// Navbar heading
|
23
|
+
//
|
24
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
25
|
+
// styling of responsive aspects.
|
26
|
+
|
27
|
+
.navbar-header
|
28
|
+
+clearfix
|
29
|
+
@media (min-width: $grid-float-breakpoint)
|
30
|
+
float: left
|
31
|
+
|
32
|
+
// Navbar collapse (body)
|
33
|
+
//
|
34
|
+
// Group your navbar content into this for easy collapsing and expanding across
|
35
|
+
// various device sizes. By default, this content is collapsed when <768px, but
|
36
|
+
// will expand past that for a horizontal display.
|
37
|
+
//
|
38
|
+
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
39
|
+
// vertically and include a `max-height` to overflow in case you have too much
|
40
|
+
// content for the user's viewport.
|
41
|
+
|
42
|
+
.navbar-collapse
|
43
|
+
max-height: 340px
|
44
|
+
overflow-x: visible
|
45
|
+
padding-right: $navbar-padding-horizontal
|
46
|
+
padding-left: $navbar-padding-horizontal
|
47
|
+
border-top: 1px solid transparent
|
48
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1)
|
49
|
+
+clearfix
|
50
|
+
-webkit-overflow-scrolling: touch
|
51
|
+
&.in
|
52
|
+
overflow-y: auto
|
53
|
+
@media (min-width: $grid-float-breakpoint)
|
54
|
+
width: auto
|
55
|
+
border-top: 0
|
56
|
+
box-shadow: none
|
57
|
+
&.collapse
|
58
|
+
display: block !important
|
59
|
+
height: auto !important
|
60
|
+
padding-bottom: 0
|
61
|
+
// Override default setting
|
62
|
+
overflow: visible !important
|
63
|
+
&.in
|
64
|
+
overflow-y: visible
|
65
|
+
// Account for first and last children spacing
|
66
|
+
.navbar-nav.navbar-left:first-child
|
67
|
+
margin-left: -$navbar-padding-horizontal
|
68
|
+
.navbar-nav.navbar-right:last-child
|
69
|
+
margin-right: -$navbar-padding-horizontal
|
70
|
+
.navbar-text:last-child
|
71
|
+
margin-right: 0
|
72
|
+
|
73
|
+
// Both navbar header and collapse
|
74
|
+
//
|
75
|
+
// When a container is present, change the behavior of the header and collapse.
|
76
|
+
|
77
|
+
.container > .navbar-header,
|
78
|
+
.container > .navbar-collapse
|
79
|
+
margin-right: -$navbar-padding-horizontal
|
80
|
+
margin-left: -$navbar-padding-horizontal
|
81
|
+
@media (min-width: $grid-float-breakpoint)
|
82
|
+
margin-right: 0
|
83
|
+
margin-left: 0
|
84
|
+
|
85
|
+
//
|
86
|
+
// Navbar alignment options
|
87
|
+
//
|
88
|
+
// Display the navbar across the entirity of the page or fixed it to the top or
|
89
|
+
// bottom of the page.
|
90
|
+
|
91
|
+
// Static top (unfixed, but 100% wide) navbar
|
92
|
+
.navbar-static-top
|
93
|
+
border-width: 0 0 1px
|
94
|
+
@media (min-width: $grid-float-breakpoint)
|
95
|
+
border-radius: 0
|
96
|
+
|
97
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
98
|
+
|
99
|
+
.navbar-fixed-top,
|
100
|
+
.navbar-fixed-bottom
|
101
|
+
position: fixed
|
102
|
+
right: 0
|
103
|
+
left: 0
|
104
|
+
border-width: 0 0 1px
|
105
|
+
// Undo the rounded corners
|
106
|
+
@media (min-width: $grid-float-breakpoint)
|
107
|
+
border-radius: 0
|
108
|
+
|
109
|
+
.navbar-fixed-top
|
110
|
+
z-index: $zindex-navbar-fixed
|
111
|
+
top: 0
|
112
|
+
|
113
|
+
.navbar-fixed-bottom
|
114
|
+
bottom: 0
|
115
|
+
margin-bottom: 0
|
116
|
+
// override .navbar defaults
|
117
|
+
|
118
|
+
// Brand/project name
|
119
|
+
|
120
|
+
.navbar-brand
|
121
|
+
float: left
|
122
|
+
padding: $navbar-padding-vertical $navbar-padding-horizontal
|
123
|
+
font-size: $font-size-large
|
124
|
+
line-height: $line-height-computed
|
125
|
+
&:hover,
|
126
|
+
&:focus
|
127
|
+
text-decoration: none
|
128
|
+
@media (min-width: $grid-float-breakpoint)
|
129
|
+
.navbar > .container &
|
130
|
+
margin-left: -$navbar-padding-horizontal
|
131
|
+
|
132
|
+
// Navbar toggle
|
133
|
+
//
|
134
|
+
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
135
|
+
// JavaScript plugin.
|
136
|
+
|
137
|
+
.navbar-toggle
|
138
|
+
position: relative
|
139
|
+
float: right
|
140
|
+
margin-right: $navbar-padding-horizontal
|
141
|
+
padding: 9px 10px
|
142
|
+
+navbar-vertical-align(34px)
|
143
|
+
background-color: transparent
|
144
|
+
border: 1px solid transparent
|
145
|
+
border-radius: $border-radius-base
|
146
|
+
// Bars
|
147
|
+
.icon-bar
|
148
|
+
display: block
|
149
|
+
width: 22px
|
150
|
+
height: 2px
|
151
|
+
border-radius: 1px
|
152
|
+
.icon-bar + .icon-bar
|
153
|
+
margin-top: 4px
|
154
|
+
@media (min-width: $grid-float-breakpoint)
|
155
|
+
display: none
|
156
|
+
|
157
|
+
// Navbar nav links
|
158
|
+
//
|
159
|
+
// Builds on top of the `.nav` components with it's own modifier class to make
|
160
|
+
// the nav the full height of the horizontal nav (above 768px).
|
161
|
+
|
162
|
+
.navbar-nav
|
163
|
+
margin: $navbar-padding-vertical / 2 (-$navbar-padding-horizontal)
|
164
|
+
> li > a
|
165
|
+
padding-top: 10px
|
166
|
+
padding-bottom: 10px
|
167
|
+
line-height: $line-height-computed
|
168
|
+
@media (max-width: $screen-xs-max)
|
169
|
+
// Dropdowns get custom display when collapsed
|
170
|
+
.open .dropdown-menu
|
171
|
+
position: static
|
172
|
+
float: none
|
173
|
+
width: auto
|
174
|
+
margin-top: 0
|
175
|
+
background-color: transparent
|
176
|
+
border: 0
|
177
|
+
box-shadow: none
|
178
|
+
> li > a,
|
179
|
+
.dropdown-header
|
180
|
+
padding: 5px 15px 5px 25px
|
181
|
+
> li > a
|
182
|
+
line-height: $line-height-computed
|
183
|
+
&:hover,
|
184
|
+
&:focus
|
185
|
+
background-image: none
|
186
|
+
// Uncollapse the nav
|
187
|
+
@media (min-width: $grid-float-breakpoint)
|
188
|
+
float: left
|
189
|
+
margin: 0
|
190
|
+
> li
|
191
|
+
float: left
|
192
|
+
> a
|
193
|
+
padding-top: ($navbar-height - $line-height-computed) / 2
|
194
|
+
padding-bottom: ($navbar-height - $line-height-computed) / 2
|
195
|
+
|
196
|
+
// Component alignment
|
197
|
+
//
|
198
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specifity
|
199
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
200
|
+
// though so that navbar contents properly stack and align in mobile.
|
201
|
+
|
202
|
+
@media (min-width: $grid-float-breakpoint)
|
203
|
+
.navbar-left
|
204
|
+
float: left !important
|
205
|
+
.navbar-right
|
206
|
+
float: right !important
|
207
|
+
|
208
|
+
// Navbar form
|
209
|
+
//
|
210
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
211
|
+
// our navbars.
|
212
|
+
|
213
|
+
.navbar-form
|
214
|
+
margin-left: -$navbar-padding-horizontal
|
215
|
+
margin-right: -$navbar-padding-horizontal
|
216
|
+
padding: 10px $navbar-padding-horizontal
|
217
|
+
border-top: 1px solid transparent
|
218
|
+
border-bottom: 1px solid transparent
|
219
|
+
$shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1)
|
220
|
+
+box-shadow($shadow)
|
221
|
+
// Mixin behavior for optimum display
|
222
|
+
@extend .form-inline
|
223
|
+
.form-group
|
224
|
+
@media (max-width: $screen-xs-max)
|
225
|
+
margin-bottom: 5px
|
226
|
+
// Vertically center in expanded, horizontal navbar
|
227
|
+
+navbar-vertical-align($input-height-base)
|
228
|
+
// Undo 100% width for pull classes
|
229
|
+
@media (min-width: $grid-float-breakpoint)
|
230
|
+
width: auto
|
231
|
+
border: 0
|
232
|
+
margin-left: 0
|
233
|
+
margin-right: 0
|
234
|
+
padding-top: 0
|
235
|
+
padding-bottom: 0
|
236
|
+
+box-shadow(none)
|
237
|
+
|
238
|
+
// Dropdown menus
|
239
|
+
|
240
|
+
// Menu position and menu carets
|
241
|
+
.navbar-nav > li > .dropdown-menu
|
242
|
+
margin-top: 0
|
243
|
+
+border-top-radius(0)
|
244
|
+
|
245
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
246
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu
|
247
|
+
+border-bottom-radius(0)
|
248
|
+
|
249
|
+
// Right aligned menus need alt position
|
250
|
+
|
251
|
+
.navbar-nav.pull-right > li > .dropdown-menu,
|
252
|
+
.navbar-nav > li > .dropdown-menu.pull-right
|
253
|
+
left: auto
|
254
|
+
right: 0
|
255
|
+
|
256
|
+
// Buttons in navbars
|
257
|
+
//
|
258
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
259
|
+
|
260
|
+
.navbar-btn
|
261
|
+
+navbar-vertical-align($input-height-base)
|
262
|
+
|
263
|
+
// Text in navbars
|
264
|
+
//
|
265
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
266
|
+
|
267
|
+
.navbar-text
|
268
|
+
float: left
|
269
|
+
+navbar-vertical-align($line-height-computed)
|
270
|
+
@media (min-width: $grid-float-breakpoint)
|
271
|
+
margin-left: $navbar-padding-horizontal
|
272
|
+
margin-right: $navbar-padding-horizontal
|
273
|
+
|
274
|
+
// Alternate navbars
|
275
|
+
// --------------------------------------------------
|
276
|
+
|
277
|
+
// Default navbar
|
278
|
+
.navbar-default
|
279
|
+
background-color: $navbar-default-bg
|
280
|
+
border-color: $navbar-default-border
|
281
|
+
.navbar-brand
|
282
|
+
color: $navbar-default-brand-color
|
283
|
+
&:hover,
|
284
|
+
&:focus
|
285
|
+
color: $navbar-default-brand-hover-color
|
286
|
+
background-color: $navbar-default-brand-hover-bg
|
287
|
+
.navbar-text
|
288
|
+
color: $navbar-default-color
|
289
|
+
.navbar-nav
|
290
|
+
> li > a
|
291
|
+
color: $navbar-default-link-color
|
292
|
+
&:hover,
|
293
|
+
&:focus
|
294
|
+
color: $navbar-default-link-hover-color
|
295
|
+
background-color: $navbar-default-link-hover-bg
|
296
|
+
> .active > a
|
297
|
+
&,
|
298
|
+
&:hover,
|
299
|
+
&:focus
|
300
|
+
color: $navbar-default-link-active-color
|
301
|
+
background-color: $navbar-default-link-active-bg
|
302
|
+
> .disabled > a
|
303
|
+
&,
|
304
|
+
&:hover,
|
305
|
+
&:focus
|
306
|
+
color: $navbar-default-link-disabled-color
|
307
|
+
background-color: $navbar-default-link-disabled-bg
|
308
|
+
.navbar-toggle
|
309
|
+
border-color: $navbar-default-toggle-border-color
|
310
|
+
&:hover,
|
311
|
+
&:focus
|
312
|
+
background-color: $navbar-default-toggle-hover-bg
|
313
|
+
.icon-bar
|
314
|
+
background-color: $navbar-default-toggle-icon-bar-bg
|
315
|
+
.navbar-collapse,
|
316
|
+
.navbar-form
|
317
|
+
border-color: darken($navbar-default-bg, 7%)
|
318
|
+
// Dropdown menu items and carets
|
319
|
+
.navbar-nav
|
320
|
+
// Caret should match text color on hover
|
321
|
+
> .dropdown > a:hover .caret,
|
322
|
+
> .dropdown > a:focus .caret
|
323
|
+
border-top-color: $navbar-default-link-hover-color
|
324
|
+
border-bottom-color: $navbar-default-link-hover-color
|
325
|
+
// Remove background color from open dropdown
|
326
|
+
> .open > a
|
327
|
+
&,
|
328
|
+
&:hover,
|
329
|
+
&:focus
|
330
|
+
background-color: $navbar-default-link-active-bg
|
331
|
+
color: $navbar-default-link-active-color
|
332
|
+
.caret
|
333
|
+
border-top-color: $navbar-default-link-active-color
|
334
|
+
border-bottom-color: $navbar-default-link-active-color
|
335
|
+
> .dropdown > a .caret
|
336
|
+
border-top-color: $navbar-default-link-color
|
337
|
+
border-bottom-color: $navbar-default-link-color
|
338
|
+
@media (max-width: $screen-xs-max)
|
339
|
+
// Dropdowns get custom display when collapsed
|
340
|
+
.open .dropdown-menu
|
341
|
+
> li > a
|
342
|
+
color: $navbar-default-link-color
|
343
|
+
&:hover,
|
344
|
+
&:focus
|
345
|
+
color: $navbar-default-link-hover-color
|
346
|
+
background-color: $navbar-default-link-hover-bg
|
347
|
+
> .active > a
|
348
|
+
&,
|
349
|
+
&:hover,
|
350
|
+
&:focus
|
351
|
+
color: $navbar-default-link-active-color
|
352
|
+
background-color: $navbar-default-link-active-bg
|
353
|
+
> .disabled > a
|
354
|
+
&,
|
355
|
+
&:hover,
|
356
|
+
&:focus
|
357
|
+
color: $navbar-default-link-disabled-color
|
358
|
+
background-color: $navbar-default-link-disabled-bg
|
359
|
+
// Links in navbars
|
360
|
+
//
|
361
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
362
|
+
.navbar-link
|
363
|
+
color: $navbar-default-link-color
|
364
|
+
&:hover
|
365
|
+
color: $navbar-default-link-hover-color
|
366
|
+
|
367
|
+
// Inverse navbar
|
368
|
+
|
369
|
+
.navbar-inverse
|
370
|
+
background-color: $navbar-inverse-bg
|
371
|
+
border-color: $navbar-inverse-border
|
372
|
+
.navbar-brand
|
373
|
+
color: $navbar-inverse-brand-color
|
374
|
+
&:hover,
|
375
|
+
&:focus
|
376
|
+
color: $navbar-inverse-brand-hover-color
|
377
|
+
background-color: $navbar-inverse-brand-hover-bg
|
378
|
+
.navbar-text
|
379
|
+
color: $navbar-inverse-color
|
380
|
+
.navbar-nav
|
381
|
+
> li > a
|
382
|
+
color: $navbar-inverse-link-color
|
383
|
+
&:hover,
|
384
|
+
&:focus
|
385
|
+
color: $navbar-inverse-link-hover-color
|
386
|
+
background-color: $navbar-inverse-link-hover-bg
|
387
|
+
> .active > a
|
388
|
+
&,
|
389
|
+
&:hover,
|
390
|
+
&:focus
|
391
|
+
color: $navbar-inverse-link-active-color
|
392
|
+
background-color: $navbar-inverse-link-active-bg
|
393
|
+
> .disabled > a
|
394
|
+
&,
|
395
|
+
&:hover,
|
396
|
+
&:focus
|
397
|
+
color: $navbar-inverse-link-disabled-color
|
398
|
+
background-color: $navbar-inverse-link-disabled-bg
|
399
|
+
// Darken the responsive nav toggle
|
400
|
+
.navbar-toggle
|
401
|
+
border-color: $navbar-inverse-toggle-border-color
|
402
|
+
&:hover,
|
403
|
+
&:focus
|
404
|
+
background-color: $navbar-inverse-toggle-hover-bg
|
405
|
+
.icon-bar
|
406
|
+
background-color: $navbar-inverse-toggle-icon-bar-bg
|
407
|
+
.navbar-collapse,
|
408
|
+
.navbar-form
|
409
|
+
border-color: darken($navbar-inverse-bg, 7%)
|
410
|
+
// Dropdowns
|
411
|
+
.navbar-nav
|
412
|
+
> .open > a
|
413
|
+
&,
|
414
|
+
&:hover,
|
415
|
+
&:focus
|
416
|
+
background-color: $navbar-inverse-link-active-bg
|
417
|
+
color: $navbar-inverse-link-active-color
|
418
|
+
> .dropdown > a:hover .caret
|
419
|
+
border-top-color: $navbar-inverse-link-hover-color
|
420
|
+
border-bottom-color: $navbar-inverse-link-hover-color
|
421
|
+
> .dropdown > a .caret
|
422
|
+
border-top-color: $navbar-inverse-link-color
|
423
|
+
border-bottom-color: $navbar-inverse-link-color
|
424
|
+
> .open > a
|
425
|
+
&,
|
426
|
+
&:hover,
|
427
|
+
&:focus
|
428
|
+
.caret
|
429
|
+
border-top-color: $navbar-inverse-link-active-color
|
430
|
+
border-bottom-color: $navbar-inverse-link-active-color
|
431
|
+
@media (max-width: $screen-xs-max)
|
432
|
+
// Dropdowns get custom display
|
433
|
+
.open .dropdown-menu
|
434
|
+
> .dropdown-header
|
435
|
+
border-color: $navbar-inverse-border
|
436
|
+
> li > a
|
437
|
+
color: $navbar-inverse-link-color
|
438
|
+
&:hover,
|
439
|
+
&:focus
|
440
|
+
color: $navbar-inverse-link-hover-color
|
441
|
+
background-color: $navbar-inverse-link-hover-bg
|
442
|
+
> .active > a
|
443
|
+
&,
|
444
|
+
&:hover,
|
445
|
+
&:focus
|
446
|
+
color: $navbar-inverse-link-active-color
|
447
|
+
background-color: $navbar-inverse-link-active-bg
|
448
|
+
> .disabled > a
|
449
|
+
&,
|
450
|
+
&:hover,
|
451
|
+
&:focus
|
452
|
+
color: $navbar-inverse-link-disabled-color
|
453
|
+
background-color: $navbar-inverse-link-disabled-bg
|
454
|
+
.navbar-link
|
455
|
+
color: $navbar-inverse-link-color
|
456
|
+
&:hover
|
457
|
+
color: $navbar-inverse-link-hover-color
|