material-sass 1.4.1 → 4.0.0.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Rakefile +61 -0
  4. data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
  5. data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
  6. data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
  7. data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
  8. data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
  9. data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
  10. data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
  11. data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  15. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  16. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  17. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  18. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  19. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  20. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  21. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  22. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  23. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  24. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  25. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  26. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  27. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  28. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  29. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  30. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  31. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  32. data/app/assets/javascripts/material.js +739 -798
  33. data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
  34. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
  35. data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
  36. data/app/assets/javascripts/material/addons/pickadate.js +7 -0
  37. data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
  38. data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
  39. data/app/assets/javascripts/material/src/floating-label.js +91 -0
  40. data/app/assets/javascripts/material/src/navdrawer.js +352 -0
  41. data/app/assets/javascripts/material/src/tab-switch.js +136 -0
  42. data/app/assets/javascripts/material/src/util.js +138 -0
  43. data/app/assets/stylesheets/material.min.css +2 -2
  44. data/app/assets/stylesheets/material.scss +1 -1
  45. data/app/assets/stylesheets/material/_mixins.scss +21 -0
  46. data/app/assets/stylesheets/material/_utilities.scss +15 -0
  47. data/app/assets/stylesheets/material/_variables.scss +25 -0
  48. data/app/assets/stylesheets/material/base/_base.scss +482 -0
  49. data/app/assets/stylesheets/material/base/_grid.scss +28 -40
  50. data/app/assets/stylesheets/material/base/_typography.scss +208 -0
  51. data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
  52. data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
  53. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
  54. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
  55. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
  56. data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
  57. data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
  58. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
  59. data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
  60. data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
  61. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
  62. data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
  63. data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
  64. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
  65. data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
  66. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
  67. data/app/assets/stylesheets/material/material.scss +62 -0
  68. data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
  69. data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
  70. data/app/assets/stylesheets/material/material/_button.scss +241 -0
  71. data/app/assets/stylesheets/material/material/_card.scss +286 -0
  72. data/app/assets/stylesheets/material/material/_chip.scss +93 -0
  73. data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
  74. data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
  75. data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
  76. data/app/assets/stylesheets/material/material/_menu.scss +281 -0
  77. data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
  78. data/app/assets/stylesheets/material/material/_picker.scss +272 -0
  79. data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
  80. data/app/assets/stylesheets/material/material/_progress.scss +174 -0
  81. data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
  82. data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
  83. data/app/assets/stylesheets/material/material/_tab.scss +196 -0
  84. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
  85. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
  86. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
  87. data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
  88. data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
  89. data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
  90. data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
  91. data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
  92. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
  93. data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
  94. data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
  95. data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
  96. data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
  97. data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
  98. data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
  99. data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
  100. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
  101. data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
  102. data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
  103. data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
  104. data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
  105. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
  106. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
  107. data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
  108. data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
  109. data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
  110. data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
  111. data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
  112. data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
  113. data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
  114. data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
  115. data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
  116. data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
  117. data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
  118. data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
  119. data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
  120. data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
  121. data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
  122. data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
  123. data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
  124. data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
  125. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
  126. data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
  127. data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
  128. data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
  129. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
  130. data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
  131. data/lib/material-sass/engine.rb +3 -2
  132. data/lib/material-sass/version.rb +1 -1
  133. metadata +128 -70
  134. data/app/assets/javascripts/material.min.js +0 -2
  135. data/app/assets/javascripts/material/_.js +0 -6
  136. data/app/assets/javascripts/material/bootstrap.js +0 -6
  137. data/app/assets/javascripts/material/form-floating-label.js +0 -49
  138. data/app/assets/javascripts/material/form-textarea.js +0 -13
  139. data/app/assets/javascripts/material/header.js +0 -12
  140. data/app/assets/javascripts/material/menu.js +0 -200
  141. data/app/assets/javascripts/material/modal.js +0 -12
  142. data/app/assets/javascripts/material/picker.js +0 -141
  143. data/app/assets/javascripts/material/snackbar.js +0 -116
  144. data/app/assets/javascripts/material/tab.js +0 -51
  145. data/app/assets/javascripts/material/tile.js +0 -181
  146. data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
  147. data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
  148. data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
  149. data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
  150. data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
  151. data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
  152. data/app/assets/stylesheets/material/base.scss +0 -50
  153. data/app/assets/stylesheets/material/base/_reset.scss +0 -421
  154. data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
  155. data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
  156. data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
  157. data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
  158. data/app/assets/stylesheets/material/components/_button.scss +0 -81
  159. data/app/assets/stylesheets/material/components/_card.scss +0 -175
  160. data/app/assets/stylesheets/material/components/_code.scss +0 -53
  161. data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
  162. data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
  163. data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
  164. data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
  165. data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
  166. data/app/assets/stylesheets/material/components/_form.scss +0 -217
  167. data/app/assets/stylesheets/material/components/_label.scss +0 -23
  168. data/app/assets/stylesheets/material/components/_modal.scss +0 -164
  169. data/app/assets/stylesheets/material/components/_nav.scss +0 -53
  170. data/app/assets/stylesheets/material/components/_picker.scss +0 -298
  171. data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
  172. data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
  173. data/app/assets/stylesheets/material/components/_progress.scss +0 -132
  174. data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
  175. data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
  176. data/app/assets/stylesheets/material/components/_tab.scss +0 -84
  177. data/app/assets/stylesheets/material/components/_table.scss +0 -82
  178. data/app/assets/stylesheets/material/components/_tile.scss +0 -156
  179. data/app/assets/stylesheets/material/elements/_content.scss +0 -42
  180. data/app/assets/stylesheets/material/elements/_header.scss +0 -141
  181. data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
  182. data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
  183. data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
  184. data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
  185. data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
  186. data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
  187. data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
  188. data/app/assets/stylesheets/material/var/_colours.scss +0 -336
  189. data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -1,53 +0,0 @@
