anjlab-bootstrap-rails 2.3.1.2 → 3.0.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/Rakefile +42 -26
  4. data/lib/bootstrap-rails.rb +5 -6
  5. data/lib/bootstrap-rails/engine.rb +2 -9
  6. data/lib/bootstrap-rails/version.rb +1 -1
  7. data/test/test_helper.rb +2 -2
  8. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.eot +0 -0
  9. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.otf +0 -0
  10. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.svg +175 -0
  11. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.ttf +0 -0
  12. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.woff +0 -0
  13. data/vendor/assets/javascripts/twitter/bootstrap.js +4 -5
  14. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +50 -47
  15. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +32 -35
  16. data/vendor/assets/javascripts/twitter/bootstrap/button.js +37 -37
  17. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +123 -127
  18. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +81 -95
  19. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +61 -81
  20. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +146 -151
  21. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +53 -58
  22. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +99 -105
  23. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +70 -81
  24. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +246 -254
  25. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +24 -37
  26. data/vendor/assets/stylesheets/twitter/bootstrap.scss +1 -1
  27. data/vendor/{frameworks/twitter/bootstrap/accordion.scss → assets/stylesheets/twitter/bootstrap/_accordion.scss} +2 -2
  28. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +92 -0
  29. data/vendor/assets/stylesheets/twitter/bootstrap/_badges.scss +58 -0
  30. data/vendor/assets/stylesheets/twitter/bootstrap/_bootstrap.scss +64 -0
  31. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +28 -0
  32. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +170 -0
  33. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +160 -0
  34. data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +191 -0
  35. data/vendor/{frameworks/twitter/bootstrap/close.scss → assets/stylesheets/twitter/bootstrap/_close.scss} +7 -6
  36. data/vendor/{frameworks/twitter/bootstrap/code.scss → assets/stylesheets/twitter/bootstrap/_code.scss} +14 -14
  37. data/vendor/{frameworks/twitter/bootstrap/component-animations.scss → assets/stylesheets/twitter/bootstrap/_component-animations.scss} +1 -0
  38. data/vendor/{frameworks/twitter/bootstrap/dropdowns.scss → assets/stylesheets/twitter/bootstrap/_dropdowns.scss} +46 -57
  39. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +464 -0
  40. data/vendor/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +200 -0
  41. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +65 -0
  42. data/vendor/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +32 -0
  43. data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +70 -0
  44. data/vendor/assets/stylesheets/twitter/bootstrap/_list-group.scss +96 -0
  45. data/vendor/{frameworks/twitter/bootstrap/media.scss → assets/stylesheets/twitter/bootstrap/_media.scss} +0 -1
  46. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +510 -0
  47. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +137 -0
  48. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +356 -0
  49. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +249 -0
  50. data/vendor/assets/stylesheets/twitter/bootstrap/_normalize.scss +396 -0
  51. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +54 -0
  52. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +87 -0
  53. data/vendor/assets/stylesheets/twitter/bootstrap/_panels.scss +96 -0
  54. data/vendor/{frameworks/twitter/bootstrap/popovers.scss → assets/stylesheets/twitter/bootstrap/_popovers.scss} +32 -32
  55. data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +74 -0
  56. data/vendor/{frameworks/twitter/bootstrap/progress-bars.scss → assets/stylesheets/twitter/bootstrap/_progress-bars.scss} +40 -44
  57. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +77 -0
  58. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +83 -0
  59. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +242 -0
  60. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +43 -0
  61. data/vendor/{frameworks/twitter/bootstrap/tooltip.scss → assets/stylesheets/twitter/bootstrap/_tooltip.scss} +20 -19
  62. data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +253 -0
  63. data/vendor/{frameworks/twitter/bootstrap/utilities.scss → assets/stylesheets/twitter/bootstrap/_utilities.scss} +17 -5
  64. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +416 -0
  65. data/vendor/{frameworks/twitter/bootstrap/wells.scss → assets/stylesheets/twitter/bootstrap/_wells.scss} +5 -5
  66. metadata +49 -53
  67. data/lib/bootstrap-rails/ie_hex_str.rb +0 -16
  68. data/test/ie_hex_str_test.rb +0 -26
  69. data/vendor/assets/images/twitter/glyphicons-halflings-white.png +0 -0
  70. data/vendor/assets/images/twitter/glyphicons-halflings.png +0 -0
  71. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +0 -335
  72. data/vendor/assets/stylesheets/twitter/bootstrap-responsive.scss +0 -1
  73. data/vendor/frameworks/twitter/bootstrap.scss +0 -1
  74. data/vendor/frameworks/twitter/bootstrap/alerts.scss +0 -79
  75. data/vendor/frameworks/twitter/bootstrap/bootstrap.scss +0 -63
  76. data/vendor/frameworks/twitter/bootstrap/breadcrumbs.scss +0 -24
  77. data/vendor/frameworks/twitter/bootstrap/button-groups.scss +0 -230
  78. data/vendor/frameworks/twitter/bootstrap/buttons.scss +0 -228
  79. data/vendor/frameworks/twitter/bootstrap/carousel.scss +0 -158
  80. data/vendor/frameworks/twitter/bootstrap/forms.scss +0 -690
  81. data/vendor/frameworks/twitter/bootstrap/grid.scss +0 -21
  82. data/vendor/frameworks/twitter/bootstrap/hero-unit.scss +0 -25
  83. data/vendor/frameworks/twitter/bootstrap/labels-badges.scss +0 -83
  84. data/vendor/frameworks/twitter/bootstrap/layouts.scss +0 -16
  85. data/vendor/frameworks/twitter/bootstrap/mixins.scss +0 -704
  86. data/vendor/frameworks/twitter/bootstrap/modals.scss +0 -95
  87. data/vendor/frameworks/twitter/bootstrap/navbar.scss +0 -496
  88. data/vendor/frameworks/twitter/bootstrap/navs.scss +0 -409
  89. data/vendor/frameworks/twitter/bootstrap/pager.scss +0 -43
  90. data/vendor/frameworks/twitter/bootstrap/pagination.scss +0 -123
  91. data/vendor/frameworks/twitter/bootstrap/reset.scss +0 -216
  92. data/vendor/frameworks/twitter/bootstrap/responsive-1200px-min.scss +0 -28
  93. data/vendor/frameworks/twitter/bootstrap/responsive-767px-max.scss +0 -189
  94. data/vendor/frameworks/twitter/bootstrap/responsive-768px-979px.scss +0 -19
  95. data/vendor/frameworks/twitter/bootstrap/responsive-navbar.scss +0 -189
  96. data/vendor/frameworks/twitter/bootstrap/responsive-utilities.scss +0 -59
  97. data/vendor/frameworks/twitter/bootstrap/responsive.scss +0 -48
  98. data/vendor/frameworks/twitter/bootstrap/scaffolding.scss +0 -53
  99. data/vendor/frameworks/twitter/bootstrap/sprites.scss +0 -197
  100. data/vendor/frameworks/twitter/bootstrap/tables.scss +0 -235
  101. data/vendor/frameworks/twitter/bootstrap/thumbnails.scss +0 -53
  102. data/vendor/frameworks/twitter/bootstrap/type.scss +0 -246
  103. data/vendor/frameworks/twitter/bootstrap/variables.scss +0 -295
