bootstrap-sass-rails 3.0.0.3 → 3.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +24 -113
  3. data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
  4. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
  5. data/app/assets/javascripts/twitter/bootstrap/button.js +1 -109
  6. data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
  7. data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
  8. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
  9. data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
  10. data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
  11. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
  12. data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
  13. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
  14. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
  15. data/app/assets/javascripts/twitter/bootstrap.js +1 -12
  16. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
  17. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
  18. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
  19. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -248
  20. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -160
  21. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -209
  22. data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -33
  23. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -56
  24. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
  25. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -193
  26. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -350
  27. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -232
  28. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -346
  29. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -127
  30. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -40
  31. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -58
  32. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -89
  33. data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
  34. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -736
  35. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -145
  36. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -625
  37. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -229
  38. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -396
  39. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
  40. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -83
  41. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -148
  42. data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
  43. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -100
  44. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -95
  45. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -209
  46. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -130
  47. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -236
  48. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -232
  49. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -31
  50. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
  51. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -238
  52. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -42
  53. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -620
  54. data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
  55. data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -59
  56. data/lib/bootstrap/sass/rails/engine.rb +4 -1
  57. data/lib/bootstrap/sass/rails/version.rb +2 -1
  58. data/lib/bootstrap-sass-rails.rb +1 -1
  59. data/lib/generators/bootstrap/customize_generator.rb +37 -0
  60. data/lib/generators/bootstrap/templates/USAGE +23 -0
  61. data/lib/generators/bootstrap/templates/bootstrap-custom.css.scss +18 -0
  62. data/lib/generators/bootstrap/templates/bootstrap-custom.js +3 -0
  63. data/test/cases/less_to_sass_spec.rb +1 -1
  64. data/test/cases/usage_css_spec.rb +0 -3
  65. metadata +60 -18
  66. checksums.yaml +0 -15
  67. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  68. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -228
  69. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  70. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  71. data/lib/bootstrap/sass/extensions/functions.rb +0 -15
  72. data/lib/bootstrap/sass/extensions.rb +0 -5
