bootstrap-sass-rails 3.0.3.0 → 3.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +24 -133
  3. data/app/assets/javascripts/twitter/bootstrap.js +1 -12
  4. data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
  5. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
  6. data/app/assets/javascripts/twitter/bootstrap/button.js +1 -115
  7. data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
  8. data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
  9. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
  10. data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
  11. data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
  12. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
  13. data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
  14. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
  15. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
  16. data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -49
  17. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
  18. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
  19. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
  20. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -227
  21. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -155
  22. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -232
  23. data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -34
  24. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -53
  25. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
  26. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -187
  27. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -373
  28. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -237
  29. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -78
  30. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -136
  31. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -46
  32. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -64
  33. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -88
  34. data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
  35. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -847
  36. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -129
  37. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -616
  38. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -242
  39. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -406
  40. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
  41. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -85
  42. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -182
  43. data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
  44. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -105
  45. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -80
  46. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -198
  47. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -119
  48. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -231
  49. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -247
  50. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -38
  51. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
  52. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -281
  53. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -56
  54. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -642
  55. data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
  56. data/lib/bootstrap-sass-rails.rb +1 -1
  57. data/lib/bootstrap/sass/rails/engine.rb +3 -8
  58. data/lib/bootstrap/sass/rails/version.rb +2 -1
  59. data/lib/generators/bootstrap/templates/USAGE +1 -1
  60. metadata +37 -17
  61. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  62. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -229
  63. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  64. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  65. data/lib/bootstrap/sass/extensions.rb +0 -5
  66. data/lib/bootstrap/sass/extensions/functions.rb +0 -15
