bootstrap_farsi 3.2.0.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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +100 -0
- data/Rakefile +2 -0
- 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 +6 -0
- data/app/assets/javascripts/twitter/bootstrap/.DS_Store +0 -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/frameworks/twitter/bootstrap/alerts.less +68 -0
- data/app/frameworks/twitter/bootstrap/badges.less +55 -0
- data/app/frameworks/twitter/bootstrap/bi-app/bi-app-ltr.less +12 -0
- data/app/frameworks/twitter/bootstrap/bi-app/bi-app-rtl.less +16 -0
- data/app/frameworks/twitter/bootstrap/bi-app/mixins.less +326 -0
- data/app/frameworks/twitter/bootstrap/bi-app/variables-ltr.less +16 -0
- data/app/frameworks/twitter/bootstrap/bi-app/variables-rtl.less +16 -0
- data/app/frameworks/twitter/bootstrap/bootstrap.less +53 -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 +241 -0
- data/app/frameworks/twitter/bootstrap/close.less +33 -0
- data/app/frameworks/twitter/bootstrap/code.less +69 -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 +10 -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/bootstrap_farsi.gemspec +27 -0
- data/lib/bootstrap_farsi.rb +7 -0
- data/lib/bootstrap_farsi/engine.rb +7 -0
- data/lib/bootstrap_farsi/version.rb +3 -0
- metadata +216 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ------------------------------------------
|
|
2
|
+
// left to right variables to be used by bi-app mixins
|
|
3
|
+
// author:
|
|
4
|
+
// twitter.com/anasnakawa
|
|
5
|
+
// inspired by:
|
|
6
|
+
// twitter.com/victorzamfir
|
|
7
|
+
// licensed under the MIT license
|
|
8
|
+
// http://www.opensource.org/licenses/mit-license.php
|
|
9
|
+
// ------------------------------------------
|
|
10
|
+
|
|
11
|
+
// namespacing variables with bi-app to
|
|
12
|
+
// avoid conflicting with other global variables
|
|
13
|
+
@bi-app-left : left;
|
|
14
|
+
@bi-app-right : right;
|
|
15
|
+
@bi-app-direction : ltr;
|
|
16
|
+
@bi-app-invert-direction: rtl;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// ------------------------------------------
|
|
2
|
+
// right to left variables to be used by bi-app mixins
|
|
3
|
+
// author:
|
|
4
|
+
// twitter.com/anasnakawa
|
|
5
|
+
// inspired by:
|
|
6
|
+
// twitter.com/victorzamfir
|
|
7
|
+
// licensed under the MIT license
|
|
8
|
+
// http://www.opensource.org/licenses/mit-license.php
|
|
9
|
+
// ------------------------------------------
|
|
10
|
+
|
|
11
|
+
// namespacing variables with bi-app to
|
|
12
|
+
// avoid conflicting with other global variables
|
|
13
|
+
@bi-app-left : right;
|
|
14
|
+
@bi-app-right : left;
|
|
15
|
+
@bi-app-direction : rtl;
|
|
16
|
+
@bi-app-invert-direction: ltr;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// bi-app
|
|
2
|
+
@import "bi-app/bi-app-rtl";
|
|
3
|
+
|
|
4
|
+
// Core variables and mixins
|
|
5
|
+
@import "variables.less";
|
|
6
|
+
@import "mixins.less";
|
|
7
|
+
|
|
8
|
+
// Reset and dependencies
|
|
9
|
+
@import "normalize.less";
|
|
10
|
+
@import "print.less";
|
|
11
|
+
@import "glyphicons.less";
|
|
12
|
+
|
|
13
|
+
// Core CSS
|
|
14
|
+
@import "scaffolding.less";
|
|
15
|
+
@import "type.less";
|
|
16
|
+
@import "code.less";
|
|
17
|
+
@import "grid.less";
|
|
18
|
+
@import "tables.less";
|
|
19
|
+
@import "forms.less";
|
|
20
|
+
@import "buttons.less";
|
|
21
|
+
|
|
22
|
+
// Components
|
|
23
|
+
@import "component-animations.less";
|
|
24
|
+
@import "dropdowns.less";
|
|
25
|
+
@import "button-groups.less";
|
|
26
|
+
@import "input-groups.less";
|
|
27
|
+
@import "navs.less";
|
|
28
|
+
@import "navbar.less";
|
|
29
|
+
@import "breadcrumbs.less";
|
|
30
|
+
@import "pagination.less";
|
|
31
|
+
@import "pager.less";
|
|
32
|
+
@import "labels.less";
|
|
33
|
+
@import "badges.less";
|
|
34
|
+
@import "jumbotron.less";
|
|
35
|
+
@import "thumbnails.less";
|
|
36
|
+
@import "alerts.less";
|
|
37
|
+
@import "progress-bars.less";
|
|
38
|
+
@import "media.less";
|
|
39
|
+
@import "list-group.less";
|
|
40
|
+
@import "panels.less";
|
|
41
|
+
@import "responsive-embed.less";
|
|
42
|
+
@import "wells.less";
|
|
43
|
+
@import "close.less";
|
|
44
|
+
|
|
45
|
+
// Components w/ JavaScript
|
|
46
|
+
@import "modals.less";
|
|
47
|
+
@import "tooltip.less";
|
|
48
|
+
@import "popovers.less";
|
|
49
|
+
@import "carousel.less";
|
|
50
|
+
|
|
51
|
+
// Utility classes
|
|
52
|
+
@import "utilities.less";
|
|
53
|
+
@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
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Buttons
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Base styles
|
|
7
|
+
// --------------------------------------------------
|
|
8
|
+
|
|
9
|
+
.btn {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
margin-bottom: 0; // For input.btn
|
|
12
|
+
font-weight: @btn-font-weight;
|
|
13
|
+
text-align: center;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
|
17
|
+
border: 1px solid transparent;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
|
20
|
+
.user-select(none);
|
|
21
|
+
|
|
22
|
+
&,
|
|
23
|
+
&:active,
|
|
24
|
+
&.active {
|
|
25
|
+
&:focus {
|
|
26
|
+
.tab-focus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:hover,
|
|
31
|
+
&:focus {
|
|
32
|
+
color: @btn-default-color;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:active,
|
|
37
|
+
&.active {
|
|
38
|
+
outline: 0;
|
|
39
|
+
background-image: none;
|
|
40
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.disabled,
|
|
44
|
+
&[disabled],
|
|
45
|
+
fieldset[disabled] & {
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
pointer-events: none; // Future-proof disabling of clicks
|
|
48
|
+
.opacity(.65);
|
|
49
|
+
.box-shadow(none);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// Alternate buttons
|
|
55
|
+
// --------------------------------------------------
|
|
56
|
+
|
|
57
|
+
.btn-default {
|
|
58
|
+
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
|
59
|
+
}
|
|
60
|
+
.btn-primary {
|
|
61
|
+
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
|
62
|
+
}
|
|
63
|
+
// Success appears as green
|
|
64
|
+
.btn-success {
|
|
65
|
+
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
|
66
|
+
}
|
|
67
|
+
// Info appears as blue-green
|
|
68
|
+
.btn-info {
|
|
69
|
+
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
|
70
|
+
}
|
|
71
|
+
// Warning appears as orange
|
|
72
|
+
.btn-warning {
|
|
73
|
+
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
|
74
|
+
}
|
|
75
|
+
// Danger and error appear as red
|
|
76
|
+
.btn-danger {
|
|
77
|
+
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
// Link buttons
|
|
82
|
+
// -------------------------
|
|
83
|
+
|
|
84
|
+
// Make a button look and behave like a link
|
|
85
|
+
.btn-link {
|
|
86
|
+
color: @link-color;
|
|
87
|
+
font-weight: normal;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
border-radius: 0;
|
|
90
|
+
|
|
91
|
+
&,
|
|
92
|
+
&:active,
|
|
93
|
+
&[disabled],
|
|
94
|
+
fieldset[disabled] & {
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
.box-shadow(none);
|
|
97
|
+
}
|
|
98
|
+
&,
|
|
99
|
+
&:hover,
|
|
100
|
+
&:focus,
|
|
101
|
+
&:active {
|
|
102
|
+
border-color: transparent;
|
|
103
|
+
}
|
|
104
|
+
&:hover,
|
|
105
|
+
&:focus {
|
|
106
|
+
color: @link-hover-color;
|
|
107
|
+
text-decoration: underline;
|
|
108
|
+
background-color: transparent;
|
|
109
|
+
}
|
|
110
|
+
&[disabled],
|
|
111
|
+
fieldset[disabled] & {
|
|
112
|
+
&:hover,
|
|
113
|
+
&:focus {
|
|
114
|
+
color: @btn-link-disabled-color;
|
|
115
|
+
text-decoration: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
// Button Sizes
|
|
122
|
+
// --------------------------------------------------
|
|
123
|
+
|
|
124
|
+
.btn-lg {
|
|
125
|
+
// line-height: ensure even-numbered height of button next to large input
|
|
126
|
+
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
|
127
|
+
}
|
|
128
|
+
.btn-sm {
|
|
129
|
+
// line-height: ensure proper height of button next to small input
|
|
130
|
+
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
|
131
|
+
}
|
|
132
|
+
.btn-xs {
|
|
133
|
+
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
// Block button
|
|
138
|
+
// --------------------------------------------------
|
|
139
|
+
|
|
140
|
+
.btn-block {
|
|
141
|
+
display: block;
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Vertically space out multiple block buttons
|
|
146
|
+
.btn-block + .btn-block {
|
|
147
|
+
margin-top: 5px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// Specificity overrides
|
|
151
|
+
input[type="submit"],
|
|
152
|
+
input[type="reset"],
|
|
153
|
+
input[type="button"] {
|
|
154
|
+
&.btn-block {
|
|
155
|
+
width: 100%;
|
|
156
|
+
}
|
|
157
|
+
}
|