twbs_sass_rails 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -8
- data/CONTRIBUTING.md +4 -4
- data/Gemfile.lock +52 -65
- data/LICENSE +2 -2
- data/README.md +48 -18
- data/Rakefile +67 -32
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +23 -8
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +200 -199
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/gemfiles/Gemfile.rails-3.2.x +2 -3
- data/gemfiles/Gemfile.rails-4.0.x +2 -3
- data/lib/generators/twbs_sass_rails/install/install_generator.rb +2 -2
- data/lib/generators/twbs_sass_rails/install/templates/{twbs-variables.css.less → twbs-variables.css.scss} +4 -3
- data/lib/generators/twbs_sass_rails/install/templates/{twbs.css.less → twbs.css.scss} +12 -7
- data/lib/twbs_sass_rails/version.rb +1 -1
- data/test/dummy/app/assets/stylesheets/{default-twbs.css.less → default-twbs.css.scss} +0 -0
- data/test/dummy/app/assets/stylesheets/test.css.scss +9 -0
- data/test/dummy/app/assets/stylesheets/twbs-variables.css.scss +7 -0
- data/test/dummy/app/assets/stylesheets/{twbs.css.less → twbs.css.scss} +12 -7
- data/test/dummy/config/application.rb +4 -1
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/generators/install_generator_test.rb +4 -4
- data/test/integration/assets_precompile_integration_test.rb +11 -5
- data/test/integration/twbs_sass_rails_integration_test.rb +8 -7
- data/test/test_helper.rb +2 -4
- data/twbs_sass_rails.gemspec +6 -9
- data/vendor/assets/javascripts/respond.js +223 -212
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +36 -25
- data/vendor/assets/javascripts/twbs/bootstrap/alert.js +7 -17
- data/vendor/assets/javascripts/twbs/bootstrap/button.js +26 -28
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +22 -34
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +9 -18
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +25 -32
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +27 -30
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +16 -23
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +19 -24
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +10 -20
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +54 -41
- data/vendor/assets/javascripts/twbs/bootstrap/transition.js +13 -21
- data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/fontawesome/_core.scss +12 -0
- data/vendor/assets/stylesheets/fontawesome/_extras.scss +44 -0
- data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +412 -0
- data/vendor/assets/stylesheets/fontawesome/_larger.scss +13 -0
- data/vendor/assets/stylesheets/fontawesome/_list.scss +19 -0
- data/vendor/assets/stylesheets/fontawesome/_mixins.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_path.scss +14 -0
- data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +9 -0
- data/vendor/assets/stylesheets/fontawesome/_spinning.scss +30 -0
- data/vendor/assets/stylesheets/fontawesome/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +381 -0
- data/vendor/assets/stylesheets/fontawesome/font-awesome.scss +17 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{alerts.less → _alerts.scss} +10 -10
- data/vendor/assets/stylesheets/twbs/bootstrap/{badges.less → _badges.scss} +19 -15
- data/vendor/assets/stylesheets/twbs/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{button-groups.less → _button-groups.scss} +38 -60
- data/vendor/assets/stylesheets/twbs/bootstrap/{buttons.less → _buttons.scss} +28 -34
- data/vendor/assets/stylesheets/twbs/bootstrap/{carousel.less → _carousel.scss} +38 -19
- data/vendor/assets/stylesheets/twbs/bootstrap/_close.scss +35 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_code.scss +63 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{component-animations.less → _component-animations.scss} +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/{dropdowns.less → _dropdowns.scss} +53 -33
- data/vendor/assets/stylesheets/twbs/bootstrap/{forms.less → _forms.scss} +133 -79
- data/vendor/assets/stylesheets/twbs/bootstrap/{glyphicons.less → _glyphicons.scss} +16 -19
- data/vendor/assets/stylesheets/twbs/bootstrap/_grid.scss +100 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{input-groups.less → _input-groups.scss} +58 -29
- data/vendor/assets/stylesheets/twbs/bootstrap/_jumbotron.scss +44 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{labels.less → _labels.scss} +14 -8
- data/vendor/assets/stylesheets/twbs/bootstrap/_list-group.scss +110 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{media.less → _media.scss} +0 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_mixins.scss +931 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{modals.less → _modals.scss} +37 -40
- data/vendor/assets/stylesheets/twbs/bootstrap/_navbar.scss +620 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{navs.less → _navs.scss} +41 -52
- data/vendor/assets/stylesheets/twbs/bootstrap/{normalize.less → _normalize.scss} +148 -121
- data/vendor/assets/stylesheets/twbs/bootstrap/{pager.less → _pager.scss} +8 -8
- data/vendor/assets/stylesheets/twbs/bootstrap/_pagination.scss +88 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_panels.scss +230 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{popovers.less → _popovers.scss} +36 -36
- data/vendor/assets/stylesheets/twbs/bootstrap/{print.less → _print.scss} +6 -5
- data/vendor/assets/stylesheets/twbs/bootstrap/_progress-bars.scss +80 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-utilities.scss +80 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{scaffolding.less → _scaffolding.scss} +39 -24
- data/vendor/assets/stylesheets/twbs/bootstrap/{tables.less → _tables.scss} +42 -48
- data/vendor/assets/stylesheets/twbs/bootstrap/_theme.scss +247 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_thumbnails.scss +38 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_tooltip.scss +95 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_type.scss +296 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{utilities.less → _utilities.scss} +14 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_variables.scss +831 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{wells.less → _wells.scss} +6 -6
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.scss +48 -0
- data/vendor/assets/stylesheets/twbs/{bootstrap.less → bootstrap.scss} +0 -0
- metadata +94 -134
- data/test/dummy/app/assets/stylesheets/test.css.less +0 -5
- data/test/dummy/app/assets/stylesheets/twbs-variables.css.less +0 -6
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/db/.keep +0 -0
- data/vendor/assets/stylesheets/fontawesome/bootstrap.less +0 -84
- data/vendor/assets/stylesheets/fontawesome/core.less +0 -129
- data/vendor/assets/stylesheets/fontawesome/extras.less +0 -93
- data/vendor/assets/stylesheets/fontawesome/font-awesome.less +0 -33
- data/vendor/assets/stylesheets/fontawesome/icons.less +0 -381
- data/vendor/assets/stylesheets/fontawesome/mixins.less +0 -48
- data/vendor/assets/stylesheets/fontawesome/path.less +0 -14
- data/vendor/assets/stylesheets/fontawesome/variables.less +0 -735
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +0 -58
- data/vendor/assets/stylesheets/twbs/bootstrap/breadcrumbs.less +0 -23
- data/vendor/assets/stylesheets/twbs/bootstrap/close.less +0 -33
- data/vendor/assets/stylesheets/twbs/bootstrap/code.less +0 -56
- data/vendor/assets/stylesheets/twbs/bootstrap/grid.less +0 -346
- data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +0 -40
- data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +0 -88
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +0 -744
- data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +0 -621
- data/vendor/assets/stylesheets/twbs/bootstrap/pagination.less +0 -85
- data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +0 -143
- data/vendor/assets/stylesheets/twbs/bootstrap/progress-bars.less +0 -96
- data/vendor/assets/stylesheets/twbs/bootstrap/responsive-utilities.less +0 -220
- data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +0 -244
- data/vendor/assets/stylesheets/twbs/bootstrap/thumbnails.less +0 -32
- data/vendor/assets/stylesheets/twbs/bootstrap/tooltip.less +0 -95
- data/vendor/assets/stylesheets/twbs/bootstrap/type.less +0 -271
- data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +0 -635
@@ -1,621 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Navbars
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
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.
|
10
|
-
|
11
|
-
.navbar {
|
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;
|
17
|
-
|
18
|
-
// Prevent floats from breaking the navbar
|
19
|
-
.clearfix();
|
20
|
-
|
21
|
-
@media (min-width: @grid-float-breakpoint) {
|
22
|
-
border-radius: @navbar-border-radius;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
// Navbar heading
|
28
|
-
//
|
29
|
-
// Groups `.navbar-brand` and `.navbar-toggle` into a single component for easy
|
30
|
-
// styling of responsive aspects.
|
31
|
-
|
32
|
-
.navbar-header {
|
33
|
-
.clearfix();
|
34
|
-
|
35
|
-
@media (min-width: @grid-float-breakpoint) {
|
36
|
-
float: left;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
|
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
|
-
.clearfix();
|
59
|
-
-webkit-overflow-scrolling: touch;
|
60
|
-
|
61
|
-
&.in {
|
62
|
-
overflow-y: auto;
|
63
|
-
}
|
64
|
-
|
65
|
-
@media (min-width: @grid-float-breakpoint) {
|
66
|
-
width: auto;
|
67
|
-
border-top: 0;
|
68
|
-
box-shadow: none;
|
69
|
-
|
70
|
-
&.collapse {
|
71
|
-
display: block !important;
|
72
|
-
height: auto !important;
|
73
|
-
padding-bottom: 0; // Override default setting
|
74
|
-
overflow: visible !important;
|
75
|
-
}
|
76
|
-
|
77
|
-
&.in {
|
78
|
-
overflow-y: visible;
|
79
|
-
}
|
80
|
-
|
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
|
-
}
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
// Both navbar header and collapse
|
96
|
-
//
|
97
|
-
// When a container is present, change the behavior of the header and collapse.
|
98
|
-
|
99
|
-
.container > .navbar-header,
|
100
|
-
.container > .navbar-collapse {
|
101
|
-
margin-right: -@navbar-padding-horizontal;
|
102
|
-
margin-left: -@navbar-padding-horizontal;
|
103
|
-
|
104
|
-
@media (min-width: @grid-float-breakpoint) {
|
105
|
-
margin-right: 0;
|
106
|
-
margin-left: 0;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
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.
|
116
|
-
|
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
|
-
}
|
124
|
-
|
125
|
-
// Fix the top/bottom navbars when screen real estate supports it
|
126
|
-
.navbar-fixed-top,
|
127
|
-
.navbar-fixed-bottom {
|
128
|
-
position: fixed;
|
129
|
-
right: 0;
|
130
|
-
left: 0;
|
131
|
-
border-width: 0 0 1px;
|
132
|
-
|
133
|
-
// Undo the rounded corners
|
134
|
-
@media (min-width: @grid-float-breakpoint) {
|
135
|
-
border-radius: 0;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
.navbar-fixed-top {
|
139
|
-
z-index: @zindex-navbar-fixed;
|
140
|
-
top: 0;
|
141
|
-
}
|
142
|
-
.navbar-fixed-bottom {
|
143
|
-
bottom: 0;
|
144
|
-
margin-bottom: 0; // override .navbar defaults
|
145
|
-
}
|
146
|
-
|
147
|
-
|
148
|
-
// Brand/project name
|
149
|
-
|
150
|
-
.navbar-brand {
|
151
|
-
float: left;
|
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
|
-
}
|
159
|
-
|
160
|
-
@media (min-width: @grid-float-breakpoint) {
|
161
|
-
.navbar > .container & {
|
162
|
-
margin-left: -@navbar-padding-horizontal;
|
163
|
-
}
|
164
|
-
}
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
// Navbar toggle
|
169
|
-
//
|
170
|
-
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
171
|
-
// JavaScript plugin.
|
172
|
-
|
173
|
-
.navbar-toggle {
|
174
|
-
position: relative;
|
175
|
-
float: right;
|
176
|
-
margin-right: @navbar-padding-horizontal;
|
177
|
-
padding: 9px 10px;
|
178
|
-
.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
|
-
}
|
197
|
-
}
|
198
|
-
|
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).
|
204
|
-
|
205
|
-
.navbar-nav {
|
206
|
-
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
|
207
|
-
|
208
|
-
> li > a {
|
209
|
-
padding-top: 10px;
|
210
|
-
padding-bottom: 10px;
|
211
|
-
line-height: @line-height-computed;
|
212
|
-
}
|
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
|
-
}
|
250
|
-
}
|
251
|
-
|
252
|
-
}
|
253
|
-
|
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 { .pull-left(); }
|
263
|
-
.navbar-right { .pull-right(); }
|
264
|
-
}
|
265
|
-
|
266
|
-
|
267
|
-
// Navbar form
|
268
|
-
//
|
269
|
-
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
270
|
-
// our navbars.
|
271
|
-
|
272
|
-
.navbar-form {
|
273
|
-
margin-left: -@navbar-padding-horizontal;
|
274
|
-
margin-right: -@navbar-padding-horizontal;
|
275
|
-
padding: 10px @navbar-padding-horizontal;
|
276
|
-
border-top: 1px solid transparent;
|
277
|
-
border-bottom: 1px solid transparent;
|
278
|
-
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
|
279
|
-
.box-shadow(@shadow);
|
280
|
-
|
281
|
-
// Mixin behavior for optimum display
|
282
|
-
.form-inline();
|
283
|
-
|
284
|
-
.form-group {
|
285
|
-
@media (max-width: @screen-xs-max) {
|
286
|
-
margin-bottom: 5px;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
|
290
|
-
// Vertically center in expanded, horizontal navbar
|
291
|
-
.navbar-vertical-align(@input-height-base);
|
292
|
-
|
293
|
-
// Undo 100% width for pull classes
|
294
|
-
@media (min-width: @grid-float-breakpoint) {
|
295
|
-
width: auto;
|
296
|
-
border: 0;
|
297
|
-
margin-left: 0;
|
298
|
-
margin-right: 0;
|
299
|
-
padding-top: 0;
|
300
|
-
padding-bottom: 0;
|
301
|
-
.box-shadow(none);
|
302
|
-
}
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
// Dropdown menus
|
307
|
-
|
308
|
-
// Menu position and menu carets
|
309
|
-
.navbar-nav > li > .dropdown-menu {
|
310
|
-
margin-top: 0;
|
311
|
-
.border-top-radius(0);
|
312
|
-
}
|
313
|
-
// Menu position and menu caret support for dropups via extra dropup class
|
314
|
-
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
315
|
-
.border-bottom-radius(0);
|
316
|
-
}
|
317
|
-
|
318
|
-
// Right aligned menus need alt position
|
319
|
-
.navbar-nav.pull-right > li > .dropdown-menu,
|
320
|
-
.navbar-nav > li > .dropdown-menu.pull-right {
|
321
|
-
left: auto;
|
322
|
-
right: 0;
|
323
|
-
}
|
324
|
-
|
325
|
-
|
326
|
-
// Buttons in navbars
|
327
|
-
//
|
328
|
-
// Vertically center a button within a navbar (when *not* in a form).
|
329
|
-
|
330
|
-
.navbar-btn {
|
331
|
-
.navbar-vertical-align(@input-height-base);
|
332
|
-
}
|
333
|
-
|
334
|
-
|
335
|
-
// Text in navbars
|
336
|
-
//
|
337
|
-
// Add a class to make any element properly align itself vertically within the navbars.
|
338
|
-
|
339
|
-
.navbar-text {
|
340
|
-
float: left;
|
341
|
-
.navbar-vertical-align(@line-height-computed);
|
342
|
-
|
343
|
-
@media (min-width: @grid-float-breakpoint) {
|
344
|
-
margin-left: @navbar-padding-horizontal;
|
345
|
-
margin-right: @navbar-padding-horizontal;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
|
349
|
-
// Alternate navbars
|
350
|
-
// --------------------------------------------------
|
351
|
-
|
352
|
-
// Default navbar
|
353
|
-
.navbar-default {
|
354
|
-
background-color: @navbar-default-bg;
|
355
|
-
border-color: @navbar-default-border;
|
356
|
-
|
357
|
-
.navbar-brand {
|
358
|
-
color: @navbar-default-brand-color;
|
359
|
-
&:hover,
|
360
|
-
&:focus {
|
361
|
-
color: @navbar-default-brand-hover-color;
|
362
|
-
background-color: @navbar-default-brand-hover-bg;
|
363
|
-
}
|
364
|
-
}
|
365
|
-
|
366
|
-
.navbar-text {
|
367
|
-
color: @navbar-default-color;
|
368
|
-
}
|
369
|
-
|
370
|
-
.navbar-nav {
|
371
|
-
> li > a {
|
372
|
-
color: @navbar-default-link-color;
|
373
|
-
|
374
|
-
&:hover,
|
375
|
-
&:focus {
|
376
|
-
color: @navbar-default-link-hover-color;
|
377
|
-
background-color: @navbar-default-link-hover-bg;
|
378
|
-
}
|
379
|
-
}
|
380
|
-
> .active > a {
|
381
|
-
&,
|
382
|
-
&:hover,
|
383
|
-
&:focus {
|
384
|
-
color: @navbar-default-link-active-color;
|
385
|
-
background-color: @navbar-default-link-active-bg;
|
386
|
-
}
|
387
|
-
}
|
388
|
-
> .disabled > a {
|
389
|
-
&,
|
390
|
-
&:hover,
|
391
|
-
&:focus {
|
392
|
-
color: @navbar-default-link-disabled-color;
|
393
|
-
background-color: @navbar-default-link-disabled-bg;
|
394
|
-
}
|
395
|
-
}
|
396
|
-
}
|
397
|
-
|
398
|
-
.navbar-toggle {
|
399
|
-
border-color: @navbar-default-toggle-border-color;
|
400
|
-
&:hover,
|
401
|
-
&:focus {
|
402
|
-
background-color: @navbar-default-toggle-hover-bg;
|
403
|
-
}
|
404
|
-
.icon-bar {
|
405
|
-
background-color: @navbar-default-toggle-icon-bar-bg;
|
406
|
-
}
|
407
|
-
}
|
408
|
-
|
409
|
-
.navbar-collapse,
|
410
|
-
.navbar-form {
|
411
|
-
border-color: darken(@navbar-default-bg, 7%);
|
412
|
-
}
|
413
|
-
|
414
|
-
// Dropdown menu items and carets
|
415
|
-
.navbar-nav {
|
416
|
-
// Caret should match text color on hover
|
417
|
-
> .dropdown > a:hover .caret,
|
418
|
-
> .dropdown > a:focus .caret {
|
419
|
-
border-top-color: @navbar-default-link-hover-color;
|
420
|
-
border-bottom-color: @navbar-default-link-hover-color;
|
421
|
-
}
|
422
|
-
|
423
|
-
// Remove background color from open dropdown
|
424
|
-
> .open > a {
|
425
|
-
&,
|
426
|
-
&:hover,
|
427
|
-
&:focus {
|
428
|
-
background-color: @navbar-default-link-active-bg;
|
429
|
-
color: @navbar-default-link-active-color;
|
430
|
-
.caret {
|
431
|
-
border-top-color: @navbar-default-link-active-color;
|
432
|
-
border-bottom-color: @navbar-default-link-active-color;
|
433
|
-
}
|
434
|
-
}
|
435
|
-
}
|
436
|
-
> .dropdown > a .caret {
|
437
|
-
border-top-color: @navbar-default-link-color;
|
438
|
-
border-bottom-color: @navbar-default-link-color;
|
439
|
-
}
|
440
|
-
|
441
|
-
|
442
|
-
@media (max-width: @screen-xs-max) {
|
443
|
-
// Dropdowns get custom display when collapsed
|
444
|
-
.open .dropdown-menu {
|
445
|
-
> li > a {
|
446
|
-
color: @navbar-default-link-color;
|
447
|
-
&:hover,
|
448
|
-
&:focus {
|
449
|
-
color: @navbar-default-link-hover-color;
|
450
|
-
background-color: @navbar-default-link-hover-bg;
|
451
|
-
}
|
452
|
-
}
|
453
|
-
> .active > a {
|
454
|
-
&,
|
455
|
-
&:hover,
|
456
|
-
&:focus {
|
457
|
-
color: @navbar-default-link-active-color;
|
458
|
-
background-color: @navbar-default-link-active-bg;
|
459
|
-
}
|
460
|
-
}
|
461
|
-
> .disabled > a {
|
462
|
-
&,
|
463
|
-
&:hover,
|
464
|
-
&:focus {
|
465
|
-
color: @navbar-default-link-disabled-color;
|
466
|
-
background-color: @navbar-default-link-disabled-bg;
|
467
|
-
}
|
468
|
-
}
|
469
|
-
}
|
470
|
-
}
|
471
|
-
}
|
472
|
-
|
473
|
-
|
474
|
-
// Links in navbars
|
475
|
-
//
|
476
|
-
// Add a class to ensure links outside the navbar nav are colored correctly.
|
477
|
-
|
478
|
-
.navbar-link {
|
479
|
-
color: @navbar-default-link-color;
|
480
|
-
&:hover {
|
481
|
-
color: @navbar-default-link-hover-color;
|
482
|
-
}
|
483
|
-
}
|
484
|
-
|
485
|
-
}
|
486
|
-
|
487
|
-
// Inverse navbar
|
488
|
-
|
489
|
-
.navbar-inverse {
|
490
|
-
background-color: @navbar-inverse-bg;
|
491
|
-
border-color: @navbar-inverse-border;
|
492
|
-
|
493
|
-
.navbar-brand {
|
494
|
-
color: @navbar-inverse-brand-color;
|
495
|
-
&:hover,
|
496
|
-
&:focus {
|
497
|
-
color: @navbar-inverse-brand-hover-color;
|
498
|
-
background-color: @navbar-inverse-brand-hover-bg;
|
499
|
-
}
|
500
|
-
}
|
501
|
-
|
502
|
-
.navbar-text {
|
503
|
-
color: @navbar-inverse-color;
|
504
|
-
}
|
505
|
-
|
506
|
-
.navbar-nav {
|
507
|
-
> li > a {
|
508
|
-
color: @navbar-inverse-link-color;
|
509
|
-
|
510
|
-
&:hover,
|
511
|
-
&:focus {
|
512
|
-
color: @navbar-inverse-link-hover-color;
|
513
|
-
background-color: @navbar-inverse-link-hover-bg;
|
514
|
-
}
|
515
|
-
}
|
516
|
-
> .active > a {
|
517
|
-
&,
|
518
|
-
&:hover,
|
519
|
-
&:focus {
|
520
|
-
color: @navbar-inverse-link-active-color;
|
521
|
-
background-color: @navbar-inverse-link-active-bg;
|
522
|
-
}
|
523
|
-
}
|
524
|
-
> .disabled > a {
|
525
|
-
&,
|
526
|
-
&:hover,
|
527
|
-
&:focus {
|
528
|
-
color: @navbar-inverse-link-disabled-color;
|
529
|
-
background-color: @navbar-inverse-link-disabled-bg;
|
530
|
-
}
|
531
|
-
}
|
532
|
-
}
|
533
|
-
|
534
|
-
// Darken the responsive nav toggle
|
535
|
-
.navbar-toggle {
|
536
|
-
border-color: @navbar-inverse-toggle-border-color;
|
537
|
-
&:hover,
|
538
|
-
&:focus {
|
539
|
-
background-color: @navbar-inverse-toggle-hover-bg;
|
540
|
-
}
|
541
|
-
.icon-bar {
|
542
|
-
background-color: @navbar-inverse-toggle-icon-bar-bg;
|
543
|
-
}
|
544
|
-
}
|
545
|
-
|
546
|
-
.navbar-collapse,
|
547
|
-
.navbar-form {
|
548
|
-
border-color: darken(@navbar-inverse-bg, 7%);
|
549
|
-
}
|
550
|
-
|
551
|
-
// Dropdowns
|
552
|
-
.navbar-nav {
|
553
|
-
> .open > a {
|
554
|
-
&,
|
555
|
-
&:hover,
|
556
|
-
&:focus {
|
557
|
-
background-color: @navbar-inverse-link-active-bg;
|
558
|
-
color: @navbar-inverse-link-active-color;
|
559
|
-
}
|
560
|
-
}
|
561
|
-
> .dropdown > a:hover .caret {
|
562
|
-
border-top-color: @navbar-inverse-link-hover-color;
|
563
|
-
border-bottom-color: @navbar-inverse-link-hover-color;
|
564
|
-
}
|
565
|
-
> .dropdown > a .caret {
|
566
|
-
border-top-color: @navbar-inverse-link-color;
|
567
|
-
border-bottom-color: @navbar-inverse-link-color;
|
568
|
-
}
|
569
|
-
> .open > a {
|
570
|
-
&,
|
571
|
-
&:hover,
|
572
|
-
&:focus {
|
573
|
-
.caret {
|
574
|
-
border-top-color: @navbar-inverse-link-active-color;
|
575
|
-
border-bottom-color: @navbar-inverse-link-active-color;
|
576
|
-
}
|
577
|
-
}
|
578
|
-
}
|
579
|
-
|
580
|
-
@media (max-width: @screen-xs-max) {
|
581
|
-
// Dropdowns get custom display
|
582
|
-
.open .dropdown-menu {
|
583
|
-
> .dropdown-header {
|
584
|
-
border-color: @navbar-inverse-border;
|
585
|
-
}
|
586
|
-
> li > a {
|
587
|
-
color: @navbar-inverse-link-color;
|
588
|
-
&:hover,
|
589
|
-
&:focus {
|
590
|
-
color: @navbar-inverse-link-hover-color;
|
591
|
-
background-color: @navbar-inverse-link-hover-bg;
|
592
|
-
}
|
593
|
-
}
|
594
|
-
> .active > a {
|
595
|
-
&,
|
596
|
-
&:hover,
|
597
|
-
&:focus {
|
598
|
-
color: @navbar-inverse-link-active-color;
|
599
|
-
background-color: @navbar-inverse-link-active-bg;
|
600
|
-
}
|
601
|
-
}
|
602
|
-
> .disabled > a {
|
603
|
-
&,
|
604
|
-
&:hover,
|
605
|
-
&:focus {
|
606
|
-
color: @navbar-inverse-link-disabled-color;
|
607
|
-
background-color: @navbar-inverse-link-disabled-bg;
|
608
|
-
}
|
609
|
-
}
|
610
|
-
}
|
611
|
-
}
|
612
|
-
}
|
613
|
-
|
614
|
-
.navbar-link {
|
615
|
-
color: @navbar-inverse-link-color;
|
616
|
-
&:hover {
|
617
|
-
color: @navbar-inverse-link-hover-color;
|
618
|
-
}
|
619
|
-
}
|
620
|
-
|
621
|
-
}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Pagination (multiple pages)
|
3
|
-
// --------------------------------------------------
|
4
|
-
.pagination {
|
5
|
-
display: inline-block;
|
6
|
-
padding-left: 0;
|
7
|
-
margin: @line-height-computed 0;
|
8
|
-
border-radius: @border-radius-base;
|
9
|
-
|
10
|
-
> li {
|
11
|
-
display: inline; // Remove list-style and block-level defaults
|
12
|
-
> a,
|
13
|
-
> span {
|
14
|
-
position: relative;
|
15
|
-
float: left; // Collapse white-space
|
16
|
-
padding: @padding-base-vertical @padding-base-horizontal;
|
17
|
-
line-height: @line-height-base;
|
18
|
-
text-decoration: none;
|
19
|
-
background-color: @pagination-bg;
|
20
|
-
border: 1px solid @pagination-border;
|
21
|
-
margin-left: -1px;
|
22
|
-
}
|
23
|
-
&:first-child {
|
24
|
-
> a,
|
25
|
-
> span {
|
26
|
-
margin-left: 0;
|
27
|
-
.border-left-radius(@border-radius-base);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
&:last-child {
|
31
|
-
> a,
|
32
|
-
> span {
|
33
|
-
.border-right-radius(@border-radius-base);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
> li > a,
|
39
|
-
> li > span {
|
40
|
-
&:hover,
|
41
|
-
&:focus {
|
42
|
-
background-color: @pagination-hover-bg;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
> .active > a,
|
47
|
-
> .active > span {
|
48
|
-
&,
|
49
|
-
&:hover,
|
50
|
-
&:focus {
|
51
|
-
z-index: 2;
|
52
|
-
color: @pagination-active-color;
|
53
|
-
background-color: @pagination-active-bg;
|
54
|
-
border-color: @pagination-active-bg;
|
55
|
-
cursor: default;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
> .disabled {
|
60
|
-
> span,
|
61
|
-
> span:hover,
|
62
|
-
> span:focus,
|
63
|
-
> a,
|
64
|
-
> a:hover,
|
65
|
-
> a:focus {
|
66
|
-
color: @pagination-disabled-color;
|
67
|
-
background-color: @pagination-bg;
|
68
|
-
border-color: @pagination-border;
|
69
|
-
cursor: not-allowed;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// Sizing
|
75
|
-
// --------------------------------------------------
|
76
|
-
|
77
|
-
// Large
|
78
|
-
.pagination-lg {
|
79
|
-
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
|
80
|
-
}
|
81
|
-
|
82
|
-
// Small
|
83
|
-
.pagination-sm {
|
84
|
-
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
|
85
|
-
}
|