@@ -1,29 +1 @@
1
- //
2
- // Component animations
3
- // --------------------------------------------------
4
-
5
- // Heads up!
6
- //
7
- // We don't use the `.opacity()` mixin here since it causes a bug with text
8
- // fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552.
9
-
10
- .fade {
11
- opacity: 0;
12
- @include transition(opacity .15s linear);
13
- &.in {
14
- opacity: 1;
15
- }
16
- }
17
-
18
- .collapse {
19
- display: none;
20
- &.in {
21
- display: block;
22
- }
23
- }
24
- .collapsing {
25
- position: relative;
26
- height: 0;
27
- overflow: hidden;
28
- @include transition(height .35s ease);
29
- }
1
+ @import "bootstrap/component-animations";
@@ -1,187 +1 @@
1
- //
2
- // Dropdown menus
3
- // --------------------------------------------------
4
-
5
-
6
- // Dropdown arrow/caret
7
- .caret {
8
- display: inline-block;
9
- width: 0;
10
- height: 0;
11
- margin-left: 2px;
12
- vertical-align: middle;
13
- border-top: $caret-width-base solid;
14
- border-right: $caret-width-base solid transparent;
15
- border-left: $caret-width-base solid transparent;
16
- }
17
-
18
- // The dropdown wrapper (div)
19
- .dropdown {
20
- position: relative;
21
- }
22
-
23
- // Prevent the focus on the dropdown toggle when closing dropdowns
24
- .dropdown-toggle:focus {
25
- outline: 0;
26
- }
27
-
28
- // The dropdown menu (ul)
29
- .dropdown-menu {
30
- position: absolute;
31
- top: 100%;
32
- left: 0;
33
- z-index: $zindex-dropdown;
34
- display: none; // none by default, but block on "open" of the menu
35
- float: left;
36
- min-width: 160px;
37
- padding: 5px 0;
38
- margin: 2px 0 0; // override default ul
39
- list-style: none;
40
- font-size: $font-size-base;
41
- background-color: $dropdown-bg;
42
- border: 1px solid $dropdown-fallback-border; // IE8 fallback
43
- border: 1px solid $dropdown-border;
44
- border-radius: $border-radius-base;
45
- @include box-shadow(0 6px 12px rgba(0,0,0,.175));
46
- background-clip: padding-box;
47
-
48
- // Aligns the dropdown menu to right
49
- &.pull-right {
50
- right: 0;
51
- left: auto;
52
- }
53
-
54
- // Dividers (basically an hr) within the dropdown
55
- .divider {
56
- @include nav-divider($dropdown-divider-bg);
57
- }
58
-
59
- // Links within the dropdown menu
60
- > li > a {
61
- display: block;
62
- padding: 3px 20px;
63
- clear: both;
64
- font-weight: normal;
65
- line-height: $line-height-base;
66
- color: $dropdown-link-color;
67
- white-space: nowrap; // prevent links from randomly breaking onto new lines
68
- }
69
- }
70
-
71
- // Hover/Focus state
72
- .dropdown-menu > li > a {
73
- &:hover,
74
- &:focus {
75
- text-decoration: none;
76
- color: $dropdown-link-hover-color;
77
- background-color: $dropdown-link-hover-bg;
78
- }
79
- }
80
-
81
- // Active state
82
- .dropdown-menu > .active > a {
83
- &,
84
- &:hover,
85
- &:focus {
86
- color: $dropdown-link-active-color;
87
- text-decoration: none;
88
- outline: 0;
89
- background-color: $dropdown-link-active-bg;
90
- }
91
- }
92
-
93
- // Disabled state
94
- //
95
- // Gray out text and ensure the hover/focus state remains gray
96
-
97
- .dropdown-menu > .disabled > a {
98
- &,
99
- &:hover,
100
- &:focus {
101
- color: $dropdown-link-disabled-color;
102
- }
103
- }
104
- // Nuke hover/focus effects
105
- .dropdown-menu > .disabled > a {
106
- &:hover,
107
- &:focus {
108
- text-decoration: none;
109
- background-color: transparent;
110
- background-image: none; // Remove CSS gradient
111
- @include reset-filter();
112
- cursor: not-allowed;
113
- }
114
- }
115
-
116
- // Open state for the dropdown
117
- .open {
118
- // Show the menu
119
- > .dropdown-menu {
120
- display: block;
121
- }
122
-
123
- // Remove the outline when :focus is triggered
124
- > a {
125
- outline: 0;
126
- }
127
- }
128
-
129
- // Dropdown section headers
130
- .dropdown-header {
131
- display: block;
132
- padding: 3px 20px;
133
- font-size: $font-size-small;
134
- line-height: $line-height-base;
135
- color: $dropdown-header-color;
136
- }
137
-
138
- // Backdrop to catch body clicks on mobile, etc.
139
- .dropdown-backdrop {
140
- position: fixed;
141
- left: 0;
142
- right: 0;
143
- bottom: 0;
144
- top: 0;
145
- z-index: $zindex-dropdown - 10;
146
- }
147
-
148
- // Right aligned dropdowns
149
- .pull-right > .dropdown-menu {
150
- right: 0;
151
- left: auto;
152
- }
153
-
154
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
155
- //
156
- // Just add .dropup after the standard .dropdown class and you're set, bro.
157
- // TODO: abstract this so that the navbar fixed styles are not placed here?
158
-
159
- .dropup,
160
- .navbar-fixed-bottom .dropdown {
161
- // Reverse the caret
162
- .caret {
163
- border-top: 0;
164
- border-bottom: $caret-width-base solid;
165
- content: "";
166
- }
167
- // Different positioning for bottom up menu
168
- .dropdown-menu {
169
- top: auto;
170
- bottom: 100%;
171
- margin-bottom: 1px;
172
- }
173
- }
174
-
175
-
176
- // Component alignment
177
- //
178
- // Reiterate per navbar.less and the modified component alignment there.
179
-
180
- @media (min-width: $grid-float-breakpoint) {
181
- .navbar-right {
182
- .dropdown-menu {
183
- right: 0;
184
- left: auto;
185
- }
186
- }
187
- }
1
+ @import "bootstrap/dropdowns";
@@ -1,373 +1 @@
1
- //
2
- // Forms
3
- // --------------------------------------------------
4
-
5
-
6
- // Normalize non-controls
7
- //
8
- // Restyle and baseline non-control form elements.
9
-
10
- fieldset {
11
- padding: 0;
12
- margin: 0;
13
- border: 0;
14
- }
15
-
16
- legend {
17
- display: block;
18
- width: 100%;
19
- padding: 0;
20
- margin-bottom: $line-height-computed;
21
- font-size: ($font-size-base * 1.5);
22
- line-height: inherit;
23
- color: $legend-color;
24
- border: 0;
25
- border-bottom: 1px solid $legend-border-color;
26
- }
27
-
28
- label {
29
- display: inline-block;
30
- margin-bottom: 5px;
31
- font-weight: bold;
32
- }
33
-
34
-
35
- // Normalize form controls
36
-
37
- // Override content-box in Normalize (* isn't specific enough)
38
- input[type="search"] {
39
- @include box-sizing(border-box);
40
- }
41
-
42
- // Position radios and checkboxes better
43
- input[type="radio"],
44
- input[type="checkbox"] {
45
- margin: 4px 0 0;
46
- margin-top: 1px \9; /* IE8-9 */
47
- line-height: normal;
48
- }
49
-
50
- // Set the height of select and file controls to match text inputs
51
- input[type="file"] {
52
- display: block;
53
- }
54
-
55
- // Make multiple select elements height not fixed
56
- select[multiple],
57
- select[size] {
58
- height: auto;
59
- }
60
-
61
- // Fix optgroup Firefox bug per https://github.com/twbs/bootstrap/issues/7611
62
- select optgroup {
63
- font-size: inherit;
64
- font-style: inherit;
65
- font-family: inherit;
66
- }
67
-
68
- // Focus for select, file, radio, and checkbox
69
- input[type="file"]:focus,
70
- input[type="radio"]:focus,
71
- input[type="checkbox"]:focus {
72
- @include tab-focus();
73
- }
74
-
75
- // Fix for Chrome number input
76
- // Setting certain font-sizes causes the `I` bar to appear on hover of the bottom increment button.
77
- // See https://github.com/twbs/bootstrap/issues/8350 for more.
78
- input[type="number"] {
79
- &::-webkit-outer-spin-button,
80
- &::-webkit-inner-spin-button {
81
- height: auto;
82
- }
83
- }
84
-
85
- // Adjust output element
86
- output {
87
- display: block;
88
- padding-top: ($padding-base-vertical + 1);
89
- font-size: $font-size-base;
90
- line-height: $line-height-base;
91
- color: $input-color;
92
- vertical-align: middle;
93
- }
94
-
95
-
96
- // Common form controls
97
- //
98
- // Shared size and type resets for form controls. Apply `.form-control` to any
99
- // of the following form controls:
100
- //
101
- // select
102
- // textarea
103
- // input[type="text"]
104
- // input[type="password"]
105
- // input[type="datetime"]
106
- // input[type="datetime-local"]
107
- // input[type="date"]
108
- // input[type="month"]
109
- // input[type="time"]
110
- // input[type="week"]
111
- // input[type="number"]
112
- // input[type="email"]
113
- // input[type="url"]
114
- // input[type="search"]
115
- // input[type="tel"]
116
- // input[type="color"]
117
-
118
- .form-control {
119
- display: block;
120
- width: 100%;
121
- height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
122
- padding: $padding-base-vertical $padding-base-horizontal;
123
- font-size: $font-size-base;
124
- line-height: $line-height-base;
125
- color: $input-color;
126
- vertical-align: middle;
127
- background-color: $input-bg;
128
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
129
- border: 1px solid $input-border;
130
- border-radius: $input-border-radius;
131
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
132
- @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
133
-
134
- // Customize the `:focus` state to imitate native WebKit styles.
135
- @include form-control-focus();
136
-
137
- // Placeholder
138
- //
139
- // Placeholder text gets special styles because when browsers invalidate entire
140
- // lines if it doesn't understand a selector/
141
- @include placeholder();
142
-
143
- // Disabled and read-only inputs
144
- // Note: HTML5 says that controls under a fieldset > legend:first-child won't
145
- // be disabled if the fieldset is disabled. Due to implementation difficulty,
146
- // we don't honor that edge case; we style them as disabled anyway.
147
- &[disabled],
148
- &[readonly],
149
- fieldset[disabled] & {
150
- cursor: not-allowed;
151
- background-color: $input-bg-disabled;
152
- }
153
- }
154
-
155
-
156
- // Reset height for `textarea`s
157
- textarea.form-control {
158
- height: auto;
159
- }
160
-
161
-
162
- // Form groups
163
- //
164
- // Designed to help with the organization and spacing of vertical forms. For
165
- // horizontal forms, use the predefined grid classes.
166
-
167
- .form-group {
168
- margin-bottom: 15px;
169
- }
170
-
171
-
172
- // Checkboxes and radios
173
- //
174
- // Indent the labels to position radios/checkboxes as hanging controls.
175
-
176
- .radio,
177
- .checkbox {
178
- display: block;
179
- min-height: $line-height-computed; // clear the floating input if there is no label text
180
- margin-top: 10px;
181
- margin-bottom: 10px;
182
- padding-left: 20px;
183
- vertical-align: middle;
184
- label {
185
- display: inline;
186
- margin-bottom: 0;
187
- font-weight: normal;
188
- cursor: pointer;
189
- }
190
- }
191
- .radio input[type="radio"],
192
- .radio-inline input[type="radio"],
193
- .checkbox input[type="checkbox"],
194
- .checkbox-inline input[type="checkbox"] {
195
- float: left;
196
- margin-left: -20px;
197
- }
198
- .radio + .radio,
199
- .checkbox + .checkbox {
200
- margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
201
- }
202
-
203
- // Radios and checkboxes on same line
204
- .radio-inline,
205
- .checkbox-inline {
206
- display: inline-block;
207
- padding-left: 20px;
208
- margin-bottom: 0;
209
- vertical-align: middle;
210
- font-weight: normal;
211
- cursor: pointer;
212
- }
213
- .radio-inline + .radio-inline,
214
- .checkbox-inline + .checkbox-inline {
215
- margin-top: 0;
216
- margin-left: 10px; // space out consecutive inline controls
217
- }
218
-
219
- // Apply same disabled cursor tweak as for inputs
220
- //
221
- // Note: Neither radios nor checkboxes can be readonly.
222
- input[type="radio"],
223
- input[type="checkbox"],
224
- .radio,
225
- .radio-inline,
226
- .checkbox,
227
- .checkbox-inline {
228
- &[disabled],
229
- fieldset[disabled] & {
230
- cursor: not-allowed;
231
- }
232
- }
233
-
234
- // Form control sizing
235
-
236
- @include input-size('.input-sm', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
237
-
238
- @include input-size('.input-lg', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
239
-
240
-
241
- // Form control feedback states
242
- //
243
- // Apply contextual and semantic states to individual form controls.
244
-
245
- // Warning
246
- .has-warning {
247
- @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
248
- }
249
- // Error
250
- .has-error {
251
- @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
252
- }
253
- // Success
254
- .has-success {
255
- @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
256
- }
257
-
258
-
259
- // Static form control text
260
- //
261
- // Apply class to a `p` element to make any string of text align with labels in
262
- // a horizontal form layout.
263
-
264
- .form-control-static {
265
- margin-bottom: 0; // Remove default margin from `p`
266
- }
267
-
268
-
269
- // Help text
270
- //
271
- // Apply to any element you wish to create light text for placement immediately
272
- // below a form control. Use for general help, formatting, or instructional text.
273
-
274
- .help-block {
275
- display: block; // account for any element using help-block
276
- margin-top: 5px;
277
- margin-bottom: 10px;
278
- color: lighten($text-color, 25%); // lighten the text some for contrast
279
- }
280
-
281
-
282
-
283
- // Inline forms
284
- //
285
- // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
286
- // forms begin stacked on extra small (mobile) devices and then go inline when
287
- // viewports reach <768px.
288
- //
289
- // Requires wrapping inputs and labels with `.form-group` for proper display of
290
- // default HTML form controls and our custom form controls (e.g., input groups).
291
- //
292
- // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
293
-
294
- .form-inline {
295
-
296
- // Kick in the inline
297
- @media (min-width: $screen-sm) {
298
- // Inline-block all the things for "inline"
299
- .form-group {
300
- display: inline-block;
301
- margin-bottom: 0;
302
- vertical-align: middle;
303
- }
304
-
305
- // In navbar-form, allow folks to *not* use `.form-group`
306
- .form-control {
307
- display: inline-block;
308
- }
309
-
310
- // Override `width: 100%;` when not within a `.form-group`
311
- select.form-control {
312
- width: auto;
313
- }
314
-
315
- // Remove default margin on radios/checkboxes that were used for stacking, and
316
- // then undo the floating of radios and checkboxes to match (which also avoids
317
- // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
318
- .radio,
319
- .checkbox {
320
- display: inline-block;
321
- margin-top: 0;
322
- margin-bottom: 0;
323
- padding-left: 0;
324
- }
325
- .radio input[type="radio"],
326
- .checkbox input[type="checkbox"] {
327
- float: none;
328
- margin-left: 0;
329
- }
330
- }
331
- }
332
-
333
-
334
- // Horizontal forms
335
- //
336
- // Horizontal forms are built on grid classes and allow you to create forms with
337
- // labels on the left and inputs on the right.
338
-
339
- .form-horizontal {
340
-
341
- // Consistent vertical alignment of labels, radios, and checkboxes
342
- .control-label,
343
- .radio,
344
- .checkbox,
345
- .radio-inline,
346
- .checkbox-inline {
347
- margin-top: 0;
348
- margin-bottom: 0;
349
- padding-top: ($padding-base-vertical + 1); // Default padding plus a border
350
- }
351
- // Account for padding we're adding to ensure the alignment and of help text
352
- // and other content below items
353
- .radio,
354
- .checkbox {
355
- min-height: $line-height-computed + ($padding-base-vertical + 1);
356
- }
357
-
358
- // Make form groups behave like rows
359
- .form-group {
360
- @include make-row();
361
- }
362
-
363
- .form-control-static {
364
- padding-top: ($padding-base-vertical + 1);
365
- }
366
-
367
- // Only right align form labels here when the columns stop stacking
368
- @media (min-width: $screen-sm-min) {
369
- .control-label {
370
- text-align: right;
371
- }
372
- }
373
- }
1
+ @import "bootstrap/forms";