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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,19 @@
1
+ /// Slightly lighten a color
2
+ /// @access public
3
+ /// @param {Color} $color - color to tint
4
+ /// @param {Number} $percentage - percentage of `$color` in returned color
5
+ /// @return {Color}
6
+ @function tint($color, $percentage) {
7
+ @return mix(white, $color, $percentage);
8
+ }
9
+
10
+ /// Slightly darken a color
11
+ /// @access public
12
+ /// @param {Color} $color - color to shade
13
+ /// @param {Number} $percentage - percentage of `$color` in returned color
14
+ /// @return {Color}
15
+ @function shade($color, $percentage) {
16
+ @return mix(black, $color, $percentage);
17
+ }
18
+
19
+ // Credit: CSS-ricks
@@ -0,0 +1,76 @@
1
+ // Container widths
2
+ //
3
+ // Set the container width, and override it for fixed navbars in media queries.
4
+
5
+ .container {
6
+ @include make-container();
7
+ @include make-container-max-widths();
8
+
9
+ }
10
+
11
+
12
+ // Fluid container
13
+ //
14
+ // Utilizes the mixin meant for fixed width containers, but without any defined
15
+ // width for fluid, full width layouts.
16
+
17
+ .container-fluid {
18
+ @include make-container();
19
+ }
20
+
21
+
22
+ // Row
23
+ //
24
+ // Rows contain and clear the floats of your columns.
25
+
26
+ @if $enable-grid-classes {
27
+ .row {
28
+ @include make-row();
29
+ }
30
+ }
31
+
32
+
33
+ // Columns
34
+ //
35
+ // Common styles for small and large grid columns
36
+
37
+ @if $enable-grid-classes {
38
+ @include make-grid-columns();
39
+ }
40
+
41
+
42
+ // Flex variation
43
+ //
44
+ // Custom styles for additional flex alignment options.
45
+
46
+ @if $enable-flex and $enable-grid-classes {
47
+
48
+ // Flex column reordering
49
+
50
+ @each $breakpoint in map-keys($grid-breakpoints) {
51
+ @include media-breakpoint-up($breakpoint) {
52
+ .col-#{$breakpoint}-first { order: -1; }
53
+ .col-#{$breakpoint}-last { order: 1; }
54
+ }
55
+ }
56
+
57
+ // Alignment for every column in row
58
+
59
+ @each $breakpoint in map-keys($grid-breakpoints) {
60
+ @include media-breakpoint-up($breakpoint) {
61
+ .row-#{$breakpoint}-top { align-items: flex-start; }
62
+ .row-#{$breakpoint}-center { align-items: center; }
63
+ .row-#{$breakpoint}-bottom { align-items: flex-end; }
64
+ }
65
+ }
66
+
67
+ // Alignment per column
68
+
69
+ @each $breakpoint in map-keys($grid-breakpoints) {
70
+ @include media-breakpoint-up($breakpoint) {
71
+ .col-#{$breakpoint}-top { align-self: flex-start; }
72
+ .col-#{$breakpoint}-center { align-self: center; }
73
+ .col-#{$breakpoint}-bottom { align-self: flex-end; }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,53 @@
1
+ // Responsive images (ensure images don't scale beyond their parents)
2
+ //
3
+ // This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
4
+ // We previously tried the "images are responsive by default" approach in Bootstrap v2,
5
+ // and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
6
+ // which weren't expecting the images within themselves to be involuntarily resized.
7
+ // See also https://github.com/twbs/bootstrap/issues/18178
8
+ .img-fluid {
9
+ @include img-fluid();
10
+ }
11
+
12
+ // Rounded corners
13
+ .img-rounded {
14
+ @include border-radius($border-radius-lg);
15
+ }
16
+
17
+ // Image thumbnails
18
+ .img-thumbnail {
19
+ padding: $thumbnail-padding;
20
+ line-height: $line-height;
21
+ background-color: $thumbnail-bg;
22
+ border: $thumbnail-border-width solid $thumbnail-border-color;
23
+ border-radius: $thumbnail-border-radius;
24
+ transition: all .2s ease-in-out;
25
+ @include box-shadow(0 1px 2px rgba(0,0,0,.075));
26
+
27
+ // Keep them at most 100% wide
28
+ @include img-fluid(inline-block);
29
+ }
30
+
31
+ // Perfect circle
32
+ .img-circle {
33
+ border-radius: 50%;
34
+ }
35
+
36
+ //
37
+ // Figures
38
+ //
39
+
40
+ .figure {
41
+ // Ensures the caption's text aligns with the image.
42
+ display: inline-block;
43
+ }
44
+
45
+ .figure-img {
46
+ margin-bottom: ($spacer-y / 2);
47
+ line-height: 1;
48
+ }
49
+
50
+ .figure-caption {
51
+ font-size: $font-size-1;
52
+ color: $gray-50;
53
+ }
@@ -0,0 +1,194 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .input-group {
6
+ position: relative;
7
+
8
+ @if $enable-flex {
9
+ display: flex;
10
+ } @else {
11
+ display: table;
12
+ // Prevent input groups from inheriting border styles from table cells when
13
+ // placed within a table.
14
+ border-collapse: separate;
15
+ }
16
+
17
+ .form-control {
18
+ // Ensure that the input is always above the *appended* addon button for
19
+ // proper border colors.
20
+ position: relative;
21
+ z-index: 2;
22
+ // Bring the "active" form control to the front
23
+ @include hover-focus-active {
24
+ z-index: 3;
25
+ }
26
+ @if $enable-flex {
27
+ flex: 1;
28
+ } @else {
29
+ // IE9 fubars the placeholder attribute in text inputs and the arrows on
30
+ // select elements in input groups. To fix it, we float the input. Details:
31
+ // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
32
+ float: left;
33
+ width: 100%;
34
+ }
35
+ margin-bottom: 0;
36
+ }
37
+ }
38
+
39
+ .input-group-addon,
40
+ .input-group-button,
41
+ .input-group .form-control {
42
+ @if $enable-flex {
43
+ // do nothing
44
+ } @else {
45
+ display: table-cell;
46
+ }
47
+
48
+ &:not(:first-child):not(:last-child) {
49
+ @include border-radius(0);
50
+ }
51
+ }
52
+
53
+ .input-group-addon,
54
+ .input-group-button {
55
+ @if $enable-flex {
56
+ // do nothing
57
+ } @else {
58
+ width: 1%;
59
+ }
60
+ white-space: nowrap;
61
+ vertical-align: middle; // Match the inputs
62
+ }
63
+
64
+
65
+ // Sizing options
66
+ //
67
+ // Remix the default form control sizing classes into new ones for easier
68
+ // manipulation.
69
+
70
+ .input-group-lg > .form-control,
71
+ .input-group-lg > .input-group-addon,
72
+ .input-group-lg > .input-group-button > .button {
73
+ @extend .form-control-lg;
74
+ }
75
+ .input-group-sm > .form-control,
76
+ .input-group-sm > .input-group-addon,
77
+ .input-group-sm > .input-group-button > .button {
78
+ @extend .form-control-sm;
79
+ }
80
+ .input-group-xsm > .form-control,
81
+ .input-group-xsm > .input-group-addon,
82
+ .input-group-xsm > .input-group-button > .button {
83
+ @extend .form-control-xsm;
84
+ }
85
+
86
+
87
+ //
88
+ // Text input groups
89
+ //
90
+
91
+ .input-group-addon {
92
+ padding: $input-padding-y $input-padding-x;
93
+ font-size: $font-size-base;
94
+ font-weight: normal;
95
+ line-height: 1;
96
+ color: $input-color;
97
+ text-align: center;
98
+ background-color: $input-group-addon-bg;
99
+ border: $input-button-border-width solid $input-group-addon-border-color;
100
+ @include border-radius($border-radius);
101
+
102
+ // Sizing
103
+ &.form-control-sm {
104
+ padding: $input-padding-y-sm $input-padding-x-sm;
105
+ font-size: $font-size-sm;
106
+ @include border-radius($border-radius-sm);
107
+ }
108
+ &.form-control-lg {
109
+ padding: $input-padding-y-lg $input-padding-x-lg;
110
+ font-size: $font-size-lg;
111
+ @include border-radius($border-radius-lg);
112
+ }
113
+
114
+ // Nuke default margins from checkboxes and radios to vertically center within.
115
+ input[type="radio"],
116
+ input[type="checkbox"] {
117
+ margin-top: 0;
118
+ }
119
+ }
120
+
121
+
122
+ //
123
+ // Reset rounded corners
124
+ //
125
+
126
+ .input-group .form-control:first-child,
127
+ .input-group-addon:first-child,
128
+ .input-group-button:first-child > .button,
129
+ .input-group-button:first-child > .button-group > .button,
130
+ .input-group-button:first-child > .dropdown-toggle,
131
+ .input-group-button:last-child > .button:not(:last-child):not(.dropdown-toggle),
132
+ .input-group-button:last-child > .button-group:not(:last-child) > .button {
133
+ @include border-right-radius(0);
134
+ }
135
+ .input-group-addon:first-child {
136
+ border-right: 0;
137
+ }
138
+ .input-group .form-control:last-child,
139
+ .input-group-addon:last-child,
140
+ .input-group-button:last-child > .button,
141
+ .input-group-button:last-child > .button-group > .button,
142
+ .input-group-button:last-child > .dropdown-toggle,
143
+ .input-group-button:first-child > .button:not(:first-child),
144
+ .input-group-button:first-child > .button-group:not(:first-child) > .button {
145
+ @include border-left-radius(0);
146
+ }
147
+ .input-group-addon:last-child {
148
+ border-left: 0;
149
+ }
150
+
151
+
152
+ //
153
+ // Button input groups
154
+ //
155
+
156
+ .input-group-button {
157
+ position: relative;
158
+ // Jankily prevent input button groups from wrapping with `white-space` and
159
+ // `font-size` in combination with `inline-block` on buttons.
160
+ font-size: 0;
161
+ white-space: nowrap;
162
+
163
+ // Negative margin for spacing, position for bringing hovered/focused/actived
164
+ // element above the siblings.
165
+ > .button {
166
+ position: relative;
167
+ // + .button {
168
+ // margin-left: (-$input-button-border-width);
169
+ // }
170
+ // Bring the "active" button to the front
171
+ @include hover-focus-active {
172
+ z-index: 3;
173
+ }
174
+ }
175
+
176
+ // Negative margin to only have a single, shared border between the two
177
+ &:first-child {
178
+ > .button,
179
+ > .button-group {
180
+ margin-right: (-$input-button-border-width - 1);
181
+ }
182
+ }
183
+ &:last-child {
184
+ > .button,
185
+ > .button-group {
186
+ z-index: 2;
187
+ margin-left: (-$input-button-border-width);
188
+ // Because specificity
189
+ @include hover-focus-active {
190
+ z-index: 3;
191
+ }
192
+ }
193
+ }
194
+ }
@@ -0,0 +1,20 @@
1
+ .jumbotron {
2
+ padding: $jumbotron-padding ($jumbotron-padding / 2);
3
+ margin-bottom: $jumbotron-padding;
4
+ background-color: $jumbotron-bg;
5
+ @include border-radius($border-radius-lg);
6
+
7
+ @include media-breakpoint-up(sm) {
8
+ padding: ($jumbotron-padding * 2) $jumbotron-padding;
9
+ }
10
+ }
11
+
12
+ .jumbotron-hr {
13
+ border-top-color: darken($jumbotron-bg, 10%);
14
+ }
15
+
16
+ .jumbotron-fluid {
17
+ padding-right: 0;
18
+ padding-left: 0;
19
+ @include border-radius(0);
20
+ }
@@ -0,0 +1,140 @@
1
+ // Base class
2
+ //
3
+ // Easily usable on <ul>, <ol>, or <div>.
4
+
5
+ .list-group {
6
+ // No need to set list-style: none; since .list-group-item is block level
7
+ padding-left: 0; // reset padding because ul and ol
8
+ margin-bottom: 0;
9
+ }
10
+
11
+
12
+ // Individual list items
13
+ //
14
+ // Use on `li`s or `div`s within the `.list-group` parent.
15
+
16
+ .list-group-item {
17
+ position: relative;
18
+ display: block;
19
+ padding: .75rem 1.25rem;
20
+ // Place the border on the list items and negative margin up for better styling
21
+ margin-bottom: -$list-group-border-width;
22
+ background-color: $list-group-bg;
23
+ border: $list-group-border-width solid $list-group-border-color;
24
+
25
+ // Round the first and last items
26
+ &:first-child {
27
+ @include border-top-radius($list-group-border-radius);
28
+ }
29
+ &:last-child {
30
+ margin-bottom: 0;
31
+ @include border-bottom-radius($list-group-border-radius);
32
+ }
33
+ }
34
+
35
+ .list-group-flush {
36
+ .list-group-item {
37
+ border-width: $list-group-border-width 0;
38
+ border-radius: 0;
39
+ }
40
+
41
+ &:first-child {
42
+ .list-group-item:first-child {
43
+ border-top: 0;
44
+ }
45
+ }
46
+
47
+ &:last-child {
48
+ .list-group-item:last-child {
49
+ border-bottom: 0;
50
+ }
51
+ }
52
+ }
53
+
54
+
55
+ // Interactive list items
56
+ //
57
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive
58
+ // list items. Includes an extra `.active` modifier class for selected items.
59
+
60
+ a.list-group-item,
61
+ button.list-group-item {
62
+ width: 100%;
63
+ color: $list-group-link-color;
64
+ text-align: inherit;
65
+
66
+ .list-group-item-heading {
67
+ color: $list-group-link-heading-color;
68
+ }
69
+
70
+ // Hover state
71
+ @include hover-focus {
72
+ color: $list-group-link-hover-color;
73
+ text-decoration: none;
74
+ background-color: $list-group-hover-bg;
75
+ }
76
+ }
77
+
78
+ .list-group-item {
79
+ // Disabled state
80
+ &.disabled {
81
+ @include plain-hover-focus {
82
+ color: $list-group-disabled-color;
83
+ cursor: $cursor-disabled;
84
+ background-color: $list-group-disabled-bg;
85
+
86
+ // Force color to inherit for custom content
87
+ .list-group-item-heading {
88
+ color: inherit;
89
+ }
90
+ .list-group-item-text {
91
+ color: $list-group-disabled-text-color;
92
+ }
93
+ }
94
+ }
95
+
96
+ // Active class on item itself, not parent
97
+ &.active {
98
+ @include plain-hover-focus {
99
+ z-index: 2; // Place active items above their siblings for proper border styling
100
+ color: $list-group-active-color;
101
+ background-color: $list-group-active-bg;
102
+ border-color: $list-group-active-border;
103
+
104
+ // Force color to inherit for custom content
105
+ .list-group-item-heading,
106
+ .list-group-item-heading > small,
107
+ .list-group-item-heading > .small {
108
+ color: inherit;
109
+ }
110
+ .list-group-item-text {
111
+ color: $list-group-active-text-color;
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+
118
+ // Contextual variants
119
+ //
120
+ // Add modifier classes to change text and background color on individual items.
121
+ // Organizationally, this must come after the `:hover` states.
122
+
123
+ @include list-group-item-variant(success, $state-success-bg, $state-success-text);
124
+ @include list-group-item-variant(info, $state-info-bg, $state-info-text);
125
+ @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
126
+ @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
127
+
128
+
129
+ // Custom content options
130
+ //
131
+ // Extra classes for creating well-formatted content within `.list-group-item`s.
132
+
133
+ .list-group-item-heading {
134
+ margin-top: 0;
135
+ margin-bottom: 5px;
136
+ }
137
+ .list-group-item-text {
138
+ margin-bottom: 0;
139
+ line-height: 1.3;
140
+ }