on-standards-rails 1.5.1.1 → 2.0.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -3
  3. data/lib/on-standards-rails.rb +0 -3
  4. data/lib/on/standards/rails/version.rb +1 -1
  5. data/on-standards-rails.gemspec +1 -4
  6. data/vendor/assets/javascripts/on-standards.js +17552 -18
  7. data/vendor/assets/stylesheets/on-standards.scss +67 -0
  8. data/vendor/assets/stylesheets/on-standards/_alert.scss +65 -0
  9. data/vendor/assets/stylesheets/on-standards/_animation.scss +27 -0
  10. data/vendor/assets/stylesheets/on-standards/_baseline.scss +351 -0
  11. data/vendor/assets/stylesheets/on-standards/_block-grid.scss +501 -0
  12. data/vendor/assets/stylesheets/on-standards/_breadcrumb.scss +23 -0
  13. data/vendor/assets/stylesheets/on-standards/_button-group.scss +293 -0
  14. data/vendor/assets/stylesheets/on-standards/_buttons.scss +241 -0
  15. data/vendor/assets/stylesheets/on-standards/_card.scss +292 -0
  16. data/vendor/assets/stylesheets/on-standards/_carousel.scss +252 -0
  17. data/vendor/assets/stylesheets/on-standards/_close.scss +27 -0
  18. data/vendor/assets/stylesheets/on-standards/_code.scss +58 -0
  19. data/vendor/assets/stylesheets/on-standards/_colors.scss +85 -0
  20. data/vendor/assets/stylesheets/on-standards/_custom-forms.scss +226 -0
  21. data/vendor/assets/stylesheets/on-standards/_dropdown.scss +193 -0
  22. data/vendor/assets/stylesheets/on-standards/_forms.scss +489 -0
  23. data/vendor/assets/stylesheets/on-standards/_functions.scss +19 -0
  24. data/vendor/assets/stylesheets/on-standards/_grid.scss +76 -0
  25. data/vendor/assets/stylesheets/on-standards/_images.scss +53 -0
  26. data/vendor/assets/stylesheets/on-standards/_input-group.scss +194 -0
  27. data/vendor/assets/stylesheets/on-standards/_jumbotron.scss +20 -0
  28. data/vendor/assets/stylesheets/on-standards/_list-group.scss +140 -0
  29. data/vendor/assets/stylesheets/on-standards/_media.scss +90 -0
  30. data/vendor/assets/stylesheets/on-standards/_mixins.scss +56 -0
  31. data/vendor/assets/stylesheets/on-standards/_modal.scss +143 -0
  32. data/vendor/assets/stylesheets/on-standards/_nav.scss +162 -0
  33. data/vendor/assets/stylesheets/on-standards/_navbar.scss +230 -0
  34. data/vendor/assets/stylesheets/on-standards/_normalize.scss +417 -0
  35. data/vendor/assets/stylesheets/on-standards/_off-canvas.scss +201 -0
  36. data/vendor/assets/stylesheets/on-standards/_pager.scss +57 -0
  37. data/vendor/assets/stylesheets/on-standards/_pagination.scss +73 -0
  38. data/vendor/assets/stylesheets/on-standards/_popover.scss +140 -0
  39. data/vendor/assets/stylesheets/on-standards/_print.scss +88 -0
  40. data/vendor/assets/stylesheets/on-standards/_progress.scss +156 -0
  41. data/vendor/assets/stylesheets/on-standards/_responsive-embed.scss +39 -0
  42. data/vendor/assets/stylesheets/on-standards/_tables.scss +193 -0
  43. data/vendor/assets/stylesheets/on-standards/_tags.scss +94 -0
  44. data/vendor/assets/stylesheets/on-standards/_tooltip.scss +85 -0
  45. data/vendor/assets/stylesheets/on-standards/_utilities-background.scss +19 -0
  46. data/vendor/assets/stylesheets/on-standards/_utilities-responsive.scss +49 -0
  47. data/vendor/assets/stylesheets/on-standards/_utilities-spacing.scss +39 -0
  48. data/vendor/assets/stylesheets/on-standards/_utilities.scss +93 -0
  49. data/vendor/assets/stylesheets/on-standards/_variables.scss +727 -0
  50. data/vendor/assets/stylesheets/on-standards/mixins/_alert.scss +18 -0
  51. data/vendor/assets/stylesheets/on-standards/mixins/_background-variant.scss +13 -0
  52. data/vendor/assets/stylesheets/on-standards/mixins/_border-radius.scss +35 -0
  53. data/vendor/assets/stylesheets/on-standards/mixins/_breakpoints.scss +86 -0
  54. data/vendor/assets/stylesheets/on-standards/mixins/_buttons.scss +157 -0
  55. data/vendor/assets/stylesheets/on-standards/mixins/_cards.scss +38 -0
  56. data/vendor/assets/stylesheets/on-standards/mixins/_center-block.scss +7 -0
  57. data/vendor/assets/stylesheets/on-standards/mixins/_clearfix.scss +7 -0
  58. data/vendor/assets/stylesheets/on-standards/mixins/_forms.scss +89 -0
  59. data/vendor/assets/stylesheets/on-standards/mixins/_gradients.scss +43 -0
  60. data/vendor/assets/stylesheets/on-standards/mixins/_grid-framework.scss +44 -0
  61. data/vendor/assets/stylesheets/on-standards/mixins/_grid.scss +75 -0
  62. data/vendor/assets/stylesheets/on-standards/mixins/_hover.scss +59 -0
  63. data/vendor/assets/stylesheets/on-standards/mixins/_image.scss +34 -0
  64. data/vendor/assets/stylesheets/on-standards/mixins/_list-group.scss +30 -0
  65. data/vendor/assets/stylesheets/on-standards/mixins/_lists.scss +7 -0
  66. data/vendor/assets/stylesheets/on-standards/mixins/_modernizr.scss +11 -0
  67. data/vendor/assets/stylesheets/on-standards/mixins/_nav-divider.scss +10 -0
  68. data/vendor/assets/stylesheets/on-standards/mixins/_navbar-align.scss +9 -0
  69. data/vendor/assets/stylesheets/on-standards/mixins/_pagination.scss +22 -0
  70. data/vendor/assets/stylesheets/on-standards/mixins/_progress.scss +18 -0
  71. data/vendor/assets/stylesheets/on-standards/mixins/_pulls.scss +6 -0
  72. data/vendor/assets/stylesheets/on-standards/mixins/_reset-filter.scss +8 -0
  73. data/vendor/assets/stylesheets/on-standards/mixins/_reset-text.scss +18 -0
  74. data/vendor/assets/stylesheets/on-standards/mixins/_resize.scss +6 -0
  75. data/vendor/assets/stylesheets/on-standards/mixins/_screen-reader.scss +32 -0
  76. data/vendor/assets/stylesheets/on-standards/mixins/_size.scss +6 -0
  77. data/vendor/assets/stylesheets/on-standards/mixins/_tab-focus.scss +5 -0
  78. data/vendor/assets/stylesheets/on-standards/mixins/_table-row.scss +30 -0
  79. data/vendor/assets/stylesheets/on-standards/mixins/_tag.scss +30 -0
  80. data/vendor/assets/stylesheets/on-standards/mixins/_text-emphasis.scss +12 -0
  81. data/vendor/assets/stylesheets/on-standards/mixins/_text-hide.scss +8 -0
  82. data/vendor/assets/stylesheets/on-standards/mixins/_text-truncate.scss +8 -0
  83. data/vendor/assets/stylesheets/on-standards/modules/_type.scss +171 -0
  84. metadata +83 -58
  85. data/vendor/assets/javascripts/on-standards/vendor/chosen.jquery.min.js +0 -2
  86. data/vendor/assets/javascripts/on-standards/vendor/jquery.tooltipster.min.js +0 -1
  87. data/vendor/assets/javascripts/on-standards/vendor/sweet-alert.min.js +0 -1
  88. data/vendor/assets/stylesheets/foundation_and_overrides.scss +0 -1450
  89. data/vendor/assets/stylesheets/on-overrides.sass +0 -0
  90. data/vendor/assets/stylesheets/on-standards.sass +0 -7
  91. data/vendor/assets/stylesheets/on-standards/church_to_church.sass +0 -1323
  92. data/vendor/assets/stylesheets/on-standards/vendor/chosen.min.css +0 -3
  93. data/vendor/assets/stylesheets/on-standards/vendor/sweet-alert.scss +0 -429
  94. data/vendor/assets/stylesheets/on-standards/vendor/tooltipster.css +0 -274
