bootstrap-generators 2.3.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -3,407 +3,227 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
//
|
7
|
-
//
|
6
|
+
// Base class
|
7
|
+
// --------------------------------------------------
|
8
8
|
|
9
9
|
.nav {
|
10
|
-
margin-
|
11
|
-
|
10
|
+
margin-bottom: 0;
|
11
|
+
padding-left: 0; // Override default ul/ol
|
12
12
|
list-style: none;
|
13
|
-
|
14
|
-
|
15
|
-
// Make links block level
|
16
|
-
.nav > li > a {
|
17
|
-
display: block;
|
18
|
-
}
|
19
|
-
.nav > li > a:hover,
|
20
|
-
.nav > li > a:focus {
|
21
|
-
text-decoration: none;
|
22
|
-
background-color: @grayLighter;
|
23
|
-
}
|
24
|
-
|
25
|
-
// Prevent IE8 from misplacing imgs
|
26
|
-
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
27
|
-
.nav > li > a > img {
|
28
|
-
max-width: none;
|
29
|
-
}
|
30
|
-
|
31
|
-
// Redeclare pull classes because of specifity
|
32
|
-
.nav > .pull-right {
|
33
|
-
float: right;
|
34
|
-
}
|
35
|
-
|
36
|
-
// Nav headers (for dropdowns and lists)
|
37
|
-
.nav-header {
|
38
|
-
display: block;
|
39
|
-
padding: 3px 15px;
|
40
|
-
font-size: 11px;
|
41
|
-
font-weight: bold;
|
42
|
-
line-height: @baseLineHeight;
|
43
|
-
color: @grayLight;
|
44
|
-
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
45
|
-
text-transform: uppercase;
|
46
|
-
}
|
47
|
-
// Space them out when they follow another list item (link)
|
48
|
-
.nav li + .nav-header {
|
49
|
-
margin-top: 9px;
|
50
|
-
}
|
13
|
+
.clearfix();
|
51
14
|
|
15
|
+
> li {
|
16
|
+
position: relative;
|
17
|
+
display: block;
|
18
|
+
|
19
|
+
> a {
|
20
|
+
position: relative;
|
21
|
+
display: block;
|
22
|
+
padding: @nav-link-padding;
|
23
|
+
&:hover,
|
24
|
+
&:focus {
|
25
|
+
text-decoration: none;
|
26
|
+
background-color: @nav-link-hover-bg;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Disabled state sets text to gray and nukes hover/tab effects
|
31
|
+
&.disabled > a {
|
32
|
+
color: @nav-disabled-link-color;
|
33
|
+
|
34
|
+
&:hover,
|
35
|
+
&:focus {
|
36
|
+
color: @nav-disabled-link-hover-color;
|
37
|
+
text-decoration: none;
|
38
|
+
background-color: transparent;
|
39
|
+
cursor: not-allowed;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
52
43
|
|
44
|
+
// Open dropdowns
|
45
|
+
.open > a {
|
46
|
+
&,
|
47
|
+
&:hover,
|
48
|
+
&:focus {
|
49
|
+
background-color: @nav-link-hover-bg;
|
50
|
+
border-color: @link-color;
|
51
|
+
}
|
52
|
+
}
|
53
53
|
|
54
|
-
//
|
55
|
-
|
54
|
+
// Dividers (basically an hr) within the dropdown
|
55
|
+
.nav-divider {
|
56
|
+
.nav-divider();
|
57
|
+
}
|
56
58
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
.nav-list > li > a,
|
63
|
-
.nav-list .nav-header {
|
64
|
-
margin-left: -15px;
|
65
|
-
margin-right: -15px;
|
66
|
-
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
67
|
-
}
|
68
|
-
.nav-list > li > a {
|
69
|
-
padding: 3px 15px;
|
70
|
-
}
|
71
|
-
.nav-list > .active > a,
|
72
|
-
.nav-list > .active > a:hover,
|
73
|
-
.nav-list > .active > a:focus {
|
74
|
-
color: @white;
|
75
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
76
|
-
background-color: @linkColor;
|
77
|
-
}
|
78
|
-
.nav-list [class^="icon-"],
|
79
|
-
.nav-list [class*=" icon-"] {
|
80
|
-
margin-right: 2px;
|
81
|
-
}
|
82
|
-
// Dividers (basically an hr) within the dropdown
|
83
|
-
.nav-list .divider {
|
84
|
-
.nav-divider();
|
59
|
+
// Prevent IE8 from misplacing imgs
|
60
|
+
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
61
|
+
> li > a > img {
|
62
|
+
max-width: none;
|
63
|
+
}
|
85
64
|
}
|
86
65
|
|
87
66
|
|
88
|
-
|
89
|
-
//
|
90
|
-
// -------------
|
91
|
-
|
92
|
-
// Common styles
|
93
|
-
.nav-tabs,
|
94
|
-
.nav-pills {
|
95
|
-
.clearfix();
|
96
|
-
}
|
97
|
-
.nav-tabs > li,
|
98
|
-
.nav-pills > li {
|
99
|
-
float: left;
|
100
|
-
}
|
101
|
-
.nav-tabs > li > a,
|
102
|
-
.nav-pills > li > a {
|
103
|
-
padding-right: 12px;
|
104
|
-
padding-left: 12px;
|
105
|
-
margin-right: 2px;
|
106
|
-
line-height: 14px; // keeps the overall height an even number
|
107
|
-
}
|
108
|
-
|
109
|
-
// TABS
|
110
|
-
// ----
|
67
|
+
// Tabs
|
68
|
+
// -------------------------
|
111
69
|
|
112
70
|
// Give the tabs something to sit on
|
113
71
|
.nav-tabs {
|
114
|
-
border-bottom: 1px solid
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
// Actual tabs (as links)
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
72
|
+
border-bottom: 1px solid @nav-tabs-border-color;
|
73
|
+
> li {
|
74
|
+
float: left;
|
75
|
+
// Make the list-items overlay the bottom border
|
76
|
+
margin-bottom: -1px;
|
77
|
+
|
78
|
+
// Actual tabs (as links)
|
79
|
+
> a {
|
80
|
+
margin-right: 2px;
|
81
|
+
line-height: @line-height-base;
|
82
|
+
border: 1px solid transparent;
|
83
|
+
border-radius: @border-radius-base @border-radius-base 0 0;
|
84
|
+
&:hover {
|
85
|
+
border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Active state, and it's :hover to override normal :hover
|
90
|
+
&.active > a {
|
91
|
+
&,
|
92
|
+
&:hover,
|
93
|
+
&:focus {
|
94
|
+
color: @nav-tabs-active-link-hover-color;
|
95
|
+
background-color: @nav-tabs-active-link-hover-bg;
|
96
|
+
border: 1px solid @nav-tabs-active-link-hover-border-color;
|
97
|
+
border-bottom-color: transparent;
|
98
|
+
cursor: default;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
// pulling this in mainly for less shorthand
|
103
|
+
&.nav-justified {
|
104
|
+
.nav-justified();
|
105
|
+
.nav-tabs-justified();
|
130
106
|
}
|
131
|
-
}
|
132
|
-
// Active state, and it's :hover/:focus to override normal :hover/:focus
|
133
|
-
.nav-tabs > .active > a,
|
134
|
-
.nav-tabs > .active > a:hover,
|
135
|
-
.nav-tabs > .active > a:focus {
|
136
|
-
color: @gray;
|
137
|
-
background-color: @bodyBackground;
|
138
|
-
border: 1px solid #ddd;
|
139
|
-
border-bottom-color: transparent;
|
140
|
-
cursor: default;
|
141
107
|
}
|
142
108
|
|
143
109
|
|
144
|
-
//
|
145
|
-
//
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
110
|
+
// Pills
|
111
|
+
// -------------------------
|
112
|
+
.nav-pills {
|
113
|
+
> li {
|
114
|
+
float: left;
|
115
|
+
|
116
|
+
// Links rendered as pills
|
117
|
+
> a {
|
118
|
+
border-radius: 5px;
|
119
|
+
}
|
120
|
+
+ li {
|
121
|
+
margin-left: 2px;
|
122
|
+
}
|
123
|
+
|
124
|
+
// Active state
|
125
|
+
&.active > a {
|
126
|
+
&,
|
127
|
+
&:hover,
|
128
|
+
&:focus {
|
129
|
+
color: @nav-pills-active-link-hover-color;
|
130
|
+
background-color: @nav-pills-active-link-hover-bg;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
162
134
|
}
|
163
135
|
|
164
136
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
}
|
173
|
-
|
174
|
-
margin-right: 0; // no need for the gap between nav items
|
137
|
+
// Stacked pills
|
138
|
+
.nav-stacked {
|
139
|
+
> li {
|
140
|
+
float: none;
|
141
|
+
+ li {
|
142
|
+
margin-top: 2px;
|
143
|
+
margin-left: 0; // no need for this gap between nav items
|
144
|
+
}
|
145
|
+
}
|
175
146
|
}
|
176
147
|
|
177
|
-
// Tabs
|
178
|
-
.nav-tabs.nav-stacked {
|
179
|
-
border-bottom: 0;
|
180
|
-
}
|
181
|
-
.nav-tabs.nav-stacked > li > a {
|
182
|
-
border: 1px solid #ddd;
|
183
|
-
.border-radius(0);
|
184
|
-
}
|
185
|
-
.nav-tabs.nav-stacked > li:first-child > a {
|
186
|
-
.border-top-radius(4px);
|
187
|
-
}
|
188
|
-
.nav-tabs.nav-stacked > li:last-child > a {
|
189
|
-
.border-bottom-radius(4px);
|
190
|
-
}
|
191
|
-
.nav-tabs.nav-stacked > li > a:hover,
|
192
|
-
.nav-tabs.nav-stacked > li > a:focus {
|
193
|
-
border-color: #ddd;
|
194
|
-
z-index: 2;
|
195
|
-
}
|
196
148
|
|
197
|
-
//
|
198
|
-
|
199
|
-
margin-bottom: 3px;
|
200
|
-
}
|
201
|
-
.nav-pills.nav-stacked > li:last-child > a {
|
202
|
-
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
203
|
-
}
|
149
|
+
// Nav variations
|
150
|
+
// --------------------------------------------------
|
204
151
|
|
152
|
+
// Justified nav links
|
153
|
+
// -------------------------
|
205
154
|
|
155
|
+
.nav-justified {
|
156
|
+
width: 100%;
|
206
157
|
|
207
|
-
|
208
|
-
|
158
|
+
> li {
|
159
|
+
float: none;
|
160
|
+
> a {
|
161
|
+
text-align: center;
|
162
|
+
}
|
163
|
+
}
|
209
164
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
165
|
+
@media (min-width: @screen-sm) {
|
166
|
+
> li {
|
167
|
+
display: table-cell;
|
168
|
+
width: 1%;
|
169
|
+
}
|
170
|
+
}
|
215
171
|
}
|
216
172
|
|
217
|
-
//
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
border-bottom-color: @linkColor;
|
223
|
-
margin-top: 6px;
|
224
|
-
}
|
225
|
-
.nav .dropdown-toggle:hover .caret,
|
226
|
-
.nav .dropdown-toggle:focus .caret {
|
227
|
-
border-top-color: @linkColorHover;
|
228
|
-
border-bottom-color: @linkColorHover;
|
229
|
-
}
|
230
|
-
/* move down carets for tabs */
|
231
|
-
.nav-tabs .dropdown-toggle .caret {
|
232
|
-
margin-top: 8px;
|
233
|
-
}
|
173
|
+
// Move borders to anchors instead of bottom of list
|
174
|
+
.nav-tabs-justified {
|
175
|
+
border-bottom: 0;
|
176
|
+
> li > a {
|
177
|
+
border-bottom: 1px solid @nav-tabs-justified-link-border-color;
|
234
178
|
|
235
|
-
//
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
}
|
241
|
-
.nav-tabs .active .dropdown-toggle .caret {
|
242
|
-
border-top-color: @gray;
|
243
|
-
border-bottom-color: @gray;
|
179
|
+
// Override margin from .nav-tabs
|
180
|
+
margin-right: 0;
|
181
|
+
}
|
182
|
+
> .active > a {
|
183
|
+
border-bottom-color: @nav-tabs-justified-active-link-border-color;
|
184
|
+
}
|
244
185
|
}
|
245
186
|
|
246
|
-
// Active:hover/:focus dropdown links
|
247
|
-
// -------------------------
|
248
|
-
.nav > .dropdown.active > a:hover,
|
249
|
-
.nav > .dropdown.active > a:focus {
|
250
|
-
cursor: pointer;
|
251
|
-
}
|
252
187
|
|
253
|
-
//
|
188
|
+
// Tabbable tabs
|
254
189
|
// -------------------------
|
255
|
-
.nav-tabs .open .dropdown-toggle,
|
256
|
-
.nav-pills .open .dropdown-toggle,
|
257
|
-
.nav > li.dropdown.open.active > a:hover,
|
258
|
-
.nav > li.dropdown.open.active > a:focus {
|
259
|
-
color: @white;
|
260
|
-
background-color: @grayLight;
|
261
|
-
border-color: @grayLight;
|
262
|
-
}
|
263
|
-
.nav li.dropdown.open .caret,
|
264
|
-
.nav li.dropdown.open.active .caret,
|
265
|
-
.nav li.dropdown.open a:hover .caret,
|
266
|
-
.nav li.dropdown.open a:focus .caret {
|
267
|
-
border-top-color: @white;
|
268
|
-
border-bottom-color: @white;
|
269
|
-
.opacity(100);
|
270
|
-
}
|
271
|
-
|
272
|
-
// Dropdowns in stacked tabs
|
273
|
-
.tabs-stacked .open > a:hover,
|
274
|
-
.tabs-stacked .open > a:focus {
|
275
|
-
border-color: @grayLight;
|
276
|
-
}
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
// TABBABLE
|
281
|
-
// --------
|
282
|
-
|
283
|
-
|
284
|
-
// COMMON STYLES
|
285
|
-
// -------------
|
286
190
|
|
287
191
|
// Clear any floats
|
288
192
|
.tabbable {
|
289
193
|
.clearfix();
|
290
194
|
}
|
291
|
-
.tab-content {
|
292
|
-
overflow: auto; // prevent content from running below tabs
|
293
|
-
}
|
294
|
-
|
295
|
-
// Remove border on bottom, left, right
|
296
|
-
.tabs-below > .nav-tabs,
|
297
|
-
.tabs-right > .nav-tabs,
|
298
|
-
.tabs-left > .nav-tabs {
|
299
|
-
border-bottom: 0;
|
300
|
-
}
|
301
195
|
|
302
196
|
// Show/hide tabbable areas
|
303
197
|
.tab-content > .tab-pane,
|
304
198
|
.pill-content > .pill-pane {
|
305
199
|
display: none;
|
306
200
|
}
|
307
|
-
.tab-content
|
308
|
-
.pill-content
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
// BOTTOM
|
314
|
-
// ------
|
315
|
-
|
316
|
-
.tabs-below > .nav-tabs {
|
317
|
-
border-top: 1px solid #ddd;
|
318
|
-
}
|
319
|
-
.tabs-below > .nav-tabs > li {
|
320
|
-
margin-top: -1px;
|
321
|
-
margin-bottom: 0;
|
322
|
-
}
|
323
|
-
.tabs-below > .nav-tabs > li > a {
|
324
|
-
.border-radius(0 0 4px 4px);
|
325
|
-
&:hover,
|
326
|
-
&:focus {
|
327
|
-
border-bottom-color: transparent;
|
328
|
-
border-top-color: #ddd;
|
201
|
+
.tab-content,
|
202
|
+
.pill-content {
|
203
|
+
> .active {
|
204
|
+
display: block;
|
329
205
|
}
|
330
206
|
}
|
331
|
-
.tabs-below > .nav-tabs > .active > a,
|
332
|
-
.tabs-below > .nav-tabs > .active > a:hover,
|
333
|
-
.tabs-below > .nav-tabs > .active > a:focus {
|
334
|
-
border-color: transparent #ddd #ddd #ddd;
|
335
|
-
}
|
336
207
|
|
337
|
-
// LEFT & RIGHT
|
338
|
-
// ------------
|
339
208
|
|
340
|
-
// Common styles
|
341
|
-
.tabs-left > .nav-tabs > li,
|
342
|
-
.tabs-right > .nav-tabs > li {
|
343
|
-
float: none;
|
344
|
-
}
|
345
|
-
.tabs-left > .nav-tabs > li > a,
|
346
|
-
.tabs-right > .nav-tabs > li > a {
|
347
|
-
min-width: 74px;
|
348
|
-
margin-right: 0;
|
349
|
-
margin-bottom: 3px;
|
350
|
-
}
|
351
209
|
|
352
|
-
//
|
353
|
-
|
354
|
-
float: left;
|
355
|
-
margin-right: 19px;
|
356
|
-
border-right: 1px solid #ddd;
|
357
|
-
}
|
358
|
-
.tabs-left > .nav-tabs > li > a {
|
359
|
-
margin-right: -1px;
|
360
|
-
.border-radius(4px 0 0 4px);
|
361
|
-
}
|
362
|
-
.tabs-left > .nav-tabs > li > a:hover,
|
363
|
-
.tabs-left > .nav-tabs > li > a:focus {
|
364
|
-
border-color: @grayLighter #ddd @grayLighter @grayLighter;
|
365
|
-
}
|
366
|
-
.tabs-left > .nav-tabs .active > a,
|
367
|
-
.tabs-left > .nav-tabs .active > a:hover,
|
368
|
-
.tabs-left > .nav-tabs .active > a:focus {
|
369
|
-
border-color: #ddd transparent #ddd #ddd;
|
370
|
-
*border-right-color: @white;
|
371
|
-
}
|
210
|
+
// Dropdowns
|
211
|
+
// -------------------------
|
372
212
|
|
373
|
-
//
|
374
|
-
.
|
375
|
-
|
376
|
-
|
377
|
-
border-left: 1px solid #ddd;
|
378
|
-
}
|
379
|
-
.tabs-right > .nav-tabs > li > a {
|
380
|
-
margin-left: -1px;
|
381
|
-
.border-radius(0 4px 4px 0);
|
213
|
+
// Make dropdown carets use link color in navs
|
214
|
+
.nav .caret {
|
215
|
+
border-top-color: @link-color;
|
216
|
+
border-bottom-color: @link-color;
|
382
217
|
}
|
383
|
-
.
|
384
|
-
|
385
|
-
border-color: @
|
218
|
+
.nav a:hover .caret {
|
219
|
+
border-top-color: @link-hover-color;
|
220
|
+
border-bottom-color: @link-hover-color;
|
386
221
|
}
|
387
|
-
.tabs-right > .nav-tabs .active > a,
|
388
|
-
.tabs-right > .nav-tabs .active > a:hover,
|
389
|
-
.tabs-right > .nav-tabs .active > a:focus {
|
390
|
-
border-color: #ddd #ddd #ddd transparent;
|
391
|
-
*border-left-color: @white;
|
392
|
-
}
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
// DISABLED STATES
|
397
|
-
// ---------------
|
398
222
|
|
399
|
-
//
|
400
|
-
.nav
|
401
|
-
|
402
|
-
|
403
|
-
//
|
404
|
-
.
|
405
|
-
.nav > .disabled > a:focus {
|
406
|
-
text-decoration: none;
|
407
|
-
background-color: transparent;
|
408
|
-
cursor: default;
|
223
|
+
// Specific dropdowns
|
224
|
+
.nav-tabs .dropdown-menu {
|
225
|
+
// make dropdown border overlap tab border
|
226
|
+
margin-top: -1px;
|
227
|
+
// Remove the top rounded corners here since there is a hard edge above the menu
|
228
|
+
.border-top-radius(0);
|
409
229
|
}
|