bootplus-rails 0.0.1 → 0.0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bootplus/rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +99 -0
- data/vendor/assets/javascripts/bootstrap-button.js +105 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +207 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +167 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +169 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +247 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +114 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +162 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +144 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +361 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +335 -0
- data/vendor/assets/stylesheets/accordion.less +34 -0
- data/vendor/assets/stylesheets/alerts.less +79 -0
- data/vendor/assets/stylesheets/bootplus/accordion.less +24 -0
- data/vendor/assets/stylesheets/bootplus/alerts.less +13 -0
- data/vendor/assets/stylesheets/bootplus/bootplus.less +92 -0
- data/vendor/assets/stylesheets/bootplus/button-groups.less +23 -0
- data/vendor/assets/stylesheets/bootplus/buttons.less +272 -0
- data/vendor/assets/stylesheets/bootplus/cards.less +243 -0
- data/vendor/assets/stylesheets/bootplus/dropdowns.less +124 -0
- data/vendor/assets/stylesheets/bootplus/forms.less +119 -0
- data/vendor/assets/stylesheets/bootplus/hero-unit.less +9 -0
- data/vendor/assets/stylesheets/bootplus/icons.less +22 -0
- data/vendor/assets/stylesheets/bootplus/labels-badges.less +22 -0
- data/vendor/assets/stylesheets/bootplus/media.less +19 -0
- data/vendor/assets/stylesheets/bootplus/mixins.less +12 -0
- data/vendor/assets/stylesheets/bootplus/modals.less +59 -0
- data/vendor/assets/stylesheets/bootplus/navbar.less +131 -0
- data/vendor/assets/stylesheets/bootplus/navs.less +180 -0
- data/vendor/assets/stylesheets/bootplus/popovers.less +18 -0
- data/vendor/assets/stylesheets/bootplus/progress-bars.less +64 -0
- data/vendor/assets/stylesheets/bootplus/responsive-navbar.less +23 -0
- data/vendor/assets/stylesheets/bootplus/responsive.less +49 -0
- data/vendor/assets/stylesheets/bootplus/tooltip.less +14 -0
- data/vendor/assets/stylesheets/bootplus/variables.less +316 -0
- data/vendor/assets/stylesheets/bootplus/wells.less +25 -0
- data/vendor/assets/stylesheets/bootstrap.less +63 -0
- data/vendor/assets/stylesheets/breadcrumbs.less +24 -0
- data/vendor/assets/stylesheets/button-groups.less +229 -0
- data/vendor/assets/stylesheets/buttons.less +241 -0
- data/vendor/assets/stylesheets/carousel.less +158 -0
- data/vendor/assets/stylesheets/close.less +32 -0
- data/vendor/assets/stylesheets/code.less +61 -0
- data/vendor/assets/stylesheets/component-animations.less +22 -0
- data/vendor/assets/stylesheets/dropdowns.less +248 -0
- data/vendor/assets/stylesheets/forms.less +690 -0
- data/vendor/assets/stylesheets/grid.less +21 -0
- data/vendor/assets/stylesheets/hero-unit.less +25 -0
- data/vendor/assets/stylesheets/labels-badges.less +84 -0
- data/vendor/assets/stylesheets/layouts.less +16 -0
- data/vendor/assets/stylesheets/media.less +55 -0
- data/vendor/assets/stylesheets/mixins.less +702 -0
- data/vendor/assets/stylesheets/modals.less +95 -0
- data/vendor/assets/stylesheets/navbar.less +497 -0
- data/vendor/assets/stylesheets/navs.less +409 -0
- data/vendor/assets/stylesheets/pager.less +43 -0
- data/vendor/assets/stylesheets/pagination.less +123 -0
- data/vendor/assets/stylesheets/popovers.less +133 -0
- data/vendor/assets/stylesheets/progress-bars.less +122 -0
- data/vendor/assets/stylesheets/reset.less +216 -0
- data/vendor/assets/stylesheets/responsive-1200px-min.less +28 -0
- data/vendor/assets/stylesheets/responsive-767px-max.less +193 -0
- data/vendor/assets/stylesheets/responsive-768px-979px.less +19 -0
- data/vendor/assets/stylesheets/responsive-navbar.less +189 -0
- data/vendor/assets/stylesheets/responsive-utilities.less +59 -0
- data/vendor/assets/stylesheets/responsive.less +48 -0
- data/vendor/assets/stylesheets/scaffolding.less +53 -0
- data/vendor/assets/stylesheets/sprites.less +197 -0
- data/vendor/assets/stylesheets/tables.less +244 -0
- data/vendor/assets/stylesheets/thumbnails.less +53 -0
- data/vendor/assets/stylesheets/tooltip.less +70 -0
- data/vendor/assets/stylesheets/type.less +247 -0
- data/vendor/assets/stylesheets/utilities.less +30 -0
- data/vendor/assets/stylesheets/variables.less +301 -0
- data/vendor/assets/stylesheets/wells.less +29 -0
- metadata +78 -1
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// Wells
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.well {
|
8
|
+
border: 1px solid @navlistBorder;
|
9
|
+
border-bottom-width: 2px;
|
10
|
+
border-top-width: 0;
|
11
|
+
.border-radius(@borderRadiusSmall);
|
12
|
+
.box-shadow(none);
|
13
|
+
}
|
14
|
+
|
15
|
+
// Sizes
|
16
|
+
.well-large {
|
17
|
+
padding: 24px;
|
18
|
+
.border-radius(@borderRadiusLarge);
|
19
|
+
}
|
20
|
+
.well-small {
|
21
|
+
padding: 9px;
|
22
|
+
.border-radius(@baseBorderRadius);
|
23
|
+
}
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,63 @@
|
|
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
|
+
// Core variables and mixins
|
12
|
+
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
13
|
+
@import "mixins.less";
|
14
|
+
|
15
|
+
// CSS Reset
|
16
|
+
@import "reset.less";
|
17
|
+
|
18
|
+
// Grid system and page structure
|
19
|
+
@import "scaffolding.less";
|
20
|
+
@import "grid.less";
|
21
|
+
@import "layouts.less";
|
22
|
+
|
23
|
+
// Base CSS
|
24
|
+
@import "type.less";
|
25
|
+
@import "code.less";
|
26
|
+
@import "forms.less";
|
27
|
+
@import "tables.less";
|
28
|
+
|
29
|
+
// Components: common
|
30
|
+
@import "sprites.less";
|
31
|
+
@import "dropdowns.less";
|
32
|
+
@import "wells.less";
|
33
|
+
@import "component-animations.less";
|
34
|
+
@import "close.less";
|
35
|
+
|
36
|
+
// Components: Buttons & Alerts
|
37
|
+
@import "buttons.less";
|
38
|
+
@import "button-groups.less";
|
39
|
+
@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
|
40
|
+
|
41
|
+
// Components: Nav
|
42
|
+
@import "navs.less";
|
43
|
+
@import "navbar.less";
|
44
|
+
@import "breadcrumbs.less";
|
45
|
+
@import "pagination.less";
|
46
|
+
@import "pager.less";
|
47
|
+
|
48
|
+
// Components: Popovers
|
49
|
+
@import "modals.less";
|
50
|
+
@import "tooltip.less";
|
51
|
+
@import "popovers.less";
|
52
|
+
|
53
|
+
// Components: Misc
|
54
|
+
@import "thumbnails.less";
|
55
|
+
@import "media.less";
|
56
|
+
@import "labels-badges.less";
|
57
|
+
@import "progress-bars.less";
|
58
|
+
@import "accordion.less";
|
59
|
+
@import "carousel.less";
|
60
|
+
@import "hero-unit.less";
|
61
|
+
|
62
|
+
// Utility classes
|
63
|
+
@import "utilities.less"; // Has to be last to override when necessary
|
@@ -0,0 +1,24 @@
|
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.breadcrumb {
|
7
|
+
padding: 8px 15px;
|
8
|
+
margin: 0 0 @baseLineHeight;
|
9
|
+
list-style: none;
|
10
|
+
background-color: #f5f5f5;
|
11
|
+
.border-radius(@baseBorderRadius);
|
12
|
+
> li {
|
13
|
+
display: inline-block;
|
14
|
+
.ie7-inline-block();
|
15
|
+
text-shadow: 0 1px 0 @white;
|
16
|
+
> .divider {
|
17
|
+
padding: 0 5px;
|
18
|
+
color: #ccc;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
> .active {
|
22
|
+
color: @grayLight;
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,229 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Make the div behave like a button
|
7
|
+
.btn-group {
|
8
|
+
position: relative;
|
9
|
+
display: inline-block;
|
10
|
+
.ie7-inline-block();
|
11
|
+
font-size: 0; // remove as part 1 of font-size inline-block hack
|
12
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
13
|
+
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
|
14
|
+
.ie7-restore-left-whitespace();
|
15
|
+
}
|
16
|
+
|
17
|
+
// Space out series of button groups
|
18
|
+
.btn-group + .btn-group {
|
19
|
+
margin-left: 5px;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Optional: Group multiple button groups together for a toolbar
|
23
|
+
.btn-toolbar {
|
24
|
+
font-size: 0; // Hack to remove whitespace that results from using inline-block
|
25
|
+
margin-top: @baseLineHeight / 2;
|
26
|
+
margin-bottom: @baseLineHeight / 2;
|
27
|
+
> .btn + .btn,
|
28
|
+
> .btn-group + .btn,
|
29
|
+
> .btn + .btn-group {
|
30
|
+
margin-left: 5px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Float them, remove border radius, then re-add to first and last elements
|
35
|
+
.btn-group > .btn {
|
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;
|
57
|
+
}
|
58
|
+
|
59
|
+
// 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
|
+
.btn-group > .btn:first-child {
|
61
|
+
margin-left: 0;
|
62
|
+
.border-top-left-radius(@baseBorderRadius);
|
63
|
+
.border-bottom-left-radius(@baseBorderRadius);
|
64
|
+
}
|
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-top-right-radius(@baseBorderRadius);
|
69
|
+
.border-bottom-right-radius(@baseBorderRadius);
|
70
|
+
}
|
71
|
+
// Reset corners for large buttons
|
72
|
+
.btn-group > .btn.large:first-child {
|
73
|
+
margin-left: 0;
|
74
|
+
.border-top-left-radius(@borderRadiusLarge);
|
75
|
+
.border-bottom-left-radius(@borderRadiusLarge);
|
76
|
+
}
|
77
|
+
.btn-group > .btn.large:last-child,
|
78
|
+
.btn-group > .large.dropdown-toggle {
|
79
|
+
.border-top-right-radius(@borderRadiusLarge);
|
80
|
+
.border-bottom-right-radius(@borderRadiusLarge);
|
81
|
+
}
|
82
|
+
|
83
|
+
// On hover/focus/active, bring the proper btn to front
|
84
|
+
.btn-group > .btn:hover,
|
85
|
+
.btn-group > .btn:focus,
|
86
|
+
.btn-group > .btn:active,
|
87
|
+
.btn-group > .btn.active {
|
88
|
+
z-index: 2;
|
89
|
+
}
|
90
|
+
|
91
|
+
// On active and open, don't show outline
|
92
|
+
.btn-group .dropdown-toggle:active,
|
93
|
+
.btn-group.open .dropdown-toggle {
|
94
|
+
outline: 0;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
// Split button dropdowns
|
100
|
+
// ----------------------
|
101
|
+
|
102
|
+
// Give the line between buttons some depth
|
103
|
+
.btn-group > .btn + .dropdown-toggle {
|
104
|
+
padding-left: 8px;
|
105
|
+
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
|
+
}
|
116
|
+
.btn-group > .btn-small + .dropdown-toggle {
|
117
|
+
*padding-top: 5px;
|
118
|
+
*padding-bottom: 4px;
|
119
|
+
}
|
120
|
+
.btn-group > .btn-large + .dropdown-toggle {
|
121
|
+
padding-left: 12px;
|
122
|
+
padding-right: 12px;
|
123
|
+
*padding-top: 7px;
|
124
|
+
*padding-bottom: 7px;
|
125
|
+
}
|
126
|
+
|
127
|
+
.btn-group.open {
|
128
|
+
|
129
|
+
// The clickable button for toggling the menu
|
130
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
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
|
+
}
|
135
|
+
|
136
|
+
// Keep the hover's background when dropdown is open
|
137
|
+
.btn.dropdown-toggle {
|
138
|
+
background-color: @btnBackgroundHighlight;
|
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;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
// Reposition the caret
|
162
|
+
.btn .caret {
|
163
|
+
margin-top: 8px;
|
164
|
+
margin-left: 0;
|
165
|
+
}
|
166
|
+
// Carets in other button sizes
|
167
|
+
.btn-large .caret {
|
168
|
+
margin-top: 6px;
|
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;
|
178
|
+
}
|
179
|
+
// Upside down carets for .dropup
|
180
|
+
.dropup .btn-large .caret {
|
181
|
+
border-bottom-width: 5px;
|
182
|
+
}
|
183
|
+
|
184
|
+
|
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
|
+
// Vertical button groups
|
202
|
+
// ----------------------
|
203
|
+
|
204
|
+
.btn-group-vertical {
|
205
|
+
display: inline-block; // makes buttons only take up the width they need
|
206
|
+
.ie7-inline-block();
|
207
|
+
}
|
208
|
+
.btn-group-vertical > .btn {
|
209
|
+
display: block;
|
210
|
+
float: none;
|
211
|
+
max-width: 100%;
|
212
|
+
.border-radius(0);
|
213
|
+
}
|
214
|
+
.btn-group-vertical > .btn + .btn {
|
215
|
+
margin-left: 0;
|
216
|
+
margin-top: -1px;
|
217
|
+
}
|
218
|
+
.btn-group-vertical > .btn:first-child {
|
219
|
+
.border-radius(@baseBorderRadius @baseBorderRadius 0 0);
|
220
|
+
}
|
221
|
+
.btn-group-vertical > .btn:last-child {
|
222
|
+
.border-radius(0 0 @baseBorderRadius @baseBorderRadius);
|
223
|
+
}
|
224
|
+
.btn-group-vertical > .btn-large:first-child {
|
225
|
+
.border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
|
226
|
+
}
|
227
|
+
.btn-group-vertical > .btn-large:last-child {
|
228
|
+
.border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
|
229
|
+
}
|
@@ -0,0 +1,241 @@
|
|
1
|
+
//
|
2
|
+
// Buttons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
// Core
|
10
|
+
.btn {
|
11
|
+
display: inline-block;
|
12
|
+
.ie7-inline-block();
|
13
|
+
padding: 4px 12px;
|
14
|
+
margin-bottom: 0; // For input.btn
|
15
|
+
font-size: @baseFontSize;
|
16
|
+
line-height: @baseLineHeight;
|
17
|
+
text-align: center;
|
18
|
+
vertical-align: middle;
|
19
|
+
cursor: pointer;
|
20
|
+
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
|
21
|
+
border: 1px solid @btnBorder;
|
22
|
+
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
23
|
+
border-bottom-color: darken(@btnBorder, 10%);
|
24
|
+
.border-radius(@baseBorderRadius);
|
25
|
+
.ie7-restore-left-whitespace(); // Give IE7 some love
|
26
|
+
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
27
|
+
|
28
|
+
// Hover/focus state
|
29
|
+
&:hover,
|
30
|
+
&:focus {
|
31
|
+
color: @grayDark;
|
32
|
+
text-decoration: none;
|
33
|
+
background-position: 0 -15px;
|
34
|
+
|
35
|
+
// transition is only when going to hover/focus, otherwise the background
|
36
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
37
|
+
.transition(background-position .1s linear);
|
38
|
+
}
|
39
|
+
|
40
|
+
// Focus state for keyboard and accessibility
|
41
|
+
&:focus {
|
42
|
+
.tab-focus();
|
43
|
+
}
|
44
|
+
|
45
|
+
// Active state
|
46
|
+
&.active,
|
47
|
+
&:active {
|
48
|
+
background-image: none;
|
49
|
+
outline: 0;
|
50
|
+
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
51
|
+
}
|
52
|
+
|
53
|
+
// Disabled state
|
54
|
+
&.disabled,
|
55
|
+
&[disabled] {
|
56
|
+
cursor: default;
|
57
|
+
background-image: none;
|
58
|
+
.opacity(65);
|
59
|
+
.box-shadow(none);
|
60
|
+
}
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
// Button Sizes
|
67
|
+
// --------------------------------------------------
|
68
|
+
|
69
|
+
// Large
|
70
|
+
.btn-large {
|
71
|
+
padding: @paddingLarge;
|
72
|
+
font-size: @fontSizeLarge;
|
73
|
+
.border-radius(@borderRadiusLarge);
|
74
|
+
}
|
75
|
+
.btn-large [class^="icon-"],
|
76
|
+
.btn-large [class*=" icon-"] {
|
77
|
+
margin-top: 4px;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Small
|
81
|
+
.btn-small {
|
82
|
+
padding: @paddingSmall;
|
83
|
+
font-size: @fontSizeSmall;
|
84
|
+
.border-radius(@borderRadiusSmall);
|
85
|
+
}
|
86
|
+
.btn-small [class^="icon-"],
|
87
|
+
.btn-small [class*=" icon-"] {
|
88
|
+
margin-top: 0;
|
89
|
+
}
|
90
|
+
.btn-mini [class^="icon-"],
|
91
|
+
.btn-mini [class*=" icon-"] {
|
92
|
+
margin-top: -1px;
|
93
|
+
}
|
94
|
+
|
95
|
+
// Mini
|
96
|
+
.btn-mini {
|
97
|
+
padding: @paddingMini;
|
98
|
+
font-size: @fontSizeMini;
|
99
|
+
.border-radius(@borderRadiusSmall);
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// Block button
|
104
|
+
// -------------------------
|
105
|
+
|
106
|
+
.btn-block {
|
107
|
+
display: block;
|
108
|
+
width: 100%;
|
109
|
+
padding-left: 0;
|
110
|
+
padding-right: 0;
|
111
|
+
.box-sizing(border-box);
|
112
|
+
}
|
113
|
+
|
114
|
+
// Vertically space out multiple block buttons
|
115
|
+
.btn-block + .btn-block {
|
116
|
+
margin-top: 5px;
|
117
|
+
}
|
118
|
+
|
119
|
+
// Specificity overrides
|
120
|
+
input[type="submit"],
|
121
|
+
input[type="reset"],
|
122
|
+
input[type="button"] {
|
123
|
+
&.btn-block {
|
124
|
+
width: 100%;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
// Alternate buttons
|
131
|
+
// --------------------------------------------------
|
132
|
+
|
133
|
+
// Provide *some* extra contrast for those who can get it
|
134
|
+
.btn-primary.active,
|
135
|
+
.btn-warning.active,
|
136
|
+
.btn-danger.active,
|
137
|
+
.btn-success.active,
|
138
|
+
.btn-info.active,
|
139
|
+
.btn-inverse.active {
|
140
|
+
color: rgba(255,255,255,.75);
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
.btn-primary [class^="icon-"], .btn-primary [class*=" icon-"],
|
147
|
+
.btn-warning [class^="icon-"], .btn-warning [class*=" icon-"],
|
148
|
+
.btn-danger [class^="icon-"], .btn-danger [class*=" icon-"],
|
149
|
+
.btn-success [class^="icon-"], .btn-success [class*=" icon-"],
|
150
|
+
.btn-info [class^="icon-"], .btn-info [class*=" icon-"],
|
151
|
+
.btn-inverse [class^="icon-"], .btn-inverse [class*=" icon-"] {
|
152
|
+
color: @white;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
// Set the backgrounds
|
157
|
+
// -------------------------
|
158
|
+
.btn-primary {
|
159
|
+
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
|
160
|
+
}
|
161
|
+
// Warning appears are orange
|
162
|
+
.btn-warning {
|
163
|
+
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
|
164
|
+
}
|
165
|
+
// Danger and error appear as red
|
166
|
+
.btn-danger {
|
167
|
+
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
|
168
|
+
}
|
169
|
+
// Success appears as green
|
170
|
+
.btn-success {
|
171
|
+
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
|
172
|
+
}
|
173
|
+
// Info appears as a neutral blue
|
174
|
+
.btn-info {
|
175
|
+
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
|
176
|
+
}
|
177
|
+
// Inverse appears as dark gray
|
178
|
+
.btn-inverse {
|
179
|
+
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
|
180
|
+
}
|
181
|
+
|
182
|
+
|
183
|
+
// Cross-browser Jank
|
184
|
+
// --------------------------------------------------
|
185
|
+
|
186
|
+
button.btn,
|
187
|
+
input[type="submit"].btn {
|
188
|
+
|
189
|
+
// Firefox 3.6 only I believe
|
190
|
+
&::-moz-focus-inner {
|
191
|
+
padding: 0;
|
192
|
+
border: 0;
|
193
|
+
}
|
194
|
+
|
195
|
+
// IE7 has some default padding on button controls
|
196
|
+
*padding-top: 3px;
|
197
|
+
*padding-bottom: 3px;
|
198
|
+
|
199
|
+
&.btn-large {
|
200
|
+
*padding-top: 7px;
|
201
|
+
*padding-bottom: 7px;
|
202
|
+
}
|
203
|
+
&.btn-small {
|
204
|
+
*padding-top: 3px;
|
205
|
+
*padding-bottom: 3px;
|
206
|
+
}
|
207
|
+
&.btn-mini {
|
208
|
+
*padding-top: 1px;
|
209
|
+
*padding-bottom: 1px;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
// Link buttons
|
215
|
+
// --------------------------------------------------
|
216
|
+
|
217
|
+
// Make a button look and behave like a link
|
218
|
+
.btn-link,
|
219
|
+
.btn-link:active,
|
220
|
+
.btn-link[disabled] {
|
221
|
+
background-color: transparent;
|
222
|
+
background-image: none;
|
223
|
+
.box-shadow(none);
|
224
|
+
}
|
225
|
+
.btn-link {
|
226
|
+
border-color: transparent;
|
227
|
+
cursor: pointer;
|
228
|
+
color: @linkColor;
|
229
|
+
.border-radius(0);
|
230
|
+
}
|
231
|
+
.btn-link:hover,
|
232
|
+
.btn-link:focus {
|
233
|
+
color: @linkColorHover;
|
234
|
+
text-decoration: underline;
|
235
|
+
background-color: transparent;
|
236
|
+
}
|
237
|
+
.btn-link[disabled]:hover,
|
238
|
+
.btn-link[disabled]:focus {
|
239
|
+
color: @grayDark;
|
240
|
+
text-decoration: none;
|
241
|
+
}
|