twitter-bootstrap3-rails 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +708 -0
- data/Rakefile +46 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +399 -0
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +126 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +98 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +109 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +217 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +179 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +154 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +244 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +117 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +158 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +135 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +382 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +56 -0
- data/app/assets/javascripts/twitter/bootstrap_ujs.js +11 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5579 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +787 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +146 -0
- data/app/helpers/badge_label_helper.rb +16 -0
- data/app/helpers/bootstrap_flash_helper.rb +29 -0
- data/app/helpers/flash_block_helper.rb +17 -0
- data/app/helpers/glyph_helper.rb +17 -0
- data/app/helpers/modal_helper.rb +59 -0
- data/app/helpers/navbar_helper.rb +195 -0
- data/app/helpers/twitter_breadcrumbs_helper.rb +10 -0
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +12 -0
- data/lib/generators/bootstrap/install/install_generator.rb +82 -0
- data/lib/generators/bootstrap/install/templates/application.css +7 -0
- data/lib/generators/bootstrap/install/templates/application.js +10 -0
- data/lib/generators/bootstrap/install/templates/bootstrap.coffee +3 -0
- data/lib/generators/bootstrap/install/templates/bootstrap.js +4 -0
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.css +7 -0
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +29 -0
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +18 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +20 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +85 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +50 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +52 -0
- data/lib/generators/bootstrap/partial/partial_generator.rb +20 -0
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +28 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +16 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +9 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +10 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +5 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/index.html.erb +40 -0
- data/lib/generators/bootstrap/themed/templates/index.html.haml +25 -0
- data/lib/generators/bootstrap/themed/templates/index.html.slim +27 -0
- data/lib/generators/bootstrap/themed/templates/new.html.erb +5 -0
- data/lib/generators/bootstrap/themed/templates/new.html.haml +4 -0
- data/lib/generators/bootstrap/themed/templates/new.html.slim +4 -0
- data/lib/generators/bootstrap/themed/templates/show.html.erb +21 -0
- data/lib/generators/bootstrap/themed/templates/show.html.haml +15 -0
- data/lib/generators/bootstrap/themed/templates/show.html.slim +16 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +13 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +10 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +11 -0
- data/lib/generators/bootstrap/themed/themed_generator.rb +148 -0
- data/lib/twitter-bootstrap-rails.rb +10 -0
- data/lib/twitter/bootstrap/rails/bootstrap.rb +2 -0
- data/lib/twitter/bootstrap/rails/engine.rb +33 -0
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +42 -0
- data/lib/twitter/bootstrap/rails/version.rb +7 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +22 -0
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +62 -0
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +331 -0
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +47 -0
- data/spec/spec_helper.rb +11 -0
- data/test/lib/breadcrumbs_test.rb +75 -0
- data/test/test_helper.rb +11 -0
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5579 -0
- data/vendor/static-source/bootstrap.less +1 -0
- data/vendor/static-source/fontawesome.less +9 -0
- data/vendor/static-source/sprites.less +6 -0
- data/vendor/toolkit/fontawesome/bootstrap.less +84 -0
- data/vendor/toolkit/fontawesome/core.less +129 -0
- data/vendor/toolkit/fontawesome/extras.less +93 -0
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +1953 -0
- data/vendor/toolkit/fontawesome/font-awesome.less +33 -0
- data/vendor/toolkit/fontawesome/icons.less +381 -0
- data/vendor/toolkit/fontawesome/mixins.less +48 -0
- data/vendor/toolkit/fontawesome/path.less +14 -0
- data/vendor/toolkit/fontawesome/variables.less +735 -0
- data/vendor/toolkit/twitter/bootstrap/alerts.less +71 -0
- data/vendor/toolkit/twitter/bootstrap/badges.less +51 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +63 -0
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +23 -0
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +244 -0
- data/vendor/toolkit/twitter/bootstrap/buttons.less +159 -0
- data/vendor/toolkit/twitter/bootstrap/carousel.less +204 -0
- data/vendor/toolkit/twitter/bootstrap/close.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/code.less +56 -0
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +29 -0
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +176 -0
- data/vendor/toolkit/twitter/bootstrap/forms.less +332 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +340 -0
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +127 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +29 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +54 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +88 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +56 -0
- data/vendor/toolkit/twitter/bootstrap/mixins.less +693 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +133 -0
- data/vendor/toolkit/twitter/bootstrap/navbar.less +559 -0
- data/vendor/toolkit/twitter/bootstrap/navs.less +228 -0
- data/vendor/toolkit/twitter/bootstrap/normalize.less +396 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +55 -0
- data/vendor/toolkit/twitter/bootstrap/pagination.less +72 -0
- data/vendor/toolkit/twitter/bootstrap/panels.less +128 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +133 -0
- data/vendor/toolkit/twitter/bootstrap/print.less +100 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +99 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +149 -0
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +111 -0
- data/vendor/toolkit/twitter/bootstrap/tables.less +211 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +42 -0
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +95 -0
- data/vendor/toolkit/twitter/bootstrap/type.less +238 -0
- data/vendor/toolkit/twitter/bootstrap/utilities.less +42 -0
- data/vendor/toolkit/twitter/bootstrap/variables.less +607 -0
- data/vendor/toolkit/twitter/bootstrap/wells.less +29 -0
- data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
- metadata +297 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
.alert {
|
10
|
+
padding: @alert-padding;
|
11
|
+
margin-bottom: @line-height-computed;
|
12
|
+
color: @alert-text;
|
13
|
+
background-color: @alert-bg;
|
14
|
+
border: 1px solid @alert-border;
|
15
|
+
border-radius: @alert-border-radius;
|
16
|
+
|
17
|
+
// Headings for larger alerts
|
18
|
+
h4 {
|
19
|
+
margin-top: 0;
|
20
|
+
// Specified for the h4 to prevent conflicts of changing @headingsColor
|
21
|
+
color: inherit;
|
22
|
+
}
|
23
|
+
// Match the hr to the border of the alert
|
24
|
+
hr {
|
25
|
+
border-top-color: darken(@alert-border, 5%);
|
26
|
+
}
|
27
|
+
// Provide class for links that match alerts
|
28
|
+
.alert-link {
|
29
|
+
font-weight: @alert-link-font-weight;
|
30
|
+
color: darken(@alert-text, 10%);
|
31
|
+
}
|
32
|
+
|
33
|
+
// Improve alignment and spacing of inner content
|
34
|
+
> p,
|
35
|
+
> ul {
|
36
|
+
margin-bottom: 0;
|
37
|
+
}
|
38
|
+
> p + p {
|
39
|
+
margin-top: 5px;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
// Dismissable alerts
|
44
|
+
//
|
45
|
+
// Expand the right padding and account for the close button's positioning.
|
46
|
+
|
47
|
+
.alert-dismissable {
|
48
|
+
padding-right: (@alert-padding + 20);
|
49
|
+
|
50
|
+
// Adjust close link position
|
51
|
+
.close {
|
52
|
+
position: relative;
|
53
|
+
top: -2px;
|
54
|
+
right: -21px;
|
55
|
+
color: inherit;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Alternate styles
|
60
|
+
//
|
61
|
+
// Generate contextual modifier classes for colorizing the alert.
|
62
|
+
|
63
|
+
.alert-success {
|
64
|
+
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
|
65
|
+
}
|
66
|
+
.alert-danger {
|
67
|
+
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
|
68
|
+
}
|
69
|
+
.alert-info {
|
70
|
+
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
|
71
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
//
|
2
|
+
// Badges
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base classes
|
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
|
+
|
27
|
+
// Hover state, but only for links
|
28
|
+
a.badge {
|
29
|
+
&:hover,
|
30
|
+
&:focus {
|
31
|
+
color: @badge-link-hover-color;
|
32
|
+
text-decoration: none;
|
33
|
+
cursor: pointer;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// Quick fix for labels/badges in buttons
|
38
|
+
.btn .badge {
|
39
|
+
position: relative;
|
40
|
+
top: -1px;
|
41
|
+
}
|
42
|
+
|
43
|
+
// Account for counters in navs
|
44
|
+
a.list-group-item.active > .badge,
|
45
|
+
.nav-pills > .active > a > .badge {
|
46
|
+
color: @badge-active-color;
|
47
|
+
background-color: @badge-active-bg;
|
48
|
+
}
|
49
|
+
.nav-pills > li > a > .badge {
|
50
|
+
margin-left: 3px;
|
51
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v3.0.0
|
3
|
+
*
|
4
|
+
* Copyright 2013 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 by @mdo and @fat.
|
9
|
+
*/
|
10
|
+
|
11
|
+
// Core variables and mixins
|
12
|
+
@import "variables.less";
|
13
|
+
@import "mixins.less";
|
14
|
+
|
15
|
+
// Reset
|
16
|
+
@import "normalize.less";
|
17
|
+
@import "print.less";
|
18
|
+
|
19
|
+
// Core CSS
|
20
|
+
@import "scaffolding.less";
|
21
|
+
@import "type.less";
|
22
|
+
@import "code.less";
|
23
|
+
@import "grid.less";
|
24
|
+
|
25
|
+
@import "tables.less";
|
26
|
+
@import "forms.less";
|
27
|
+
@import "buttons.less";
|
28
|
+
|
29
|
+
// Components: common
|
30
|
+
@import "component-animations.less";
|
31
|
+
@import "input-groups.less";
|
32
|
+
@import "dropdowns.less";
|
33
|
+
@import "list-group.less";
|
34
|
+
@import "panels.less";
|
35
|
+
@import "wells.less";
|
36
|
+
@import "close.less";
|
37
|
+
|
38
|
+
// Components: Nav
|
39
|
+
@import "navs.less";
|
40
|
+
@import "navbar.less";
|
41
|
+
@import "button-groups.less";
|
42
|
+
@import "breadcrumbs.less";
|
43
|
+
@import "pagination.less";
|
44
|
+
@import "pager.less";
|
45
|
+
|
46
|
+
// Components: Popovers
|
47
|
+
@import "modals.less";
|
48
|
+
@import "tooltip.less";
|
49
|
+
@import "popovers.less";
|
50
|
+
|
51
|
+
// Components: Misc
|
52
|
+
@import "alerts.less";
|
53
|
+
@import "thumbnails.less";
|
54
|
+
@import "media.less";
|
55
|
+
@import "labels.less";
|
56
|
+
@import "badges.less";
|
57
|
+
@import "progress-bars.less";
|
58
|
+
@import "carousel.less";
|
59
|
+
@import "jumbotron.less";
|
60
|
+
|
61
|
+
// Utility classes
|
62
|
+
@import "utilities.less"; // Has to be last to override when necessary
|
63
|
+
@import "responsive-utilities.less";
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.breadcrumb {
|
7
|
+
padding: 8px 15px;
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
list-style: none;
|
10
|
+
background-color: @breadcrumb-bg;
|
11
|
+
border-radius: @border-radius-base;
|
12
|
+
> li {
|
13
|
+
display: inline-block;
|
14
|
+
&+li:before {
|
15
|
+
content: "/\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
16
|
+
padding: 0 5px;
|
17
|
+
color: @breadcrumb-color;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
> .active {
|
21
|
+
color: @breadcrumb-active-color;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,244 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Button carets
|
6
|
+
//
|
7
|
+
// Match the button text color to the arrow/caret for indicating dropdown-ness.
|
8
|
+
|
9
|
+
.caret {
|
10
|
+
.btn-default & {
|
11
|
+
border-top-color: @btn-default-color;
|
12
|
+
}
|
13
|
+
.btn-primary &,
|
14
|
+
.btn-success &,
|
15
|
+
.btn-warning &,
|
16
|
+
.btn-danger &,
|
17
|
+
.btn-info & {
|
18
|
+
border-top-color: #fff;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.dropup .caret {
|
22
|
+
.btn-default & {
|
23
|
+
border-bottom-color: @btn-default-color;
|
24
|
+
}
|
25
|
+
.btn-primary &,
|
26
|
+
.btn-success &,
|
27
|
+
.btn-warning &,
|
28
|
+
.btn-danger &,
|
29
|
+
.btn-info & {
|
30
|
+
border-bottom-color: #fff;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Make the div behave like a button
|
35
|
+
.btn-group,
|
36
|
+
.btn-group-vertical {
|
37
|
+
position: relative;
|
38
|
+
display: inline-block;
|
39
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
40
|
+
> .btn {
|
41
|
+
position: relative;
|
42
|
+
float: left;
|
43
|
+
// Bring the "active" button to the front
|
44
|
+
&:hover,
|
45
|
+
&:focus,
|
46
|
+
&:active,
|
47
|
+
&.active {
|
48
|
+
z-index: 2;
|
49
|
+
}
|
50
|
+
&:focus {
|
51
|
+
// Remove focus outline when dropdown JS adds it after closing the menu
|
52
|
+
outline: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Prevent double borders when buttons are next to each other
|
58
|
+
.btn-group {
|
59
|
+
.btn + .btn,
|
60
|
+
.btn + .btn-group,
|
61
|
+
.btn-group + .btn,
|
62
|
+
.btn-group + .btn-group {
|
63
|
+
margin-left: -1px;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
// Optional: Group multiple button groups together for a toolbar
|
68
|
+
.btn-toolbar {
|
69
|
+
.clearfix();
|
70
|
+
|
71
|
+
.btn-group {
|
72
|
+
float: left;
|
73
|
+
}
|
74
|
+
// Space out series of button groups
|
75
|
+
> .btn,
|
76
|
+
> .btn-group {
|
77
|
+
+ .btn,
|
78
|
+
+ .btn-group {
|
79
|
+
margin-left: 5px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
85
|
+
border-radius: 0;
|
86
|
+
}
|
87
|
+
|
88
|
+
// 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
|
89
|
+
.btn-group > .btn:first-child {
|
90
|
+
margin-left: 0;
|
91
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
92
|
+
.border-right-radius(0);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
96
|
+
.btn-group > .btn:last-child:not(:first-child),
|
97
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
98
|
+
.border-left-radius(0);
|
99
|
+
}
|
100
|
+
|
101
|
+
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
102
|
+
.btn-group > .btn-group {
|
103
|
+
float: left;
|
104
|
+
}
|
105
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
106
|
+
border-radius: 0;
|
107
|
+
}
|
108
|
+
.btn-group > .btn-group:first-child {
|
109
|
+
> .btn:last-child,
|
110
|
+
> .dropdown-toggle {
|
111
|
+
.border-right-radius(0);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
.btn-group > .btn-group:last-child > .btn:first-child {
|
115
|
+
.border-left-radius(0);
|
116
|
+
}
|
117
|
+
|
118
|
+
// On active and open, don't show outline
|
119
|
+
.btn-group .dropdown-toggle:active,
|
120
|
+
.btn-group.open .dropdown-toggle {
|
121
|
+
outline: 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
// Sizing
|
126
|
+
//
|
127
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
128
|
+
|
129
|
+
.btn-group-xs > .btn { .btn-xs(); }
|
130
|
+
.btn-group-sm > .btn { .btn-sm(); }
|
131
|
+
.btn-group-lg > .btn { .btn-lg(); }
|
132
|
+
|
133
|
+
|
134
|
+
// Split button dropdowns
|
135
|
+
// ----------------------
|
136
|
+
|
137
|
+
// Give the line between buttons some depth
|
138
|
+
.btn-group > .btn + .dropdown-toggle {
|
139
|
+
padding-left: 8px;
|
140
|
+
padding-right: 8px;
|
141
|
+
}
|
142
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
143
|
+
padding-left: 12px;
|
144
|
+
padding-right: 12px;
|
145
|
+
}
|
146
|
+
|
147
|
+
// The clickable button for toggling the menu
|
148
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
149
|
+
.btn-group.open .dropdown-toggle {
|
150
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
// Reposition the caret
|
155
|
+
.btn .caret {
|
156
|
+
margin-left: 0;
|
157
|
+
}
|
158
|
+
// Carets in other button sizes
|
159
|
+
.btn-lg .caret {
|
160
|
+
border-width: @caret-width-large;
|
161
|
+
}
|
162
|
+
// Upside down carets for .dropup
|
163
|
+
.dropup .btn-lg .caret {
|
164
|
+
border-bottom-width: @caret-width-large;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
// Vertical button groups
|
169
|
+
// ----------------------
|
170
|
+
|
171
|
+
.btn-group-vertical {
|
172
|
+
> .btn,
|
173
|
+
> .btn-group {
|
174
|
+
display: block;
|
175
|
+
float: none;
|
176
|
+
width: 100%;
|
177
|
+
max-width: 100%;
|
178
|
+
}
|
179
|
+
|
180
|
+
// Clear floats so dropdown menus can be properly placed
|
181
|
+
> .btn-group {
|
182
|
+
.clearfix();
|
183
|
+
> .btn {
|
184
|
+
float: none;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
> .btn + .btn,
|
189
|
+
> .btn + .btn-group,
|
190
|
+
> .btn-group + .btn,
|
191
|
+
> .btn-group + .btn-group {
|
192
|
+
margin-top: -1px;
|
193
|
+
margin-left: 0;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
.btn-group-vertical > .btn {
|
198
|
+
&:not(:first-child):not(:last-child) {
|
199
|
+
border-radius: 0;
|
200
|
+
}
|
201
|
+
&:first-child:not(:last-child) {
|
202
|
+
border-top-right-radius: @border-radius-base;
|
203
|
+
.border-bottom-radius(0);
|
204
|
+
}
|
205
|
+
&:last-child:not(:first-child) {
|
206
|
+
border-bottom-left-radius: @border-radius-base;
|
207
|
+
.border-top-radius(0);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
211
|
+
border-radius: 0;
|
212
|
+
}
|
213
|
+
.btn-group-vertical > .btn-group:first-child {
|
214
|
+
> .btn:last-child,
|
215
|
+
> .dropdown-toggle {
|
216
|
+
.border-bottom-radius(0);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
.btn-group-vertical > .btn-group:last-child > .btn:first-child {
|
220
|
+
.border-top-radius(0);
|
221
|
+
}
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
// Justified button groups
|
226
|
+
// ----------------------
|
227
|
+
|
228
|
+
.btn-group-justified {
|
229
|
+
display: table;
|
230
|
+
width: 100%;
|
231
|
+
table-layout: fixed;
|
232
|
+
.btn {
|
233
|
+
float: none;
|
234
|
+
display: table-cell;
|
235
|
+
width: 1%;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
|
240
|
+
// Checkbox and radio options
|
241
|
+
[data-toggle="buttons"] > .btn > input[type="radio"],
|
242
|
+
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
243
|
+
display: none;
|
244
|
+
}
|