bootstrap-generators 2.3.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +12 -2
- data/{LICENSE.txt → MIT-LICENSE} +1 -3
- data/README.md +19 -64
- data/Rakefile +24 -22
- data/bootstrap-generators.gemspec +3 -1
- data/lib/bootstrap-generators.rb +12 -1
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/install_generator.rb +9 -24
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +498 -179
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +620 -0
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css → starter.css} +6 -6
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.less → starter.less} +7 -7
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/{fluid.css.scss → starter.scss} +7 -8
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +11 -9
- data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +9 -8
- data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +50 -0
- data/lib/generators/bootstrap/install/templates/layouts/{hero.html.haml → starter.html.haml} +0 -0
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/edit.html.erb +3 -3
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +25 -25
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/new.html.erb +2 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/show.html.erb +5 -5
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/edit.html.haml +3 -3
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +20 -19
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml +2 -2
- data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml +5 -5
- data/readme-template.md.erb +5 -48
- data/test/lib/generators/bootstrap/install_generator_test.rb +3 -33
- data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.svg +228 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/javascripts/bootstrap-ie.js +2 -0
- data/vendor/assets/javascripts/bootstrap-ie/html5shiv.js +8 -0
- data/vendor/assets/javascripts/bootstrap-ie/respond.min.js +6 -0
- data/vendor/assets/javascripts/bootstrap.js +12 -13
- data/vendor/assets/javascripts/bootstrap/affix.js +126 -0
- data/vendor/assets/javascripts/{bootstrap-alert.js → bootstrap/alert.js} +35 -36
- data/vendor/assets/javascripts/bootstrap/button.js +109 -0
- data/vendor/assets/javascripts/bootstrap/carousel.js +217 -0
- data/vendor/assets/javascripts/bootstrap/collapse.js +179 -0
- data/vendor/assets/javascripts/bootstrap/dropdown.js +154 -0
- data/vendor/assets/javascripts/bootstrap/modal.js +246 -0
- data/vendor/assets/javascripts/bootstrap/popover.js +117 -0
- data/vendor/assets/javascripts/bootstrap/scrollspy.js +158 -0
- data/vendor/assets/javascripts/bootstrap/tab.js +135 -0
- data/vendor/assets/javascripts/bootstrap/tooltip.js +386 -0
- data/vendor/assets/javascripts/bootstrap/transition.js +56 -0
- data/vendor/assets/stylesheets/bootstrap.css +4638 -4000
- data/vendor/twitter/bootstrap/less/alerts.less +46 -58
- data/vendor/twitter/bootstrap/less/badges.less +51 -0
- data/vendor/twitter/bootstrap/less/bootstrap.less +27 -31
- data/vendor/twitter/bootstrap/less/breadcrumbs.less +7 -8
- data/vendor/twitter/bootstrap/less/button-groups.less +173 -154
- data/vendor/twitter/bootstrap/less/buttons.less +97 -165
- data/vendor/twitter/bootstrap/less/carousel.less +115 -64
- data/vendor/twitter/bootstrap/less/close.less +20 -19
- data/vendor/twitter/bootstrap/less/code.less +17 -22
- data/vendor/twitter/bootstrap/less/component-animations.less +10 -3
- data/vendor/twitter/bootstrap/less/dropdowns.less +92 -147
- data/vendor/twitter/bootstrap/less/forms.less +224 -561
- data/vendor/twitter/bootstrap/less/glyphicons.less +232 -0
- data/vendor/twitter/bootstrap/less/grid.less +336 -11
- data/vendor/twitter/bootstrap/less/input-groups.less +127 -0
- data/vendor/twitter/bootstrap/less/jumbotron.less +40 -0
- data/vendor/twitter/bootstrap/less/labels.less +58 -0
- data/vendor/twitter/bootstrap/less/list-group.less +88 -0
- data/vendor/twitter/bootstrap/less/media.less +8 -7
- data/vendor/twitter/bootstrap/less/mixins.less +487 -466
- data/vendor/twitter/bootstrap/less/modals.less +98 -52
- data/vendor/twitter/bootstrap/less/navbar.less +507 -383
- data/vendor/twitter/bootstrap/less/navs.less +169 -349
- data/vendor/twitter/bootstrap/less/normalize.less +396 -0
- data/vendor/twitter/bootstrap/less/pager.less +45 -33
- data/vendor/twitter/bootstrap/less/pagination.less +65 -105
- data/vendor/twitter/bootstrap/less/panels.less +148 -0
- data/vendor/twitter/bootstrap/less/popovers.less +51 -51
- data/vendor/twitter/bootstrap/less/print.less +100 -0
- data/vendor/twitter/bootstrap/less/progress-bars.less +28 -55
- data/vendor/twitter/bootstrap/less/responsive-utilities.less +195 -34
- data/vendor/twitter/bootstrap/less/scaffolding.less +101 -24
- data/vendor/twitter/bootstrap/less/tables.less +170 -178
- data/vendor/twitter/bootstrap/less/theme.less +232 -0
- data/vendor/twitter/bootstrap/less/thumbnails.less +11 -33
- data/vendor/twitter/bootstrap/less/tooltip.less +45 -20
- data/vendor/twitter/bootstrap/less/type.less +100 -109
- data/vendor/twitter/bootstrap/less/utilities.less +19 -7
- data/vendor/twitter/bootstrap/less/variables.less +498 -179
- data/vendor/twitter/bootstrap/less/wells.less +7 -7
- data/vendor/twitter/bootstrap/sass/_alerts.scss +46 -58
- data/vendor/twitter/bootstrap/sass/_badges.scss +51 -0
- data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +8 -9
- data/vendor/twitter/bootstrap/sass/_button-groups.scss +173 -154
- data/vendor/twitter/bootstrap/sass/_buttons.scss +97 -165
- data/vendor/twitter/bootstrap/sass/_carousel.scss +116 -65
- data/vendor/twitter/bootstrap/sass/_close.scss +9 -8
- data/vendor/twitter/bootstrap/sass/_code.scss +16 -21
- data/vendor/twitter/bootstrap/sass/_component-animations.scss +10 -3
- data/vendor/twitter/bootstrap/sass/_dropdowns.scss +94 -148
- data/vendor/twitter/bootstrap/sass/_forms.scss +220 -559
- data/vendor/twitter/bootstrap/sass/_glyphicons.scss +232 -0
- data/vendor/twitter/bootstrap/sass/_grid.scss +336 -11
- data/vendor/twitter/bootstrap/sass/_input-groups.scss +127 -0
- data/vendor/twitter/bootstrap/sass/_jumbotron.scss +40 -0
- data/vendor/twitter/bootstrap/sass/_labels.scss +58 -0
- data/vendor/twitter/bootstrap/sass/_list-group.scss +88 -0
- data/vendor/twitter/bootstrap/sass/_media.scss +8 -7
- data/vendor/twitter/bootstrap/sass/_mixins.scss +465 -433
- data/vendor/twitter/bootstrap/sass/_modals.scss +102 -52
- data/vendor/twitter/bootstrap/sass/_navbar.scss +511 -383
- data/vendor/twitter/bootstrap/sass/_navs.scss +169 -349
- data/vendor/twitter/bootstrap/sass/_normalize.scss +396 -0
- data/vendor/twitter/bootstrap/sass/_pager.scss +45 -33
- data/vendor/twitter/bootstrap/sass/_pagination.scss +65 -105
- data/vendor/twitter/bootstrap/sass/_panels.scss +148 -0
- data/vendor/twitter/bootstrap/sass/_popovers.scss +51 -51
- data/vendor/twitter/bootstrap/sass/_print.scss +100 -0
- data/vendor/twitter/bootstrap/sass/_progress-bars.scss +28 -55
- data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +180 -45
- data/vendor/twitter/bootstrap/sass/_scaffolding.scss +101 -24
- data/vendor/twitter/bootstrap/sass/_tables.scss +169 -168
- data/vendor/twitter/bootstrap/sass/_theme.scss +232 -0
- data/vendor/twitter/bootstrap/sass/_thumbnails.scss +11 -33
- data/vendor/twitter/bootstrap/sass/_tooltip.scss +45 -20
- data/vendor/twitter/bootstrap/sass/_type.scss +101 -110
- data/vendor/twitter/bootstrap/sass/_utilities.scss +19 -22
- data/vendor/twitter/bootstrap/sass/_variables.scss +498 -179
- data/vendor/twitter/bootstrap/sass/_wells.scss +7 -7
- data/vendor/twitter/bootstrap/sass/bootstrap.scss +29 -33
- metadata +47 -56
- data/lib/bootstrap/generators/engine.rb +0 -14
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +0 -301
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css +0 -18
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.less +0 -19
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +0 -19
- data/lib/generators/bootstrap/install/templates/config/initializers/simple_form.rb +0 -176
- data/lib/generators/bootstrap/install/templates/config/locales/simple_form.en.yml +0 -24
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.erb +0 -13
- data/lib/generators/bootstrap/install/templates/form_builders/simple_form/_form.html.haml +0 -10
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.erb +0 -80
- data/lib/generators/bootstrap/install/templates/layouts/fluid.html.haml +0 -94
- data/lib/generators/bootstrap/install/templates/layouts/hero.html.erb +0 -53
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +0 -117
- data/vendor/assets/javascripts/bootstrap-button.js +0 -105
- data/vendor/assets/javascripts/bootstrap-carousel.js +0 -207
- data/vendor/assets/javascripts/bootstrap-collapse.js +0 -167
- data/vendor/assets/javascripts/bootstrap-dropdown.js +0 -169
- data/vendor/assets/javascripts/bootstrap-modal.js +0 -247
- data/vendor/assets/javascripts/bootstrap-popover.js +0 -114
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -162
- data/vendor/assets/javascripts/bootstrap-tab.js +0 -144
- data/vendor/assets/javascripts/bootstrap-tooltip.js +0 -361
- data/vendor/assets/javascripts/bootstrap-transition.js +0 -60
- data/vendor/assets/javascripts/bootstrap-typeahead.js +0 -335
- data/vendor/assets/stylesheets/bootstrap-responsive.css +0 -1109
- data/vendor/twitter/bootstrap/less/accordion.less +0 -34
- data/vendor/twitter/bootstrap/less/hero-unit.less +0 -25
- data/vendor/twitter/bootstrap/less/labels-badges.less +0 -84
- data/vendor/twitter/bootstrap/less/layouts.less +0 -16
- data/vendor/twitter/bootstrap/less/reset.less +0 -216
- data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +0 -28
- data/vendor/twitter/bootstrap/less/responsive-767px-max.less +0 -193
- data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +0 -19
- data/vendor/twitter/bootstrap/less/responsive-navbar.less +0 -189
- data/vendor/twitter/bootstrap/less/responsive.less +0 -48
- data/vendor/twitter/bootstrap/less/sprites.less +0 -197
- data/vendor/twitter/bootstrap/sass/_accordion.scss +0 -34
- data/vendor/twitter/bootstrap/sass/_hero-unit.scss +0 -25
- data/vendor/twitter/bootstrap/sass/_labels-badges.scss +0 -83
- data/vendor/twitter/bootstrap/sass/_layouts.scss +0 -16
- data/vendor/twitter/bootstrap/sass/_reset.scss +0 -216
- data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +0 -28
- data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +0 -193
- data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +0 -19
- data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +0 -189
- data/vendor/twitter/bootstrap/sass/_sprites.scss +0 -197
- data/vendor/twitter/bootstrap/sass/responsive.scss +0 -48
|
@@ -2,81 +2,115 @@
|
|
|
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
|
+
// Account for hiding of scrollbar
|
|
16
|
+
|
|
17
|
+
.navbar-fixed-top,
|
|
18
|
+
.navbar-fixed-bottom {
|
|
19
|
+
margin-right: 15px
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body.modal-open {
|
|
24
|
+
margin-right: 15px
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Container that the modal scrolls within
|
|
28
|
+
.modal {
|
|
29
|
+
display: none;
|
|
30
|
+
overflow: auto;
|
|
31
|
+
overflow-y: scroll;
|
|
7
32
|
position: fixed;
|
|
8
33
|
top: 0;
|
|
9
34
|
right: 0;
|
|
10
35
|
bottom: 0;
|
|
11
36
|
left: 0;
|
|
12
|
-
z-index: $
|
|
13
|
-
|
|
14
|
-
//
|
|
15
|
-
&.fade {
|
|
37
|
+
z-index: $zindex-modal-background;
|
|
38
|
+
|
|
39
|
+
// When fading in the modal, animate it to slide down
|
|
40
|
+
&.fade .modal-dialog {
|
|
41
|
+
@include translate(0, -25%);
|
|
42
|
+
@include transition-transform(0.3s ease-out);
|
|
43
|
+
}
|
|
44
|
+
&.in .modal-dialog { @include translate(0, 0)}
|
|
16
45
|
}
|
|
17
46
|
|
|
18
|
-
|
|
19
|
-
.modal-
|
|
20
|
-
|
|
47
|
+
// Shell div to position the modal with bottom padding
|
|
48
|
+
.modal-dialog {
|
|
49
|
+
margin-left: auto;
|
|
50
|
+
margin-right: auto;
|
|
51
|
+
width: auto;
|
|
52
|
+
padding: 10px;
|
|
53
|
+
z-index: ($zindex-modal-background + 10);
|
|
21
54
|
}
|
|
22
55
|
|
|
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
|
-
@include border-radius(6px);
|
|
36
|
-
@include box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
|
37
|
-
@include background-clip(padding-box);
|
|
56
|
+
// Actual modal
|
|
57
|
+
.modal-content {
|
|
58
|
+
position: relative;
|
|
59
|
+
background-color: $modal-content-bg;
|
|
60
|
+
border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc)
|
|
61
|
+
border: 1px solid $modal-content-border-color;
|
|
62
|
+
border-radius: $border-radius-large;
|
|
63
|
+
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
|
|
64
|
+
background-clip: padding-box;
|
|
38
65
|
// Remove focus outline from opened modal
|
|
39
66
|
outline: none;
|
|
67
|
+
}
|
|
40
68
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
69
|
+
// Modal background
|
|
70
|
+
.modal-backdrop {
|
|
71
|
+
position: fixed;
|
|
72
|
+
top: 0;
|
|
73
|
+
right: 0;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
left: 0;
|
|
76
|
+
z-index: ($zindex-modal-background - 10);
|
|
77
|
+
background-color: $modal-backdrop-bg;
|
|
78
|
+
// Fade for backdrop
|
|
79
|
+
&.fade { @include opacity(0); }
|
|
80
|
+
&.in { @include opacity(.5); }
|
|
46
81
|
}
|
|
82
|
+
|
|
83
|
+
// Modal header
|
|
84
|
+
// Top section of the modal w/ title and dismiss
|
|
47
85
|
.modal-header {
|
|
48
|
-
padding:
|
|
49
|
-
border-bottom: 1px solid
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
line-height: 30px;
|
|
56
|
-
}
|
|
86
|
+
padding: $modal-title-padding;
|
|
87
|
+
border-bottom: 1px solid $modal-header-border-color;
|
|
88
|
+
min-height: ($modal-title-padding + $modal-title-line-height);
|
|
89
|
+
}
|
|
90
|
+
// Close icon
|
|
91
|
+
.modal-header .close {
|
|
92
|
+
margin-top: -2px;
|
|
57
93
|
}
|
|
58
94
|
|
|
59
|
-
//
|
|
95
|
+
// Title text within header
|
|
96
|
+
.modal-title {
|
|
97
|
+
margin: 0;
|
|
98
|
+
line-height: $modal-title-line-height;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Modal body
|
|
102
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
|
60
103
|
.modal-body {
|
|
61
104
|
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;
|
|
105
|
+
padding: $modal-inner-padding;
|
|
69
106
|
}
|
|
70
107
|
|
|
71
108
|
// Footer (for actions)
|
|
72
109
|
.modal-footer {
|
|
73
|
-
|
|
74
|
-
|
|
110
|
+
margin-top: 15px;
|
|
111
|
+
padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
|
|
75
112
|
text-align: right; // right align buttons
|
|
76
|
-
|
|
77
|
-
border-top: 1px solid #ddd;
|
|
78
|
-
@include border-radius(0 0 6px 6px);
|
|
79
|
-
@include box-shadow(inset 0 1px 0 $white);
|
|
113
|
+
border-top: 1px solid $modal-footer-border-color;
|
|
80
114
|
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
|
81
115
|
|
|
82
116
|
// Properly space out buttons
|
|
@@ -93,3 +127,19 @@
|
|
|
93
127
|
margin-left: 0;
|
|
94
128
|
}
|
|
95
129
|
}
|
|
130
|
+
|
|
131
|
+
// Scale up the modal
|
|
132
|
+
@media screen and (min-width: $screen-tablet) {
|
|
133
|
+
|
|
134
|
+
.modal-dialog {
|
|
135
|
+
left: 50%;
|
|
136
|
+
right: auto;
|
|
137
|
+
width: 600px;
|
|
138
|
+
padding-top: 30px;
|
|
139
|
+
padding-bottom: 30px;
|
|
140
|
+
}
|
|
141
|
+
.modal-content {
|
|
142
|
+
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
}
|
|
@@ -1,497 +1,625 @@
|
|
|
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
|
-
|
|
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
|
-
@include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
|
|
26
|
-
border: 1px solid $navbarBorder;
|
|
27
|
-
@include border-radius($baseBorderRadius);
|
|
28
|
-
@include box-shadow(0 1px 4px rgba(0,0,0,.065));
|
|
12
|
+
position: relative;
|
|
13
|
+
z-index: $zindex-navbar;
|
|
14
|
+
min-height: $navbar-height; // 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;
|
|
29
17
|
|
|
30
18
|
// Prevent floats from breaking the navbar
|
|
31
19
|
@include clearfix();
|
|
32
|
-
}
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
width: auto;
|
|
21
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
22
|
+
border-radius: $navbar-border-radius;
|
|
23
|
+
}
|
|
38
24
|
}
|
|
39
25
|
|
|
40
|
-
// Override the default collapsed state
|
|
41
|
-
.nav-collapse.collapse {
|
|
42
|
-
height: auto;
|
|
43
|
-
overflow: visible;
|
|
44
|
-
}
|
|
45
26
|
|
|
27
|
+
// Navbar heading
|
|
28
|
+
//
|
|
29
|
+
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
|
30
|
+
// styling of responsive aspects.
|
|
46
31
|
|
|
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;
|
|
32
|
+
.navbar-header {
|
|
33
|
+
@include clearfix();
|
|
34
|
+
|
|
35
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
36
|
+
float: left;
|
|
62
37
|
}
|
|
63
38
|
}
|
|
64
39
|
|
|
65
|
-
// Plain text in topbar
|
|
66
|
-
// -------------------------
|
|
67
|
-
.navbar-text {
|
|
68
|
-
margin-bottom: 0;
|
|
69
|
-
line-height: $navbarHeight;
|
|
70
|
-
color: $navbarText;
|
|
71
|
-
}
|
|
72
40
|
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
41
|
+
// Navbar collapse (body)
|
|
42
|
+
//
|
|
43
|
+
// Group your navbar content into this for easy collapsing and expanding across
|
|
44
|
+
// various device sizes. By default, this content is collapsed when <768px, but
|
|
45
|
+
// will expand past that for a horizontal display.
|
|
46
|
+
//
|
|
47
|
+
// To start (on mobile devices) the navbar links, forms, and buttons are stacked
|
|
48
|
+
// vertically and include a `max-height` to overflow in case you have too much
|
|
49
|
+
// content for the user's viewport.
|
|
50
|
+
|
|
51
|
+
.navbar-collapse {
|
|
52
|
+
max-height: 340px;
|
|
53
|
+
overflow-x: visible;
|
|
54
|
+
padding-right: $navbar-padding-horizontal;
|
|
55
|
+
padding-left: $navbar-padding-horizontal;
|
|
56
|
+
border-top: 1px solid transparent;
|
|
57
|
+
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
|
58
|
+
@include clearfix();
|
|
59
|
+
-webkit-overflow-scrolling: touch;
|
|
60
|
+
|
|
61
|
+
&.in {
|
|
62
|
+
overflow-y: auto;
|
|
80
63
|
}
|
|
81
|
-
}
|
|
82
64
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
margin: 0 9px;
|
|
88
|
-
border-left: 1px solid $navbarBackground;
|
|
89
|
-
border-right: 1px solid $navbarBackgroundHighlight;
|
|
90
|
-
}
|
|
65
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
66
|
+
width: auto;
|
|
67
|
+
border-top: 0;
|
|
68
|
+
box-shadow: none;
|
|
91
69
|
|
|
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
|
-
}
|
|
70
|
+
&.collapse {
|
|
71
|
+
display: block !important;
|
|
72
|
+
height: auto !important;
|
|
73
|
+
padding-bottom: 0; // Override default setting
|
|
74
|
+
overflow: visible !important;
|
|
75
|
+
}
|
|
105
76
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.navbar-form {
|
|
109
|
-
margin-bottom: 0; // remove default bottom margin
|
|
110
|
-
@include clearfix();
|
|
111
|
-
input,
|
|
112
|
-
select,
|
|
113
|
-
.radio,
|
|
114
|
-
.checkbox {
|
|
115
|
-
@include 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
|
|
77
|
+
&.in {
|
|
78
|
+
overflow-y: visible;
|
|
134
79
|
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
80
|
|
|
138
|
-
//
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
@include font-sans-serif(13px, normal, 1);
|
|
149
|
-
@include border-radius(15px); // redeclare because of specificity of the type attribute
|
|
81
|
+
// Account for first and last children spacing
|
|
82
|
+
.navbar-nav.navbar-left:first-child {
|
|
83
|
+
margin-left: -$navbar-padding-horizontal;
|
|
84
|
+
}
|
|
85
|
+
.navbar-nav.navbar-right:last-child {
|
|
86
|
+
margin-right: -$navbar-padding-horizontal;
|
|
87
|
+
}
|
|
88
|
+
.navbar-text:last-child {
|
|
89
|
+
margin-right: 0;
|
|
90
|
+
}
|
|
150
91
|
}
|
|
151
92
|
}
|
|
152
93
|
|
|
153
94
|
|
|
95
|
+
// Both navbar header and collapse
|
|
96
|
+
//
|
|
97
|
+
// When a container is present, change the behavior of the header and collapse.
|
|
154
98
|
|
|
155
|
-
|
|
156
|
-
|
|
99
|
+
.container > .navbar-header,
|
|
100
|
+
.container > .navbar-collapse {
|
|
101
|
+
margin-right: -$navbar-padding-horizontal;
|
|
102
|
+
margin-left: -$navbar-padding-horizontal;
|
|
157
103
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
.navbar-inner {
|
|
162
|
-
@include border-radius(0);
|
|
104
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
105
|
+
margin-right: 0;
|
|
106
|
+
margin-left: 0;
|
|
163
107
|
}
|
|
164
108
|
}
|
|
165
109
|
|
|
166
110
|
|
|
111
|
+
//
|
|
112
|
+
// Navbar alignment options
|
|
113
|
+
//
|
|
114
|
+
// Display the navbar across the entirity of the page or fixed it to the top or
|
|
115
|
+
// bottom of the page.
|
|
167
116
|
|
|
168
|
-
//
|
|
169
|
-
|
|
117
|
+
// Static top (unfixed, but 100% wide) navbar
|
|
118
|
+
.navbar-static-top {
|
|
119
|
+
border-width: 0 0 1px;
|
|
120
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
121
|
+
border-radius: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
170
124
|
|
|
171
|
-
//
|
|
125
|
+
// Fix the top/bottom navbars when screen real estate supports it
|
|
172
126
|
.navbar-fixed-top,
|
|
173
127
|
.navbar-fixed-bottom {
|
|
174
128
|
position: fixed;
|
|
175
129
|
right: 0;
|
|
176
130
|
left: 0;
|
|
177
|
-
z-index: $zindexFixedNavbar;
|
|
178
|
-
margin-bottom: 0; // remove 18px margin for default navbar
|
|
179
|
-
}
|
|
180
|
-
.navbar-fixed-top .navbar-inner,
|
|
181
|
-
.navbar-static-top .navbar-inner {
|
|
182
131
|
border-width: 0 0 1px;
|
|
183
|
-
}
|
|
184
|
-
.navbar-fixed-bottom .navbar-inner {
|
|
185
|
-
border-width: 1px 0 0;
|
|
186
|
-
}
|
|
187
|
-
.navbar-fixed-top .navbar-inner,
|
|
188
|
-
.navbar-fixed-bottom .navbar-inner {
|
|
189
|
-
padding-left: 0;
|
|
190
|
-
padding-right: 0;
|
|
191
|
-
@include border-radius(0);
|
|
192
|
-
}
|
|
193
132
|
|
|
194
|
-
//
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
.navbar-fixed-bottom .container {
|
|
199
|
-
@include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
|
133
|
+
// Undo the rounded corners
|
|
134
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
135
|
+
border-radius: 0;
|
|
136
|
+
}
|
|
200
137
|
}
|
|
201
|
-
|
|
202
|
-
// Fixed to top
|
|
203
138
|
.navbar-fixed-top {
|
|
139
|
+
z-index: $zindex-navbar-fixed;
|
|
204
140
|
top: 0;
|
|
205
141
|
}
|
|
206
|
-
.navbar-fixed-top,
|
|
207
|
-
.navbar-static-top {
|
|
208
|
-
.navbar-inner {
|
|
209
|
-
@include box-shadow(0 1px 10px rgba(0,0,0,.1));
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// Fixed to bottom
|
|
214
142
|
.navbar-fixed-bottom {
|
|
215
143
|
bottom: 0;
|
|
216
|
-
.navbar
|
|
217
|
-
@include box-shadow(0 -1px 10px rgba(0,0,0,.1));
|
|
218
|
-
}
|
|
144
|
+
margin-bottom: 0; // override .navbar defaults
|
|
219
145
|
}
|
|
220
146
|
|
|
221
147
|
|
|
148
|
+
// Brand/project name
|
|
222
149
|
|
|
223
|
-
|
|
224
|
-
// ----------
|
|
225
|
-
|
|
226
|
-
.navbar .nav {
|
|
227
|
-
position: relative;
|
|
228
|
-
left: 0;
|
|
229
|
-
display: block;
|
|
150
|
+
.navbar-brand {
|
|
230
151
|
float: left;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
float: left;
|
|
239
|
-
}
|
|
152
|
+
padding: $navbar-padding-vertical $navbar-padding-horizontal;
|
|
153
|
+
font-size: $font-size-large;
|
|
154
|
+
line-height: $line-height-computed;
|
|
155
|
+
&:hover,
|
|
156
|
+
&:focus {
|
|
157
|
+
text-decoration: none;
|
|
158
|
+
}
|
|
240
159
|
|
|
241
|
-
|
|
242
|
-
.navbar
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
color: $navbarLinkColor;
|
|
247
|
-
text-decoration: none;
|
|
248
|
-
text-shadow: 0 1px 0 $navbarBackgroundHighlight;
|
|
249
|
-
}
|
|
250
|
-
.navbar .nav .dropdown-toggle .caret {
|
|
251
|
-
margin-top: 8px;
|
|
160
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
161
|
+
.navbar > .container & {
|
|
162
|
+
margin-left: -$navbar-padding-horizontal;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
252
165
|
}
|
|
253
166
|
|
|
254
|
-
// Hover/focus
|
|
255
|
-
.navbar .nav > li > a:focus,
|
|
256
|
-
.navbar .nav > li > a:hover {
|
|
257
|
-
background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
|
258
|
-
color: $navbarLinkColorHover;
|
|
259
|
-
text-decoration: none;
|
|
260
|
-
}
|
|
261
167
|
|
|
262
|
-
//
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
color: $navbarLinkColorActive;
|
|
267
|
-
text-decoration: none;
|
|
268
|
-
background-color: $navbarLinkBackgroundActive;
|
|
269
|
-
@include box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
|
|
270
|
-
}
|
|
168
|
+
// Navbar toggle
|
|
169
|
+
//
|
|
170
|
+
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
|
171
|
+
// JavaScript plugin.
|
|
271
172
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
.navbar .btn-navbar {
|
|
275
|
-
display: none;
|
|
173
|
+
.navbar-toggle {
|
|
174
|
+
position: relative;
|
|
276
175
|
float: right;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
.
|
|
292
|
-
|
|
176
|
+
margin-right: $navbar-padding-horizontal;
|
|
177
|
+
padding: 9px 10px;
|
|
178
|
+
@include navbar-vertical-align(34px);
|
|
179
|
+
background-color: transparent;
|
|
180
|
+
border: 1px solid transparent;
|
|
181
|
+
border-radius: $border-radius-base;
|
|
182
|
+
|
|
183
|
+
// Bars
|
|
184
|
+
.icon-bar {
|
|
185
|
+
display: block;
|
|
186
|
+
width: 22px;
|
|
187
|
+
height: 2px;
|
|
188
|
+
border-radius: 1px;
|
|
189
|
+
}
|
|
190
|
+
.icon-bar + .icon-bar {
|
|
191
|
+
margin-top: 4px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
293
197
|
}
|
|
294
198
|
|
|
295
199
|
|
|
200
|
+
// Navbar nav links
|
|
201
|
+
//
|
|
202
|
+
// Builds on top of the `.nav` components with it's own modifier class to make
|
|
203
|
+
// the nav the full height of the horizontal nav (above 768px).
|
|
296
204
|
|
|
297
|
-
|
|
298
|
-
|
|
205
|
+
.navbar-nav {
|
|
206
|
+
margin: ($navbar-padding-vertical / 2) (-$navbar-padding-horizontal);
|
|
299
207
|
|
|
300
|
-
|
|
301
|
-
|
|
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;
|
|
208
|
+
> li > a {
|
|
209
|
+
padding-top: 10px;
|
|
210
|
+
padding-bottom: 10px;
|
|
211
|
+
line-height: $line-height-computed;
|
|
322
212
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
213
|
+
|
|
214
|
+
@media (max-width: $screen-xs-max) {
|
|
215
|
+
// Dropdowns get custom display when collapsed
|
|
216
|
+
.open .dropdown-menu {
|
|
217
|
+
position: static;
|
|
218
|
+
float: none;
|
|
219
|
+
width: auto;
|
|
220
|
+
margin-top: 0;
|
|
221
|
+
background-color: transparent;
|
|
222
|
+
border: 0;
|
|
223
|
+
box-shadow: none;
|
|
224
|
+
> li > a,
|
|
225
|
+
.dropdown-header {
|
|
226
|
+
padding: 5px 15px 5px 25px;
|
|
227
|
+
}
|
|
228
|
+
> li > a {
|
|
229
|
+
line-height: $line-height-computed;
|
|
230
|
+
&:hover,
|
|
231
|
+
&:focus {
|
|
232
|
+
background-image: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Uncollapse the nav
|
|
239
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
240
|
+
float: left;
|
|
241
|
+
margin: 0;
|
|
242
|
+
|
|
243
|
+
> li {
|
|
244
|
+
float: left;
|
|
245
|
+
> a {
|
|
246
|
+
padding-top: (($navbar-height - $line-height-computed) / 2);
|
|
247
|
+
padding-bottom: (($navbar-height - $line-height-computed) / 2);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
338
250
|
}
|
|
251
|
+
|
|
339
252
|
}
|
|
340
253
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
254
|
+
|
|
255
|
+
// Component alignment
|
|
256
|
+
//
|
|
257
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specifity
|
|
258
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
|
259
|
+
// though so that navbar contents properly stack and align in mobile.
|
|
260
|
+
|
|
261
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
262
|
+
.navbar-left {
|
|
263
|
+
float: left !important;
|
|
264
|
+
}
|
|
265
|
+
.navbar-right {
|
|
266
|
+
float: right !important;
|
|
267
|
+
}
|
|
346
268
|
}
|
|
347
269
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
270
|
+
|
|
271
|
+
// Navbar form
|
|
272
|
+
//
|
|
273
|
+
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
|
274
|
+
// our navbars.
|
|
275
|
+
|
|
276
|
+
.navbar-form {
|
|
277
|
+
margin-left: -$navbar-padding-horizontal;
|
|
278
|
+
margin-right: -$navbar-padding-horizontal;
|
|
279
|
+
padding: 10px $navbar-padding-horizontal;
|
|
280
|
+
border-top: 1px solid transparent;
|
|
281
|
+
border-bottom: 1px solid transparent;
|
|
282
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
|
283
|
+
@include box-shadow($shadow);
|
|
284
|
+
|
|
285
|
+
// Mixin behavior for optimum display
|
|
286
|
+
@extend .form-inline;
|
|
287
|
+
|
|
288
|
+
.form-group {
|
|
289
|
+
@media (max-width: $screen-xs-max) {
|
|
290
|
+
margin-bottom: 5px;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// Vertically center in expanded, horizontal navbar
|
|
295
|
+
@include navbar-vertical-align($input-height-base);
|
|
296
|
+
|
|
297
|
+
// Undo 100% width for pull classes
|
|
298
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
299
|
+
width: auto;
|
|
300
|
+
border: 0;
|
|
301
|
+
margin-left: 0;
|
|
302
|
+
margin-right: 0;
|
|
303
|
+
padding-top: 0;
|
|
304
|
+
padding-bottom: 0;
|
|
305
|
+
@include box-shadow(none);
|
|
306
|
+
}
|
|
354
307
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
// Dropdown menus
|
|
311
|
+
|
|
312
|
+
// Menu position and menu carets
|
|
313
|
+
.navbar-nav > li > .dropdown-menu {
|
|
314
|
+
margin-top: 0;
|
|
315
|
+
@include border-top-radius(0);
|
|
358
316
|
}
|
|
359
|
-
|
|
360
|
-
.navbar .nav li
|
|
361
|
-
|
|
362
|
-
border-top-color: $navbarLinkColorActive;
|
|
363
|
-
border-bottom-color: $navbarLinkColorActive;
|
|
317
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
|
318
|
+
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
|
319
|
+
@include border-bottom-radius(0);
|
|
364
320
|
}
|
|
365
321
|
|
|
366
322
|
// Right aligned menus need alt position
|
|
367
|
-
.navbar
|
|
368
|
-
.navbar
|
|
323
|
+
.navbar-nav.pull-right > li > .dropdown-menu,
|
|
324
|
+
.navbar-nav > li > .dropdown-menu.pull-right {
|
|
369
325
|
left: auto;
|
|
370
326
|
right: 0;
|
|
371
|
-
&:before {
|
|
372
|
-
left: auto;
|
|
373
|
-
right: 12px;
|
|
374
|
-
}
|
|
375
|
-
&:after {
|
|
376
|
-
left: auto;
|
|
377
|
-
right: 13px;
|
|
378
|
-
}
|
|
379
|
-
.dropdown-menu {
|
|
380
|
-
left: auto;
|
|
381
|
-
right: 100%;
|
|
382
|
-
margin-left: 0;
|
|
383
|
-
margin-right: -1px;
|
|
384
|
-
@include border-radius(6px 0 6px 6px);
|
|
385
|
-
}
|
|
386
327
|
}
|
|
387
328
|
|
|
388
329
|
|
|
389
|
-
//
|
|
390
|
-
//
|
|
330
|
+
// Buttons in navbars
|
|
331
|
+
//
|
|
332
|
+
// Vertically center a button within a navbar (when *not* in a form).
|
|
391
333
|
|
|
392
|
-
.navbar-
|
|
334
|
+
.navbar-btn {
|
|
335
|
+
@include navbar-vertical-align($input-height-base);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
// Text in navbars
|
|
340
|
+
//
|
|
341
|
+
// Add a class to make any element properly align itself vertically within the navbars.
|
|
342
|
+
|
|
343
|
+
.navbar-text {
|
|
344
|
+
float: left;
|
|
345
|
+
@include navbar-vertical-align($line-height-computed);
|
|
393
346
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
347
|
+
@media (min-width: $grid-float-breakpoint) {
|
|
348
|
+
margin-left: $navbar-padding-horizontal;
|
|
349
|
+
margin-right: $navbar-padding-horizontal;
|
|
397
350
|
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// Alternate navbars
|
|
354
|
+
// --------------------------------------------------
|
|
355
|
+
|
|
356
|
+
// Default navbar
|
|
357
|
+
.navbar-default {
|
|
358
|
+
background-color: $navbar-default-bg;
|
|
359
|
+
border-color: $navbar-default-border;
|
|
398
360
|
|
|
399
|
-
.brand
|
|
400
|
-
|
|
401
|
-
color: $navbarInverseLinkColor;
|
|
402
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
361
|
+
.navbar-brand {
|
|
362
|
+
color: $navbar-default-brand-color;
|
|
403
363
|
&:hover,
|
|
404
364
|
&:focus {
|
|
405
|
-
color: $
|
|
365
|
+
color: $navbar-default-brand-hover-color;
|
|
366
|
+
background-color: $navbar-default-brand-hover-bg;
|
|
406
367
|
}
|
|
407
368
|
}
|
|
408
369
|
|
|
409
|
-
.
|
|
410
|
-
color: $
|
|
370
|
+
.navbar-text {
|
|
371
|
+
color: $navbar-default-color;
|
|
411
372
|
}
|
|
412
373
|
|
|
413
|
-
.navbar-
|
|
414
|
-
|
|
374
|
+
.navbar-nav {
|
|
375
|
+
> li > a {
|
|
376
|
+
color: $navbar-default-link-color;
|
|
377
|
+
|
|
378
|
+
&:hover,
|
|
379
|
+
&:focus {
|
|
380
|
+
color: $navbar-default-link-hover-color;
|
|
381
|
+
background-color: $navbar-default-link-hover-bg;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
> .active > a {
|
|
385
|
+
&,
|
|
386
|
+
&:hover,
|
|
387
|
+
&:focus {
|
|
388
|
+
color: $navbar-default-link-active-color;
|
|
389
|
+
background-color: $navbar-default-link-active-bg;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
> .disabled > a {
|
|
393
|
+
&,
|
|
394
|
+
&:hover,
|
|
395
|
+
&:focus {
|
|
396
|
+
color: $navbar-default-link-disabled-color;
|
|
397
|
+
background-color: $navbar-default-link-disabled-bg;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
415
400
|
}
|
|
416
401
|
|
|
417
|
-
.
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
402
|
+
.navbar-toggle {
|
|
403
|
+
border-color: $navbar-default-toggle-border-color;
|
|
404
|
+
&:hover,
|
|
405
|
+
&:focus {
|
|
406
|
+
background-color: $navbar-default-toggle-hover-bg;
|
|
407
|
+
}
|
|
408
|
+
.icon-bar {
|
|
409
|
+
background-color: $navbar-default-toggle-icon-bar-bg;
|
|
410
|
+
}
|
|
421
411
|
}
|
|
422
412
|
|
|
423
|
-
.
|
|
424
|
-
.
|
|
425
|
-
|
|
426
|
-
color: $navbarInverseLinkColorActive;
|
|
427
|
-
background-color: $navbarInverseLinkBackgroundActive;
|
|
413
|
+
.navbar-collapse,
|
|
414
|
+
.navbar-form {
|
|
415
|
+
border-color: darken($navbar-default-bg, 7%);
|
|
428
416
|
}
|
|
429
417
|
|
|
430
|
-
//
|
|
418
|
+
// Dropdown menu items and carets
|
|
419
|
+
.navbar-nav {
|
|
420
|
+
// Caret should match text color on hover
|
|
421
|
+
> .dropdown > a:hover .caret,
|
|
422
|
+
> .dropdown > a:focus .caret {
|
|
423
|
+
border-top-color: $navbar-default-link-hover-color;
|
|
424
|
+
border-bottom-color: $navbar-default-link-hover-color;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// Remove background color from open dropdown
|
|
428
|
+
> .open > a {
|
|
429
|
+
&,
|
|
430
|
+
&:hover,
|
|
431
|
+
&:focus {
|
|
432
|
+
background-color: $navbar-default-link-active-bg;
|
|
433
|
+
color: $navbar-default-link-active-color;
|
|
434
|
+
.caret {
|
|
435
|
+
border-top-color: $navbar-default-link-active-color;
|
|
436
|
+
border-bottom-color: $navbar-default-link-active-color;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
> .dropdown > a .caret {
|
|
441
|
+
border-top-color: $navbar-default-link-color;
|
|
442
|
+
border-bottom-color: $navbar-default-link-color;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
@media (max-width: $screen-xs-max) {
|
|
447
|
+
// Dropdowns get custom display when collapsed
|
|
448
|
+
.open .dropdown-menu {
|
|
449
|
+
> li > a {
|
|
450
|
+
color: $navbar-default-link-color;
|
|
451
|
+
&:hover,
|
|
452
|
+
&:focus {
|
|
453
|
+
color: $navbar-default-link-hover-color;
|
|
454
|
+
background-color: $navbar-default-link-hover-bg;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
> .active > a {
|
|
458
|
+
&,
|
|
459
|
+
&:hover,
|
|
460
|
+
&:focus {
|
|
461
|
+
color: $navbar-default-link-active-color;
|
|
462
|
+
background-color: $navbar-default-link-active-bg;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
> .disabled > a {
|
|
466
|
+
&,
|
|
467
|
+
&:hover,
|
|
468
|
+
&:focus {
|
|
469
|
+
color: $navbar-default-link-disabled-color;
|
|
470
|
+
background-color: $navbar-default-link-disabled-bg;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
// Links in navbars
|
|
479
|
+
//
|
|
480
|
+
// Add a class to ensure links outside the navbar nav are colored correctly.
|
|
481
|
+
|
|
431
482
|
.navbar-link {
|
|
432
|
-
color: $
|
|
483
|
+
color: $navbar-default-link-color;
|
|
484
|
+
&:hover {
|
|
485
|
+
color: $navbar-default-link-hover-color;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Inverse navbar
|
|
492
|
+
|
|
493
|
+
.navbar-inverse {
|
|
494
|
+
background-color: $navbar-inverse-bg;
|
|
495
|
+
border-color: $navbar-inverse-border;
|
|
496
|
+
|
|
497
|
+
.navbar-brand {
|
|
498
|
+
color: $navbar-inverse-brand-color;
|
|
499
|
+
&:hover,
|
|
500
|
+
&:focus {
|
|
501
|
+
color: $navbar-inverse-brand-hover-color;
|
|
502
|
+
background-color: $navbar-inverse-brand-hover-bg;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.navbar-text {
|
|
507
|
+
color: $navbar-inverse-color;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.navbar-nav {
|
|
511
|
+
> li > a {
|
|
512
|
+
color: $navbar-inverse-link-color;
|
|
513
|
+
|
|
514
|
+
&:hover,
|
|
515
|
+
&:focus {
|
|
516
|
+
color: $navbar-inverse-link-hover-color;
|
|
517
|
+
background-color: $navbar-inverse-link-hover-bg;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
> .active > a {
|
|
521
|
+
&,
|
|
522
|
+
&:hover,
|
|
523
|
+
&:focus {
|
|
524
|
+
color: $navbar-inverse-link-active-color;
|
|
525
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
> .disabled > a {
|
|
529
|
+
&,
|
|
530
|
+
&:hover,
|
|
531
|
+
&:focus {
|
|
532
|
+
color: $navbar-inverse-link-disabled-color;
|
|
533
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// Darken the responsive nav toggle
|
|
539
|
+
.navbar-toggle {
|
|
540
|
+
border-color: $navbar-inverse-toggle-border-color;
|
|
433
541
|
&:hover,
|
|
434
542
|
&:focus {
|
|
435
|
-
color: $
|
|
543
|
+
background-color: $navbar-inverse-toggle-hover-bg;
|
|
544
|
+
}
|
|
545
|
+
.icon-bar {
|
|
546
|
+
background-color: $navbar-inverse-toggle-icon-bar-bg;
|
|
436
547
|
}
|
|
437
548
|
}
|
|
438
549
|
|
|
439
|
-
|
|
440
|
-
.
|
|
441
|
-
border-
|
|
442
|
-
border-right-color: $navbarInverseBackgroundHighlight;
|
|
550
|
+
.navbar-collapse,
|
|
551
|
+
.navbar-form {
|
|
552
|
+
border-color: darken($navbar-inverse-bg, 7%);
|
|
443
553
|
}
|
|
444
554
|
|
|
445
555
|
// 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
|
-
|
|
556
|
+
.navbar-nav {
|
|
557
|
+
> .open > a {
|
|
558
|
+
&,
|
|
559
|
+
&:hover,
|
|
560
|
+
&:focus {
|
|
561
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
562
|
+
color: $navbar-inverse-link-active-color;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
> .dropdown > a:hover .caret {
|
|
566
|
+
border-top-color: $navbar-inverse-link-hover-color;
|
|
567
|
+
border-bottom-color: $navbar-inverse-link-hover-color;
|
|
568
|
+
}
|
|
569
|
+
> .dropdown > a .caret {
|
|
570
|
+
border-top-color: $navbar-inverse-link-color;
|
|
571
|
+
border-bottom-color: $navbar-inverse-link-color;
|
|
572
|
+
}
|
|
573
|
+
> .open > a {
|
|
574
|
+
&,
|
|
575
|
+
&:hover,
|
|
576
|
+
&:focus {
|
|
577
|
+
.caret {
|
|
578
|
+
border-top-color: $navbar-inverse-link-active-color;
|
|
579
|
+
border-bottom-color: $navbar-inverse-link-active-color;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
@media (max-width: $screen-xs-max) {
|
|
585
|
+
// Dropdowns get custom display
|
|
586
|
+
.open .dropdown-menu {
|
|
587
|
+
> .dropdown-header {
|
|
588
|
+
border-color: $navbar-inverse-border;
|
|
589
|
+
}
|
|
590
|
+
> li > a {
|
|
591
|
+
color: $navbar-inverse-link-color;
|
|
592
|
+
&:hover,
|
|
593
|
+
&:focus {
|
|
594
|
+
color: $navbar-inverse-link-hover-color;
|
|
595
|
+
background-color: $navbar-inverse-link-hover-bg;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
> .active > a {
|
|
599
|
+
&,
|
|
600
|
+
&:hover,
|
|
601
|
+
&:focus {
|
|
602
|
+
color: $navbar-inverse-link-active-color;
|
|
603
|
+
background-color: $navbar-inverse-link-active-bg;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
> .disabled > a {
|
|
607
|
+
&,
|
|
608
|
+
&:hover,
|
|
609
|
+
&:focus {
|
|
610
|
+
color: $navbar-inverse-link-disabled-color;
|
|
611
|
+
background-color: $navbar-inverse-link-disabled-bg;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
488
614
|
}
|
|
489
615
|
}
|
|
490
616
|
}
|
|
491
617
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
618
|
+
.navbar-link {
|
|
619
|
+
color: $navbar-inverse-link-color;
|
|
620
|
+
&:hover {
|
|
621
|
+
color: $navbar-inverse-link-hover-color;
|
|
622
|
+
}
|
|
495
623
|
}
|
|
496
624
|
|
|
497
625
|
}
|