twitter-bootstrap-rails 2.2.8 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +229 -322
- data/Rakefile +4 -6
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +162 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +120 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +237 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +211 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +337 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +108 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +172 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +514 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +14 -7
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +12 -6
- data/app/helpers/modal_helper.rb +26 -22
- data/app/helpers/navbar_helper.rb +47 -32
- data/app/helpers/twitter_breadcrumbs_helper.rb +6 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +8 -8
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.css +3 -4
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +9 -18
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +5 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +27 -48
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +19 -34
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +13 -30
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +30 -10
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -9
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +4 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +6 -5
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +5 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +4 -4
- data/lib/generators/bootstrap/themed/templates/show.html.slim +6 -7
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
- data/lib/generators/bootstrap/themed/themed_generator.rb +2 -2
- data/lib/twitter/bootstrap/rails/breadcrumbs.rb +69 -0
- data/lib/twitter/bootstrap/rails/engine.rb +17 -10
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +99 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +12 -4
- data/spec/lib/twitter_bootstrap_rails/bootstrap_flash_helper_spec.rb +128 -0
- data/spec/lib/twitter_bootstrap_rails/form_errors_helper_spec.rb +148 -0
- data/spec/lib/twitter_bootstrap_rails/glyph_helper_spec.rb +24 -0
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +207 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +11 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5796 -1
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/alerts.less +51 -57
- data/vendor/toolkit/twitter/bootstrap/badges.less +66 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -36
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +167 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +107 -169
- data/vendor/toolkit/twitter/bootstrap/carousel.less +177 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +21 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +15 -4
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +120 -152
- data/vendor/toolkit/twitter/bootstrap/forms.less +470 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +305 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +171 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +54 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +130 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +40 -29
- data/vendor/toolkit/twitter/bootstrap/mixins.less +37 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +65 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +30 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-text.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +227 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +547 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +424 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +45 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +71 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +271 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +66 -68
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +40 -75
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +131 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +172 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +291 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +27 -44
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +58 -27
- data/vendor/toolkit/twitter/bootstrap/type.less +209 -154
- data/vendor/toolkit/twitter/bootstrap/utilities.less +32 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +784 -216
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +156 -141
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -787
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +0 -42
- data/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/static-source/fontawesome.less +0 -9
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/core.less +0 -129
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/fontawesome/font-awesome.less +0 -33
- data/vendor/toolkit/fontawesome/icons.less +0 -381
- data/vendor/toolkit/fontawesome/mixins.less +0 -48
- data/vendor/toolkit/fontawesome/path.less +0 -14
- data/vendor/toolkit/fontawesome/variables.less +0 -735
- data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
- data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
- data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
- data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
- data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -2,82 +2,109 @@
|
|
2
2
|
// Modals
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
-
//
|
6
|
-
.modal-
|
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: hidden;
|
7
19
|
position: fixed;
|
8
20
|
top: 0;
|
9
21
|
right: 0;
|
10
22
|
bottom: 0;
|
11
23
|
left: 0;
|
12
|
-
z-index: @
|
13
|
-
|
14
|
-
|
15
|
-
|
24
|
+
z-index: @zindex-modal;
|
25
|
+
-webkit-overflow-scrolling: touch;
|
26
|
+
|
27
|
+
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
28
|
+
// https://github.com/twbs/bootstrap/pull/10951.
|
29
|
+
outline: 0;
|
30
|
+
|
31
|
+
// When fading in the modal, animate it to slide down
|
32
|
+
&.fade .modal-dialog {
|
33
|
+
.translate(0, -25%);
|
34
|
+
.transition-transform(~"0.3s ease-out");
|
35
|
+
}
|
36
|
+
&.in .modal-dialog { .translate(0, 0) }
|
37
|
+
}
|
38
|
+
.modal-open .modal {
|
39
|
+
overflow-x: hidden;
|
40
|
+
overflow-y: auto;
|
16
41
|
}
|
17
42
|
|
18
|
-
|
19
|
-
.modal-
|
20
|
-
|
43
|
+
// Shell div to position the modal with bottom padding
|
44
|
+
.modal-dialog {
|
45
|
+
position: relative;
|
46
|
+
width: auto;
|
47
|
+
margin: 10px;
|
21
48
|
}
|
22
49
|
|
23
|
-
//
|
24
|
-
.modal {
|
25
|
-
position:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
background-
|
32
|
-
border: 1px solid #999;
|
33
|
-
border: 1px solid rgba(0,0,0,.3);
|
34
|
-
*border: 1px solid #999; /* IE6-7 */
|
35
|
-
.border-radius(6px);
|
36
|
-
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
37
|
-
.background-clip(padding-box);
|
50
|
+
// Actual modal
|
51
|
+
.modal-content {
|
52
|
+
position: relative;
|
53
|
+
background-color: @modal-content-bg;
|
54
|
+
border: 1px solid @modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
55
|
+
border: 1px solid @modal-content-border-color;
|
56
|
+
border-radius: @border-radius-large;
|
57
|
+
.box-shadow(0 3px 9px rgba(0,0,0,.5));
|
58
|
+
background-clip: padding-box;
|
38
59
|
// Remove focus outline from opened modal
|
39
|
-
outline:
|
60
|
+
outline: 0;
|
61
|
+
}
|
40
62
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
63
|
+
// Modal background
|
64
|
+
.modal-backdrop {
|
65
|
+
position: fixed;
|
66
|
+
top: 0;
|
67
|
+
right: 0;
|
68
|
+
bottom: 0;
|
69
|
+
left: 0;
|
70
|
+
z-index: @zindex-modal-background;
|
71
|
+
background-color: @modal-backdrop-bg;
|
72
|
+
// Fade for backdrop
|
73
|
+
&.fade { .opacity(0); }
|
74
|
+
&.in { .opacity(@modal-backdrop-opacity); }
|
46
75
|
}
|
76
|
+
|
77
|
+
// Modal header
|
78
|
+
// Top section of the modal w/ title and dismiss
|
47
79
|
.modal-header {
|
48
|
-
padding:
|
49
|
-
border-bottom: 1px solid
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
line-height: 30px;
|
56
|
-
}
|
80
|
+
padding: @modal-title-padding;
|
81
|
+
border-bottom: 1px solid @modal-header-border-color;
|
82
|
+
&:extend(.clearfix all);
|
83
|
+
}
|
84
|
+
// Close icon
|
85
|
+
.modal-header .close {
|
86
|
+
margin-top: -2px;
|
57
87
|
}
|
58
88
|
|
59
|
-
//
|
89
|
+
// Title text within header
|
90
|
+
.modal-title {
|
91
|
+
margin: 0;
|
92
|
+
line-height: @modal-title-line-height;
|
93
|
+
}
|
94
|
+
|
95
|
+
// Modal body
|
96
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
60
97
|
.modal-body {
|
61
98
|
position: relative;
|
62
|
-
|
63
|
-
max-height: 400px;
|
64
|
-
padding: 15px;
|
65
|
-
}
|
66
|
-
// Remove bottom margin if need be
|
67
|
-
.modal-form {
|
68
|
-
margin-bottom: 0;
|
99
|
+
padding: @modal-inner-padding;
|
69
100
|
}
|
70
101
|
|
71
102
|
// Footer (for actions)
|
72
103
|
.modal-footer {
|
73
|
-
padding:
|
74
|
-
margin-bottom: 0;
|
104
|
+
padding: @modal-inner-padding;
|
75
105
|
text-align: right; // right align buttons
|
76
|
-
|
77
|
-
|
78
|
-
.border-radius(0 0 6px 6px);
|
79
|
-
.box-shadow(inset 0 1px 0 @white);
|
80
|
-
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
106
|
+
border-top: 1px solid @modal-footer-border-color;
|
107
|
+
&:extend(.clearfix all); // clear it in case folks use .pull-* classes on buttons
|
81
108
|
|
82
109
|
// Properly space out buttons
|
83
110
|
.btn + .btn {
|
@@ -93,3 +120,31 @@
|
|
93
120
|
margin-left: 0;
|
94
121
|
}
|
95
122
|
}
|
123
|
+
|
124
|
+
// Measure scrollbar width for padding body during modal show/hide
|
125
|
+
.modal-scrollbar-measure {
|
126
|
+
position: absolute;
|
127
|
+
top: -9999px;
|
128
|
+
width: 50px;
|
129
|
+
height: 50px;
|
130
|
+
overflow: scroll;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Scale up the modal
|
134
|
+
@media (min-width: @screen-sm-min) {
|
135
|
+
// Automatically set modal's width for larger viewports
|
136
|
+
.modal-dialog {
|
137
|
+
width: @modal-md;
|
138
|
+
margin: 30px auto;
|
139
|
+
}
|
140
|
+
.modal-content {
|
141
|
+
.box-shadow(0 5px 15px rgba(0,0,0,.5));
|
142
|
+
}
|
143
|
+
|
144
|
+
// Modal sizes
|
145
|
+
.modal-sm { width: @modal-sm; }
|
146
|
+
}
|
147
|
+
|
148
|
+
@media (min-width: @screen-md-min) {
|
149
|
+
.modal-lg { width: @modal-lg; }
|
150
|
+
}
|
@@ -1,497 +1,660 @@
|
|
1
1
|
//
|
2
|
-
// Navbars
|
2
|
+
// Navbars
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
//
|
7
|
-
//
|
6
|
+
// Wrapper and base class
|
7
|
+
//
|
8
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
9
|
+
// other navbar variations.
|
8
10
|
|
9
|
-
// Base class and wrapper
|
10
11
|
.navbar {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
*position: relative;
|
16
|
-
*z-index: 2;
|
17
|
-
}
|
18
|
-
|
19
|
-
// Inner for background effects
|
20
|
-
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
21
|
-
.navbar-inner {
|
22
|
-
min-height: @navbarHeight;
|
23
|
-
padding-left: 20px;
|
24
|
-
padding-right: 20px;
|
25
|
-
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
26
|
-
border: 1px solid @navbarBorder;
|
27
|
-
.border-radius(@baseBorderRadius);
|
28
|
-
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
12
|
+
position: relative;
|
13
|
+
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
14
|
+
margin-bottom: @navbar-margin-bottom;
|
15
|
+
border: 1px solid transparent;
|
29
16
|
|
30
17
|
// Prevent floats from breaking the navbar
|
31
|
-
.clearfix
|
32
|
-
}
|
18
|
+
&:extend(.clearfix all);
|
33
19
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
width: auto;
|
20
|
+
@media (min-width: @grid-float-breakpoint) {
|
21
|
+
border-radius: @navbar-border-radius;
|
22
|
+
}
|
38
23
|
}
|
39
24
|
|
40
|
-
// Override the default collapsed state
|
41
|
-
.nav-collapse.collapse {
|
42
|
-
height: auto;
|
43
|
-
overflow: visible;
|
44
|
-
}
|
45
25
|
|
26
|
+
// Navbar heading
|
27
|
+
//
|
28
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
29
|
+
// styling of responsive aspects.
|
46
30
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
// Vertically center the text given @navbarHeight
|
53
|
-
padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
|
54
|
-
margin-left: -20px; // negative indent to left-align the text down the page
|
55
|
-
font-size: 20px;
|
56
|
-
font-weight: 200;
|
57
|
-
color: @navbarBrandColor;
|
58
|
-
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
59
|
-
&:hover,
|
60
|
-
&:focus {
|
61
|
-
text-decoration: none;
|
31
|
+
.navbar-header {
|
32
|
+
&:extend(.clearfix all);
|
33
|
+
|
34
|
+
@media (min-width: @grid-float-breakpoint) {
|
35
|
+
float: left;
|
62
36
|
}
|
63
37
|
}
|
64
38
|
|
65
|
-
// Plain text in topbar
|
66
|
-
// -------------------------
|
67
|
-
.navbar-text {
|
68
|
-
margin-bottom: 0;
|
69
|
-
line-height: @navbarHeight;
|
70
|
-
color: @navbarText;
|
71
|
-
}
|
72
39
|
|
73
|
-
//
|
74
|
-
//
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
40
|
+
// Navbar collapse (body)
|
41
|
+
//
|
42
|
+
// Group your navbar content into this for easy collapsing and expanding across
|
43
|
+
// various device sizes. By default, this content is collapsed when <768px, but
|
44
|
+
// will expand past that for a horizontal display.
|
45
|
+
//
|
46
|
+
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
47
|
+
// vertically and include a `max-height` to overflow in case you have too much
|
48
|
+
// content for the user's viewport.
|
49
|
+
|
50
|
+
.navbar-collapse {
|
51
|
+
overflow-x: visible;
|
52
|
+
padding-right: @navbar-padding-horizontal;
|
53
|
+
padding-left: @navbar-padding-horizontal;
|
54
|
+
border-top: 1px solid transparent;
|
55
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
56
|
+
&:extend(.clearfix all);
|
57
|
+
-webkit-overflow-scrolling: touch;
|
58
|
+
|
59
|
+
&.in {
|
60
|
+
overflow-y: auto;
|
80
61
|
}
|
81
|
-
}
|
82
62
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
margin: 0 9px;
|
88
|
-
border-left: 1px solid @navbarBackground;
|
89
|
-
border-right: 1px solid @navbarBackgroundHighlight;
|
90
|
-
}
|
63
|
+
@media (min-width: @grid-float-breakpoint) {
|
64
|
+
width: auto;
|
65
|
+
border-top: 0;
|
66
|
+
box-shadow: none;
|
91
67
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
}
|
98
|
-
.navbar .btn-group .btn,
|
99
|
-
.navbar .input-prepend .btn,
|
100
|
-
.navbar .input-append .btn,
|
101
|
-
.navbar .input-prepend .btn-group,
|
102
|
-
.navbar .input-append .btn-group {
|
103
|
-
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
104
|
-
}
|
68
|
+
&.collapse {
|
69
|
+
display: block !important;
|
70
|
+
height: auto !important;
|
71
|
+
padding-bottom: 0; // Override default setting
|
72
|
+
overflow: visible !important;
|
73
|
+
}
|
105
74
|
|
106
|
-
|
107
|
-
|
108
|
-
.navbar-form {
|
109
|
-
margin-bottom: 0; // remove default bottom margin
|
110
|
-
.clearfix();
|
111
|
-
input,
|
112
|
-
select,
|
113
|
-
.radio,
|
114
|
-
.checkbox {
|
115
|
-
.navbarVerticalAlign(30px); // Vertically center in navbar
|
116
|
-
}
|
117
|
-
input,
|
118
|
-
select,
|
119
|
-
.btn {
|
120
|
-
display: inline-block;
|
121
|
-
margin-bottom: 0;
|
122
|
-
}
|
123
|
-
input[type="image"],
|
124
|
-
input[type="checkbox"],
|
125
|
-
input[type="radio"] {
|
126
|
-
margin-top: 3px;
|
127
|
-
}
|
128
|
-
.input-append,
|
129
|
-
.input-prepend {
|
130
|
-
margin-top: 5px;
|
131
|
-
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
132
|
-
input {
|
133
|
-
margin-top: 0; // remove the margin on top since it's on the parent
|
75
|
+
&.in {
|
76
|
+
overflow-y: visible;
|
134
77
|
}
|
135
|
-
}
|
136
|
-
}
|
137
78
|
|
138
|
-
//
|
139
|
-
//
|
140
|
-
.navbar-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
margin-bottom: 0;
|
147
|
-
padding: 4px 14px;
|
148
|
-
#font > .sans-serif(13px, normal, 1);
|
149
|
-
.border-radius(15px); // redeclare because of specificity of the type attribute
|
79
|
+
// Undo the collapse side padding for navbars with containers to ensure
|
80
|
+
// alignment of right-aligned contents.
|
81
|
+
.navbar-fixed-top &,
|
82
|
+
.navbar-static-top &,
|
83
|
+
.navbar-fixed-bottom & {
|
84
|
+
padding-left: 0;
|
85
|
+
padding-right: 0;
|
86
|
+
}
|
150
87
|
}
|
151
88
|
}
|
152
89
|
|
90
|
+
.navbar-fixed-top,
|
91
|
+
.navbar-fixed-bottom {
|
92
|
+
.navbar-collapse {
|
93
|
+
max-height: @navbar-collapse-max-height;
|
153
94
|
|
95
|
+
@media (max-device-width: @screen-xs-min) and (orientation: landscape) {
|
96
|
+
max-height: 200px;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
154
100
|
|
155
|
-
// Static navbar
|
156
|
-
// -------------------------
|
157
101
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
102
|
+
// Both navbar header and collapse
|
103
|
+
//
|
104
|
+
// When a container is present, change the behavior of the header and collapse.
|
105
|
+
|
106
|
+
.container,
|
107
|
+
.container-fluid {
|
108
|
+
> .navbar-header,
|
109
|
+
> .navbar-collapse {
|
110
|
+
margin-right: -@navbar-padding-horizontal;
|
111
|
+
margin-left: -@navbar-padding-horizontal;
|
112
|
+
|
113
|
+
@media (min-width: @grid-float-breakpoint) {
|
114
|
+
margin-right: 0;
|
115
|
+
margin-left: 0;
|
116
|
+
}
|
163
117
|
}
|
164
118
|
}
|
165
119
|
|
166
120
|
|
121
|
+
//
|
122
|
+
// Navbar alignment options
|
123
|
+
//
|
124
|
+
// Display the navbar across the entirety of the page or fixed it to the top or
|
125
|
+
// bottom of the page.
|
167
126
|
|
168
|
-
//
|
169
|
-
|
127
|
+
// Static top (unfixed, but 100% wide) navbar
|
128
|
+
.navbar-static-top {
|
129
|
+
z-index: @zindex-navbar;
|
130
|
+
border-width: 0 0 1px;
|
170
131
|
|
171
|
-
|
132
|
+
@media (min-width: @grid-float-breakpoint) {
|
133
|
+
border-radius: 0;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
172
138
|
.navbar-fixed-top,
|
173
139
|
.navbar-fixed-bottom {
|
174
140
|
position: fixed;
|
175
141
|
right: 0;
|
176
142
|
left: 0;
|
177
|
-
z-index: @
|
178
|
-
|
143
|
+
z-index: @zindex-navbar-fixed;
|
144
|
+
|
145
|
+
// Undo the rounded corners
|
146
|
+
@media (min-width: @grid-float-breakpoint) {
|
147
|
+
border-radius: 0;
|
148
|
+
}
|
179
149
|
}
|
180
|
-
.navbar-fixed-top
|
181
|
-
|
150
|
+
.navbar-fixed-top {
|
151
|
+
top: 0;
|
182
152
|
border-width: 0 0 1px;
|
183
153
|
}
|
184
|
-
.navbar-fixed-bottom
|
154
|
+
.navbar-fixed-bottom {
|
155
|
+
bottom: 0;
|
156
|
+
margin-bottom: 0; // override .navbar defaults
|
185
157
|
border-width: 1px 0 0;
|
186
158
|
}
|
187
|
-
.navbar-fixed-top .navbar-inner,
|
188
|
-
.navbar-fixed-bottom .navbar-inner {
|
189
|
-
padding-left: 0;
|
190
|
-
padding-right: 0;
|
191
|
-
.border-radius(0);
|
192
|
-
}
|
193
159
|
|
194
|
-
// Reset container width
|
195
|
-
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
196
|
-
.navbar-static-top .container,
|
197
|
-
.navbar-fixed-top .container,
|
198
|
-
.navbar-fixed-bottom .container {
|
199
|
-
#grid > .core > .span(@gridColumns);
|
200
|
-
}
|
201
160
|
|
202
|
-
//
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
161
|
+
// Brand/project name
|
162
|
+
|
163
|
+
.navbar-brand {
|
164
|
+
float: left;
|
165
|
+
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
166
|
+
font-size: @font-size-large;
|
167
|
+
line-height: @line-height-computed;
|
168
|
+
height: @navbar-height;
|
169
|
+
|
170
|
+
&:hover,
|
171
|
+
&:focus {
|
172
|
+
text-decoration: none;
|
210
173
|
}
|
211
|
-
}
|
212
174
|
|
213
|
-
|
214
|
-
|
215
|
-
bottom: 0;
|
216
|
-
.navbar-inner {
|
217
|
-
.box-shadow(~"0 -1px 10px rgba(0,0,0,.1)");
|
175
|
+
> img {
|
176
|
+
display: block;
|
218
177
|
}
|
219
|
-
}
|
220
178
|
|
179
|
+
@media (min-width: @grid-float-breakpoint) {
|
180
|
+
.navbar > .container &,
|
181
|
+
.navbar > .container-fluid & {
|
182
|
+
margin-left: -@navbar-padding-horizontal;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
221
186
|
|
222
187
|
|
223
|
-
//
|
224
|
-
//
|
188
|
+
// Navbar toggle
|
189
|
+
//
|
190
|
+
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
191
|
+
// JavaScript plugin.
|
225
192
|
|
226
|
-
.navbar
|
193
|
+
.navbar-toggle {
|
227
194
|
position: relative;
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
195
|
+
float: right;
|
196
|
+
margin-right: @navbar-padding-horizontal;
|
197
|
+
padding: 9px 10px;
|
198
|
+
.navbar-vertical-align(34px);
|
199
|
+
background-color: transparent;
|
200
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
201
|
+
border: 1px solid transparent;
|
202
|
+
border-radius: @border-radius-base;
|
203
|
+
|
204
|
+
// We remove the `outline` here, but later compensate by attaching `:hover`
|
205
|
+
// styles to `:focus`.
|
206
|
+
&:focus {
|
207
|
+
outline: 0;
|
208
|
+
}
|
240
209
|
|
241
|
-
//
|
242
|
-
.
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
margin-top: 8px;
|
252
|
-
}
|
210
|
+
// Bars
|
211
|
+
.icon-bar {
|
212
|
+
display: block;
|
213
|
+
width: 22px;
|
214
|
+
height: 2px;
|
215
|
+
border-radius: 1px;
|
216
|
+
}
|
217
|
+
.icon-bar + .icon-bar {
|
218
|
+
margin-top: 4px;
|
219
|
+
}
|
253
220
|
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
258
|
-
color: @navbarLinkColorHover;
|
259
|
-
text-decoration: none;
|
221
|
+
@media (min-width: @grid-float-breakpoint) {
|
222
|
+
display: none;
|
223
|
+
}
|
260
224
|
}
|
261
225
|
|
262
|
-
// Active nav items
|
263
|
-
.navbar .nav > .active > a,
|
264
|
-
.navbar .nav > .active > a:hover,
|
265
|
-
.navbar .nav > .active > a:focus {
|
266
|
-
color: @navbarLinkColorActive;
|
267
|
-
text-decoration: none;
|
268
|
-
background-color: @navbarLinkBackgroundActive;
|
269
|
-
.box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
|
270
|
-
}
|
271
226
|
|
272
|
-
// Navbar
|
273
|
-
//
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
margin
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
227
|
+
// Navbar nav links
|
228
|
+
//
|
229
|
+
// Builds on top of the `.nav` components with its own modifier class to make
|
230
|
+
// the nav the full height of the horizontal nav (above 768px).
|
231
|
+
|
232
|
+
.navbar-nav {
|
233
|
+
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
234
|
+
|
235
|
+
> li > a {
|
236
|
+
padding-top: 10px;
|
237
|
+
padding-bottom: 10px;
|
238
|
+
line-height: @line-height-computed;
|
239
|
+
}
|
240
|
+
|
241
|
+
@media (max-width: @grid-float-breakpoint-max) {
|
242
|
+
// Dropdowns get custom display when collapsed
|
243
|
+
.open .dropdown-menu {
|
244
|
+
position: static;
|
245
|
+
float: none;
|
246
|
+
width: auto;
|
247
|
+
margin-top: 0;
|
248
|
+
background-color: transparent;
|
249
|
+
border: 0;
|
250
|
+
box-shadow: none;
|
251
|
+
> li > a,
|
252
|
+
.dropdown-header {
|
253
|
+
padding: 5px 15px 5px 25px;
|
254
|
+
}
|
255
|
+
> li > a {
|
256
|
+
line-height: @line-height-computed;
|
257
|
+
&:hover,
|
258
|
+
&:focus {
|
259
|
+
background-image: none;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
// Uncollapse the nav
|
266
|
+
@media (min-width: @grid-float-breakpoint) {
|
267
|
+
float: left;
|
268
|
+
margin: 0;
|
269
|
+
|
270
|
+
> li {
|
271
|
+
float: left;
|
272
|
+
> a {
|
273
|
+
padding-top: @navbar-padding-vertical;
|
274
|
+
padding-bottom: @navbar-padding-vertical;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
293
278
|
}
|
294
279
|
|
295
280
|
|
281
|
+
// Navbar form
|
282
|
+
//
|
283
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
284
|
+
// our navbars.
|
285
|
+
|
286
|
+
.navbar-form {
|
287
|
+
margin-left: -@navbar-padding-horizontal;
|
288
|
+
margin-right: -@navbar-padding-horizontal;
|
289
|
+
padding: 10px @navbar-padding-horizontal;
|
290
|
+
border-top: 1px solid transparent;
|
291
|
+
border-bottom: 1px solid transparent;
|
292
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
293
|
+
.box-shadow(@shadow);
|
294
|
+
|
295
|
+
// Mixin behavior for optimum display
|
296
|
+
.form-inline();
|
297
|
+
|
298
|
+
.form-group {
|
299
|
+
@media (max-width: @grid-float-breakpoint-max) {
|
300
|
+
margin-bottom: 5px;
|
301
|
+
|
302
|
+
&:last-child {
|
303
|
+
margin-bottom: 0;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
// Vertically center in expanded, horizontal navbar
|
309
|
+
.navbar-vertical-align(@input-height-base);
|
310
|
+
|
311
|
+
// Undo 100% width for pull classes
|
312
|
+
@media (min-width: @grid-float-breakpoint) {
|
313
|
+
width: auto;
|
314
|
+
border: 0;
|
315
|
+
margin-left: 0;
|
316
|
+
margin-right: 0;
|
317
|
+
padding-top: 0;
|
318
|
+
padding-bottom: 0;
|
319
|
+
.box-shadow(none);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
296
323
|
|
297
324
|
// Dropdown menus
|
298
|
-
// --------------
|
299
325
|
|
300
326
|
// Menu position and menu carets
|
301
|
-
.navbar
|
302
|
-
|
303
|
-
|
304
|
-
display: inline-block;
|
305
|
-
border-left: 7px solid transparent;
|
306
|
-
border-right: 7px solid transparent;
|
307
|
-
border-bottom: 7px solid #ccc;
|
308
|
-
border-bottom-color: @dropdownBorder;
|
309
|
-
position: absolute;
|
310
|
-
top: -7px;
|
311
|
-
left: 9px;
|
312
|
-
}
|
313
|
-
&:after {
|
314
|
-
content: '';
|
315
|
-
display: inline-block;
|
316
|
-
border-left: 6px solid transparent;
|
317
|
-
border-right: 6px solid transparent;
|
318
|
-
border-bottom: 6px solid @dropdownBackground;
|
319
|
-
position: absolute;
|
320
|
-
top: -6px;
|
321
|
-
left: 10px;
|
322
|
-
}
|
327
|
+
.navbar-nav > li > .dropdown-menu {
|
328
|
+
margin-top: 0;
|
329
|
+
.border-top-radius(0);
|
323
330
|
}
|
324
331
|
// Menu position and menu caret support for dropups via extra dropup class
|
325
|
-
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
border-bottom: 0;
|
330
|
-
bottom: -7px;
|
331
|
-
top: auto;
|
332
|
-
}
|
333
|
-
&:after {
|
334
|
-
border-top: 6px solid @dropdownBackground;
|
335
|
-
border-bottom: 0;
|
336
|
-
bottom: -6px;
|
337
|
-
top: auto;
|
338
|
-
}
|
332
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
333
|
+
margin-bottom: 0;
|
334
|
+
.border-top-radius(@navbar-border-radius);
|
335
|
+
.border-bottom-radius(0);
|
339
336
|
}
|
340
337
|
|
341
|
-
// Caret should match text color on hover/focus
|
342
|
-
.navbar .nav li.dropdown > a:hover .caret,
|
343
|
-
.navbar .nav li.dropdown > a:focus .caret {
|
344
|
-
border-top-color: @navbarLinkColorHover;
|
345
|
-
border-bottom-color: @navbarLinkColorHover;
|
346
|
-
}
|
347
338
|
|
348
|
-
//
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
339
|
+
// Buttons in navbars
|
340
|
+
//
|
341
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
342
|
+
|
343
|
+
.navbar-btn {
|
344
|
+
.navbar-vertical-align(@input-height-base);
|
345
|
+
|
346
|
+
&.btn-sm {
|
347
|
+
.navbar-vertical-align(@input-height-small);
|
348
|
+
}
|
349
|
+
&.btn-xs {
|
350
|
+
.navbar-vertical-align(22);
|
351
|
+
}
|
354
352
|
}
|
355
|
-
|
356
|
-
|
357
|
-
|
353
|
+
|
354
|
+
|
355
|
+
// Text in navbars
|
356
|
+
//
|
357
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
358
|
+
|
359
|
+
.navbar-text {
|
360
|
+
.navbar-vertical-align(@line-height-computed);
|
361
|
+
|
362
|
+
@media (min-width: @grid-float-breakpoint) {
|
363
|
+
float: left;
|
364
|
+
margin-left: @navbar-padding-horizontal;
|
365
|
+
margin-right: @navbar-padding-horizontal;
|
366
|
+
}
|
358
367
|
}
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
368
|
+
|
369
|
+
|
370
|
+
// Component alignment
|
371
|
+
//
|
372
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
373
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
374
|
+
// though so that navbar contents properly stack and align in mobile.
|
375
|
+
//
|
376
|
+
// Declared after the navbar components to ensure more specificity on the margins.
|
377
|
+
|
378
|
+
@media (min-width: @grid-float-breakpoint) {
|
379
|
+
.navbar-left { .pull-left(); }
|
380
|
+
.navbar-right {
|
381
|
+
.pull-right();
|
382
|
+
margin-right: -@navbar-padding-horizontal;
|
383
|
+
|
384
|
+
~ .navbar-right {
|
385
|
+
margin-right: 0;
|
386
|
+
}
|
387
|
+
}
|
364
388
|
}
|
365
389
|
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
390
|
+
|
391
|
+
// Alternate navbars
|
392
|
+
// --------------------------------------------------
|
393
|
+
|
394
|
+
// Default navbar
|
395
|
+
.navbar-default {
|
396
|
+
background-color: @navbar-default-bg;
|
397
|
+
border-color: @navbar-default-border;
|
398
|
+
|
399
|
+
.navbar-brand {
|
400
|
+
color: @navbar-default-brand-color;
|
401
|
+
&:hover,
|
402
|
+
&:focus {
|
403
|
+
color: @navbar-default-brand-hover-color;
|
404
|
+
background-color: @navbar-default-brand-hover-bg;
|
405
|
+
}
|
374
406
|
}
|
375
|
-
|
376
|
-
|
377
|
-
|
407
|
+
|
408
|
+
.navbar-text {
|
409
|
+
color: @navbar-default-color;
|
378
410
|
}
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
411
|
+
|
412
|
+
.navbar-nav {
|
413
|
+
> li > a {
|
414
|
+
color: @navbar-default-link-color;
|
415
|
+
|
416
|
+
&:hover,
|
417
|
+
&:focus {
|
418
|
+
color: @navbar-default-link-hover-color;
|
419
|
+
background-color: @navbar-default-link-hover-bg;
|
420
|
+
}
|
421
|
+
}
|
422
|
+
> .active > a {
|
423
|
+
&,
|
424
|
+
&:hover,
|
425
|
+
&:focus {
|
426
|
+
color: @navbar-default-link-active-color;
|
427
|
+
background-color: @navbar-default-link-active-bg;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
> .disabled > a {
|
431
|
+
&,
|
432
|
+
&:hover,
|
433
|
+
&:focus {
|
434
|
+
color: @navbar-default-link-disabled-color;
|
435
|
+
background-color: @navbar-default-link-disabled-bg;
|
436
|
+
}
|
437
|
+
}
|
385
438
|
}
|
386
|
-
}
|
387
439
|
|
440
|
+
.navbar-toggle {
|
441
|
+
border-color: @navbar-default-toggle-border-color;
|
442
|
+
&:hover,
|
443
|
+
&:focus {
|
444
|
+
background-color: @navbar-default-toggle-hover-bg;
|
445
|
+
}
|
446
|
+
.icon-bar {
|
447
|
+
background-color: @navbar-default-toggle-icon-bar-bg;
|
448
|
+
}
|
449
|
+
}
|
388
450
|
|
389
|
-
|
390
|
-
|
451
|
+
.navbar-collapse,
|
452
|
+
.navbar-form {
|
453
|
+
border-color: @navbar-default-border;
|
454
|
+
}
|
391
455
|
|
392
|
-
|
456
|
+
// Dropdown menu items
|
457
|
+
.navbar-nav {
|
458
|
+
// Remove background color from open dropdown
|
459
|
+
> .open > a {
|
460
|
+
&,
|
461
|
+
&:hover,
|
462
|
+
&:focus {
|
463
|
+
background-color: @navbar-default-link-active-bg;
|
464
|
+
color: @navbar-default-link-active-color;
|
465
|
+
}
|
466
|
+
}
|
393
467
|
|
394
|
-
|
395
|
-
|
396
|
-
|
468
|
+
@media (max-width: @grid-float-breakpoint-max) {
|
469
|
+
// Dropdowns get custom display when collapsed
|
470
|
+
.open .dropdown-menu {
|
471
|
+
> li > a {
|
472
|
+
color: @navbar-default-link-color;
|
473
|
+
&:hover,
|
474
|
+
&:focus {
|
475
|
+
color: @navbar-default-link-hover-color;
|
476
|
+
background-color: @navbar-default-link-hover-bg;
|
477
|
+
}
|
478
|
+
}
|
479
|
+
> .active > a {
|
480
|
+
&,
|
481
|
+
&:hover,
|
482
|
+
&:focus {
|
483
|
+
color: @navbar-default-link-active-color;
|
484
|
+
background-color: @navbar-default-link-active-bg;
|
485
|
+
}
|
486
|
+
}
|
487
|
+
> .disabled > a {
|
488
|
+
&,
|
489
|
+
&:hover,
|
490
|
+
&:focus {
|
491
|
+
color: @navbar-default-link-disabled-color;
|
492
|
+
background-color: @navbar-default-link-disabled-bg;
|
493
|
+
}
|
494
|
+
}
|
495
|
+
}
|
496
|
+
}
|
397
497
|
}
|
398
498
|
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
499
|
+
|
500
|
+
// Links in navbars
|
501
|
+
//
|
502
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
503
|
+
|
504
|
+
.navbar-link {
|
505
|
+
color: @navbar-default-link-color;
|
506
|
+
&:hover {
|
507
|
+
color: @navbar-default-link-hover-color;
|
508
|
+
}
|
509
|
+
}
|
510
|
+
|
511
|
+
.btn-link {
|
512
|
+
color: @navbar-default-link-color;
|
403
513
|
&:hover,
|
404
514
|
&:focus {
|
405
|
-
color: @
|
515
|
+
color: @navbar-default-link-hover-color;
|
516
|
+
}
|
517
|
+
&[disabled],
|
518
|
+
fieldset[disabled] & {
|
519
|
+
&:hover,
|
520
|
+
&:focus {
|
521
|
+
color: @navbar-default-link-disabled-color;
|
522
|
+
}
|
406
523
|
}
|
407
524
|
}
|
525
|
+
}
|
408
526
|
|
409
|
-
|
410
|
-
|
527
|
+
// Inverse navbar
|
528
|
+
|
529
|
+
.navbar-inverse {
|
530
|
+
background-color: @navbar-inverse-bg;
|
531
|
+
border-color: @navbar-inverse-border;
|
532
|
+
|
533
|
+
.navbar-brand {
|
534
|
+
color: @navbar-inverse-brand-color;
|
535
|
+
&:hover,
|
536
|
+
&:focus {
|
537
|
+
color: @navbar-inverse-brand-hover-color;
|
538
|
+
background-color: @navbar-inverse-brand-hover-bg;
|
539
|
+
}
|
411
540
|
}
|
412
541
|
|
413
542
|
.navbar-text {
|
414
|
-
color: @
|
543
|
+
color: @navbar-inverse-color;
|
415
544
|
}
|
416
545
|
|
417
|
-
.nav
|
418
|
-
|
419
|
-
|
420
|
-
color: @navbarInverseLinkColorHover;
|
421
|
-
}
|
546
|
+
.navbar-nav {
|
547
|
+
> li > a {
|
548
|
+
color: @navbar-inverse-link-color;
|
422
549
|
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
550
|
+
&:hover,
|
551
|
+
&:focus {
|
552
|
+
color: @navbar-inverse-link-hover-color;
|
553
|
+
background-color: @navbar-inverse-link-hover-bg;
|
554
|
+
}
|
555
|
+
}
|
556
|
+
> .active > a {
|
557
|
+
&,
|
558
|
+
&:hover,
|
559
|
+
&:focus {
|
560
|
+
color: @navbar-inverse-link-active-color;
|
561
|
+
background-color: @navbar-inverse-link-active-bg;
|
562
|
+
}
|
563
|
+
}
|
564
|
+
> .disabled > a {
|
565
|
+
&,
|
566
|
+
&:hover,
|
567
|
+
&:focus {
|
568
|
+
color: @navbar-inverse-link-disabled-color;
|
569
|
+
background-color: @navbar-inverse-link-disabled-bg;
|
570
|
+
}
|
571
|
+
}
|
428
572
|
}
|
429
573
|
|
430
|
-
//
|
431
|
-
.navbar-
|
432
|
-
color: @
|
574
|
+
// Darken the responsive nav toggle
|
575
|
+
.navbar-toggle {
|
576
|
+
border-color: @navbar-inverse-toggle-border-color;
|
433
577
|
&:hover,
|
434
578
|
&:focus {
|
435
|
-
color: @
|
579
|
+
background-color: @navbar-inverse-toggle-hover-bg;
|
580
|
+
}
|
581
|
+
.icon-bar {
|
582
|
+
background-color: @navbar-inverse-toggle-icon-bar-bg;
|
436
583
|
}
|
437
584
|
}
|
438
585
|
|
439
|
-
|
440
|
-
.
|
441
|
-
border-
|
442
|
-
border-right-color: @navbarInverseBackgroundHighlight;
|
586
|
+
.navbar-collapse,
|
587
|
+
.navbar-form {
|
588
|
+
border-color: darken(@navbar-inverse-bg, 7%);
|
443
589
|
}
|
444
590
|
|
445
591
|
// Dropdowns
|
446
|
-
.nav
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
592
|
+
.navbar-nav {
|
593
|
+
> .open > a {
|
594
|
+
&,
|
595
|
+
&:hover,
|
596
|
+
&:focus {
|
597
|
+
background-color: @navbar-inverse-link-active-bg;
|
598
|
+
color: @navbar-inverse-link-active-color;
|
599
|
+
}
|
600
|
+
}
|
601
|
+
|
602
|
+
@media (max-width: @grid-float-breakpoint-max) {
|
603
|
+
// Dropdowns get custom display
|
604
|
+
.open .dropdown-menu {
|
605
|
+
> .dropdown-header {
|
606
|
+
border-color: @navbar-inverse-border;
|
607
|
+
}
|
608
|
+
.divider {
|
609
|
+
background-color: @navbar-inverse-border;
|
610
|
+
}
|
611
|
+
> li > a {
|
612
|
+
color: @navbar-inverse-link-color;
|
613
|
+
&:hover,
|
614
|
+
&:focus {
|
615
|
+
color: @navbar-inverse-link-hover-color;
|
616
|
+
background-color: @navbar-inverse-link-hover-bg;
|
617
|
+
}
|
618
|
+
}
|
619
|
+
> .active > a {
|
620
|
+
&,
|
621
|
+
&:hover,
|
622
|
+
&:focus {
|
623
|
+
color: @navbar-inverse-link-active-color;
|
624
|
+
background-color: @navbar-inverse-link-active-bg;
|
625
|
+
}
|
626
|
+
}
|
627
|
+
> .disabled > a {
|
628
|
+
&,
|
629
|
+
&:hover,
|
630
|
+
&:focus {
|
631
|
+
color: @navbar-inverse-link-disabled-color;
|
632
|
+
background-color: @navbar-inverse-link-disabled-bg;
|
633
|
+
}
|
634
|
+
}
|
488
635
|
}
|
489
636
|
}
|
490
637
|
}
|
491
638
|
|
492
|
-
|
493
|
-
|
494
|
-
|
639
|
+
.navbar-link {
|
640
|
+
color: @navbar-inverse-link-color;
|
641
|
+
&:hover {
|
642
|
+
color: @navbar-inverse-link-hover-color;
|
643
|
+
}
|
495
644
|
}
|
496
645
|
|
646
|
+
.btn-link {
|
647
|
+
color: @navbar-inverse-link-color;
|
648
|
+
&:hover,
|
649
|
+
&:focus {
|
650
|
+
color: @navbar-inverse-link-hover-color;
|
651
|
+
}
|
652
|
+
&[disabled],
|
653
|
+
fieldset[disabled] & {
|
654
|
+
&:hover,
|
655
|
+
&:focus {
|
656
|
+
color: @navbar-inverse-link-disabled-color;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
}
|
497
660
|
}
|