@@ -1,229 +1 @@
1
- //
2
- // Navs
3
- // --------------------------------------------------
4
-
5
-
6
- // Base class
7
- // --------------------------------------------------
8
-
9
- .nav {
10
- margin-bottom: 0;
11
- padding-left: 0; // Override default ul/ol
12
- list-style: none;
13
- @include clearfix();
14
-
15
- > li {
16
- position: relative;
17
- display: block;
18
-
19
- > a {
20
- position: relative;
21
- display: block;
22
- padding: $nav-link-padding;
23
- &:hover,
24
- &:focus {
25
- text-decoration: none;
26
- background-color: $nav-link-hover-bg;
27
- }
28
- }
29
-
30
- // Disabled state sets text to gray and nukes hover/tab effects
31
- &.disabled > a {
32
- color: $nav-disabled-link-color;
33
-
34
- &:hover,
35
- &:focus {
36
- color: $nav-disabled-link-hover-color;
37
- text-decoration: none;
38
- background-color: transparent;
39
- cursor: not-allowed;
40
- }
41
- }
42
- }
43
-
44
- // Open dropdowns
45
- .open > a {
46
- &,
47
- &:hover,
48
- &:focus {
49
- background-color: $nav-link-hover-bg;
50
- border-color: $link-color;
51
- }
52
- }
53
-
54
- // Dividers (basically an hr) within the dropdown
55
- .nav-divider {
56
- @include nav-divider();
57
- }
58
-
59
- // Prevent IE8 from misplacing imgs
60
- // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
61
- > li > a > img {
62
- max-width: none;
63
- }
64
- }
65
-
66
-
67
- // Tabs
68
- // -------------------------
69
-
70
- // Give the tabs something to sit on
71
- .nav-tabs {
72
- border-bottom: 1px solid $nav-tabs-border-color;
73
- > li {
74
- float: left;
75
- // Make the list-items overlay the bottom border
76
- margin-bottom: -1px;
77
-
78
- // Actual tabs (as links)
79
- > a {
80
- margin-right: 2px;
81
- line-height: $line-height-base;
82
- border: 1px solid transparent;
83
- border-radius: $border-radius-base $border-radius-base 0 0;
84
- &:hover {
85
- border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
86
- }
87
- }
88
-
89
- // Active state, and it's :hover to override normal :hover
90
- &.active > a {
91
- &,
92
- &:hover,
93
- &:focus {
94
- color: $nav-tabs-active-link-hover-color;
95
- background-color: $nav-tabs-active-link-hover-bg;
96
- border: 1px solid $nav-tabs-active-link-hover-border-color;
97
- border-bottom-color: transparent;
98
- cursor: default;
99
- }
100
- }
101
- }
102
- // pulling this in mainly for less shorthand
103
- &.nav-justified {
104
- @extend .nav-justified;
105
- @extend .nav-tabs-justified;
106
- }
107
- }
108
-
109
-
110
- // Pills
111
- // -------------------------
112
- .nav-pills {
113
- > li {
114
- float: left;
115
-
116
- // Links rendered as pills
117
- > a {
118
- border-radius: 5px;
119
- }
120
- + li {
121
- margin-left: 2px;
122
- }
123
-
124
- // Active state
125
- &.active > a {
126
- &,
127
- &:hover,
128
- &:focus {
129
- color: $nav-pills-active-link-hover-color;
130
- background-color: $nav-pills-active-link-hover-bg;
131
- }
132
- }
133
- }
134
- }
135
-
136
-
137
- // Stacked pills
138
- .nav-stacked {
139
- > li {
140
- float: none;
141
- + li {
142
- margin-top: 2px;
143
- margin-left: 0; // no need for this gap between nav items
144
- }
145
- }
146
- }
147
-
148
-
149
- // Nav variations
150
- // --------------------------------------------------
151
-
152
- // Justified nav links
153
- // -------------------------
154
-
155
- .nav-justified {
156
- width: 100%;
157
-
158
- > li {
159
- float: none;
160
- > a {
161
- text-align: center;
162
- }
163
- }
164
-
165
- @media (min-width: $screen-sm) {
166
- > li {
167
- display: table-cell;
168
- width: 1%;
169
- }
170
- }
171
- }
172
-
173
- // Move borders to anchors instead of bottom of list
174
- .nav-tabs-justified {
175
- border-bottom: 0;
176
- > li > a {
177
- border-bottom: 1px solid $nav-tabs-justified-link-border-color;
178
-
179
- // Override margin from .nav-tabs
180
- margin-right: 0;
181
- }
182
- > .active > a {
183
- border-bottom-color: $nav-tabs-justified-active-link-border-color;
184
- }
185
- }
186
-
187
-
188
- // Tabbable tabs
189
- // -------------------------
190
-
191
- // Clear any floats
192
- .tabbable {
193
- @include clearfix();
194
- }
195
-
196
- // Show/hide tabbable areas
197
- .tab-content > .tab-pane,
198
- .pill-content > .pill-pane {
199
- display: none;
200
- }
201
- .tab-content,
202
- .pill-content {
203
- > .active {
204
- display: block;
205
- }
206
- }
207
-
208
-
209
-
210
- // Dropdowns
211
- // -------------------------
212
-
213
- // Make dropdown carets use link color in navs
214
- .nav .caret {
215
- border-top-color: $link-color;
216
- border-bottom-color: $link-color;
217
- }
218
- .nav a:hover .caret {
219
- border-top-color: $link-hover-color;
220
- border-bottom-color: $link-hover-color;
221
- }
222
-
223
- // Specific dropdowns
224
- .nav-tabs .dropdown-menu {
225
- // make dropdown border overlap tab border
226
- margin-top: -1px;
227
- // Remove the top rounded corners here since there is a hard edge above the menu
228
- @include border-top-radius(0);
229
- }
1
+ @import "bootstrap/navs";
@@ -1,396 +1 @@
1
- /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
-
3
- // ==========================================================================
4
- // HTML5 display definitions
5
- // ==========================================================================
6
-
7
- //
8
- // Correct `block` display not defined in IE 8/9.
9
- //
10
-
11
- article,
12
- aside,
13
- details,
14
- figcaption,
15
- figure,
16
- footer,
17
- header,
18
- hgroup,
19
- main,
20
- nav,
21
- section,
22
- summary {
23
- display: block;
24
- }
25
-
26
- //
27
- // Correct `inline-block` display not defined in IE 8/9.
28
- //
29
-
30
- audio,
31
- canvas,
32
- video {
33
- display: inline-block;
34
- }
35
-
36
- //
37
- // Prevent modern browsers from displaying `audio` without controls.
38
- // Remove excess height in iOS 5 devices.
39
- //
40
-
41
- audio:not([controls]) {
42
- display: none;
43
- height: 0;
44
- }
45
-
46
- //
47
- // Address styling not present in IE 8/9.
48
- //
49
-
50
- [hidden] {
51
- display: none;
52
- }
53
-
54
- // ==========================================================================
55
- // Base
56
- // ==========================================================================
57
-
58
- //
59
- // 1. Set default font family to sans-serif.
60
- // 2. Prevent iOS text size adjust after orientation change, without disabling
61
- // user zoom.
62
- //
63
-
64
- html {
65
- font-family: sans-serif; // 1
66
- -webkit-text-size-adjust: 100%; // 2
67
- -ms-text-size-adjust: 100%; // 2
68
- }
69
-
70
- //
71
- // Remove default margin.
72
- //
73
-
74
- body {
75
- margin: 0;
76
- }
77
-
78
- // ==========================================================================
79
- // Links
80
- // ==========================================================================
81
-
82
- //
83
- // Address `outline` inconsistency between Chrome and other browsers.
84
- //
85
-
86
- a:focus {
87
- outline: thin dotted;
88
- }
89
-
90
- //
91
- // Improve readability when focused and also mouse hovered in all browsers.
92
- //
93
-
94
- a:active,
95
- a:hover {
96
- outline: 0;
97
- }
98
-
99
- // ==========================================================================
100
- // Typography
101
- // ==========================================================================
102
-
103
- //
104
- // Address variable `h1` font-size and margin within `section` and `article`
105
- // contexts in Firefox 4+, Safari 5, and Chrome.
106
- //
107
-
108
- h1 {
109
- font-size: 2em;
110
- margin: 0.67em 0;
111
- }
112
-
113
- //
114
- // Address styling not present in IE 8/9, Safari 5, and Chrome.
115
- //
116
-
117
- abbr[title] {
118
- border-bottom: 1px dotted;
119
- }
120
-
121
- //
122
- // Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
- //
124
-
125
- b,
126
- strong {
127
- font-weight: bold;
128
- }
129
-
130
- //
131
- // Address styling not present in Safari 5 and Chrome.
132
- //
133
-
134
- dfn {
135
- font-style: italic;
136
- }
137
-
138
- //
139
- // Address differences between Firefox and other browsers.
140
- //
141
-
142
- hr {
143
- -moz-box-sizing: content-box;
144
- box-sizing: content-box;
145
- height: 0;
146
- }
147
-
148
- //
149
- // Address styling not present in IE 8/9.
150
- //
151
-
152
- mark {
153
- background: #ff0;
154
- color: #000;
155
- }
156
-
157
- //
158
- // Correct font family set oddly in Safari 5 and Chrome.
159
- //
160
-
161
- code,
162
- kbd,
163
- pre,
164
- samp {
165
- font-family: monospace, serif;
166
- font-size: 1em;
167
- }
168
-
169
- //
170
- // Improve readability of pre-formatted text in all browsers.
171
- //
172
-
173
- pre {
174
- white-space: pre-wrap;
175
- }
176
-
177
- //
178
- // Set consistent quote types.
179
- //
180
-
181
- q {
182
- quotes: "\201C" "\201D" "\2018" "\2019";
183
- }
184
-
185
- //
186
- // Address inconsistent and variable font size in all browsers.
187
- //
188
-
189
- small {
190
- font-size: 80%;
191
- }
192
-
193
- //
194
- // Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
- //
196
-
197
- sub,
198
- sup {
199
- font-size: 75%;
200
- line-height: 0;
201
- position: relative;
202
- vertical-align: baseline;
203
- }
204
-
205
- sup {
206
- top: -0.5em;
207
- }
208
-
209
- sub {
210
- bottom: -0.25em;
211
- }
212
-
213
- // ==========================================================================
214
- // Embedded content
215
- // ==========================================================================
216
-
217
- //
218
- // Remove border when inside `a` element in IE 8/9.
219
- //
220
-
221
- img {
222
- border: 0;
223
- }
224
-
225
- //
226
- // Correct overflow displayed oddly in IE 9.
227
- //
228
-
229
- svg:not(:root) {
230
- overflow: hidden;
231
- }
232
-
233
- // ==========================================================================
234
- // Figures
235
- // ==========================================================================
236
-
237
- //
238
- // Address margin not present in IE 8/9 and Safari 5.
239
- //
240
-
241
- figure {
242
- margin: 0;
243
- }
244
-
245
- // ==========================================================================
246
- // Forms
247
- // ==========================================================================
248
-
249
- //
250
- // Define consistent border, margin, and padding.
251
- //
252
-
253
- fieldset {
254
- border: 1px solid #c0c0c0;
255
- margin: 0 2px;
256
- padding: 0.35em 0.625em 0.75em;
257
- }
258
-
259
- //
260
- // 1. Correct `color` not being inherited in IE 8/9.
261
- // 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
- //
263
-
264
- legend {
265
- border: 0; // 1
266
- padding: 0; // 2
267
- }
268
-
269
- //
270
- // 1. Correct font family not being inherited in all browsers.
271
- // 2. Correct font size not being inherited in all browsers.
272
- // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
- //
274
-
275
- button,
276
- input,
277
- select,
278
- textarea {
279
- font-family: inherit; // 1
280
- font-size: 100%; // 2
281
- margin: 0; // 3
282
- }
283
-
284
- //
285
- // Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
- // the UA stylesheet.
287
- //
288
-
289
- button,
290
- input {
291
- line-height: normal;
292
- }
293
-
294
- //
295
- // Address inconsistent `text-transform` inheritance for `button` and `select`.
296
- // All other form control elements do not inherit `text-transform` values.
297
- // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
- // Correct `select` style inheritance in Firefox 4+ and Opera.
299
- //
300
-
301
- button,
302
- select {
303
- text-transform: none;
304
- }
305
-
306
- //
307
- // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
- // and `video` controls.
309
- // 2. Correct inability to style clickable `input` types in iOS.
310
- // 3. Improve usability and consistency of cursor style between image-type
311
- // `input` and others.
312
- //
313
-
314
- button,
315
- html input[type="button"], // 1
316
- input[type="reset"],
317
- input[type="submit"] {
318
- -webkit-appearance: button; // 2
319
- cursor: pointer; // 3
320
- }
321
-
322
- //
323
- // Re-set default cursor for disabled elements.
324
- //
325
-
326
- button[disabled],
327
- html input[disabled] {
328
- cursor: default;
329
- }
330
-
331
- //
332
- // 1. Address box sizing set to `content-box` in IE 8/9.
333
- // 2. Remove excess padding in IE 8/9.
334
- //
335
-
336
- input[type="checkbox"],
337
- input[type="radio"] {
338
- box-sizing: border-box; // 1
339
- padding: 0; // 2
340
- }
341
-
342
- //
343
- // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
- // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
- // (include `-moz` to future-proof).
346
- //
347
-
348
- input[type="search"] {
349
- -webkit-appearance: textfield; // 1
350
- -moz-box-sizing: content-box;
351
- -webkit-box-sizing: content-box; // 2
352
- box-sizing: content-box;
353
- }
354
-
355
- //
356
- // Remove inner padding and search cancel button in Safari 5 and Chrome
357
- // on OS X.
358
- //
359
-
360
- input[type="search"]::-webkit-search-cancel-button,
361
- input[type="search"]::-webkit-search-decoration {
362
- -webkit-appearance: none;
363
- }
364
-
365
- //
366
- // Remove inner padding and border in Firefox 4+.
367
- //
368
-
369
- button::-moz-focus-inner,
370
- input::-moz-focus-inner {
371
- border: 0;
372
- padding: 0;
373
- }
374
-
375
- //
376
- // 1. Remove default vertical scrollbar in IE 8/9.
377
- // 2. Improve readability and alignment in all browsers.
378
- //
379
-
380
- textarea {
381
- overflow: auto; // 1
382
- vertical-align: top; // 2
383
- }
384
-
385
- // ==========================================================================
386
- // Tables
387
- // ==========================================================================
388
-
389
- //
390
- // Remove most spacing between table cells.
391
- //
392
-
393
- table {
394
- border-collapse: collapse;
395
- border-spacing: 0;
396
- }
1
+ @import "bootstrap/normalize";
@@ -1,55 +1 @@
1
- //
2
- // Pager pagination
3
- // --------------------------------------------------
4
-
5
-
6
- .pager {
7
- padding-left: 0;
8
- margin: $line-height-computed 0;
9
- list-style: none;
10
- text-align: center;
11
- @include clearfix();
12
- li {
13
- display: inline;
14
- > a,
15
- > span {
16
- display: inline-block;
17
- padding: 5px 14px;
18
- background-color: $pagination-bg;
19
- border: 1px solid $pagination-border;
20
- border-radius: $pager-border-radius;
21
- }
22
-
23
- > a:hover,
24
- > a:focus {
25
- text-decoration: none;
26
- background-color: $pagination-hover-bg;
27
- }
28
- }
29
-
30
- .next {
31
- > a,
32
- > span {
33
- float: right;
34
- }
35
- }
36
-
37
- .previous {
38
- > a,
39
- > span {
40
- float: left;
41
- }
42
- }
43
-
44
- .disabled {
45
- > a,
46
- > a:hover,
47
- > a:focus,
48
- > span {
49
- color: $pager-disabled-color;
50
- background-color: $pagination-bg;
51
- cursor: not-allowed;
52
- }
53
- }
54
-
55
- }
1
+ @import "bootstrap/pager";