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,18 @@
1
+ // Alerts
2
+
3
+ @mixin alert-variant($background, $body-color) {
4
+ background-color: $background;
5
+ color: $body-color;
6
+
7
+ a {
8
+ color: $body-color;
9
+ }
10
+
11
+ hr {
12
+ border-top-color: shade($background, 20%);
13
+ }
14
+
15
+ .close {
16
+ color: $body-color;
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ // Contextual backgrounds
2
+
3
+ @mixin bg-variant($parent, $color, $text-color: #fff) {
4
+ #{$parent} {
5
+ color: $text-color;
6
+ background-color: $color !important;
7
+ }
8
+ a#{$parent} {
9
+ @include hover-focus {
10
+ background-color: darken($color, 10%);
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,35 @@
1
+ // Single side border-radius
2
+
3
+ @mixin border-radius($radius: $border-radius) {
4
+ @if $enable-rounded {
5
+ border-radius: $radius;
6
+ }
7
+ }
8
+
9
+ @mixin border-top-radius($radius) {
10
+ @if $enable-rounded {
11
+ border-top-right-radius: $radius;
12
+ border-top-left-radius: $radius;
13
+ }
14
+ }
15
+
16
+ @mixin border-right-radius($radius) {
17
+ @if $enable-rounded {
18
+ border-bottom-right-radius: $radius;
19
+ border-top-right-radius: $radius;
20
+ }
21
+ }
22
+
23
+ @mixin border-bottom-radius($radius) {
24
+ @if $enable-rounded {
25
+ border-bottom-right-radius: $radius;
26
+ border-bottom-left-radius: $radius;
27
+ }
28
+ }
29
+
30
+ @mixin border-left-radius($radius) {
31
+ @if $enable-rounded {
32
+ border-bottom-left-radius: $radius;
33
+ border-top-left-radius: $radius;
34
+ }
35
+ }
@@ -0,0 +1,86 @@
1
+ // Breakpoint viewport sizes and media queries.
2
+ //
3
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
4
+ //
5
+ // (xs: 0, sm: 544px, md: 768px)
6
+ //
7
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
8
+
9
+ // Name of the next breakpoint, or null for the last breakpoint.
10
+ //
11
+ // >> breakpoint-next(sm)
12
+ // md
13
+ // >> breakpoint-next(sm, (xs: 0, sm: 544px, md: 768px))
14
+ // md
15
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
16
+ // md
17
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
18
+ $n: index($breakpoint-names, $name);
19
+ @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
20
+ }
21
+
22
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
23
+ //
24
+ // >> breakpoint-min(sm, (xs: 0, sm: 544px, md: 768px))
25
+ // 544px
26
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
27
+ $min: map-get($breakpoints, $name);
28
+ @return if($min != 0, $min, null);
29
+ }
30
+
31
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
32
+ // The maximum value is calculated as the minimum of the next one less 0.1.
33
+ //
34
+ // >> breakpoint-max(sm, (xs: 0, sm: 544px, md: 768px))
35
+ // 767px
36
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
37
+ $next: breakpoint-next($name, $breakpoints);
38
+ @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
39
+ }
40
+
41
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
42
+ // Makes the @content apply to the given breakpoint and wider.
43
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
44
+ $min: breakpoint-min($name, $breakpoints);
45
+ @if $min {
46
+ @media (min-width: $min) {
47
+ @content;
48
+ }
49
+ } @else {
50
+ @content;
51
+ }
52
+ }
53
+
54
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
55
+ // Makes the @content apply to the given breakpoint and narrower.
56
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
57
+ $max: breakpoint-max($name, $breakpoints);
58
+ @if $max {
59
+ @media (max-width: $max) {
60
+ @content;
61
+ }
62
+ } @else {
63
+ @content;
64
+ }
65
+ }
66
+
67
+ // Media between the breakpoint's minimum and maximum widths.
68
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
69
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
70
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
71
+ @include media-breakpoint-up($name, $breakpoints) {
72
+ @include media-breakpoint-down($name, $breakpoints) {
73
+ @content;
74
+ }
75
+ }
76
+ }
77
+
78
+ // Media that spans multiple breakpoint widths.
79
+ // Makes the @content apply between the min and max breakpoints
80
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
81
+ @include media-breakpoint-up($lower, $breakpoints) {
82
+ @include media-breakpoint-down($upper, $breakpoints) {
83
+ @content;
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,157 @@
1
+ // Button variants
2
+ //
3
+ // Easily pump out default styles, as well as :hover, :focus, :active,
4
+ // and disabled options for all buttons
5
+
6
+ @function button-highlight($color) {
7
+ @return tint($color, 20%);
8
+ }
9
+
10
+ @function button-press($color) {
11
+ @return shade($color, 20%);
12
+ }
13
+
14
+
15
+
16
+ @mixin button-variant($color, $background, $border) {
17
+ color: $color;
18
+ background-color: $background;
19
+ border-color: $border;
20
+ &:focus,
21
+ &.focus {
22
+ color: $color;
23
+ }
24
+ &.disabled,
25
+ &:disabled {
26
+ &:focus,
27
+ &.focus {
28
+ background-color: $background;
29
+ border-color: $border;
30
+ color: $color;
31
+ }
32
+ @include hover {
33
+ background-color: $background;
34
+ border-color: $border;
35
+ color: $color;
36
+ }
37
+ }
38
+ }
39
+
40
+
41
+ @mixin alternate-button-variant($color, $background, $border) {
42
+ $highlight-background: button-highlight($background);
43
+ $highlight-border: button-highlight($border);
44
+ $press-background: button-press($background);
45
+ $press-border: button-press($background);
46
+ color: $color;
47
+ background-color: $background;
48
+ border-color: $border;
49
+
50
+ @include hover {
51
+ color: $color;
52
+ background-color: $highlight-background;
53
+ border-color: $highlight-background;
54
+ box-shadow: $box-shadow-1;
55
+ }
56
+
57
+ &:active,
58
+ &.active,
59
+ .open > &.dropdown-toggle {
60
+ color: $color;
61
+ background-color: $press-background;
62
+ border-color: $press-border;
63
+ // Remove the gradient for the pressed/active state
64
+ background-image: none;
65
+
66
+ &:hover,
67
+ &:focus,
68
+ &.focus {
69
+ color: $color;
70
+ background-color: $press-background;
71
+ border-color: $press-border;
72
+ box-shadow: none;
73
+ }
74
+ }
75
+
76
+ &.disabled,
77
+ &:disabled {
78
+ &:focus,
79
+ &.focus {
80
+ background-color: $background;
81
+ border-color: $border;
82
+ }
83
+ @include hover {
84
+ background-color: $background;
85
+ border-color: $border;
86
+ }
87
+ &:hover {
88
+ box-shadow: none;
89
+ }
90
+ }
91
+ }
92
+
93
+ @mixin button-outline-variant($color, $hover-text-color: #fff) {
94
+ $highlight-color: tint($color, 20%);
95
+ $press-color: shade($color, 20%);
96
+ color: $color;
97
+ background-image: none;
98
+ background-color: transparent;
99
+ border-color: $color;
100
+
101
+ @include hover {
102
+ color: $hover-text-color;
103
+ background-color: $highlight-color;
104
+ border-color: $highlight-color;
105
+ box-shadow: $box-shadow-1;
106
+ }
107
+
108
+ &:focus,
109
+ &.focus {
110
+ box-shadow: inset 0 0 0 1px $color;
111
+ &:hover {
112
+ background-color: $highlight-color;
113
+ border-color: $highlight-color;
114
+ box-shadow: $box-shadow-1;
115
+ }
116
+ }
117
+
118
+ &:active,
119
+ &.active,
120
+ .open > &.dropdown-toggle {
121
+ color: $hover-text-color;
122
+ background-color: $press-color;
123
+ border-color: $press-color;
124
+ // Remove the gradient for the pressed/active state
125
+ background-image: none;
126
+
127
+ &:hover,
128
+ &:focus,
129
+ &.focus {
130
+ color: $hover-text-color;
131
+ background-color: $press-color;
132
+ border-color: $press-color;
133
+ box-shadow: none;
134
+ }
135
+ }
136
+
137
+ &.disabled,
138
+ &:disabled {
139
+ &:focus,
140
+ &.focus {
141
+ border-color: $color;
142
+ }
143
+ @include hover {
144
+ border-color: $color;
145
+ color: $color;
146
+ background: transparent;
147
+ }
148
+ }
149
+ }
150
+
151
+ // Button sizes
152
+ @mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
153
+ padding: $padding-y $padding-x ($padding-y - 1) $padding-x;
154
+ font-size: $font-size;
155
+ line-height: $line-height;
156
+ @include border-radius($border-radius);
157
+ }
@@ -0,0 +1,38 @@
1
+ // Card variants
2
+
3
+ @mixin card-variant($background, $border) {
4
+ background-color: $background;
5
+ border-color: $border;
6
+ }
7
+
8
+ @mixin card-outline-variant($color) {
9
+ background-color: transparent;
10
+ border-color: $color;
11
+ }
12
+
13
+ //
14
+ // Inverse text within a card for use with dark backgrounds
15
+ //
16
+
17
+ @mixin card-inverse {
18
+ .card-header,
19
+ .card-footer {
20
+ border-bottom: $card-border-width solid rgba(255,255,255,.2);
21
+ }
22
+ .card-header,
23
+ .card-footer,
24
+ .card-title,
25
+ .card-blockquote {
26
+ color: #fff;
27
+ }
28
+ .card-link,
29
+ .card-text,
30
+ .card-blockquote > footer {
31
+ color: rgba(255,255,255,.65);
32
+ }
33
+ .card-link {
34
+ @include hover-focus {
35
+ color: $card-link-hover-color;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,7 @@
1
+ // Center-align a block level element
2
+
3
+ @mixin center-block() {
4
+ display: block;
5
+ margin-left: auto;
6
+ margin-right: auto;
7
+ }
@@ -0,0 +1,7 @@
1
+ @mixin clearfix() {
2
+ &::after {
3
+ content: "";
4
+ display: table;
5
+ clear: both;
6
+ }
7
+ }
@@ -0,0 +1,89 @@
1
+ // Form validation states
2
+ //
3
+ // Used in _forms.scss to generate the form validation CSS for warnings, errors,
4
+ // and successes.
5
+
6
+ @mixin form-control-validation($color) {
7
+ // Color the label and help text
8
+ .text-help,
9
+ .form-control-label,
10
+ .radio,
11
+ .checkbox,
12
+ .radio-inline,
13
+ .checkbox-inline,
14
+ &.radio label,
15
+ &.checkbox label,
16
+ &.radio-inline label,
17
+ &.checkbox-inline label {
18
+ color: $color;
19
+ }
20
+ // Set the border and box shadow on specific inputs to match
21
+ .form-control {
22
+ border-color: $color;
23
+ // @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
24
+
25
+ &:focus {
26
+ // border-color: darken($border-color, 10%);
27
+ // $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
28
+ // @include box-shadow($shadow);
29
+ }
30
+ }
31
+
32
+ // Set validation states also for addons
33
+ .input-group-addon {
34
+ color: $color;
35
+ border-color: $color;
36
+ background-color: lighten($color, 40%);
37
+ }
38
+ // Optional feedback icon
39
+ .form-control-feedback {
40
+ color: $color;
41
+ }
42
+ }
43
+
44
+ // Form control focus state
45
+ //
46
+ // Generate a customized focus state and for any input with the specified color,
47
+ // which defaults to the `@input-border-focus` variable.
48
+ //
49
+ // We highly encourage you to not customize the default value, but instead use
50
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
51
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
52
+ // usability and accessibility should be taken into account with any change.
53
+ //
54
+ // Example usage: change the default blue border and shadow to white for better
55
+ // contrast against a dark gray background.
56
+ @mixin form-control-focus() {
57
+ &:focus {
58
+ border-color: $input-border-focus;
59
+ outline: none;
60
+ $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $input-box-shadow-focus;
61
+ @include box-shadow($shadow);
62
+ }
63
+ }
64
+
65
+ // Form control sizing
66
+ //
67
+ // Relative text size, padding, and border-radii changes for form controls. For
68
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
69
+ // element gets special love because it's special, and that's a fact!
70
+
71
+ @mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
72
+ #{$parent} {
73
+ height: $input-height;
74
+ padding: $padding-vertical $padding-horizontal;
75
+ font-size: $font-size;
76
+ line-height: $line-height;
77
+ @include border-radius($border-radius);
78
+ }
79
+
80
+ select#{$parent} {
81
+ height: $input-height;
82
+ line-height: $input-height;
83
+ }
84
+
85
+ textarea#{$parent},
86
+ select[multiple]#{$parent} {
87
+ height: auto;
88
+ }
89
+ }