@@ -0,0 +1,489 @@
1
+ //
2
+ // Textual form controls
3
+ //
4
+
5
+ .form-control {
6
+ display: block;
7
+ width: 100%;
8
+ // // Make inputs at least the height of their button counterpart (base line-height + padding + border)
9
+ // height: $input-height;
10
+ padding: ($input-padding-y + .0625rem) $input-padding-x $input-padding-y $input-padding-x;
11
+ font-size: $font-size-base;
12
+ line-height: $line-height;
13
+ color: $input-color;
14
+ background-color: $input-bg;
15
+ // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
16
+ background-image: none;
17
+ border: $input-button-border-width solid $input-border-color;
18
+ // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
19
+ @include border-radius($input-border-radius);
20
+ @include box-shadow($input-box-shadow);
21
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
22
+
23
+ // Make inputs at least the height of their button counterpart (base line-height + padding + border).
24
+ // Only apply the height to textual inputs and some selects.
25
+ // &:not(textarea),
26
+ // &:not(select[size]),
27
+ // &:not(select[multiple]) {
28
+ // height: $input-height;
29
+ // }
30
+
31
+ // Unstyle the caret on `<select>`s in IE10+.
32
+ &::-ms-expand {
33
+ background-color: transparent;
34
+ border: 0;
35
+ }
36
+
37
+ // Customize the `:focus` state to imitate native WebKit styles.
38
+ @include form-control-focus();
39
+
40
+ // Placeholder
41
+ &::placeholder {
42
+ color: $input-color-placeholder;
43
+ // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
44
+ opacity: 1;
45
+ }
46
+
47
+ // Disabled and read-only inputs
48
+ //
49
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
50
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
51
+ // don't honor that edge case; we style them as disabled anyway.
52
+ &:disabled,
53
+ &[readonly] {
54
+ background-color: $input-bg-disabled;
55
+ // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
56
+ opacity: 1;
57
+ }
58
+
59
+ &:disabled {
60
+ cursor: $cursor-disabled;
61
+ }
62
+ }
63
+
64
+
65
+ // Make file inputs better match text inputs by forcing them to new lines.
66
+ .form-control-file,
67
+ .form-control-range {
68
+ display: block;
69
+ }
70
+
71
+
72
+ //
73
+ // Labels
74
+ //
75
+
76
+ // For use with horizontal and inline forms, when you need the label text to
77
+ // align with the form controls.
78
+ .form-control-label {
79
+ padding-top: ($input-padding-y + .25rem);
80
+ padding-bottom: ($input-padding-y + .1875rem);
81
+ margin-bottom: 0; // Override the `<label>` default
82
+ }
83
+
84
+
85
+ // Todo: clear this up
86
+
87
+ // Special styles for iOS temporal inputs
88
+ //
89
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
90
+ // text within the input to become vertically misaligned. As a workaround, we
91
+ // set a pixel line-height that matches the given height of the input, but only
92
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
93
+ //
94
+ // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
95
+
96
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
97
+ input[type="date"],
98
+ input[type="time"],
99
+ input[type="datetime-local"],
100
+ input[type="month"] {
101
+ &.form-control {
102
+ line-height: $input-height;
103
+ }
104
+
105
+ &.input-xsm,
106
+ .input-group-xsm &.form-control {
107
+ line-height: $input-height-xsm;
108
+ }
109
+
110
+ &.input-sm,
111
+ .input-group-sm &.form-control {
112
+ line-height: $input-height-sm;
113
+ }
114
+
115
+ &.input-lg,
116
+ .input-group-lg &.form-control {
117
+ line-height: $input-height-lg;
118
+ }
119
+ }
120
+ }
121
+
122
+
123
+ // Static form control text
124
+ //
125
+ // Apply class to an element to make any string of text align with labels in a
126
+ // horizontal form layout.
127
+
128
+ .form-control-static {
129
+ // Size it appropriately next to real form controls
130
+ padding-top: $input-padding-y;
131
+ padding-bottom: $input-padding-y;
132
+ // Remove default margin from `p`
133
+ margin-bottom: 0;
134
+
135
+ &.form-control-xsm,
136
+ &.form-control-sm,
137
+ &.form-control-lg {
138
+ padding-right: 0;
139
+ padding-left: 0;
140
+ }
141
+ }
142
+
143
+
144
+ // Form control sizing
145
+ //
146
+ // Build on `.form-control` with modifier classes to decrease or increase the
147
+ // height and font-size of form controls.
148
+ //
149
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
150
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
151
+
152
+ .form-control-xsm {
153
+ padding: ($input-padding-y-xsm + .0625rem) $input-padding-x-xsm $input-padding-y-xsm $input-padding-x-xsm;
154
+ font-size: $font-size-sm;
155
+ line-height: $line-height-sm;
156
+ @include border-radius($input-border-radius-sm);
157
+ }
158
+
159
+ .form-control-sm {
160
+ padding: ($input-padding-y-sm + .0625rem) $input-padding-x-sm $input-padding-y-sm $input-padding-x-sm;
161
+ font-size: $font-size-sm;
162
+ line-height: $line-height-sm;
163
+ @include border-radius($input-border-radius-sm);
164
+ }
165
+
166
+ .form-control-lg {
167
+ padding: $input-padding-y-lg $input-padding-x-lg;
168
+ font-size: $font-size-lg;
169
+ line-height: $line-height-lg;
170
+ @include border-radius($input-border-radius-lg);
171
+ }
172
+
173
+
174
+ // Form groups
175
+ //
176
+ // Designed to help with the organization and spacing of vertical forms. For
177
+ // horizontal forms, use the predefined grid classes.
178
+
179
+ .form-group {
180
+ margin-bottom: $form-group-margin-bottom;
181
+ }
182
+
183
+
184
+ .label {
185
+ @extend label;
186
+ }
187
+
188
+ // Checkboxes and radios
189
+ //
190
+ // Indent the labels to position radios/checkboxes as hanging controls.
191
+
192
+ .radio,
193
+ .checkbox {
194
+ position: relative;
195
+ display: block;
196
+ // margin-top: ($spacer * .75);
197
+ margin-bottom: ($spacer * .75);
198
+
199
+ label {
200
+ padding-left: 1.25rem;
201
+ margin-bottom: 0;
202
+ font-weight: normal;
203
+ cursor: pointer;
204
+ font-size: $font-size-base;
205
+ font-weight: $font-weight-normal;
206
+ }
207
+ input[type="checkbox"]:only-child,
208
+ input[type="radio"]:only-child {
209
+ position: static;
210
+ }
211
+ }
212
+ .radio input[type="radio"],
213
+ .radio-inline input[type="radio"],
214
+ .checkbox input[type="checkbox"],
215
+ .checkbox-inline input[type="checkbox"] {
216
+ position: absolute;
217
+ }
218
+
219
+ .radio + .radio,
220
+ .checkbox + .checkbox {
221
+ // Move up sibling radios or checkboxes for tighter spacing
222
+ margin-top: -.25rem;
223
+ }
224
+
225
+ // Radios and checkboxes on same line
226
+ .radio-inline,
227
+ .checkbox-inline {
228
+ position: relative;
229
+ display: inline-block;
230
+ margin-bottom: 0;
231
+ font-weight: normal;
232
+ vertical-align: middle;
233
+ cursor: pointer;
234
+ label {
235
+ padding-left: 1.25rem;
236
+ font-size: $font-size-base;
237
+ font-weight: $font-weight-normal;
238
+ }
239
+ // When there's no labels, don't position the input.
240
+ input[type="checkbox"]:only-child {
241
+ position: relative;
242
+ top: -4px;
243
+ }
244
+ input[type="radio"]:only-child {
245
+ position: relative;
246
+ top: -3px;
247
+ }
248
+ }
249
+ .radio-inline + .radio-inline,
250
+ .checkbox-inline + .checkbox-inline {
251
+ margin-top: 0;
252
+ margin-left: $spacer;
253
+ }
254
+
255
+ // Apply same disabled cursor tweak as for inputs
256
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
257
+ //
258
+ // Note: Neither radios nor checkboxes can be readonly.
259
+ input[type="radio"],
260
+ input[type="checkbox"] {
261
+ &:disabled,
262
+ &.disabled {
263
+ cursor: $cursor-disabled;
264
+ }
265
+ }
266
+ // These classes are used directly on <label>s
267
+ .radio-inline,
268
+ .checkbox-inline {
269
+ &.disabled {
270
+ cursor: $cursor-disabled;
271
+ }
272
+ }
273
+ // These classes are used on elements with <label> descendants
274
+ .radio,
275
+ .checkbox {
276
+ &.disabled {
277
+ label {
278
+ cursor: $cursor-disabled;
279
+ color: $gray-50;
280
+ }
281
+ }
282
+ }
283
+ fieldset:disabled,
284
+ fieldset.disabled {
285
+ .radio,
286
+ .checkbox {
287
+ label {
288
+ cursor: $cursor-disabled;
289
+ color: $gray-50;
290
+ }
291
+ }
292
+ }
293
+
294
+
295
+ // Form control feedback states
296
+ //
297
+ // Apply contextual and semantic states to individual form controls.
298
+
299
+ .form-control-success,
300
+ .form-control-warning,
301
+ .form-control-danger {
302
+ padding-right: ($input-padding-x * 3);
303
+ background-repeat: no-repeat;
304
+ background-position: center right ($input-height * .25);
305
+ background-size: ($input-height * .65) ($input-height * .65);
306
+ }
307
+
308
+ // Form validation states
309
+ .has-success {
310
+ @include form-control-validation($brand-success);
311
+
312
+ .form-control-success {
313
+ background-image: url($form-icon-success);
314
+ }
315
+ }
316
+
317
+ .has-warning {
318
+ @include form-control-validation($brand-warning);
319
+
320
+ .form-control-warning {
321
+ background-image: url($form-icon-warning);
322
+ }
323
+ }
324
+
325
+ .has-danger {
326
+ @include form-control-validation($brand-danger);
327
+
328
+ .form-control-danger {
329
+ background-image: url($form-icon-danger);
330
+ }
331
+ }
332
+
333
+
334
+
335
+
336
+ // .form-control-success {
337
+ // background-image: url("#{$form-icon-success}");
338
+ // border-color: $brand-success;
339
+ // }
340
+ //
341
+ // .form-control-warning {
342
+ // background-image: url("#{$form-icon-warning}");
343
+ // border-color: $brand-warning;
344
+ // }
345
+ //
346
+ // .form-control-error {
347
+ // background-image: url("#{$form-icon-danger}");
348
+ // border-color: $brand-danger;
349
+ // }
350
+
351
+
352
+ // .has-feedback {
353
+ // // Enable absolute positioning
354
+ // position: relative;
355
+ //
356
+ // // Ensure icons don't overlap text
357
+ // .form-control {
358
+ // padding-right: ($input-height * 1.25);
359
+ // }
360
+ // }
361
+ // // Feedback icon
362
+ // .form-control-feedback {
363
+ // position: absolute;
364
+ // top: 0;
365
+ // right: 0;
366
+ // z-index: 2; // Ensure icon is above input groups
367
+ // display: block;
368
+ // width: $input-height;
369
+ // height: $input-height;
370
+ // line-height: $input-height;
371
+ // text-align: center;
372
+ // pointer-events: none;
373
+ // }
374
+ // .input-lg + .form-control-feedback,
375
+ // .input-group-lg + .form-control-feedback {
376
+ // width: $input-height-lg;
377
+ // height: $input-height-lg;
378
+ // line-height: $input-height-lg;
379
+ // }
380
+ // .input-sm + .form-control-feedback,
381
+ // .input-group-sm + .form-control-feedback {
382
+ // width: $input-height-sm;
383
+ // height: $input-height-sm;
384
+ // line-height: $input-height-sm;
385
+ // }
386
+ //
387
+ // // Form validation states
388
+ // .has-success {
389
+ // @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
390
+ // }
391
+ // .has-warning {
392
+ // @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
393
+ // }
394
+ // .has-danger {
395
+ // @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
396
+ // }
397
+ //
398
+ // // Reposition feedback icon if input has visible label above
399
+ // .has-feedback label {
400
+ //
401
+ // ~ .form-control-feedback {
402
+ // // TODO: redo this since we nuked the `$line-height-computed`
403
+ // top: 0; // Height of the `label` and its margin
404
+ // }
405
+ //
406
+ // &.sr-only ~ .form-control-feedback {
407
+ // top: 0;
408
+ // }
409
+ // }
410
+
411
+
412
+ // Inline forms
413
+ //
414
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
415
+ // forms begin stacked on extra small (mobile) devices and then go inline when
416
+ // viewports reach <768px.
417
+ //
418
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
419
+ // default HTML form controls and our custom form controls (e.g., input groups).
420
+
421
+ .form-inline {
422
+
423
+ // Kick in the inline
424
+ @include media-breakpoint-up(sm) {
425
+ // Inline-block all the things for "inline"
426
+ .form-group {
427
+ display: inline-block;
428
+ margin-bottom: 0;
429
+ vertical-align: middle;
430
+ }
431
+
432
+ // Allow folks to *not* use `.form-group`
433
+ .form-control {
434
+ display: inline-block;
435
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
436
+ vertical-align: middle;
437
+ }
438
+
439
+ // Make static controls behave like regular ones
440
+ .form-control-static {
441
+ display: inline-block;
442
+ }
443
+
444
+ .input-group {
445
+ display: inline-table;
446
+ vertical-align: middle;
447
+
448
+ .input-group-addon,
449
+ .input-group-button,
450
+ .form-control {
451
+ width: auto;
452
+ }
453
+ }
454
+
455
+ // Input groups need that 100% width though
456
+ .input-group > .form-control {
457
+ width: 100%;
458
+ }
459
+
460
+ .form-control-label {
461
+ margin-bottom: 0;
462
+ vertical-align: middle;
463
+ }
464
+
465
+ // Remove default margin on radios/checkboxes that were used for stacking, and
466
+ // then undo the floating of radios and checkboxes to match.
467
+ .radio,
468
+ .checkbox {
469
+ display: inline-block;
470
+ margin-top: 0;
471
+ margin-bottom: 0;
472
+ vertical-align: middle;
473
+
474
+ label {
475
+ padding-left: 0;
476
+ }
477
+ }
478
+ .radio input[type="radio"],
479
+ .checkbox input[type="checkbox"] {
480
+ position: relative;
481
+ margin-left: 0;
482
+ }
483
+
484
+ // Re-override the feedback icon.
485
+ .has-feedback .form-control-feedback {
486
+ top: 0;
487
+ }
488
+ }
489
+ }