less-rails-bootstrap 3.1.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.travis.yml +5 -4
- data/Appraisals +10 -4
- data/Gemfile +0 -2
- data/ISSUES.md +6 -0
- data/README.md +6 -6
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/stylesheets/twitter/bootstrap.less +1 -0
- data/app/frameworks/twitter/bootstrap/alerts.less +68 -0
- data/app/frameworks/twitter/bootstrap/badges.less +55 -0
- data/app/frameworks/twitter/bootstrap/bootstrap.less +50 -0
- data/app/frameworks/twitter/bootstrap/breadcrumbs.less +26 -0
- data/app/frameworks/twitter/bootstrap/button-groups.less +240 -0
- data/app/frameworks/twitter/bootstrap/buttons.less +157 -0
- data/app/frameworks/twitter/bootstrap/carousel.less +243 -0
- data/app/frameworks/twitter/bootstrap/close.less +33 -0
- data/app/frameworks/twitter/bootstrap/code.less +68 -0
- data/app/frameworks/twitter/bootstrap/component-animations.less +31 -0
- data/app/frameworks/twitter/bootstrap/dropdowns.less +215 -0
- data/app/frameworks/twitter/bootstrap/forms.less +540 -0
- data/app/frameworks/twitter/bootstrap/glyphicons.less +233 -0
- data/app/frameworks/twitter/bootstrap/grid.less +84 -0
- data/app/frameworks/twitter/bootstrap/input-groups.less +166 -0
- data/app/frameworks/twitter/bootstrap/jumbotron.less +48 -0
- data/app/frameworks/twitter/bootstrap/labels.less +64 -0
- data/app/frameworks/twitter/bootstrap/list-group.less +131 -0
- data/app/frameworks/twitter/bootstrap/media.less +56 -0
- data/app/frameworks/twitter/bootstrap/mixins.less +39 -0
- data/app/frameworks/twitter/bootstrap/mixins/alerts.less +14 -0
- data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/app/frameworks/twitter/bootstrap/mixins/buttons.less +50 -0
- data/app/frameworks/twitter/bootstrap/mixins/center-block.less +7 -0
- data/app/frameworks/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/app/frameworks/twitter/bootstrap/mixins/forms.less +81 -0
- data/app/frameworks/twitter/bootstrap/mixins/gradients.less +59 -0
- data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/app/frameworks/twitter/bootstrap/mixins/grid.less +122 -0
- data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/app/frameworks/twitter/bootstrap/mixins/image.less +34 -0
- data/app/frameworks/twitter/bootstrap/mixins/labels.less +12 -0
- data/app/frameworks/twitter/bootstrap/mixins/list-group.less +29 -0
- data/app/frameworks/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/app/frameworks/twitter/bootstrap/mixins/opacity.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/pagination.less +23 -0
- data/app/frameworks/twitter/bootstrap/mixins/panels.less +24 -0
- data/app/frameworks/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/resize.less +6 -0
- data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/app/frameworks/twitter/bootstrap/mixins/size.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/app/frameworks/twitter/bootstrap/mixins/table-row.less +28 -0
- data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/app/frameworks/twitter/bootstrap/modals.less +150 -0
- data/app/frameworks/twitter/bootstrap/navbar.less +655 -0
- data/app/frameworks/twitter/bootstrap/navs.less +242 -0
- data/app/frameworks/twitter/bootstrap/normalize.less +425 -0
- data/app/frameworks/twitter/bootstrap/pager.less +55 -0
- data/app/frameworks/twitter/bootstrap/pagination.less +88 -0
- data/app/frameworks/twitter/bootstrap/panels.less +243 -0
- data/app/frameworks/twitter/bootstrap/popovers.less +133 -0
- data/app/frameworks/twitter/bootstrap/print.less +101 -0
- data/app/frameworks/twitter/bootstrap/progress-bars.less +105 -0
- data/app/frameworks/twitter/bootstrap/responsive-embed.less +34 -0
- data/app/frameworks/twitter/bootstrap/responsive-utilities.less +194 -0
- data/app/frameworks/twitter/bootstrap/scaffolding.less +150 -0
- data/app/frameworks/twitter/bootstrap/tables.less +233 -0
- data/app/frameworks/twitter/bootstrap/theme.less +258 -0
- data/app/frameworks/twitter/bootstrap/thumbnails.less +36 -0
- data/app/frameworks/twitter/bootstrap/tooltip.less +95 -0
- data/app/frameworks/twitter/bootstrap/type.less +313 -0
- data/app/frameworks/twitter/bootstrap/utilities.less +57 -0
- data/app/frameworks/twitter/bootstrap/variables.less +846 -0
- data/app/frameworks/twitter/bootstrap/wells.less +29 -0
- data/less-rails-bootstrap.gemspec +4 -2
- data/lib/less/rails/bootstrap/version.rb +1 -1
- data/scripts/update_bootstrap.sh +5 -4
- data/test/cases/generators/custom_bootstrap_generator_test.rb +1 -1
- metadata +51 -7
@@ -0,0 +1,59 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: transition.js v3.2.0
|
3
|
+
* http://getbootstrap.com/javascript/#transitions
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
14
|
+
// ============================================================
|
15
|
+
|
16
|
+
function transitionEnd() {
|
17
|
+
var el = document.createElement('bootstrap')
|
18
|
+
|
19
|
+
var transEndEventNames = {
|
20
|
+
WebkitTransition : 'webkitTransitionEnd',
|
21
|
+
MozTransition : 'transitionend',
|
22
|
+
OTransition : 'oTransitionEnd otransitionend',
|
23
|
+
transition : 'transitionend'
|
24
|
+
}
|
25
|
+
|
26
|
+
for (var name in transEndEventNames) {
|
27
|
+
if (el.style[name] !== undefined) {
|
28
|
+
return { end: transEndEventNames[name] }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return false // explicit for ie8 ( ._.)
|
33
|
+
}
|
34
|
+
|
35
|
+
// http://blog.alexmaccaw.com/css-transitions
|
36
|
+
$.fn.emulateTransitionEnd = function (duration) {
|
37
|
+
var called = false
|
38
|
+
var $el = this
|
39
|
+
$(this).one('bsTransitionEnd', function () { called = true })
|
40
|
+
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
41
|
+
setTimeout(callback, duration)
|
42
|
+
return this
|
43
|
+
}
|
44
|
+
|
45
|
+
$(function () {
|
46
|
+
$.support.transition = transitionEnd()
|
47
|
+
|
48
|
+
if (!$.support.transition) return
|
49
|
+
|
50
|
+
$.event.special.bsTransitionEnd = {
|
51
|
+
bindType: $.support.transition.end,
|
52
|
+
delegateType: $.support.transition.end,
|
53
|
+
handle: function (e) {
|
54
|
+
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
|
55
|
+
}
|
56
|
+
}
|
57
|
+
})
|
58
|
+
|
59
|
+
}(jQuery);
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "twitter/bootstrap/bootstrap";
|
@@ -0,0 +1,68 @@
|
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
.alert {
|
10
|
+
padding: @alert-padding;
|
11
|
+
margin-bottom: @line-height-computed;
|
12
|
+
border: 1px solid transparent;
|
13
|
+
border-radius: @alert-border-radius;
|
14
|
+
|
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
|
+
}
|
34
|
+
}
|
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
|
+
}
|
52
|
+
|
53
|
+
// Alternate styles
|
54
|
+
//
|
55
|
+
// Generate contextual modifier classes for colorizing the alert.
|
56
|
+
|
57
|
+
.alert-success {
|
58
|
+
.alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
|
59
|
+
}
|
60
|
+
.alert-info {
|
61
|
+
.alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
|
62
|
+
}
|
63
|
+
.alert-warning {
|
64
|
+
.alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
|
65
|
+
}
|
66
|
+
.alert-danger {
|
67
|
+
.alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
|
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
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Core variables and mixins
|
2
|
+
@import "variables.less";
|
3
|
+
@import "mixins.less";
|
4
|
+
|
5
|
+
// Reset and dependencies
|
6
|
+
@import "normalize.less";
|
7
|
+
@import "print.less";
|
8
|
+
@import "glyphicons.less";
|
9
|
+
|
10
|
+
// Core CSS
|
11
|
+
@import "scaffolding.less";
|
12
|
+
@import "type.less";
|
13
|
+
@import "code.less";
|
14
|
+
@import "grid.less";
|
15
|
+
@import "tables.less";
|
16
|
+
@import "forms.less";
|
17
|
+
@import "buttons.less";
|
18
|
+
|
19
|
+
// Components
|
20
|
+
@import "component-animations.less";
|
21
|
+
@import "dropdowns.less";
|
22
|
+
@import "button-groups.less";
|
23
|
+
@import "input-groups.less";
|
24
|
+
@import "navs.less";
|
25
|
+
@import "navbar.less";
|
26
|
+
@import "breadcrumbs.less";
|
27
|
+
@import "pagination.less";
|
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";
|
41
|
+
|
42
|
+
// Components w/ JavaScript
|
43
|
+
@import "modals.less";
|
44
|
+
@import "tooltip.less";
|
45
|
+
@import "popovers.less";
|
46
|
+
@import "carousel.less";
|
47
|
+
|
48
|
+
// Utility classes
|
49
|
+
@import "utilities.less";
|
50
|
+
@import "responsive-utilities.less";
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.breadcrumb {
|
7
|
+
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
list-style: none;
|
10
|
+
background-color: @breadcrumb-bg;
|
11
|
+
border-radius: @border-radius-base;
|
12
|
+
|
13
|
+
> li {
|
14
|
+
display: inline-block;
|
15
|
+
|
16
|
+
+ li:before {
|
17
|
+
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
18
|
+
padding: 0 5px;
|
19
|
+
color: @breadcrumb-color;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
> .active {
|
24
|
+
color: @breadcrumb-active-color;
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Make the div behave like a button
|
6
|
+
.btn-group,
|
7
|
+
.btn-group-vertical {
|
8
|
+
position: relative;
|
9
|
+
display: inline-block;
|
10
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
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
|
+
}
|
26
|
+
}
|
27
|
+
|
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
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// Optional: Group multiple button groups together for a toolbar
|
39
|
+
.btn-toolbar {
|
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 {
|
50
|
+
margin-left: 5px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
55
|
+
border-radius: 0;
|
56
|
+
}
|
57
|
+
|
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
|
59
|
+
.btn-group > .btn:first-child {
|
60
|
+
margin-left: 0;
|
61
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
62
|
+
.border-right-radius(0);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
66
|
+
.btn-group > .btn:last-child:not(:first-child),
|
67
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
68
|
+
.border-left-radius(0);
|
69
|
+
}
|
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;
|
74
|
+
}
|
75
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
76
|
+
border-radius: 0;
|
77
|
+
}
|
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);
|
86
|
+
}
|
87
|
+
|
88
|
+
// On active and open, don't show outline
|
89
|
+
.btn-group .dropdown-toggle:active,
|
90
|
+
.btn-group.open .dropdown-toggle {
|
91
|
+
outline: 0;
|
92
|
+
}
|
93
|
+
|
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
|
+
|
103
|
+
|
104
|
+
// Split button dropdowns
|
105
|
+
// ----------------------
|
106
|
+
|
107
|
+
// Give the line between buttons some depth
|
108
|
+
.btn-group > .btn + .dropdown-toggle {
|
109
|
+
padding-left: 8px;
|
110
|
+
padding-right: 8px;
|
111
|
+
}
|
112
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
113
|
+
padding-left: 12px;
|
114
|
+
padding-right: 12px;
|
115
|
+
}
|
116
|
+
|
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));
|
121
|
+
|
122
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
123
|
+
&.btn-link {
|
124
|
+
.box-shadow(none);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
// Reposition the caret
|
130
|
+
.btn .caret {
|
131
|
+
margin-left: 0;
|
132
|
+
}
|
133
|
+
// Carets in other button sizes
|
134
|
+
.btn-lg .caret {
|
135
|
+
border-width: @caret-width-large @caret-width-large 0;
|
136
|
+
border-bottom-width: 0;
|
137
|
+
}
|
138
|
+
// Upside down carets for .dropup
|
139
|
+
.dropup .btn-lg .caret {
|
140
|
+
border-width: 0 @caret-width-large @caret-width-large;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
// Vertical button groups
|
145
|
+
// ----------------------
|
146
|
+
|
147
|
+
.btn-group-vertical {
|
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
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
.btn-group-vertical > .btn {
|
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
|
+
}
|
186
|
+
}
|
187
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
188
|
+
border-radius: 0;
|
189
|
+
}
|
190
|
+
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
191
|
+
> .btn:last-child,
|
192
|
+
> .dropdown-toggle {
|
193
|
+
.border-bottom-radius(0);
|
194
|
+
}
|
195
|
+
}
|
196
|
+
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
197
|
+
.border-top-radius(0);
|
198
|
+
}
|
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
|
+
}
|
223
|
+
}
|
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"] > .btn > input[type="radio"],
|
236
|
+
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
237
|
+
position: absolute;
|
238
|
+
z-index: -1;
|
239
|
+
.opacity(0);
|
240
|
+
}
|