anjlab-bootstrap-rails 2.3.1.2 → 3.0.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +3 -0
- data/Rakefile +42 -26
- data/lib/bootstrap-rails.rb +5 -6
- data/lib/bootstrap-rails/engine.rb +2 -9
- data/lib/bootstrap-rails/version.rb +1 -1
- data/test/test_helper.rb +2 -2
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.eot +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.otf +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.svg +175 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.ttf +0 -0
- data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.woff +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +4 -5
- data/vendor/assets/javascripts/twitter/bootstrap/affix.js +50 -47
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +32 -35
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +37 -37
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +123 -127
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +81 -95
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +61 -81
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +146 -151
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +53 -58
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +99 -105
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +70 -81
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +246 -254
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +24 -37
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +1 -1
- data/vendor/{frameworks/twitter/bootstrap/accordion.scss → assets/stylesheets/twitter/bootstrap/_accordion.scss} +2 -2
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +92 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_badges.scss +58 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_bootstrap.scss +64 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +28 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +170 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +160 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +191 -0
- data/vendor/{frameworks/twitter/bootstrap/close.scss → assets/stylesheets/twitter/bootstrap/_close.scss} +7 -6
- data/vendor/{frameworks/twitter/bootstrap/code.scss → assets/stylesheets/twitter/bootstrap/_code.scss} +14 -14
- data/vendor/{frameworks/twitter/bootstrap/component-animations.scss → assets/stylesheets/twitter/bootstrap/_component-animations.scss} +1 -0
- data/vendor/{frameworks/twitter/bootstrap/dropdowns.scss → assets/stylesheets/twitter/bootstrap/_dropdowns.scss} +46 -57
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +464 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +200 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +65 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +32 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +70 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_list-group.scss +96 -0
- data/vendor/{frameworks/twitter/bootstrap/media.scss → assets/stylesheets/twitter/bootstrap/_media.scss} +0 -1
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +510 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +137 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +356 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +249 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_normalize.scss +396 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +87 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_panels.scss +96 -0
- data/vendor/{frameworks/twitter/bootstrap/popovers.scss → assets/stylesheets/twitter/bootstrap/_popovers.scss} +32 -32
- data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +74 -0
- data/vendor/{frameworks/twitter/bootstrap/progress-bars.scss → assets/stylesheets/twitter/bootstrap/_progress-bars.scss} +40 -44
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +77 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +83 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +242 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +43 -0
- data/vendor/{frameworks/twitter/bootstrap/tooltip.scss → assets/stylesheets/twitter/bootstrap/_tooltip.scss} +20 -19
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +253 -0
- data/vendor/{frameworks/twitter/bootstrap/utilities.scss → assets/stylesheets/twitter/bootstrap/_utilities.scss} +17 -5
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +416 -0
- data/vendor/{frameworks/twitter/bootstrap/wells.scss → assets/stylesheets/twitter/bootstrap/_wells.scss} +5 -5
- metadata +49 -53
- data/lib/bootstrap-rails/ie_hex_str.rb +0 -16
- data/test/ie_hex_str_test.rb +0 -26
- data/vendor/assets/images/twitter/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +0 -335
- data/vendor/assets/stylesheets/twitter/bootstrap-responsive.scss +0 -1
- data/vendor/frameworks/twitter/bootstrap.scss +0 -1
- data/vendor/frameworks/twitter/bootstrap/alerts.scss +0 -79
- data/vendor/frameworks/twitter/bootstrap/bootstrap.scss +0 -63
- data/vendor/frameworks/twitter/bootstrap/breadcrumbs.scss +0 -24
- data/vendor/frameworks/twitter/bootstrap/button-groups.scss +0 -230
- data/vendor/frameworks/twitter/bootstrap/buttons.scss +0 -228
- data/vendor/frameworks/twitter/bootstrap/carousel.scss +0 -158
- data/vendor/frameworks/twitter/bootstrap/forms.scss +0 -690
- data/vendor/frameworks/twitter/bootstrap/grid.scss +0 -21
- data/vendor/frameworks/twitter/bootstrap/hero-unit.scss +0 -25
- data/vendor/frameworks/twitter/bootstrap/labels-badges.scss +0 -83
- data/vendor/frameworks/twitter/bootstrap/layouts.scss +0 -16
- data/vendor/frameworks/twitter/bootstrap/mixins.scss +0 -704
- data/vendor/frameworks/twitter/bootstrap/modals.scss +0 -95
- data/vendor/frameworks/twitter/bootstrap/navbar.scss +0 -496
- data/vendor/frameworks/twitter/bootstrap/navs.scss +0 -409
- data/vendor/frameworks/twitter/bootstrap/pager.scss +0 -43
- data/vendor/frameworks/twitter/bootstrap/pagination.scss +0 -123
- data/vendor/frameworks/twitter/bootstrap/reset.scss +0 -216
- data/vendor/frameworks/twitter/bootstrap/responsive-1200px-min.scss +0 -28
- data/vendor/frameworks/twitter/bootstrap/responsive-767px-max.scss +0 -189
- data/vendor/frameworks/twitter/bootstrap/responsive-768px-979px.scss +0 -19
- data/vendor/frameworks/twitter/bootstrap/responsive-navbar.scss +0 -189
- data/vendor/frameworks/twitter/bootstrap/responsive-utilities.scss +0 -59
- data/vendor/frameworks/twitter/bootstrap/responsive.scss +0 -48
- data/vendor/frameworks/twitter/bootstrap/scaffolding.scss +0 -53
- data/vendor/frameworks/twitter/bootstrap/sprites.scss +0 -197
- data/vendor/frameworks/twitter/bootstrap/tables.scss +0 -235
- data/vendor/frameworks/twitter/bootstrap/thumbnails.scss +0 -53
- data/vendor/frameworks/twitter/bootstrap/type.scss +0 -246
- data/vendor/frameworks/twitter/bootstrap/variables.scss +0 -295
@@ -0,0 +1,137 @@
|
|
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
|
+
}
|
14
|
+
|
15
|
+
// Container that the modal scrolls within
|
16
|
+
.modal {
|
17
|
+
display: none;
|
18
|
+
overflow: auto;
|
19
|
+
overflow-y: scroll;
|
20
|
+
position: fixed;
|
21
|
+
top: 0;
|
22
|
+
right: 0;
|
23
|
+
bottom: 0;
|
24
|
+
left: 0;
|
25
|
+
z-index: $zindex-modal-background;
|
26
|
+
-webkit-overflow-scrolling: touch;
|
27
|
+
|
28
|
+
// When fading in the modal, animate it to slide down
|
29
|
+
&.fade {
|
30
|
+
top: -25%;
|
31
|
+
@include transition((opacity 0.3s linear, top 0.3s ease-out));
|
32
|
+
}
|
33
|
+
&.fade.in { top: 0; }
|
34
|
+
}
|
35
|
+
|
36
|
+
// Shell div to position the modal with bottom padding
|
37
|
+
.modal-dialog {
|
38
|
+
position: relative;
|
39
|
+
top: 0;
|
40
|
+
left: 0;
|
41
|
+
right: 0;
|
42
|
+
width: auto;
|
43
|
+
padding: 10px;
|
44
|
+
z-index: ($zindex-modal-background + 10);
|
45
|
+
}
|
46
|
+
|
47
|
+
// Actual modal
|
48
|
+
.modal-content {
|
49
|
+
position: relative;
|
50
|
+
background-color: #fff;
|
51
|
+
border: 1px solid #999;
|
52
|
+
border: 1px solid rgba(0,0,0,.2);
|
53
|
+
border-radius: 6px;
|
54
|
+
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
55
|
+
@include background-clip(padding-box);
|
56
|
+
// Remove focus outline from opened modal
|
57
|
+
outline: none;
|
58
|
+
}
|
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: #000;
|
69
|
+
// Fade for backdrop
|
70
|
+
&.fade { @include opacity(0); }
|
71
|
+
&.fade.in { @include opacity(.5); }
|
72
|
+
}
|
73
|
+
|
74
|
+
// Modal header
|
75
|
+
// Top section of the modal w/ title and dismiss
|
76
|
+
.modal-header {
|
77
|
+
padding: $modal-title-padding;
|
78
|
+
border-bottom: 1px solid #e5e5e5;
|
79
|
+
min-height: ($modal-title-padding + $modal-title-line-height);
|
80
|
+
}
|
81
|
+
// Close icon
|
82
|
+
.modal-header .close {
|
83
|
+
margin-top: -2px;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Title text within header
|
87
|
+
.modal-title {
|
88
|
+
margin: 0;
|
89
|
+
line-height: $modal-title-line-height;
|
90
|
+
}
|
91
|
+
|
92
|
+
// Modal body
|
93
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
94
|
+
.modal-body {
|
95
|
+
position: relative;
|
96
|
+
padding: $modal-inner-padding;
|
97
|
+
}
|
98
|
+
|
99
|
+
// Footer (for actions)
|
100
|
+
.modal-footer {
|
101
|
+
margin-top: 15px;
|
102
|
+
padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
|
103
|
+
text-align: right; // right align buttons
|
104
|
+
border-top: 1px solid #e5e5e5;
|
105
|
+
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
106
|
+
|
107
|
+
// Properly space out buttons
|
108
|
+
.btn + .btn {
|
109
|
+
margin-left: 5px;
|
110
|
+
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
111
|
+
}
|
112
|
+
// but override that for button groups
|
113
|
+
.btn-group .btn + .btn {
|
114
|
+
margin-left: -1px;
|
115
|
+
}
|
116
|
+
// and override it for block buttons as well
|
117
|
+
.btn-block + .btn-block {
|
118
|
+
margin-left: 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
// Scale up the modal
|
123
|
+
@media screen and (min-width: $screen-tablet) {
|
124
|
+
|
125
|
+
.modal-dialog {
|
126
|
+
left: 50%;
|
127
|
+
right: auto;
|
128
|
+
width: 560px;
|
129
|
+
margin-left: -280px;
|
130
|
+
padding-top: 30px;
|
131
|
+
padding-bottom: 30px;
|
132
|
+
}
|
133
|
+
.modal-content {
|
134
|
+
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
135
|
+
}
|
136
|
+
|
137
|
+
}
|
@@ -0,0 +1,356 @@
|
|
1
|
+
//
|
2
|
+
// Navbars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Wrapper and base class
|
6
|
+
.navbar {
|
7
|
+
position: relative;
|
8
|
+
margin-bottom: 20px;
|
9
|
+
padding-left: 15px;
|
10
|
+
padding-right: 15px;
|
11
|
+
background-color: $navbar-bg;
|
12
|
+
border-radius: $border-radius-base;
|
13
|
+
|
14
|
+
// Prevent floats from breaking the navbar
|
15
|
+
@include clearfix();
|
16
|
+
}
|
17
|
+
|
18
|
+
// Navbar nav links
|
19
|
+
// -------------------------
|
20
|
+
|
21
|
+
.navbar-nav {
|
22
|
+
// Space out from .navbar .brand and .btn-navbar when stacked in mobile views
|
23
|
+
// and outdent nav links so text lines up with logo.
|
24
|
+
margin-top: 10px;
|
25
|
+
margin-bottom: 15px;
|
26
|
+
|
27
|
+
> li > a {
|
28
|
+
padding-top: (($navbar-height - $line-height-computed) / 2);
|
29
|
+
padding-bottom: (($navbar-height - $line-height-computed) / 2);
|
30
|
+
color: $navbar-link-color;
|
31
|
+
line-height: 20px;
|
32
|
+
border-radius: $border-radius-base;
|
33
|
+
}
|
34
|
+
> li > a:hover,
|
35
|
+
> li > a:focus {
|
36
|
+
color: $navbar-link-hover-color;
|
37
|
+
background-color: $navbar-link-hover-bg;
|
38
|
+
}
|
39
|
+
> .active > a,
|
40
|
+
> .active > a:hover,
|
41
|
+
> .active > a:focus {
|
42
|
+
color: $navbar-link-active-color;
|
43
|
+
background-color: $navbar-link-active-bg;
|
44
|
+
}
|
45
|
+
> .disabled > a,
|
46
|
+
> .disabled > a:hover,
|
47
|
+
> .disabled > a:focus {
|
48
|
+
color: $navbar-link-disabled-color;
|
49
|
+
background-color: $navbar-link-disabled-bg;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
//
|
56
|
+
// Navbar alignment options
|
57
|
+
// --------------------------------------------------
|
58
|
+
|
59
|
+
// Static navbar
|
60
|
+
.navbar-static-top {
|
61
|
+
border-radius: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
65
|
+
.navbar-fixed-top,
|
66
|
+
.navbar-fixed-bottom {
|
67
|
+
position: fixed;
|
68
|
+
right: 0;
|
69
|
+
left: 0;
|
70
|
+
z-index: $zindex-navbar-fixed;
|
71
|
+
border-radius: 0;
|
72
|
+
}
|
73
|
+
.navbar-fixed-top {
|
74
|
+
top: 0;
|
75
|
+
}
|
76
|
+
.navbar-fixed-bottom {
|
77
|
+
bottom: 0;
|
78
|
+
margin-bottom: 0; // override .navbar defaults
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
//
|
84
|
+
// Navbar optional components
|
85
|
+
// --------------------------------------------------
|
86
|
+
|
87
|
+
// Brand/project name
|
88
|
+
.navbar-brand {
|
89
|
+
display: block;
|
90
|
+
max-width: 200px;
|
91
|
+
margin-left: auto;
|
92
|
+
margin-right: auto;
|
93
|
+
padding: 15px;
|
94
|
+
font-size: $font-size-large;
|
95
|
+
font-weight: 500;
|
96
|
+
line-height: $line-height-computed;
|
97
|
+
color: $navbar-brand-color;
|
98
|
+
text-align: center;
|
99
|
+
&:hover,
|
100
|
+
&:focus {
|
101
|
+
color: $navbar-brand-hover-color;
|
102
|
+
text-decoration: none;
|
103
|
+
background-color: $navbar-brand-hover-bg;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
// Collapsible navbar toggle
|
108
|
+
.navbar-toggle {
|
109
|
+
position: absolute;
|
110
|
+
top: 10px;
|
111
|
+
right: 10px;
|
112
|
+
padding: 8px 12px;
|
113
|
+
background-color: transparent;
|
114
|
+
border: 1px solid #ddd;
|
115
|
+
border-radius: 4px;
|
116
|
+
|
117
|
+
&:hover,
|
118
|
+
&:focus {
|
119
|
+
background-color: #ddd;
|
120
|
+
}
|
121
|
+
|
122
|
+
// Bars
|
123
|
+
.icon-bar {
|
124
|
+
display: block;
|
125
|
+
width: 22px;
|
126
|
+
height: 2px;
|
127
|
+
background-color: #ccc;
|
128
|
+
border-radius: 1px;
|
129
|
+
}
|
130
|
+
.icon-bar + .icon-bar {
|
131
|
+
margin-top: 4px;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
// Navbar form
|
136
|
+
.navbar-form {
|
137
|
+
@include form-inline();
|
138
|
+
@include navbar-vertical-align($input-height-base); // Vertically center in navbar
|
139
|
+
}
|
140
|
+
|
141
|
+
// Dropdown menus
|
142
|
+
|
143
|
+
// Menu position and menu carets
|
144
|
+
.navbar-nav > li > .dropdown-menu {
|
145
|
+
margin-top: 0;
|
146
|
+
border-top-left-radius: 0;
|
147
|
+
border-top-right-radius: 0;
|
148
|
+
}
|
149
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
150
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
151
|
+
border-bottom-left-radius: 0;
|
152
|
+
border-bottom-right-radius: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
// Dropdown menu items and carets
|
156
|
+
.navbar-nav {
|
157
|
+
// Caret should match text color on hover
|
158
|
+
> .dropdown > a:hover .caret,
|
159
|
+
> .dropdown > a:focus .caret {
|
160
|
+
border-top-color: $navbar-link-hover-color;
|
161
|
+
border-bottom-color: $navbar-link-hover-color;
|
162
|
+
}
|
163
|
+
|
164
|
+
// Remove background color from open dropdown
|
165
|
+
> .open > a,
|
166
|
+
> .open > a:hover,
|
167
|
+
> .open > a:focus {
|
168
|
+
background-color: $navbar-link-active-bg;
|
169
|
+
color: $navbar-link-active-color;
|
170
|
+
}
|
171
|
+
> .dropdown > a .caret {
|
172
|
+
border-top-color: $navbar-link-color;
|
173
|
+
border-bottom-color: $navbar-link-color;
|
174
|
+
}
|
175
|
+
> .open > a .caret,
|
176
|
+
> .open > a:hover .caret,
|
177
|
+
> .open > a:focus .caret {
|
178
|
+
border-top-color: $navbar-link-active-color;
|
179
|
+
border-bottom-color: $navbar-link-active-color;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
// Right aligned menus need alt position
|
184
|
+
.navbar-nav.pull-right > li > .dropdown-menu,
|
185
|
+
.navbar-nav > li > .dropdown-menu.pull-right {
|
186
|
+
left: auto;
|
187
|
+
right: 0;
|
188
|
+
}
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
// Inverse navbar
|
193
|
+
// --------------------------------------------------
|
194
|
+
|
195
|
+
.navbar-inverse {
|
196
|
+
background-color: $navbar-inverse-bg;
|
197
|
+
|
198
|
+
.navbar-brand {
|
199
|
+
color: $navbar-inverse-brand-color;
|
200
|
+
&:hover,
|
201
|
+
&:focus {
|
202
|
+
color: $navbar-inverse-brand-hover-color;
|
203
|
+
background-color: $navbar-inverse-brand-hover-bg;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
.navbar-text {
|
208
|
+
color: $navbar-inverse-color;
|
209
|
+
}
|
210
|
+
|
211
|
+
.navbar-nav {
|
212
|
+
> li > a {
|
213
|
+
color: $navbar-inverse-link-color;
|
214
|
+
}
|
215
|
+
> li > a:hover,
|
216
|
+
> li > a:focus {
|
217
|
+
color: $navbar-inverse-link-hover-color;
|
218
|
+
background-color: $navbar-inverse-link-hover-bg;
|
219
|
+
}
|
220
|
+
> .active > a,
|
221
|
+
> .active > a:hover,
|
222
|
+
> .active > a:focus {
|
223
|
+
color: $navbar-inverse-link-active-color;
|
224
|
+
background-color: $navbar-inverse-link-active-bg;
|
225
|
+
}
|
226
|
+
> .disabled > a,
|
227
|
+
> .disabled > a:hover,
|
228
|
+
> .disabled > a:focus {
|
229
|
+
color: $navbar-inverse-link-disabled-color;
|
230
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
// Darken the responsive nav toggle
|
235
|
+
.navbar-toggle {
|
236
|
+
border-color: #333;
|
237
|
+
&:hover,
|
238
|
+
&:focus {
|
239
|
+
background-color: #333;
|
240
|
+
}
|
241
|
+
.icon-bar {
|
242
|
+
background-color: #fff;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
// Dropdowns
|
247
|
+
.navbar-nav {
|
248
|
+
> .open > a,
|
249
|
+
> .open > a:hover,
|
250
|
+
> .open > a:focus {
|
251
|
+
background-color: $navbar-inverse-link-active-bg;
|
252
|
+
color: $navbar-inverse-link-active-color;
|
253
|
+
}
|
254
|
+
> .dropdown > a:hover .caret {
|
255
|
+
border-top-color: $navbar-inverse-link-hover-color;
|
256
|
+
border-bottom-color: $navbar-inverse-link-hover-color;
|
257
|
+
}
|
258
|
+
> .dropdown > a .caret {
|
259
|
+
border-top-color: $navbar-inverse-link-color;
|
260
|
+
border-bottom-color: $navbar-inverse-link-color;
|
261
|
+
}
|
262
|
+
> .open > a .caret,
|
263
|
+
> .open > a:hover .caret,
|
264
|
+
> .open > a:focus .caret {
|
265
|
+
border-top-color: $navbar-inverse-link-active-color;
|
266
|
+
border-bottom-color: $navbar-inverse-link-active-color;
|
267
|
+
}
|
268
|
+
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
// Responsive navbar
|
275
|
+
// --------------------------------------------------
|
276
|
+
|
277
|
+
@media screen and (min-width: $screen-tablet) {
|
278
|
+
|
279
|
+
.navbar-brand {
|
280
|
+
float: left;
|
281
|
+
margin-left: -5px;
|
282
|
+
margin-right: 5px;
|
283
|
+
}
|
284
|
+
.navbar .nav {
|
285
|
+
float: left;
|
286
|
+
// undo margin to make nav extend full height of navbar
|
287
|
+
margin-top: 0;
|
288
|
+
margin-bottom: 0;
|
289
|
+
|
290
|
+
> li {
|
291
|
+
float: left;
|
292
|
+
> a {
|
293
|
+
border-radius: 0;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
&.pull-right {
|
298
|
+
float: right;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
// Required to make the collapsing navbar work on regular desktops
|
303
|
+
.navbar-toggle {
|
304
|
+
position: relative;
|
305
|
+
top: auto;
|
306
|
+
left: auto;
|
307
|
+
display: none;
|
308
|
+
}
|
309
|
+
.nav-collapse.collapse {
|
310
|
+
height: auto !important;
|
311
|
+
overflow: visible !important;
|
312
|
+
}
|
313
|
+
|
314
|
+
}
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
// Buttons in navbars
|
319
|
+
//
|
320
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
321
|
+
|
322
|
+
.navbar-btn {
|
323
|
+
margin-top: (($navbar-height - $input-height-base) / 2);
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
// Text in navbars
|
329
|
+
//
|
330
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
331
|
+
|
332
|
+
.navbar-text {
|
333
|
+
@include navbar-vertical-align($line-height-computed);
|
334
|
+
}
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
// Links in navbars
|
339
|
+
//
|
340
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
341
|
+
|
342
|
+
// Default navbar variables
|
343
|
+
.navbar-link {
|
344
|
+
color: $navbar-link-color;
|
345
|
+
&:hover {
|
346
|
+
color: $navbar-link-hover-color;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
// Use the inverse navbar variables
|
351
|
+
.navbar-inverse .navbar-link {
|
352
|
+
color: $navbar-inverse-link-color;
|
353
|
+
&:hover {
|
354
|
+
color: $navbar-inverse-link-hover-color;
|
355
|
+
}
|
356
|
+
}
|