twitter-bootstrap-rails 2.2.8 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +82 -119
- data/Rakefile +4 -6
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +471 -366
- 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 +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +137 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +88 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +107 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +205 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +147 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +243 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +110 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +153 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +125 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +399 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +48 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +4 -787
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +7 -5
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +8 -6
- data/app/helpers/modal_helper.rb +29 -21
- data/app/helpers/navbar_helper.rb +42 -30
- data/app/helpers/twitter_breadcrumbs_helper.rb +3 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +4 -4
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +7 -8
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +5 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +22 -43
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +16 -31
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +10 -25
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +25 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +7 -7
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +7 -7
- data/lib/generators/bootstrap/themed/templates/index.html.erb +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +2 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +2 -2
- data/lib/generators/bootstrap/themed/templates/show.html.erb +5 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +4 -4
- data/lib/generators/bootstrap/themed/templates/show.html.slim +5 -6
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
- data/lib/generators/bootstrap/themed/themed_generator.rb +2 -2
- data/lib/twitter/bootstrap/rails/{twitter-bootstrap-breadcrumbs.rb → breadcrumbs.rb} +24 -8
- data/lib/twitter/bootstrap/rails/engine.rb +5 -2
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +74 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +4 -2
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +157 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +7 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5797 -0
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/fontawesome.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/fontawesome/bordered-pulled.less +16 -0
- data/vendor/toolkit/fontawesome/core.less +9 -126
- data/vendor/toolkit/fontawesome/fixed-width.less +6 -0
- data/vendor/toolkit/fontawesome/font-awesome.less +9 -25
- data/vendor/toolkit/fontawesome/icons.less +503 -378
- data/vendor/toolkit/fontawesome/larger.less +13 -0
- data/vendor/toolkit/fontawesome/list.less +19 -0
- data/vendor/toolkit/fontawesome/mixins.less +14 -42
- data/vendor/toolkit/fontawesome/path.less +1 -1
- data/vendor/toolkit/fontawesome/rotated-flipped.less +9 -0
- data/vendor/toolkit/fontawesome/spinning.less +32 -0
- data/vendor/toolkit/fontawesome/stacked.less +20 -0
- data/vendor/toolkit/fontawesome/variables.less +511 -731
- data/vendor/toolkit/twitter/bootstrap/alerts.less +47 -58
- data/vendor/toolkit/twitter/bootstrap/badges.less +55 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +27 -39
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +168 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +101 -170
- data/vendor/toolkit/twitter/bootstrap/carousel.less +150 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +20 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +12 -3
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +115 -148
- data/vendor/toolkit/twitter/bootstrap/forms.less +401 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +233 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +166 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +48 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +132 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +8 -7
- data/vendor/toolkit/twitter/bootstrap/mixins.less +36 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +52 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +29 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +23 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +542 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +425 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +46 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +70 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +248 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +61 -61
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +51 -73
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +34 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +120 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +171 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +260 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +26 -43
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +49 -24
- data/vendor/toolkit/twitter/bootstrap/type.less +208 -147
- data/vendor/toolkit/twitter/bootstrap/utilities.less +33 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +761 -215
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +128 -138
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
- data/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
- data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
- data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
- data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
- data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -7,73 +7,62 @@
|
|
7
7
|
// -------------------------
|
8
8
|
|
9
9
|
.alert {
|
10
|
-
padding:
|
11
|
-
margin-bottom: @
|
12
|
-
|
13
|
-
|
14
|
-
border: 1px solid @warningBorder;
|
15
|
-
.border-radius(@baseBorderRadius);
|
16
|
-
}
|
17
|
-
.alert,
|
18
|
-
.alert h4 {
|
19
|
-
// Specified for the h4 to prevent conflicts of changing @headingsColor
|
20
|
-
color: @warningText;
|
21
|
-
}
|
22
|
-
.alert h4 {
|
23
|
-
margin: 0;
|
24
|
-
}
|
10
|
+
padding: @alert-padding;
|
11
|
+
margin-bottom: @line-height-computed;
|
12
|
+
border: 1px solid transparent;
|
13
|
+
border-radius: @alert-border-radius;
|
25
14
|
|
26
|
-
//
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
15
|
+
// Headings for larger alerts
|
16
|
+
h4 {
|
17
|
+
margin-top: 0;
|
18
|
+
// Specified for the h4 to prevent conflicts of changing @headings-color
|
19
|
+
color: inherit;
|
20
|
+
}
|
21
|
+
// Provide class for links that match alerts
|
22
|
+
.alert-link {
|
23
|
+
font-weight: @alert-link-font-weight;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Improve alignment and spacing of inner content
|
27
|
+
> p,
|
28
|
+
> ul {
|
29
|
+
margin-bottom: 0;
|
30
|
+
}
|
31
|
+
> p + p {
|
32
|
+
margin-top: 5px;
|
33
|
+
}
|
32
34
|
}
|
33
35
|
|
36
|
+
// Dismissible alerts
|
37
|
+
//
|
38
|
+
// Expand the right padding and account for the close button's positioning.
|
39
|
+
|
40
|
+
.alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0.
|
41
|
+
.alert-dismissible {
|
42
|
+
padding-right: (@alert-padding + 20);
|
43
|
+
|
44
|
+
// Adjust close link position
|
45
|
+
.close {
|
46
|
+
position: relative;
|
47
|
+
top: -2px;
|
48
|
+
right: -21px;
|
49
|
+
color: inherit;
|
50
|
+
}
|
51
|
+
}
|
34
52
|
|
35
53
|
// Alternate styles
|
36
|
-
//
|
54
|
+
//
|
55
|
+
// Generate contextual modifier classes for colorizing the alert.
|
37
56
|
|
38
57
|
.alert-success {
|
39
|
-
|
40
|
-
border-color: @successBorder;
|
41
|
-
color: @successText;
|
42
|
-
}
|
43
|
-
.alert-success h4 {
|
44
|
-
color: @successText;
|
45
|
-
}
|
46
|
-
.alert-danger,
|
47
|
-
.alert-error {
|
48
|
-
background-color: @errorBackground;
|
49
|
-
border-color: @errorBorder;
|
50
|
-
color: @errorText;
|
51
|
-
}
|
52
|
-
.alert-danger h4,
|
53
|
-
.alert-error h4 {
|
54
|
-
color: @errorText;
|
58
|
+
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
|
55
59
|
}
|
56
60
|
.alert-info {
|
57
|
-
|
58
|
-
border-color: @infoBorder;
|
59
|
-
color: @infoText;
|
60
|
-
}
|
61
|
-
.alert-info h4 {
|
62
|
-
color: @infoText;
|
63
|
-
}
|
64
|
-
|
65
|
-
|
66
|
-
// Block alerts
|
67
|
-
// -------------------------
|
68
|
-
|
69
|
-
.alert-block {
|
70
|
-
padding-top: 14px;
|
71
|
-
padding-bottom: 14px;
|
61
|
+
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
|
72
62
|
}
|
73
|
-
.alert-
|
74
|
-
.alert-
|
75
|
-
margin-bottom: 0;
|
63
|
+
.alert-warning {
|
64
|
+
.alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
|
76
65
|
}
|
77
|
-
.alert-
|
78
|
-
|
66
|
+
.alert-danger {
|
67
|
+
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
|
79
68
|
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//
|
2
|
+
// Badges
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.badge {
|
8
|
+
display: inline-block;
|
9
|
+
min-width: 10px;
|
10
|
+
padding: 3px 7px;
|
11
|
+
font-size: @font-size-small;
|
12
|
+
font-weight: @badge-font-weight;
|
13
|
+
color: @badge-color;
|
14
|
+
line-height: @badge-line-height;
|
15
|
+
vertical-align: baseline;
|
16
|
+
white-space: nowrap;
|
17
|
+
text-align: center;
|
18
|
+
background-color: @badge-bg;
|
19
|
+
border-radius: @badge-border-radius;
|
20
|
+
|
21
|
+
// Empty badges collapse automatically (not available in IE8)
|
22
|
+
&:empty {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Quick fix for badges in buttons
|
27
|
+
.btn & {
|
28
|
+
position: relative;
|
29
|
+
top: -1px;
|
30
|
+
}
|
31
|
+
.btn-xs & {
|
32
|
+
top: 0;
|
33
|
+
padding: 1px 5px;
|
34
|
+
}
|
35
|
+
|
36
|
+
// Hover state, but only for links
|
37
|
+
a& {
|
38
|
+
&:hover,
|
39
|
+
&:focus {
|
40
|
+
color: @badge-link-hover-color;
|
41
|
+
text-decoration: none;
|
42
|
+
cursor: pointer;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
// Account for badges in navs
|
47
|
+
a.list-group-item.active > &,
|
48
|
+
.nav-pills > .active > a > & {
|
49
|
+
color: @badge-active-color;
|
50
|
+
background-color: @badge-active-bg;
|
51
|
+
}
|
52
|
+
.nav-pills > li > a > & {
|
53
|
+
margin-left: 3px;
|
54
|
+
}
|
55
|
+
}
|
@@ -1,62 +1,50 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap v2.3.2
|
3
|
-
*
|
4
|
-
* Copyright 2012 Twitter, Inc
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
-
*/
|
10
|
-
|
11
1
|
// Core variables and mixins
|
12
|
-
@import "variables.less";
|
2
|
+
@import "variables.less";
|
13
3
|
@import "mixins.less";
|
14
4
|
|
15
|
-
//
|
16
|
-
@import "
|
5
|
+
// Reset and dependencies
|
6
|
+
@import "normalize.less";
|
7
|
+
@import "print.less";
|
8
|
+
@import "glyphicons.less";
|
17
9
|
|
18
|
-
//
|
10
|
+
// Core CSS
|
19
11
|
@import "scaffolding.less";
|
20
|
-
@import "grid.less";
|
21
|
-
@import "layouts.less";
|
22
|
-
|
23
|
-
// Base CSS
|
24
12
|
@import "type.less";
|
25
13
|
@import "code.less";
|
26
|
-
@import "
|
14
|
+
@import "grid.less";
|
27
15
|
@import "tables.less";
|
16
|
+
@import "forms.less";
|
17
|
+
@import "buttons.less";
|
28
18
|
|
29
|
-
// Components
|
30
|
-
@import "dropdowns.less";
|
31
|
-
@import "wells.less";
|
19
|
+
// Components
|
32
20
|
@import "component-animations.less";
|
33
|
-
@import "
|
34
|
-
|
35
|
-
// Components: Buttons & Alerts
|
36
|
-
@import "buttons.less";
|
21
|
+
@import "dropdowns.less";
|
37
22
|
@import "button-groups.less";
|
38
|
-
@import "
|
39
|
-
|
40
|
-
// Components: Nav
|
23
|
+
@import "input-groups.less";
|
41
24
|
@import "navs.less";
|
42
25
|
@import "navbar.less";
|
43
26
|
@import "breadcrumbs.less";
|
44
27
|
@import "pagination.less";
|
45
28
|
@import "pager.less";
|
29
|
+
@import "labels.less";
|
30
|
+
@import "badges.less";
|
31
|
+
@import "jumbotron.less";
|
32
|
+
@import "thumbnails.less";
|
33
|
+
@import "alerts.less";
|
34
|
+
@import "progress-bars.less";
|
35
|
+
@import "media.less";
|
36
|
+
@import "list-group.less";
|
37
|
+
@import "panels.less";
|
38
|
+
@import "responsive-embed.less";
|
39
|
+
@import "wells.less";
|
40
|
+
@import "close.less";
|
46
41
|
|
47
|
-
// Components
|
42
|
+
// Components w/ JavaScript
|
48
43
|
@import "modals.less";
|
49
44
|
@import "tooltip.less";
|
50
45
|
@import "popovers.less";
|
51
|
-
|
52
|
-
// Components: Misc
|
53
|
-
@import "thumbnails.less";
|
54
|
-
@import "media.less";
|
55
|
-
@import "labels-badges.less";
|
56
|
-
@import "progress-bars.less";
|
57
|
-
@import "accordion.less";
|
58
46
|
@import "carousel.less";
|
59
|
-
@import "hero-unit.less";
|
60
47
|
|
61
48
|
// Utility classes
|
62
|
-
@import "utilities.less";
|
49
|
+
@import "utilities.less";
|
50
|
+
@import "responsive-utilities.less";
|
@@ -4,21 +4,23 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
.breadcrumb {
|
7
|
-
padding:
|
8
|
-
margin:
|
7
|
+
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
|
8
|
+
margin-bottom: @line-height-computed;
|
9
9
|
list-style: none;
|
10
|
-
background-color:
|
11
|
-
|
10
|
+
background-color: @breadcrumb-bg;
|
11
|
+
border-radius: @border-radius-base;
|
12
|
+
|
12
13
|
> li {
|
13
14
|
display: inline-block;
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
|
16
|
+
+ li:before {
|
17
|
+
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
17
18
|
padding: 0 5px;
|
18
|
-
color:
|
19
|
+
color: @breadcrumb-color;
|
19
20
|
}
|
20
21
|
}
|
22
|
+
|
21
23
|
> .active {
|
22
|
-
color: @
|
24
|
+
color: @breadcrumb-active-color;
|
23
25
|
}
|
24
26
|
}
|
@@ -2,90 +2,87 @@
|
|
2
2
|
// Button groups
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
-
|
6
5
|
// Make the div behave like a button
|
7
|
-
.btn-group
|
6
|
+
.btn-group,
|
7
|
+
.btn-group-vertical {
|
8
8
|
position: relative;
|
9
9
|
display: inline-block;
|
10
|
-
.ie7-inline-block();
|
11
|
-
font-size: 0; // remove as part 1 of font-size inline-block hack
|
12
10
|
vertical-align: middle; // match .btn alignment given font-size hack above
|
13
|
-
|
14
|
-
|
11
|
+
> .btn {
|
12
|
+
position: relative;
|
13
|
+
float: left;
|
14
|
+
// Bring the "active" button to the front
|
15
|
+
&:hover,
|
16
|
+
&:focus,
|
17
|
+
&:active,
|
18
|
+
&.active {
|
19
|
+
z-index: 2;
|
20
|
+
}
|
21
|
+
&:focus {
|
22
|
+
// Remove focus outline when dropdown JS adds it after closing the menu
|
23
|
+
outline: 0;
|
24
|
+
}
|
25
|
+
}
|
15
26
|
}
|
16
27
|
|
17
|
-
//
|
18
|
-
.btn-group
|
19
|
-
|
28
|
+
// Prevent double borders when buttons are next to each other
|
29
|
+
.btn-group {
|
30
|
+
.btn + .btn,
|
31
|
+
.btn + .btn-group,
|
32
|
+
.btn-group + .btn,
|
33
|
+
.btn-group + .btn-group {
|
34
|
+
margin-left: -1px;
|
35
|
+
}
|
20
36
|
}
|
21
37
|
|
22
38
|
// Optional: Group multiple button groups together for a toolbar
|
23
39
|
.btn-toolbar {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
40
|
+
margin-left: -5px; // Offset the first child's margin
|
41
|
+
&:extend(.clearfix all);
|
42
|
+
|
43
|
+
.btn-group,
|
44
|
+
.input-group {
|
45
|
+
float: left;
|
46
|
+
}
|
47
|
+
> .btn,
|
48
|
+
> .btn-group,
|
49
|
+
> .input-group {
|
30
50
|
margin-left: 5px;
|
31
51
|
}
|
32
52
|
}
|
33
53
|
|
34
|
-
|
35
|
-
|
36
|
-
position: relative;
|
37
|
-
.border-radius(0);
|
38
|
-
}
|
39
|
-
.btn-group > .btn + .btn {
|
40
|
-
margin-left: -1px;
|
41
|
-
}
|
42
|
-
.btn-group > .btn,
|
43
|
-
.btn-group > .dropdown-menu,
|
44
|
-
.btn-group > .popover {
|
45
|
-
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
|
46
|
-
}
|
47
|
-
|
48
|
-
// Reset fonts for other sizes
|
49
|
-
.btn-group > .btn-mini {
|
50
|
-
font-size: @fontSizeMini;
|
51
|
-
}
|
52
|
-
.btn-group > .btn-small {
|
53
|
-
font-size: @fontSizeSmall;
|
54
|
-
}
|
55
|
-
.btn-group > .btn-large {
|
56
|
-
font-size: @fontSizeLarge;
|
54
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
55
|
+
border-radius: 0;
|
57
56
|
}
|
58
57
|
|
59
58
|
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
60
59
|
.btn-group > .btn:first-child {
|
61
60
|
margin-left: 0;
|
62
|
-
.
|
63
|
-
|
61
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
62
|
+
.border-right-radius(0);
|
63
|
+
}
|
64
64
|
}
|
65
65
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
66
|
-
.btn-group > .btn:last-child,
|
67
|
-
.btn-group > .dropdown-toggle {
|
68
|
-
.border-
|
69
|
-
.border-bottom-right-radius(@baseBorderRadius);
|
66
|
+
.btn-group > .btn:last-child:not(:first-child),
|
67
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
68
|
+
.border-left-radius(0);
|
70
69
|
}
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
.border-bottom-left-radius(@borderRadiusLarge);
|
70
|
+
|
71
|
+
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
72
|
+
.btn-group > .btn-group {
|
73
|
+
float: left;
|
76
74
|
}
|
77
|
-
.btn-group > .btn
|
78
|
-
|
79
|
-
.border-top-right-radius(@borderRadiusLarge);
|
80
|
-
.border-bottom-right-radius(@borderRadiusLarge);
|
75
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
76
|
+
border-radius: 0;
|
81
77
|
}
|
82
|
-
|
83
|
-
|
84
|
-
.
|
85
|
-
.
|
86
|
-
|
87
|
-
|
88
|
-
|
78
|
+
.btn-group > .btn-group:first-child {
|
79
|
+
> .btn:last-child,
|
80
|
+
> .dropdown-toggle {
|
81
|
+
.border-right-radius(0);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
.btn-group > .btn-group:last-child > .btn:first-child {
|
85
|
+
.border-left-radius(0);
|
89
86
|
}
|
90
87
|
|
91
88
|
// On active and open, don't show outline
|
@@ -95,6 +92,14 @@
|
|
95
92
|
}
|
96
93
|
|
97
94
|
|
95
|
+
// Sizing
|
96
|
+
//
|
97
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
98
|
+
|
99
|
+
.btn-group-xs > .btn { &:extend(.btn-xs); }
|
100
|
+
.btn-group-sm > .btn { &:extend(.btn-sm); }
|
101
|
+
.btn-group-lg > .btn { &:extend(.btn-lg); }
|
102
|
+
|
98
103
|
|
99
104
|
// Split button dropdowns
|
100
105
|
// ----------------------
|
@@ -103,127 +108,138 @@
|
|
103
108
|
.btn-group > .btn + .dropdown-toggle {
|
104
109
|
padding-left: 8px;
|
105
110
|
padding-right: 8px;
|
106
|
-
.box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
107
|
-
*padding-top: 5px;
|
108
|
-
*padding-bottom: 5px;
|
109
|
-
}
|
110
|
-
.btn-group > .btn-mini + .dropdown-toggle {
|
111
|
-
padding-left: 5px;
|
112
|
-
padding-right: 5px;
|
113
|
-
*padding-top: 2px;
|
114
|
-
*padding-bottom: 2px;
|
115
111
|
}
|
116
|
-
.btn-group > .btn-
|
117
|
-
*padding-top: 5px;
|
118
|
-
*padding-bottom: 4px;
|
119
|
-
}
|
120
|
-
.btn-group > .btn-large + .dropdown-toggle {
|
112
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
121
113
|
padding-left: 12px;
|
122
114
|
padding-right: 12px;
|
123
|
-
*padding-top: 7px;
|
124
|
-
*padding-bottom: 7px;
|
125
115
|
}
|
126
116
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
.dropdown-toggle {
|
132
|
-
background-image: none;
|
133
|
-
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
134
|
-
}
|
117
|
+
// The clickable button for toggling the menu
|
118
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
119
|
+
.btn-group.open .dropdown-toggle {
|
120
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
135
121
|
|
136
|
-
//
|
137
|
-
|
138
|
-
|
139
|
-
}
|
140
|
-
.btn-primary.dropdown-toggle {
|
141
|
-
background-color: @btnPrimaryBackgroundHighlight;
|
142
|
-
}
|
143
|
-
.btn-warning.dropdown-toggle {
|
144
|
-
background-color: @btnWarningBackgroundHighlight;
|
145
|
-
}
|
146
|
-
.btn-danger.dropdown-toggle {
|
147
|
-
background-color: @btnDangerBackgroundHighlight;
|
148
|
-
}
|
149
|
-
.btn-success.dropdown-toggle {
|
150
|
-
background-color: @btnSuccessBackgroundHighlight;
|
151
|
-
}
|
152
|
-
.btn-info.dropdown-toggle {
|
153
|
-
background-color: @btnInfoBackgroundHighlight;
|
154
|
-
}
|
155
|
-
.btn-inverse.dropdown-toggle {
|
156
|
-
background-color: @btnInverseBackgroundHighlight;
|
122
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
123
|
+
&.btn-link {
|
124
|
+
.box-shadow(none);
|
157
125
|
}
|
158
126
|
}
|
159
127
|
|
160
128
|
|
161
129
|
// Reposition the caret
|
162
130
|
.btn .caret {
|
163
|
-
margin-top: 8px;
|
164
131
|
margin-left: 0;
|
165
132
|
}
|
166
133
|
// Carets in other button sizes
|
167
|
-
.btn-
|
168
|
-
|
169
|
-
|
170
|
-
.btn-large .caret {
|
171
|
-
border-left-width: 5px;
|
172
|
-
border-right-width: 5px;
|
173
|
-
border-top-width: 5px;
|
174
|
-
}
|
175
|
-
.btn-mini .caret,
|
176
|
-
.btn-small .caret {
|
177
|
-
margin-top: 8px;
|
134
|
+
.btn-lg .caret {
|
135
|
+
border-width: @caret-width-large @caret-width-large 0;
|
136
|
+
border-bottom-width: 0;
|
178
137
|
}
|
179
138
|
// Upside down carets for .dropup
|
180
|
-
.dropup .btn-
|
181
|
-
border-
|
139
|
+
.dropup .btn-lg .caret {
|
140
|
+
border-width: 0 @caret-width-large @caret-width-large;
|
182
141
|
}
|
183
142
|
|
184
143
|
|
185
|
-
|
186
|
-
// Account for other colors
|
187
|
-
.btn-primary,
|
188
|
-
.btn-warning,
|
189
|
-
.btn-danger,
|
190
|
-
.btn-info,
|
191
|
-
.btn-success,
|
192
|
-
.btn-inverse {
|
193
|
-
.caret {
|
194
|
-
border-top-color: @white;
|
195
|
-
border-bottom-color: @white;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
|
199
|
-
|
200
|
-
|
201
144
|
// Vertical button groups
|
202
145
|
// ----------------------
|
203
146
|
|
204
147
|
.btn-group-vertical {
|
205
|
-
|
206
|
-
.
|
148
|
+
> .btn,
|
149
|
+
> .btn-group,
|
150
|
+
> .btn-group > .btn {
|
151
|
+
display: block;
|
152
|
+
float: none;
|
153
|
+
width: 100%;
|
154
|
+
max-width: 100%;
|
155
|
+
}
|
156
|
+
|
157
|
+
// Clear floats so dropdown menus can be properly placed
|
158
|
+
> .btn-group {
|
159
|
+
&:extend(.clearfix all);
|
160
|
+
> .btn {
|
161
|
+
float: none;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
> .btn + .btn,
|
166
|
+
> .btn + .btn-group,
|
167
|
+
> .btn-group + .btn,
|
168
|
+
> .btn-group + .btn-group {
|
169
|
+
margin-top: -1px;
|
170
|
+
margin-left: 0;
|
171
|
+
}
|
207
172
|
}
|
173
|
+
|
208
174
|
.btn-group-vertical > .btn {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
175
|
+
&:not(:first-child):not(:last-child) {
|
176
|
+
border-radius: 0;
|
177
|
+
}
|
178
|
+
&:first-child:not(:last-child) {
|
179
|
+
border-top-right-radius: @border-radius-base;
|
180
|
+
.border-bottom-radius(0);
|
181
|
+
}
|
182
|
+
&:last-child:not(:first-child) {
|
183
|
+
border-bottom-left-radius: @border-radius-base;
|
184
|
+
.border-top-radius(0);
|
185
|
+
}
|
213
186
|
}
|
214
|
-
.btn-group-vertical > .btn
|
215
|
-
|
216
|
-
margin-top: -1px;
|
187
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
188
|
+
border-radius: 0;
|
217
189
|
}
|
218
|
-
.btn-group-vertical > .btn:first-child {
|
219
|
-
.
|
190
|
+
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
191
|
+
> .btn:last-child,
|
192
|
+
> .dropdown-toggle {
|
193
|
+
.border-bottom-radius(0);
|
194
|
+
}
|
220
195
|
}
|
221
|
-
.btn-group-vertical > .btn:last-child {
|
222
|
-
.border-radius(0
|
196
|
+
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
197
|
+
.border-top-radius(0);
|
223
198
|
}
|
224
|
-
|
225
|
-
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
// Justified button groups
|
203
|
+
// ----------------------
|
204
|
+
|
205
|
+
.btn-group-justified {
|
206
|
+
display: table;
|
207
|
+
width: 100%;
|
208
|
+
table-layout: fixed;
|
209
|
+
border-collapse: separate;
|
210
|
+
> .btn,
|
211
|
+
> .btn-group {
|
212
|
+
float: none;
|
213
|
+
display: table-cell;
|
214
|
+
width: 1%;
|
215
|
+
}
|
216
|
+
> .btn-group .btn {
|
217
|
+
width: 100%;
|
218
|
+
}
|
219
|
+
|
220
|
+
> .btn-group .dropdown-menu {
|
221
|
+
left: auto;
|
222
|
+
}
|
226
223
|
}
|
227
|
-
|
228
|
-
|
224
|
+
|
225
|
+
|
226
|
+
// Checkbox and radio options
|
227
|
+
//
|
228
|
+
// In order to support the browser's form validation feedback, powered by the
|
229
|
+
// `required` attribute, we have to "hide" the inputs via `opacity`. We cannot
|
230
|
+
// use `display: none;` or `visibility: hidden;` as that also hides the popover.
|
231
|
+
// This way, we ensure a DOM element is visible to position the popover from.
|
232
|
+
//
|
233
|
+
// See https://github.com/twbs/bootstrap/pull/12794 for more.
|
234
|
+
|
235
|
+
[data-toggle="buttons"] {
|
236
|
+
> .btn,
|
237
|
+
> .btn-group > .btn {
|
238
|
+
input[type="radio"],
|
239
|
+
input[type="checkbox"] {
|
240
|
+
position: absolute;
|
241
|
+
z-index: -1;
|
242
|
+
.opacity(0);
|
243
|
+
}
|
244
|
+
}
|
229
245
|
}
|