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,340 @@
|
|
1
|
+
//
|
2
|
+
// Grid system
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Set the container width, and override it for fixed navbars in media queries
|
7
|
+
.container {
|
8
|
+
.container-fixed();
|
9
|
+
}
|
10
|
+
|
11
|
+
// Mobile-first defaults
|
12
|
+
.row {
|
13
|
+
.make-row();
|
14
|
+
}
|
15
|
+
|
16
|
+
// Common styles for small and large grid columns
|
17
|
+
.col-xs-1,
|
18
|
+
.col-xs-2,
|
19
|
+
.col-xs-3,
|
20
|
+
.col-xs-4,
|
21
|
+
.col-xs-5,
|
22
|
+
.col-xs-6,
|
23
|
+
.col-xs-7,
|
24
|
+
.col-xs-8,
|
25
|
+
.col-xs-9,
|
26
|
+
.col-xs-10,
|
27
|
+
.col-xs-11,
|
28
|
+
.col-xs-12,
|
29
|
+
.col-sm-1,
|
30
|
+
.col-sm-2,
|
31
|
+
.col-sm-3,
|
32
|
+
.col-sm-4,
|
33
|
+
.col-sm-5,
|
34
|
+
.col-sm-6,
|
35
|
+
.col-sm-7,
|
36
|
+
.col-sm-8,
|
37
|
+
.col-sm-9,
|
38
|
+
.col-sm-10,
|
39
|
+
.col-sm-11,
|
40
|
+
.col-sm-12,
|
41
|
+
.col-md-1,
|
42
|
+
.col-md-2,
|
43
|
+
.col-md-3,
|
44
|
+
.col-md-4,
|
45
|
+
.col-md-5,
|
46
|
+
.col-md-6,
|
47
|
+
.col-md-7,
|
48
|
+
.col-md-8,
|
49
|
+
.col-md-9,
|
50
|
+
.col-md-10,
|
51
|
+
.col-md-11,
|
52
|
+
.col-md-12,
|
53
|
+
.col-lg-1,
|
54
|
+
.col-lg-2,
|
55
|
+
.col-lg-3,
|
56
|
+
.col-lg-4,
|
57
|
+
.col-lg-5,
|
58
|
+
.col-lg-6,
|
59
|
+
.col-lg-7,
|
60
|
+
.col-lg-8,
|
61
|
+
.col-lg-9,
|
62
|
+
.col-lg-10,
|
63
|
+
.col-lg-11,
|
64
|
+
.col-lg-12 {
|
65
|
+
position: relative;
|
66
|
+
// Prevent columns from collapsing when empty
|
67
|
+
min-height: 1px;
|
68
|
+
// Inner gutter via padding
|
69
|
+
padding-left: (@grid-gutter-width / 2);
|
70
|
+
padding-right: (@grid-gutter-width / 2);
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Extra small grid
|
75
|
+
//
|
76
|
+
// Grid classes for extra small devices like smartphones. No offset, push, or
|
77
|
+
// pull classes are present here due to the size of the target.
|
78
|
+
//
|
79
|
+
// Note that `.col-xs-12` doesn't get floated on purpose—there's no need since
|
80
|
+
// it's full-width.
|
81
|
+
|
82
|
+
.col-xs-1,
|
83
|
+
.col-xs-2,
|
84
|
+
.col-xs-3,
|
85
|
+
.col-xs-4,
|
86
|
+
.col-xs-5,
|
87
|
+
.col-xs-6,
|
88
|
+
.col-xs-7,
|
89
|
+
.col-xs-8,
|
90
|
+
.col-xs-9,
|
91
|
+
.col-xs-10,
|
92
|
+
.col-xs-11 {
|
93
|
+
float: left;
|
94
|
+
}
|
95
|
+
.col-xs-1 { width: percentage((1 / @grid-columns)); }
|
96
|
+
.col-xs-2 { width: percentage((2 / @grid-columns)); }
|
97
|
+
.col-xs-3 { width: percentage((3 / @grid-columns)); }
|
98
|
+
.col-xs-4 { width: percentage((4 / @grid-columns)); }
|
99
|
+
.col-xs-5 { width: percentage((5 / @grid-columns)); }
|
100
|
+
.col-xs-6 { width: percentage((6 / @grid-columns)); }
|
101
|
+
.col-xs-7 { width: percentage((7 / @grid-columns)); }
|
102
|
+
.col-xs-8 { width: percentage((8 / @grid-columns)); }
|
103
|
+
.col-xs-9 { width: percentage((9 / @grid-columns)); }
|
104
|
+
.col-xs-10 { width: percentage((10/ @grid-columns)); }
|
105
|
+
.col-xs-11 { width: percentage((11/ @grid-columns)); }
|
106
|
+
.col-xs-12 { width: 100%; }
|
107
|
+
|
108
|
+
|
109
|
+
// Small grid
|
110
|
+
//
|
111
|
+
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
112
|
+
// to tablets.
|
113
|
+
//
|
114
|
+
// Note that `.col-sm-12` doesn't get floated on purpose—there's no need since
|
115
|
+
// it's full-width.
|
116
|
+
|
117
|
+
@media (min-width: @screen-tablet) {
|
118
|
+
.container {
|
119
|
+
max-width: @container-tablet;
|
120
|
+
}
|
121
|
+
|
122
|
+
.col-sm-1,
|
123
|
+
.col-sm-2,
|
124
|
+
.col-sm-3,
|
125
|
+
.col-sm-4,
|
126
|
+
.col-sm-5,
|
127
|
+
.col-sm-6,
|
128
|
+
.col-sm-7,
|
129
|
+
.col-sm-8,
|
130
|
+
.col-sm-9,
|
131
|
+
.col-sm-10,
|
132
|
+
.col-sm-11 {
|
133
|
+
float: left;
|
134
|
+
}
|
135
|
+
.col-sm-1 { width: percentage((1 / @grid-columns)); }
|
136
|
+
.col-sm-2 { width: percentage((2 / @grid-columns)); }
|
137
|
+
.col-sm-3 { width: percentage((3 / @grid-columns)); }
|
138
|
+
.col-sm-4 { width: percentage((4 / @grid-columns)); }
|
139
|
+
.col-sm-5 { width: percentage((5 / @grid-columns)); }
|
140
|
+
.col-sm-6 { width: percentage((6 / @grid-columns)); }
|
141
|
+
.col-sm-7 { width: percentage((7 / @grid-columns)); }
|
142
|
+
.col-sm-8 { width: percentage((8 / @grid-columns)); }
|
143
|
+
.col-sm-9 { width: percentage((9 / @grid-columns)); }
|
144
|
+
.col-sm-10 { width: percentage((10/ @grid-columns)); }
|
145
|
+
.col-sm-11 { width: percentage((11/ @grid-columns)); }
|
146
|
+
.col-sm-12 { width: 100%; }
|
147
|
+
|
148
|
+
// Push and pull columns for source order changes
|
149
|
+
.col-sm-push-1 { left: percentage((1 / @grid-columns)); }
|
150
|
+
.col-sm-push-2 { left: percentage((2 / @grid-columns)); }
|
151
|
+
.col-sm-push-3 { left: percentage((3 / @grid-columns)); }
|
152
|
+
.col-sm-push-4 { left: percentage((4 / @grid-columns)); }
|
153
|
+
.col-sm-push-5 { left: percentage((5 / @grid-columns)); }
|
154
|
+
.col-sm-push-6 { left: percentage((6 / @grid-columns)); }
|
155
|
+
.col-sm-push-7 { left: percentage((7 / @grid-columns)); }
|
156
|
+
.col-sm-push-8 { left: percentage((8 / @grid-columns)); }
|
157
|
+
.col-sm-push-9 { left: percentage((9 / @grid-columns)); }
|
158
|
+
.col-sm-push-10 { left: percentage((10/ @grid-columns)); }
|
159
|
+
.col-sm-push-11 { left: percentage((11/ @grid-columns)); }
|
160
|
+
|
161
|
+
.col-sm-pull-1 { right: percentage((1 / @grid-columns)); }
|
162
|
+
.col-sm-pull-2 { right: percentage((2 / @grid-columns)); }
|
163
|
+
.col-sm-pull-3 { right: percentage((3 / @grid-columns)); }
|
164
|
+
.col-sm-pull-4 { right: percentage((4 / @grid-columns)); }
|
165
|
+
.col-sm-pull-5 { right: percentage((5 / @grid-columns)); }
|
166
|
+
.col-sm-pull-6 { right: percentage((6 / @grid-columns)); }
|
167
|
+
.col-sm-pull-7 { right: percentage((7 / @grid-columns)); }
|
168
|
+
.col-sm-pull-8 { right: percentage((8 / @grid-columns)); }
|
169
|
+
.col-sm-pull-9 { right: percentage((9 / @grid-columns)); }
|
170
|
+
.col-sm-pull-10 { right: percentage((10/ @grid-columns)); }
|
171
|
+
.col-sm-pull-11 { right: percentage((11/ @grid-columns)); }
|
172
|
+
|
173
|
+
// Offsets
|
174
|
+
.col-sm-offset-1 { margin-left: percentage((1 / @grid-columns)); }
|
175
|
+
.col-sm-offset-2 { margin-left: percentage((2 / @grid-columns)); }
|
176
|
+
.col-sm-offset-3 { margin-left: percentage((3 / @grid-columns)); }
|
177
|
+
.col-sm-offset-4 { margin-left: percentage((4 / @grid-columns)); }
|
178
|
+
.col-sm-offset-5 { margin-left: percentage((5 / @grid-columns)); }
|
179
|
+
.col-sm-offset-6 { margin-left: percentage((6 / @grid-columns)); }
|
180
|
+
.col-sm-offset-7 { margin-left: percentage((7 / @grid-columns)); }
|
181
|
+
.col-sm-offset-8 { margin-left: percentage((8 / @grid-columns)); }
|
182
|
+
.col-sm-offset-9 { margin-left: percentage((9 / @grid-columns)); }
|
183
|
+
.col-sm-offset-10 { margin-left: percentage((10/ @grid-columns)); }
|
184
|
+
.col-sm-offset-11 { margin-left: percentage((11/ @grid-columns)); }
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
// Medium grid
|
189
|
+
//
|
190
|
+
// Columns, offsets, pushes, and pulls for the desktop device range.
|
191
|
+
//
|
192
|
+
// Note that `.col-md-12` doesn't get floated on purpose—there's no need since
|
193
|
+
// it's full-width.
|
194
|
+
|
195
|
+
@media (min-width: @screen-desktop) {
|
196
|
+
.container {
|
197
|
+
max-width: @container-desktop;
|
198
|
+
}
|
199
|
+
.col-md-1,
|
200
|
+
.col-md-2,
|
201
|
+
.col-md-3,
|
202
|
+
.col-md-4,
|
203
|
+
.col-md-5,
|
204
|
+
.col-md-6,
|
205
|
+
.col-md-7,
|
206
|
+
.col-md-8,
|
207
|
+
.col-md-9,
|
208
|
+
.col-md-10,
|
209
|
+
.col-md-11 {
|
210
|
+
float: left;
|
211
|
+
}
|
212
|
+
.col-md-1 { width: percentage((1 / @grid-columns)); }
|
213
|
+
.col-md-2 { width: percentage((2 / @grid-columns)); }
|
214
|
+
.col-md-3 { width: percentage((3 / @grid-columns)); }
|
215
|
+
.col-md-4 { width: percentage((4 / @grid-columns)); }
|
216
|
+
.col-md-5 { width: percentage((5 / @grid-columns)); }
|
217
|
+
.col-md-6 { width: percentage((6 / @grid-columns)); }
|
218
|
+
.col-md-7 { width: percentage((7 / @grid-columns)); }
|
219
|
+
.col-md-8 { width: percentage((8 / @grid-columns)); }
|
220
|
+
.col-md-9 { width: percentage((9 / @grid-columns)); }
|
221
|
+
.col-md-10 { width: percentage((10/ @grid-columns)); }
|
222
|
+
.col-md-11 { width: percentage((11/ @grid-columns)); }
|
223
|
+
.col-md-12 { width: 100%; }
|
224
|
+
|
225
|
+
// Push and pull columns for source order changes
|
226
|
+
.col-md-push-1 { left: percentage((1 / @grid-columns)); }
|
227
|
+
.col-md-push-2 { left: percentage((2 / @grid-columns)); }
|
228
|
+
.col-md-push-3 { left: percentage((3 / @grid-columns)); }
|
229
|
+
.col-md-push-4 { left: percentage((4 / @grid-columns)); }
|
230
|
+
.col-md-push-5 { left: percentage((5 / @grid-columns)); }
|
231
|
+
.col-md-push-6 { left: percentage((6 / @grid-columns)); }
|
232
|
+
.col-md-push-7 { left: percentage((7 / @grid-columns)); }
|
233
|
+
.col-md-push-8 { left: percentage((8 / @grid-columns)); }
|
234
|
+
.col-md-push-9 { left: percentage((9 / @grid-columns)); }
|
235
|
+
.col-md-push-10 { left: percentage((10/ @grid-columns)); }
|
236
|
+
.col-md-push-11 { left: percentage((11/ @grid-columns)); }
|
237
|
+
|
238
|
+
.col-md-pull-1 { right: percentage((1 / @grid-columns)); }
|
239
|
+
.col-md-pull-2 { right: percentage((2 / @grid-columns)); }
|
240
|
+
.col-md-pull-3 { right: percentage((3 / @grid-columns)); }
|
241
|
+
.col-md-pull-4 { right: percentage((4 / @grid-columns)); }
|
242
|
+
.col-md-pull-5 { right: percentage((5 / @grid-columns)); }
|
243
|
+
.col-md-pull-6 { right: percentage((6 / @grid-columns)); }
|
244
|
+
.col-md-pull-7 { right: percentage((7 / @grid-columns)); }
|
245
|
+
.col-md-pull-8 { right: percentage((8 / @grid-columns)); }
|
246
|
+
.col-md-pull-9 { right: percentage((9 / @grid-columns)); }
|
247
|
+
.col-md-pull-10 { right: percentage((10/ @grid-columns)); }
|
248
|
+
.col-md-pull-11 { right: percentage((11/ @grid-columns)); }
|
249
|
+
|
250
|
+
// Offsets
|
251
|
+
.col-md-offset-1 { margin-left: percentage((1 / @grid-columns)); }
|
252
|
+
.col-md-offset-2 { margin-left: percentage((2 / @grid-columns)); }
|
253
|
+
.col-md-offset-3 { margin-left: percentage((3 / @grid-columns)); }
|
254
|
+
.col-md-offset-4 { margin-left: percentage((4 / @grid-columns)); }
|
255
|
+
.col-md-offset-5 { margin-left: percentage((5 / @grid-columns)); }
|
256
|
+
.col-md-offset-6 { margin-left: percentage((6 / @grid-columns)); }
|
257
|
+
.col-md-offset-7 { margin-left: percentage((7 / @grid-columns)); }
|
258
|
+
.col-md-offset-8 { margin-left: percentage((8 / @grid-columns)); }
|
259
|
+
.col-md-offset-9 { margin-left: percentage((9 / @grid-columns)); }
|
260
|
+
.col-md-offset-10 { margin-left: percentage((10/ @grid-columns)); }
|
261
|
+
.col-md-offset-11 { margin-left: percentage((11/ @grid-columns)); }
|
262
|
+
}
|
263
|
+
|
264
|
+
|
265
|
+
// Large grid
|
266
|
+
//
|
267
|
+
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
268
|
+
//
|
269
|
+
// Note that `.col-lg-12` doesn't get floated on purpose—there's no need since
|
270
|
+
// it's full-width.
|
271
|
+
|
272
|
+
@media (min-width: @screen-large-desktop) {
|
273
|
+
.container {
|
274
|
+
max-width: @container-large-desktop;
|
275
|
+
}
|
276
|
+
|
277
|
+
.col-lg-1,
|
278
|
+
.col-lg-2,
|
279
|
+
.col-lg-3,
|
280
|
+
.col-lg-4,
|
281
|
+
.col-lg-5,
|
282
|
+
.col-lg-6,
|
283
|
+
.col-lg-7,
|
284
|
+
.col-lg-8,
|
285
|
+
.col-lg-9,
|
286
|
+
.col-lg-10,
|
287
|
+
.col-lg-11 {
|
288
|
+
float: left;
|
289
|
+
}
|
290
|
+
.col-lg-1 { width: percentage((1 / @grid-columns)); }
|
291
|
+
.col-lg-2 { width: percentage((2 / @grid-columns)); }
|
292
|
+
.col-lg-3 { width: percentage((3 / @grid-columns)); }
|
293
|
+
.col-lg-4 { width: percentage((4 / @grid-columns)); }
|
294
|
+
.col-lg-5 { width: percentage((5 / @grid-columns)); }
|
295
|
+
.col-lg-6 { width: percentage((6 / @grid-columns)); }
|
296
|
+
.col-lg-7 { width: percentage((7 / @grid-columns)); }
|
297
|
+
.col-lg-8 { width: percentage((8 / @grid-columns)); }
|
298
|
+
.col-lg-9 { width: percentage((9 / @grid-columns)); }
|
299
|
+
.col-lg-10 { width: percentage((10/ @grid-columns)); }
|
300
|
+
.col-lg-11 { width: percentage((11/ @grid-columns)); }
|
301
|
+
.col-lg-12 { width: 100%; }
|
302
|
+
|
303
|
+
// Push and pull columns for source order changes
|
304
|
+
.col-lg-push-1 { left: percentage((1 / @grid-columns)); }
|
305
|
+
.col-lg-push-2 { left: percentage((2 / @grid-columns)); }
|
306
|
+
.col-lg-push-3 { left: percentage((3 / @grid-columns)); }
|
307
|
+
.col-lg-push-4 { left: percentage((4 / @grid-columns)); }
|
308
|
+
.col-lg-push-5 { left: percentage((5 / @grid-columns)); }
|
309
|
+
.col-lg-push-6 { left: percentage((6 / @grid-columns)); }
|
310
|
+
.col-lg-push-7 { left: percentage((7 / @grid-columns)); }
|
311
|
+
.col-lg-push-8 { left: percentage((8 / @grid-columns)); }
|
312
|
+
.col-lg-push-9 { left: percentage((9 / @grid-columns)); }
|
313
|
+
.col-lg-push-10 { left: percentage((10/ @grid-columns)); }
|
314
|
+
.col-lg-push-11 { left: percentage((11/ @grid-columns)); }
|
315
|
+
|
316
|
+
.col-lg-pull-1 { right: percentage((1 / @grid-columns)); }
|
317
|
+
.col-lg-pull-2 { right: percentage((2 / @grid-columns)); }
|
318
|
+
.col-lg-pull-3 { right: percentage((3 / @grid-columns)); }
|
319
|
+
.col-lg-pull-4 { right: percentage((4 / @grid-columns)); }
|
320
|
+
.col-lg-pull-5 { right: percentage((5 / @grid-columns)); }
|
321
|
+
.col-lg-pull-6 { right: percentage((6 / @grid-columns)); }
|
322
|
+
.col-lg-pull-7 { right: percentage((7 / @grid-columns)); }
|
323
|
+
.col-lg-pull-8 { right: percentage((8 / @grid-columns)); }
|
324
|
+
.col-lg-pull-9 { right: percentage((9 / @grid-columns)); }
|
325
|
+
.col-lg-pull-10 { right: percentage((10/ @grid-columns)); }
|
326
|
+
.col-lg-pull-11 { right: percentage((11/ @grid-columns)); }
|
327
|
+
|
328
|
+
// Offsets
|
329
|
+
.col-lg-offset-1 { margin-left: percentage((1 / @grid-columns)); }
|
330
|
+
.col-lg-offset-2 { margin-left: percentage((2 / @grid-columns)); }
|
331
|
+
.col-lg-offset-3 { margin-left: percentage((3 / @grid-columns)); }
|
332
|
+
.col-lg-offset-4 { margin-left: percentage((4 / @grid-columns)); }
|
333
|
+
.col-lg-offset-5 { margin-left: percentage((5 / @grid-columns)); }
|
334
|
+
.col-lg-offset-6 { margin-left: percentage((6 / @grid-columns)); }
|
335
|
+
.col-lg-offset-7 { margin-left: percentage((7 / @grid-columns)); }
|
336
|
+
.col-lg-offset-8 { margin-left: percentage((8 / @grid-columns)); }
|
337
|
+
.col-lg-offset-9 { margin-left: percentage((9 / @grid-columns)); }
|
338
|
+
.col-lg-offset-10 { margin-left: percentage((10/ @grid-columns)); }
|
339
|
+
.col-lg-offset-11 { margin-left: percentage((11/ @grid-columns)); }
|
340
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
//
|
2
|
+
// Input groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// -------------------------
|
7
|
+
.input-group {
|
8
|
+
position: relative; // For dropdowns
|
9
|
+
display: table;
|
10
|
+
border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
|
11
|
+
|
12
|
+
// Undo padding and float of grid classes
|
13
|
+
&.col {
|
14
|
+
float: none;
|
15
|
+
padding-left: 0;
|
16
|
+
padding-right: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.form-control {
|
20
|
+
width: 100%;
|
21
|
+
margin-bottom: 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Sizing options
|
26
|
+
//
|
27
|
+
// Remix the default form control sizing classes into new ones for easier
|
28
|
+
// manipulation.
|
29
|
+
|
30
|
+
.input-group-lg > .form-control,
|
31
|
+
.input-group-lg > .input-group-addon,
|
32
|
+
.input-group-lg > .input-group-btn > .btn { .input-lg(); }
|
33
|
+
.input-group-sm > .form-control,
|
34
|
+
.input-group-sm > .input-group-addon,
|
35
|
+
.input-group-lg > .input-group-btn > .btn { .input-sm(); }
|
36
|
+
|
37
|
+
|
38
|
+
// Display as table-cell
|
39
|
+
// -------------------------
|
40
|
+
.input-group-addon,
|
41
|
+
.input-group-btn,
|
42
|
+
.input-group .form-control {
|
43
|
+
display: table-cell;
|
44
|
+
|
45
|
+
&:not(:first-child):not(:last-child) {
|
46
|
+
border-radius: 0;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
// Addon and addon wrapper for buttons
|
50
|
+
.input-group-addon,
|
51
|
+
.input-group-btn {
|
52
|
+
width: 1%;
|
53
|
+
white-space: nowrap;
|
54
|
+
vertical-align: middle; // Match the inputs
|
55
|
+
}
|
56
|
+
|
57
|
+
// Text input groups
|
58
|
+
// -------------------------
|
59
|
+
.input-group-addon {
|
60
|
+
padding: @padding-base-vertical @padding-base-horizontal;
|
61
|
+
font-size: @font-size-base;
|
62
|
+
font-weight: normal;
|
63
|
+
line-height: 1;
|
64
|
+
text-align: center;
|
65
|
+
background-color: @input-group-addon-bg;
|
66
|
+
border: 1px solid @input-group-addon-border-color;
|
67
|
+
border-radius: @border-radius-base;
|
68
|
+
|
69
|
+
// Sizing
|
70
|
+
&.input-sm {
|
71
|
+
padding: @padding-small-vertical @padding-small-horizontal;
|
72
|
+
font-size: @font-size-small;
|
73
|
+
border-radius: @border-radius-small;
|
74
|
+
}
|
75
|
+
&.input-lg {
|
76
|
+
padding: @padding-large-vertical @padding-large-horizontal;
|
77
|
+
font-size: @font-size-large;
|
78
|
+
border-radius: @border-radius-large;
|
79
|
+
}
|
80
|
+
|
81
|
+
// Nuke default margins from checkboxes and radios to vertically center within.
|
82
|
+
input[type="radio"],
|
83
|
+
input[type="checkbox"] {
|
84
|
+
margin-top: 0;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
// Reset rounded corners
|
89
|
+
.input-group .form-control:first-child,
|
90
|
+
.input-group-addon:first-child,
|
91
|
+
.input-group-btn:first-child > .btn,
|
92
|
+
.input-group-btn:first-child > .dropdown-toggle,
|
93
|
+
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
|
94
|
+
.border-right-radius(0);
|
95
|
+
}
|
96
|
+
.input-group-addon:first-child {
|
97
|
+
border-right: 0;
|
98
|
+
}
|
99
|
+
.input-group .form-control:last-child,
|
100
|
+
.input-group-addon:last-child,
|
101
|
+
.input-group-btn:last-child > .btn,
|
102
|
+
.input-group-btn:last-child > .dropdown-toggle,
|
103
|
+
.input-group-btn:first-child > .btn:not(:first-child) {
|
104
|
+
.border-left-radius(0);
|
105
|
+
}
|
106
|
+
.input-group-addon:last-child {
|
107
|
+
border-left: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Button input groups
|
111
|
+
// -------------------------
|
112
|
+
.input-group-btn {
|
113
|
+
position: relative;
|
114
|
+
white-space: nowrap;
|
115
|
+
}
|
116
|
+
.input-group-btn > .btn {
|
117
|
+
position: relative;
|
118
|
+
// Jankily prevent input button groups from wrapping
|
119
|
+
+ .btn {
|
120
|
+
margin-left: -4px;
|
121
|
+
}
|
122
|
+
// Bring the "active" button to the front
|
123
|
+
&:hover,
|
124
|
+
&:active {
|
125
|
+
z-index: 2;
|
126
|
+
}
|
127
|
+
}
|