@@ -0,0 +1,464 @@
1
+ //
2
+ // Forms
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Non-controls
7
+ // -------------------------
8
+
9
+ form {
10
+ margin: 0;
11
+ }
12
+
13
+ fieldset {
14
+ padding: 0;
15
+ margin: 0;
16
+ border: 0;
17
+ }
18
+
19
+ legend {
20
+ display: block;
21
+ width: 100%;
22
+ padding: 0;
23
+ margin-bottom: $line-height-computed;
24
+ font-size: ($font-size-base * 1.5);
25
+ line-height: inherit;
26
+ color: $gray-dark;
27
+ border: 0;
28
+ border-bottom: 1px solid #e5e5e5;
29
+ }
30
+
31
+ label {
32
+ display: inline-block;
33
+ margin-bottom: 5px;
34
+ font-weight: bold;
35
+ }
36
+
37
+ // Form controls
38
+ // -------------------------
39
+
40
+ // Shared size and type resets
41
+ select,
42
+ textarea,
43
+ input[type="text"],
44
+ input[type="password"],
45
+ input[type="datetime"],
46
+ input[type="datetime-local"],
47
+ input[type="date"],
48
+ input[type="month"],
49
+ input[type="time"],
50
+ input[type="week"],
51
+ input[type="number"],
52
+ input[type="email"],
53
+ input[type="url"],
54
+ input[type="search"],
55
+ input[type="tel"],
56
+ input[type="color"] {
57
+ display: block;
58
+ min-height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
59
+ padding: $padding-base-vertical $padding-base-horizontal;
60
+ font-size: $font-size-base;
61
+ line-height: $line-height-base;
62
+ color: $gray;
63
+ vertical-align: middle;
64
+ background-color: $input-bg;
65
+ border: 1px solid $input-border;
66
+ border-radius: $input-border-radius;
67
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
68
+ @include transition((border-color ease-in-out .15s, box-shadow ease-in-out .15s));
69
+
70
+ &:focus {
71
+ border-color: rgba(82,168,236,.8);
72
+ outline: 0;
73
+ @include box-shadow((inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)));
74
+ }
75
+ }
76
+
77
+ // Reset appearance properties for textual inputs and textarea
78
+ // Can't be on input[type=*] selectors or it's too specific
79
+ input,
80
+ select,
81
+ textarea {
82
+ width: 100%;
83
+ }
84
+
85
+ // Reset width of input images, buttons, radios, checkboxes
86
+ input[type="file"],
87
+ input[type="image"],
88
+ input[type="submit"],
89
+ input[type="reset"],
90
+ input[type="button"],
91
+ input[type="radio"],
92
+ input[type="checkbox"] {
93
+ width: auto; // Override of generic input selector
94
+ }
95
+
96
+ // Override content-box in Normalize (* isn't specific enough)
97
+ input[type="search"] {
98
+ @include box-sizing(border-box);
99
+ }
100
+
101
+ // Reset height since textareas have rows
102
+ textarea {
103
+ height: auto;
104
+ }
105
+
106
+ // Position radios and checkboxes better
107
+ input[type="radio"],
108
+ input[type="checkbox"] {
109
+ margin: 4px 0 0;
110
+ margin-top: 1px \9; /* IE8-9 */
111
+ line-height: normal;
112
+ }
113
+
114
+ // Set the height of select and file controls to match text inputs
115
+ select,
116
+ input[type="file"] {
117
+ height: $input-height-base; /* In IE7, the height of the select element cannot be changed by height, only font-size. TODO: Check if this is still needed when dropping IE7 support */
118
+ line-height: $input-height-base;
119
+ }
120
+
121
+ // Make multiple select elements height not fixed
122
+ select[multiple],
123
+ select[size] {
124
+ height: auto;
125
+ }
126
+
127
+ // Fix optgroup Firefox bug per https://github.com/twitter/bootstrap/issues/7611
128
+ select optgroup {
129
+ font-size: inherit;
130
+ font-style: inherit;
131
+ font-family: inherit;
132
+ }
133
+
134
+ // Focus for select, file, radio, and checkbox
135
+ input[type="file"]:focus,
136
+ input[type="radio"]:focus,
137
+ input[type="checkbox"]:focus {
138
+ @include tab-focus();
139
+ }
140
+
141
+
142
+ // Placeholder
143
+ // -------------------------
144
+
145
+ // Placeholder text gets special styles because when browsers invalidate entire lines if it doesn't understand a selector
146
+ input,
147
+ textarea {
148
+ @include placeholder();
149
+ }
150
+
151
+
152
+ // CHECKBOXES & RADIOS
153
+ // -------------------
154
+
155
+ // Indent the labels to position radios/checkboxes as hanging
156
+ .radio,
157
+ .checkbox {
158
+ display: block;
159
+ min-height: $line-height-computed; // clear the floating input if there is no label text
160
+ margin-top: 10px;
161
+ margin-bottom: 10px;
162
+ padding-left: 20px;
163
+ vertical-align: middle;
164
+ label {
165
+ display: inline;
166
+ margin-bottom: 0;
167
+ font-weight: normal;
168
+ cursor: pointer;
169
+ }
170
+ }
171
+ .radio input[type="radio"],
172
+ .radio-inline input[type="radio"],
173
+ .checkbox input[type="checkbox"],
174
+ .checkbox-inline input[type="checkbox"] {
175
+ float: left;
176
+ margin-left: -20px;
177
+ }
178
+ .radio + .radio,
179
+ .checkbox + .checkbox {
180
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
181
+ }
182
+
183
+ /*
184
+ // Move the options list down to align with labels
185
+ .controls > .radio:first-child,
186
+ .controls > .checkbox:first-child {
187
+ padding-top: 5px; // has to be padding because margin collaspes
188
+ }
189
+ */
190
+
191
+ // Radios and checkboxes on same line
192
+ .radio-inline,
193
+ .checkbox-inline {
194
+ display: inline-block;
195
+ // padding-top: 5px;
196
+ padding-left: 20px;
197
+ margin-bottom: 0;
198
+ vertical-align: middle;
199
+ font-weight: normal;
200
+ cursor: pointer;
201
+ }
202
+ .radio-inline + .radio-inline,
203
+ .checkbox-inline + .checkbox-inline {
204
+ margin-top: 0;
205
+ margin-left: 10px; // space out consecutive inline controls
206
+ }
207
+
208
+
209
+
210
+ // INPUT SIZES
211
+ // -----------
212
+
213
+ select,
214
+ textarea,
215
+ input[type="text"],
216
+ input[type="password"],
217
+ input[type="datetime"],
218
+ input[type="datetime-local"],
219
+ input[type="date"],
220
+ input[type="month"],
221
+ input[type="time"],
222
+ input[type="week"],
223
+ input[type="number"],
224
+ input[type="email"],
225
+ input[type="url"],
226
+ input[type="search"],
227
+ input[type="tel"],
228
+ input[type="color"] {
229
+ &.input-large {
230
+ padding: $padding-large-vertical $padding-large-horizontal;
231
+ font-size: $font-size-large;
232
+ border-radius: $border-radius-large;
233
+ }
234
+ &.input-small {
235
+ min-height: $input-height-small;
236
+ padding: $padding-small-vertical $padding-small-horizontal;
237
+ font-size: $font-size-small;
238
+ border-radius: $border-radius-small;
239
+ }
240
+ }
241
+
242
+
243
+ // DISABLED STATE
244
+ // --------------
245
+
246
+ // Disabled and read-only inputs
247
+ // Note: HTML5 says that inputs under a fieldset > legend:first-child won't be
248
+ // disabled if the fieldset is disabled. Due to implementation difficulty,
249
+ // we don't honor that edge case; we style them as disabled anyway.
250
+ input,
251
+ select,
252
+ textarea {
253
+ &[disabled],
254
+ &[readonly],
255
+ fieldset[disabled] & {
256
+ cursor: not-allowed;
257
+ background-color: $input-bg-disabled;
258
+ }
259
+ }
260
+ // Explicitly reset the colors here
261
+ input[type="radio"],
262
+ input[type="checkbox"] {
263
+ &[disabled],
264
+ &[readonly],
265
+ fieldset[disabled] & {
266
+ background-color: transparent;
267
+ }
268
+ }
269
+
270
+
271
+
272
+
273
+ // FORM FIELD FEEDBACK STATES
274
+ // --------------------------
275
+
276
+ // Warning
277
+ .has-warning {
278
+ @include form-field-validation($state-warning-text, $state-warning-text, $state-warning-bg);
279
+ }
280
+ // Error
281
+ .has-error {
282
+ @include form-field-validation($state-danger-text, $state-danger-text, $state-danger-bg);
283
+ }
284
+ // Success
285
+ .has-success {
286
+ @include form-field-validation($state-success-text, $state-success-text, $state-success-bg);
287
+ }
288
+
289
+ // HTML5 invalid states
290
+ // Shares styles with the .control-group.error above
291
+ input:focus:invalid,
292
+ textarea:focus:invalid,
293
+ select:focus:invalid {
294
+ color: #b94a48;
295
+ border-color: #ee5f5b;
296
+ &:focus {
297
+ border-color: darken(#ee5f5b, 10%);
298
+ $shadow: 0 0 6px lighten(#ee5f5b, 20%);
299
+ @include box-shadow($shadow);
300
+ }
301
+ }
302
+
303
+
304
+
305
+
306
+ // HELP TEXT
307
+ // ---------
308
+
309
+ .help-block {
310
+ display: block; // account for any element using help-block
311
+ margin-top: 5px;
312
+ margin-bottom: 10px;
313
+ color: lighten($text-color, 25%); // lighten the text some for contrast
314
+ }
315
+
316
+
317
+
318
+ // Input groups
319
+ // --------------------------------------------------
320
+
321
+ // Base styles
322
+ // -------------------------
323
+ .input-group {
324
+ display: table;
325
+
326
+ // Undo padding and float of grid classes
327
+ &.col {
328
+ float: none;
329
+ padding-left: 0;
330
+ padding-right: 0;
331
+ }
332
+
333
+ input,
334
+ select {
335
+ width: 100%;
336
+ margin-bottom: 0;
337
+ }
338
+ }
339
+
340
+ // Display as table-cell
341
+ // -------------------------
342
+ .input-group-addon,
343
+ .input-group-btn,
344
+ .input-group input {
345
+ display: table-cell;
346
+
347
+ &:not(:first-child):not(:last-child) {
348
+ border-radius: 0;
349
+ }
350
+ }
351
+ // Addon and addon wrapper for buttons
352
+ .input-group-addon,
353
+ .input-group-btn {
354
+ width: 1%;
355
+ vertical-align: middle; // Match the inputs
356
+ }
357
+
358
+ // Text input groups
359
+ // -------------------------
360
+ .input-group-addon {
361
+ @include box-sizing(border-box);
362
+ padding: 6px 8px;
363
+ font-size: $font-size-base;
364
+ font-weight: normal;
365
+ line-height: $line-height-base;
366
+ text-align: center;
367
+ text-shadow: 0 1px 0 #fff;
368
+ background-color: $gray-lighter;
369
+ border: 1px solid #ccc;
370
+ border-radius: $border-radius-base;
371
+
372
+ &.input-small {
373
+ padding: $padding-small-vertical $padding-small-horizontal;
374
+ font-size: $font-size-small;
375
+ border-radius: $border-radius-small;
376
+ }
377
+ &.input-large {
378
+ padding: $padding-large-vertical $padding-large-horizontal;
379
+ font-size: $font-size-large;
380
+ border-radius: $border-radius-large;
381
+ }
382
+ }
383
+
384
+ // Reset rounded corners
385
+ .input-group input:first-child,
386
+ .input-group-addon:first-child,
387
+ .input-group-btn:first-child > .btn,
388
+ .input-group-btn:first-child > .dropdown-toggle,
389
+ .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
390
+ @include border-right-radius(0);
391
+ }
392
+ .input-group-addon:first-child {
393
+ border-right: 0;
394
+ }
395
+ .input-group input:last-child,
396
+ .input-group-addon:last-child,
397
+ .input-group-btn:last-child > .btn,
398
+ .input-group-btn:last-child > .dropdown-toggle,
399
+ .input-group-btn:first-child > .btn:not(:first-child) {
400
+ @include border-left-radius(0);
401
+ }
402
+ .input-group-addon:last-child {
403
+ border-left: 0;
404
+ }
405
+
406
+ // Button input groups
407
+ // -------------------------
408
+ .input-group-btn {
409
+ position: relative;
410
+ white-space: nowrap;
411
+ }
412
+ .input-group-btn > .btn {
413
+ position: relative;
414
+ float: left; // Collapse white-space
415
+ + .btn {
416
+ margin-left: -1px;
417
+ }
418
+ // Bring the "active" button to the front
419
+ &:hover,
420
+ &:active {
421
+ z-index: 2;
422
+ }
423
+ }
424
+
425
+
426
+ // Inline forms
427
+ // --------------------------------------------------
428
+
429
+ @mixin form-inline {
430
+ input,
431
+ select,
432
+ textarea,
433
+ .radio,
434
+ .checkbox {
435
+ display: inline-block;
436
+ }
437
+ .radio,
438
+ .checkbox {
439
+ margin-top: 0;
440
+ margin-bottom: 0;
441
+ }
442
+ }
443
+
444
+ .form-inline { @include form-inline }
445
+
446
+ // Horizontal forms
447
+ // --------------------------------------------------
448
+ // Horizontal forms are built on grid classes.
449
+
450
+ .form-horizontal {
451
+ .row + .row {
452
+ margin-top: 15px;
453
+ }
454
+ .control-label {
455
+ padding-top: 6px;
456
+ }
457
+ }
458
+
459
+ // Only right aline form labels here when the columns stop stacking
460
+ @media (min-width: 768px) {
461
+ .form-horizontal .control-label {
462
+ text-align: right;
463
+ }
464
+ }