1
- code,
2
- kbd,
3
- pre,
4
- samp {
5
- font-family: $font-fam-mono;
6
- font-size: 1em;
7
- }
8
-
9
- code {
10
- background-color: $offwhite-solid;
11
- border: 1px solid $black-divider-solid;
12
- border-radius: 4px;
13
- color: $brand-color-accent;
14
- font-size: 75%;
15
- line-height: 1;
16
- padding: 2px 4px;
17
- }
18
-
19
- kbd {
20
- background-color: $black-text-solid;
21
- border-radius: 4px;
22
- color: $white-text-solid;
23
- font-size: 75%;
24
- padding: 2px 4px;
25
- kbd {
26
- font-size: 100%;
27
- font-weight: $font-weight-medium;
28
- padding: 0;
29
- }
30
- }
31
-
32
- pre {
33
- background-color: $offwhite-solid;
34
- border: 1px solid $black-divider-solid;
35
- border-radius: 2px;
36
- color: $black-text-solid;
37
- display: block;
38
- font-size: $font-size-h6;
39
- line-height: $line-height-h6;
40
- margin: $margin-md 0;
41
- overflow: auto;
42
- padding: $margin-sm ($grid-gutter / 2);
43
- word-break: break-all;
44
- word-wrap: break-word;
45
- code {
46
- background-color: transparent;
47
- border-radius: 0;
48
- color: inherit;
49
- font-size: inherit;
50
- padding: 0;
51
- white-space: pre-wrap;
52
- }
53
- }
@@ -1,99 +0,0 @@
1
- .dropdown {
2
- position: relative;
3
- z-index: 1;
4
- [data-toggle="dropdown"] {
5
- cursor: pointer;
6
- }
7
- }
8
-
9
- .dropdown-inline {
10
- display: inline-block;
11
- }
12
-
13
- .dropdown-menu {
14
- background-color: $white;
15
- border: 1px solid $black-divider;
16
- border-radius: 0 2px 2px 2px;
17
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 0 3px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.18);
18
- list-style: none;
19
- margin: 0 !important;
20
- min-width: 100%;
21
- opacity: 0;
22
- padding-top: $margin-base;
23
- padding-right: 0;
24
- padding-bottom: $margin-base;
25
- padding-left: 0;
26
- position: absolute !important;
27
- top: 100%;
28
- left: 0;
29
- transform: scale(0.3, 0);
30
- transform-origin: 0 0;
31
- transition-duration: 0.3s;
32
- transition-property: opacity, transform;
33
- transition-timing-function: $timing;
34
- .dropdown.open & {
35
- opacity: 1;
36
- transform: scale(1, 1);
37
- }
38
- &.dropdown-menu-right,
39
- .dropdown.pull-right & {
40
- border-radius: 2px 0 2px 2px;
41
- // position
42
- right: 0;
43
- left: auto;
44
- transform-origin: 100% 0;
45
- }
46
- li {
47
- > a,
48
- > .a {
49
- color: $black-text-solid;
50
- @include text-overflow();
51
- &:focus,
52
- &:hover {
53
- background-color: $offwhite-solid;
54
- }
55
- }
56
- &.active {
57
- > a,
58
- > .a {
59
- background-color: $offwhite-solid;
60
- }
61
- }
62
- }
63
- }
64
-
65
- .dropdown-toggle {
66
- transition: background-color 0.3s $timing;
67
- .dropdown.open & {
68
- background-color: $offwhite;
69
- border-radius: 2px 2px 0 0;
70
- }
71
- }
72
-
73
- .dropdown-toggle-btn {
74
- margin-right: 1px;
75
- margin-left: 1px;
76
- padding-right: $grid-gutter;
77
- padding-left: $grid-gutter;
78
- position: relative;
79
- z-index: 1;
80
- .dropdown.open & {
81
- background-color: $white;
82
- box-shadow: none;
83
- color: $black-text-solid;
84
- }
85
- ~ .dropdown-menu {
86
- min-width: 100%;
87
- padding-top: ($btn-height + $margin-base + ($nav-height - $btn-height));
88
- // position
89
- top: ($margin-base * -1 + ($nav-height - $btn-height) / -2);
90
- left: 0;
91
- transform: scale(1, 0);
92
- &.dropdown-menu-right,
93
- .dropdown.pull-right & {
94
- // position
95
- right: 0;
96
- left: auto;
97
- }
98
- }
99
- }
@@ -1,161 +0,0 @@
1
- .checkbox-adv,
2
- .radiobtn-adv {
3
- font-size: $font-size;
4
- line-height: $line-height;
5
- }
6
-
7
- [class*="checkbox-circle"],
8
- [class*="radiobtn-circle"] {
9
- display: block;
10
- height: $font-size;
11
- position: absolute;
12
- top: (($line-height - $font-size) / 2 - 1);
13
- left: 0;
14
- width: $font-size;
15
- }
16
-
17
- [class*="radiobtn-circle"] {
18
- border-radius: 50%;
19
- }
20
-
21
- .checkbox-circle,
22
- .radiobtn-circle {
23
- border: 2px solid $black-sec;
24
- transition: border-color 0.3s $timing;
25
- }
26
-
27
- .checkbox-circle {
28
- input[type="checkbox"]:focus ~ & {
29
- border-color: $black-text;
30
- }
31
- fieldset[disabled] input[type="checkbox"] ~ &,
32
- input[type="checkbox"][disabled] ~ &,
33
- .checkbox-adv.disabled input[type="checkbox"] ~ & {
34
- border-color: $black-hint;
35
- }
36
- }
37
-
38
- .radiobtn-circle {
39
- input[type="radio"]:focus ~ & {
40
- border-color: $black-text;
41
- }
42
- input[type="radio"]:checked ~ & {
43
- border-color: $brand-color-accent;
44
- }
45
- fieldset[disabled] input[type="radio"] ~ &,
46
- input[type="radio"][disabled] ~ &,
47
- .radiobtn-adv.disabled input[type="radio"] ~ & {
48
- border-color: $black-hint;
49
- }
50
- fieldset[disabled] input[type="radio"]:checked ~ &,
51
- input[type="radio"]:checked[disabled] ~ &,
52
- .radiobtn-adv.disabled input[type="radio"]:checked ~ & {
53
- border-color: $brand-color-accent-light;
54
- }
55
- }
56
-
57
- .checkbox-circle-check,
58
- .radiobtn-circle-check {
59
- background-color: transparent;
60
- transform: scale(0, 0);
61
- transition: transform 0.3s $timing;
62
- &:after,
63
- &:before {
64
- background-color: $brand-color-accent;
65
- border-radius: 50%;
66
- content: "";
67
- display: block;
68
- opacity: 0;
69
- position: absolute;
70
- }
71
- &:after {
72
- height: ($font-size * 5);
73
- // position
74
- top: ($font-size * -2);
75
- left: ($font-size * -2);
76
- width: ($font-size * 5);
77
- }
78
- &:before {
79
- height: 100%;
80
- // position
81
- top: 0;
82
- left: 0;
83
- transition: opacity 0.3s $timing;
84
- width: 100%;
85
- }
86
- }
87
-
88
- .checkbox-circle-check {
89
- input[type="checkbox"]:checked ~ & {
90
- transform: scale(0.5, 0.5);
91
- &:after {
92
- animation: circle-check 0.6s;
93
- }
94
- }
95
- fieldset[disabled] &,
96
- input[type="checkbox"][disabled] ~ &,
97
- .checkbox-adv.disabled & {
98
- display: none;
99
- }
100
- }
101
-
102
- .radiobtn-circle-check {
103
- input[type="radio"]:checked ~ & {
104
- transform: scale(0.5, 0.5);
105
- &:after {
106
- animation: circle-check 0.6s;
107
- }
108
- &:before {
109
- opacity: 1;
110
- }
111
- }
112
- fieldset[disabled] &,
113
- input[type="radio"][disabled] ~ &,
114
- .radiobtn-adv.disabled & {
115
- &:after,
116
- &:before {
117
- display: none;
118
- }
119
- }
120
- fieldset[disabled] input[type="radio"]:checked ~ &,
121
- input[type="radio"]:checked[disabled] ~ &,
122
- .radiobtn-adv.disabled input[type="radio"]:checked ~ & {
123
- background-color: $brand-color-accent-light;
124
- }
125
- }
126
-
127
- .checkbox-circle-icon {
128
- background-color: $brand-color-accent;
129
- color: $brand-text-accent;
130
- opacity: 0;
131
- transform: scale(0.5, 0.5);
132
- transition-duration: 0.3s;
133
- transition-property: opacity, transform;
134
- transition-timing-function: $timing;
135
- &:before {
136
- // position
137
- top: auto;
138
- }
139
- input[type="checkbox"]:checked ~ & {
140
- opacity: 1;
141
- transform: scale(1, 1);
142
- }
143
- fieldset[disabled] input[type="checkbox"]:checked ~ &,
144
- input[type="checkbox"]:checked[disabled] ~ &,
145
- .checkbox-adv.disabled input[type="checkbox"]:checked ~ & {
146
- background-color: $brand-color-accent-light;
147
- }
148
- }
149
-
150
- // animation
151
- @keyframes circle-check {
152
- 0% {
153
- opacity: 0;
154
- }
155
- 25% {
156
- opacity: 0.25;
157
- }
158
- 100% {
159
- opacity: 0;
160
- }
161
- }
@@ -1,64 +0,0 @@
1
- .floating-label {
2
- color: $black-hint;
3
- cursor: text;
4
- display: block;
5
- font-size: $font-size;
6
- line-height: 1;
7
- margin: 0;
8
- overflow: hidden;
9
- padding: 0;
10
- position: absolute;
11
- top: (($input-height - $font-size) / 2);
12
- left: 0;
13
- text-overflow: ellipsis;
14
- transform-origin: 0 0;
15
- transition-duration: 0.3s;
16
- transition-property: color, transform;
17
- transition-timing-function: $timing;
18
- white-space: nowrap;
19
- .form-group-label [class*="col-"] & {
20
- // position
21
- left: $grid-gutter;
22
- }
23
- .form-group-label.control-focus &,
24
- .form-group-label.control-highlight & {
25
- transform: scale(($font-size-h6 / $font-size), ($font-size-h6 / $font-size)) translateY(($input-height - $line-height) * -1 - ($input-height - $font-size) / 2);
26
- }
27
- .form-group-label.control-focus & {
28
- color: $link-color;
29
- }
30
- }
31
-
32
- .form-group-label {
33
- margin-top: ($margin-md * 1.5);
34
- margin-bottom: ($margin-md * 1.5);
35
- position: relative;
36
- .form-control {
37
- position: relative;
38
- z-index: 1;
39
- &::placeholder {
40
- color: transparent;
41
- }
42
- }
43
- legend + & {
44
- margin-top: ($margin-md / 2);
45
- }
46
- }
47
-
48
- // colour
49
- @each $color in $palette-list-class {
50
- $i: index($palette-list-class, $color);
51
-
52
- .form-group-label.form-group-#{$color} .floating-label {
53
- color: nth($palette-list-color, $i);
54
- }
55
- }
56
-
57
- .form-icon-label {
58
- cursor: pointer;
59
- display: block;
60
- font-size: $font-size-h4;
61
- line-height: $line-height-h4;
62
- padding: (($input-height - $line-height-h4) / 2) 0;
63
- transition: color 0.15s $timing;
64
- }
@@ -1,96 +0,0 @@
1
- .switch {
2
- position: relative;
3
- &.checkbox,
4
- &.radiobtn {
5
- label {
6
- padding-left: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4 + $grid-gutter / 2);
7
- }
8
- }
9
- }
10
-
11
- .switch-toggle {
12
- background-color: $black-hint;
13
- border-radius: ($font-size-h6 / 2);
14
- cursor: pointer;
15
- display: inline-block;
16
- height: $font-size-h6;
17
- margin-right: ($grid-gutter / 2);
18
- position: relative;
19
- transition: background-color 0.3s $timing;
20
- vertical-align: middle;
21
- width: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4);
22
- &:after,
23
- &:before {
24
- border-radius: 50%;
25
- content: "";
26
- display: block;
27
- height: $font-size-h4;
28
- position: absolute;
29
- top:(($font-size-h4 - $font-size-h6) / -2);
30
- left: 0;
31
- width: $font-size-h4;
32
- }
33
- &:after {
34
- box-shadow: 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1);
35
- opacity: 0;
36
- transition-duration: 0.3s;
37
- transition-property: opacity, transform;
38
- transition-timing-function: $timing;
39
- }
40
- &:active:after {
41
- opacity: 1;
42
- }
43
- &:before {
44
- background-color: $white;
45
- box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);
46
- transition-duration: 0.3s;
47
- transition-property: background-color, transform;
48
- transition-timing-function: $timing;
49
- }
50
- input[type="checkbox"]:checked + &,
51
- input[type="radio"]:checked + & {
52
- background-color: rgba(red($brand-color-accent), green($brand-color-accent), blue($brand-color-accent), 0.5);
53
- &:after,
54
- &:before {
55
- transform: translateX(($font-size * 5 - $font-size-h4) / 4);
56
- }
57
- &:before {
58
- background-color: $brand-color-accent;
59
- }
60
- }
61
- input[type="checkbox"]:checked + &,
62
- input[type="radio"]:checked + & {
63
- &:active:after {
64
- box-shadow: 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color-accent), green($brand-color-accent), blue($brand-color-accent), 0.25);
65
- }
66
- }
67
- .checkbox.switch &,
68
- .radiobtn.switch & {
69
- position: absolute;
70
- top: (($line-height - $font-size-h6) / 2);
71
- left: 0;
72
- }
73
- }
74
-
75
- // colour
76
- @each $color in $palette-list-class {
77
- $i: index($palette-list-class, $color);
78
-
79
- @if $color != "brand-accent" {
80
- .switch-toggle-#{$color} {
81
- input[type="checkbox"]:checked + &,
82
- input[type="radio"]:checked + & {
83
- background-color: rgba(red(nth($palette-list-color, $i)), green(nth($palette-list-color, $i)), blue(nth($palette-list-color, $i)), 0.5);
84
- &:before {
85
- background-color: nth($palette-list-color, $i);
86
- }
87
- }
88
- input[type="checkbox"]:checked + &,
89
- input[type="radio"]:checked + & {
90
- &:active:after {
91
- box-shadow: 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red(nth($palette-list-color, $i)), green(nth($palette-list-color, $i)), blue(nth($palette-list-color, $i)), 0.25);
92
- }
93
- }
94
- }
95
- }
96
- }