@finqu/cool 1.2.29 → 1.3.0

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 (206) hide show
  1. package/README.md +680 -1
  2. package/dist/css/cool.css +23575 -16644
  3. package/dist/css/cool.css.map +1 -154
  4. package/dist/css/cool.min.css +89 -3
  5. package/dist/css/cool.min.css.map +1 -1
  6. package/dist/js/cool.bundle.js +15402 -3800
  7. package/dist/js/cool.bundle.js.map +1 -1
  8. package/dist/js/cool.bundle.min.js +20 -8
  9. package/dist/js/cool.bundle.min.js.map +1 -1
  10. package/dist/js/cool.esm.js +4269 -3360
  11. package/dist/js/cool.esm.js.map +1 -1
  12. package/dist/js/cool.esm.min.js +9 -8
  13. package/dist/js/cool.esm.min.js.map +1 -1
  14. package/dist/js/cool.js +4271 -3362
  15. package/dist/js/cool.js.map +1 -1
  16. package/dist/js/cool.min.js +9 -8
  17. package/dist/js/cool.min.js.map +1 -1
  18. package/package.json +94 -61
  19. package/.babelrc.js +0 -20
  20. package/.browserslistrc +0 -13
  21. package/build/.eslintrc.json +0 -10
  22. package/build/banner.js +0 -14
  23. package/build/build-plugins.js +0 -92
  24. package/build/rollup.config.js +0 -46
  25. package/dist/css/cool-grid.css +0 -4390
  26. package/dist/css/cool-grid.css.map +0 -30
  27. package/dist/css/cool-grid.min.css +0 -7
  28. package/dist/css/cool-grid.min.css.map +0 -1
  29. package/dist/css/cool-reboot.css +0 -286
  30. package/dist/css/cool-reboot.css.map +0 -62
  31. package/dist/css/cool-reboot.min.css +0 -7
  32. package/dist/css/cool-reboot.min.css.map +0 -1
  33. package/html/index.html +0 -2703
  34. package/js/dist/collapse.js +0 -5535
  35. package/js/dist/collapse.js.map +0 -1
  36. package/js/dist/common.js +0 -21996
  37. package/js/dist/common.js.map +0 -1
  38. package/js/dist/cooldropdown.js +0 -467
  39. package/js/dist/cooldropdown.js.map +0 -1
  40. package/js/dist/coolpopover.js +0 -391
  41. package/js/dist/coolpopover.js.map +0 -1
  42. package/js/dist/coolsectiontabs.js +0 -256
  43. package/js/dist/coolsectiontabs.js.map +0 -1
  44. package/js/dist/coolselect.js +0 -796
  45. package/js/dist/coolselect.js.map +0 -1
  46. package/js/dist/cooltooltip.js +0 -360
  47. package/js/dist/cooltooltip.js.map +0 -1
  48. package/js/dist/coolui.js +0 -73
  49. package/js/dist/coolui.js.map +0 -1
  50. package/js/dist/dropdown.js +0 -27421
  51. package/js/dist/dropdown.js.map +0 -1
  52. package/js/dist/popover.js +0 -9472
  53. package/js/dist/popover.js.map +0 -1
  54. package/js/dist/sectiontabs.js +0 -4483
  55. package/js/dist/sectiontabs.js.map +0 -1
  56. package/js/dist/select.js +0 -37080
  57. package/js/dist/select.js.map +0 -1
  58. package/js/dist/tooltip.js +0 -8786
  59. package/js/dist/tooltip.js.map +0 -1
  60. package/js/index.esm.js +0 -21
  61. package/js/index.umd.js +0 -21
  62. package/js/src/abstract-ui-component.js +0 -81
  63. package/js/src/collapse.js +0 -286
  64. package/js/src/common.js +0 -296
  65. package/js/src/dialog.js +0 -579
  66. package/js/src/dropdown.js +0 -525
  67. package/js/src/popover.js +0 -632
  68. package/js/src/section-tabs.js +0 -215
  69. package/js/src/select.js +0 -1342
  70. package/js/src/toast.js +0 -581
  71. package/js/src/tooltip.js +0 -591
  72. package/js/src/util/animate-css.js +0 -22
  73. package/js/src/util/index.js +0 -122
  74. package/js/src/util/perfect-scrollbar.js +0 -1316
  75. package/less/alert.less +0 -345
  76. package/less/badge.less +0 -38
  77. package/less/bootstrap-noconflict.less +0 -23
  78. package/less/bootstrap.less +0 -23
  79. package/less/button-group.less +0 -153
  80. package/less/buttons.less +0 -287
  81. package/less/dialog-noconflict.less +0 -174
  82. package/less/dialog.less +0 -203
  83. package/less/dropdown.less +0 -209
  84. package/less/forms.less +0 -770
  85. package/less/images.less +0 -242
  86. package/less/input-group.less +0 -163
  87. package/less/list-group.less +0 -73
  88. package/less/mixins/aspect-ratio.less +0 -23
  89. package/less/mixins/border-radius.less +0 -24
  90. package/less/mixins/box-shadow.less +0 -4
  91. package/less/mixins/buttons.less +0 -17
  92. package/less/mixins/caret.less +0 -51
  93. package/less/mixins/clearfix.less +0 -10
  94. package/less/mixins/gradients.less +0 -34
  95. package/less/mixins/nav-divider.less +0 -7
  96. package/less/mixins/object-fit.less +0 -13
  97. package/less/mixins/reset-text.less +0 -16
  98. package/less/mixins.less +0 -11
  99. package/less/package.json +0 -11
  100. package/less/pagination.less +0 -69
  101. package/less/popover.less +0 -143
  102. package/less/project.sublime-workspace +0 -774
  103. package/less/reboot.less +0 -235
  104. package/less/section.less +0 -793
  105. package/less/select.less +0 -150
  106. package/less/tables.less +0 -737
  107. package/less/tabs.less +0 -162
  108. package/less/tooltip.less +0 -87
  109. package/less/type.less +0 -71
  110. package/less/utilities/align.less +0 -27
  111. package/less/utilities/animate.less +0 -3512
  112. package/less/utilities/background.less +0 -70
  113. package/less/utilities/borders.less +0 -16
  114. package/less/utilities/color.less +0 -70
  115. package/less/utilities/cursor.less +0 -8
  116. package/less/utilities/display.less +0 -38
  117. package/less/utilities/embed.less +0 -61
  118. package/less/utilities/flex.less +0 -76
  119. package/less/utilities/jquery-ui.less +0 -116
  120. package/less/utilities/lazyload.less +0 -29
  121. package/less/utilities/overflow.less +0 -11
  122. package/less/utilities/pace.less +0 -25
  123. package/less/utilities/placeholder.less +0 -60
  124. package/less/utilities/position.less +0 -42
  125. package/less/utilities/scrollbar.less +0 -152
  126. package/less/utilities/spacing.less +0 -197
  127. package/less/utilities/text.less +0 -68
  128. package/less/utilities/transform.less +0 -7
  129. package/less/utilities.less +0 -21
  130. package/less/variables.less +0 -343
  131. package/scss/LISENCE +0 -15
  132. package/scss/_alert.scss +0 -102
  133. package/scss/_badge.scss +0 -102
  134. package/scss/_button-group.scss +0 -129
  135. package/scss/_buttons.scss +0 -248
  136. package/scss/_custom-forms.scss +0 -444
  137. package/scss/_dialog.scss +0 -160
  138. package/scss/_dropdown.scss +0 -233
  139. package/scss/_forms.scss +0 -258
  140. package/scss/_frame.scss +0 -627
  141. package/scss/_functions.scss +0 -124
  142. package/scss/_grid.scss +0 -35
  143. package/scss/_images.scss +0 -361
  144. package/scss/_input-group.scss +0 -285
  145. package/scss/_list-group.scss +0 -82
  146. package/scss/_mixins.scss +0 -34
  147. package/scss/_navbar.scss +0 -290
  148. package/scss/_notification.scss +0 -13
  149. package/scss/_pagination.scss +0 -88
  150. package/scss/_popover.scss +0 -167
  151. package/scss/_reboot.scss +0 -284
  152. package/scss/_root.scss +0 -15
  153. package/scss/_section.scss +0 -977
  154. package/scss/_select.scss +0 -187
  155. package/scss/_tables.scss +0 -735
  156. package/scss/_tabs.scss +0 -178
  157. package/scss/_toast.scss +0 -182
  158. package/scss/_tooltip.scss +0 -101
  159. package/scss/_type.scss +0 -129
  160. package/scss/_utilities.scss +0 -23
  161. package/scss/_variables.scss +0 -823
  162. package/scss/cool-grid.scss +0 -29
  163. package/scss/cool-reboot.scss +0 -11
  164. package/scss/cool.scss +0 -37
  165. package/scss/mixins/_alert-variant.scss +0 -20
  166. package/scss/mixins/_aspect-ratio.scss +0 -29
  167. package/scss/mixins/_background-variant.scss +0 -25
  168. package/scss/mixins/_badge-variant.scss +0 -36
  169. package/scss/mixins/_breakpoints.scss +0 -102
  170. package/scss/mixins/_buttons.scss +0 -104
  171. package/scss/mixins/_caret.scss +0 -80
  172. package/scss/mixins/_clearfix.scss +0 -10
  173. package/scss/mixins/_float.scss +0 -14
  174. package/scss/mixins/_forms.scss +0 -67
  175. package/scss/mixins/_gradients.scss +0 -40
  176. package/scss/mixins/_grid-framework.scss +0 -72
  177. package/scss/mixins/_grid.scss +0 -60
  178. package/scss/mixins/_nav-divider.scss +0 -9
  179. package/scss/mixins/_notification-variant.scss +0 -7
  180. package/scss/mixins/_object-fit.scss +0 -16
  181. package/scss/mixins/_reset-text.scss +0 -19
  182. package/scss/mixins/_text-emphasis.scss +0 -21
  183. package/scss/mixins/_text-hide.scss +0 -10
  184. package/scss/mixins/_text-truncate.scss +0 -81
  185. package/scss/mixins/_visibility.scss +0 -7
  186. package/scss/project.sublime-workspace +0 -491
  187. package/scss/utilities/_align.scss +0 -41
  188. package/scss/utilities/_animate.scss +0 -3512
  189. package/scss/utilities/_background.scss +0 -14
  190. package/scss/utilities/_borders.scss +0 -146
  191. package/scss/utilities/_clearfix.scss +0 -6
  192. package/scss/utilities/_collapse.scss +0 -33
  193. package/scss/utilities/_cursor.scss +0 -22
  194. package/scss/utilities/_display.scss +0 -16
  195. package/scss/utilities/_embed.scss +0 -78
  196. package/scss/utilities/_flex.scss +0 -52
  197. package/scss/utilities/_lazyload.scss +0 -31
  198. package/scss/utilities/_overflow.scss +0 -6
  199. package/scss/utilities/_perfect-scrollbar.scss +0 -141
  200. package/scss/utilities/_placeholder.scss +0 -77
  201. package/scss/utilities/_position.scss +0 -30
  202. package/scss/utilities/_sizing.scss +0 -32
  203. package/scss/utilities/_spacing.scss +0 -92
  204. package/scss/utilities/_text.scss +0 -99
  205. package/scss/utilities/_user-select.scss +0 -14
  206. package/scss/utilities/_visibility.scss +0 -10
@@ -1,248 +0,0 @@
1
- // Buttons
2
- // ---------------------------------------------------------------------------------------------------------------
3
-
4
- html.dom-ready .btn {
5
- transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
6
- }
7
-
8
- .btn {
9
- display: inline-block;
10
- font-family: $btn-font-family;
11
- font-weight: $btn-font-weight;
12
- line-height: $btn-line-height;
13
- color: $body-color;
14
- position: relative;
15
- border: $btn-border-width solid transparent;
16
- background-color: transparent;
17
- cursor: pointer;
18
- margin: 2px;
19
- text-align: center;
20
- text-decoration: none;
21
- touch-action: manipulation;
22
- user-select: none;
23
- vertical-align: middle;
24
- white-space: nowrap;
25
- box-sizing: border-box;
26
- outline: 0;
27
-
28
- .icon {
29
- pointer-events: none;
30
- }
31
-
32
- > .icon + * {
33
- margin-left: $icon-spacer;
34
- }
35
-
36
- .image,
37
- span {
38
- pointer-events: none;
39
- }
40
-
41
- @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
42
- }
43
-
44
-
45
-
46
- // Button icon
47
- .btn-icon {
48
- display: inline-flex;
49
- width: $btn-icon-height;
50
- height: $btn-icon-height;
51
- color: $icon-color;
52
- text-align: center;
53
- padding-left: 0;
54
- padding-right: 0;
55
- line-height: 0;
56
- justify-content: center;
57
- align-items: center;
58
- flex-shrink: 0;
59
- border-radius: 50%;
60
-
61
- &.btn-sm {
62
- width: $btn-icon-height-sm;
63
- height: $btn-icon-height-sm;
64
- }
65
-
66
- &.btn-lg {
67
- width: $btn-icon-height-lg;
68
- height: $btn-icon-height-lg;
69
- }
70
-
71
- // @include button-outline-variant($border-color: $input-border-color, $color: theme-color('medium'), $hover-background: theme-color('light'), $active-background: theme-color('light'), $enable-shadow: false);
72
- &:hover {
73
- color: theme-color('dark');
74
- }
75
-
76
- &.disabled,
77
- &[disabled] {
78
- &:hover {
79
- color: $icon-color;
80
- }
81
- }
82
-
83
- &:hover:not(.disabled):not([disabled]):not(.disable-hover) {
84
- background-color: transparent;
85
-
86
- &:before {
87
- transform: scale3d(1,1,1);
88
- opacity: 1;
89
- }
90
- }
91
-
92
- &:not(.disabled):not([disabled]):not(.disable-hover) {
93
- background-color: transparent;
94
- transition: opacity 0.5s ease, scale 0.5s ease;
95
-
96
- &:before {
97
- position: absolute;
98
- left: 0;
99
- top: 0;
100
- width: 100%;
101
- height: 100%;
102
- content: '';
103
- transform: scale3d(0,0,0);
104
- transition: all;
105
- transition-duration: 250ms;
106
- background-color: rgba(0,0,0,.1);
107
- border-radius: 50%;
108
- z-index: 0;
109
- opacity: 0;
110
- }
111
- }
112
-
113
- > .icon {
114
- vertical-align: middle;
115
- pointer-events: none;
116
- margin: 0;
117
- }
118
-
119
- .image,
120
- span {
121
- pointer-events: none;
122
- }
123
- }
124
-
125
- .btn-primary {
126
- @include button-variant(theme-color('primary'));
127
- }
128
-
129
- .btn-secondary {
130
- @include button-variant(white, $border: theme-color('primary'), $hover-background: white, $hover-border: theme-color('primary'), $active-background: $grey-50);
131
- }
132
-
133
- .btn-remove {
134
- @include button-variant(theme-color('secondary'), $border: theme-color('secondary'), $color: theme-color('danger'), $hover-color: theme-color('danger'));
135
- }
136
-
137
- .btn-outline-primary {
138
- @include button-outline-variant($border-color: theme-color('primary'));
139
- }
140
-
141
- .btn-outline-secondary {
142
- @include button-outline-variant($border-color: $grey-100, $color: theme-color('dark'), $hover-background: theme-color('light'), $active-background: color('grey'));
143
- }
144
-
145
-
146
- // Button link
147
- .btn-link {
148
- display: inline;
149
- font-family: inherit;
150
- font-weight: $link-font-weight;
151
- font-size: inherit;
152
- padding: 0;
153
- margin: 0;
154
- background: transparent;
155
- color: $link-color;
156
- text-align: left;
157
- line-height: inherit;
158
- border: 0;
159
- cursor: pointer;
160
- outline: 0;
161
-
162
- &:hover,
163
- &.hover,
164
- &:focus
165
- &.focus {
166
- color: $link-hover-color;
167
- background: transparent;
168
- }
169
- }
170
-
171
-
172
- // Button text
173
- .btn-text {
174
- display: inline;
175
- font-family: inherit;
176
- font-weight: inherit;
177
- font-size: inherit;
178
- padding: 0;
179
- margin: 0;
180
- background: transparent;
181
- color: $body-color;
182
- text-align: left;
183
- border: 0;
184
- cursor: pointer;
185
- outline: 0;
186
- }
187
-
188
-
189
- // Button block
190
- .btn-block {
191
- width: 100%;
192
- margin-top: 0;
193
-
194
- + .btn-block {
195
- margin-top: $btn-block-spacing-y;
196
- }
197
- }
198
-
199
- .btn-spinner {
200
- span {
201
- transition: opacity 0.1s ease 0.2s;
202
- }
203
-
204
- .icon {
205
- transition: opacity 0.2s ease;
206
- opacity: 0;
207
- position: absolute;
208
- left: 0;
209
- right: 0;
210
- margin: 0 auto;
211
- font-size: 1.5em;
212
- }
213
-
214
- &.btn-spinner-active {
215
- span {
216
- transition: opacity 0.1s ease;
217
- opacity: 0
218
- }
219
-
220
- .icon {
221
- transition: opacity 0.1s ease 0.1s;
222
- opacity: 1;
223
- }
224
- }
225
- }
226
-
227
- // Button brand
228
- .btn-brand {
229
- font-weight: 500;
230
- span {
231
- position: relative;
232
- z-index: 1;
233
- }
234
- }
235
-
236
-
237
- // Button sizes
238
- .btn-xs {
239
- @include button-size($btn-padding-y-xs, $btn-padding-x-xs, $btn-font-size-xs , $btn-line-height-xs, $btn-border-radius-xs);
240
- }
241
-
242
- .btn-sm {
243
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm , $btn-line-height-sm, $btn-border-radius-sm);
244
- }
245
-
246
- .btn-lg {
247
- @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
248
- }
@@ -1,444 +0,0 @@
1
- // Custom forms
2
- // ---------------------------------------------------------------------------------------------------------------
3
-
4
- // Animations
5
- @keyframes wave {
6
- 50% {transform: scale(.9);}
7
- }
8
-
9
-
10
- $check-color: theme-color('info');
11
- $check-border-color: $grey-200;
12
- $check-border-width: 2px;
13
- $check-radius: 6px;
14
-
15
- // Styled checkbox
16
- .styled-checkbox {
17
- line-height: 0;
18
-
19
- label {
20
- display: inline-flex;
21
- align-items: center;
22
- margin: auto;
23
- user-select: none;
24
- cursor: pointer;
25
-
26
- > span {
27
- display: inline-block;
28
- vertical-align: middle;
29
-
30
- &:first-child {
31
- position: relative;
32
- width: 17px;
33
- height: 17px;
34
- min-width: 17px;
35
- min-height: 17px;
36
- border-radius: $check-radius;
37
- transform: scale(1);
38
- vertical-align: middle;
39
- border: $check-border-width solid $check-border-color;
40
- transition: all .2s ease;
41
-
42
- svg {
43
- position: absolute;
44
- top: 4px;
45
- left: 3px;
46
- fill: none;
47
- stroke: #ffffff;
48
- stroke-width: 2;
49
- stroke-linecap: round;
50
- stroke-linejoin: round;
51
- stroke-dasharray: 16px;
52
- stroke-dashoffset: 16px;
53
- transition: all .3s ease;
54
- transition-delay: .1s;
55
- }
56
-
57
- &:before {
58
- content: '';
59
- width: 100%;
60
- height: 100%;
61
- background: $check-color;
62
- display: block;
63
- transform: scale(0);
64
- opacity: 1;
65
- border-radius: $check-radius;
66
- }
67
- }
68
-
69
- &.checkbox-label {
70
- width: 100%;
71
- padding-left: 8px;
72
- overflow: hidden;
73
- text-overflow: ellipsis;
74
- @include reset-text;
75
- }
76
- }
77
-
78
- &:hover > span:first-child {
79
- border-color: $check-color;
80
- }
81
- }
82
-
83
- input[type="checkbox"] {
84
- display: none;
85
- }
86
-
87
- input[type="checkbox"]:checked + label {
88
- > span {
89
- &:first-child {
90
- background: $check-color;
91
- border-color: $check-color;
92
- animation: wave .4s ease;
93
-
94
- svg {
95
- stroke-dashoffset: 0;
96
- }
97
-
98
- &:before {
99
- transform: scale(3.5);
100
- opacity: 0;
101
- transition: all .6s ease;
102
- }
103
- }
104
- }
105
- }
106
-
107
- input[type="checkbox"]:disabled + label,
108
- input[type="checkbox"].disabled + label {
109
- > span {
110
- &:first-child {
111
- cursor: not-allowed;
112
- background-color: theme-color('light');
113
- border: $check-border-width solid $check-border-color;
114
- opacity: 0.35;
115
- }
116
- }
117
-
118
- &:hover {
119
- > span {
120
- &:first-child {
121
- border: $check-border-width solid $check-border-color;
122
- }
123
- }
124
- }
125
- }
126
- }
127
-
128
-
129
- // Styled radio
130
- .styled-radio {
131
- line-height: 0;
132
-
133
- label {
134
- display: inline-flex;
135
- align-items: center;
136
- margin: auto;
137
- user-select: none;
138
- cursor: pointer;
139
-
140
- > span {
141
- display: inline-block;
142
- vertical-align: middle;
143
-
144
- &:first-child {
145
- position: relative;
146
- width: 17px;
147
- height: 17px;
148
- min-width: 17px;
149
- min-height: 17px;
150
- border-radius: 50%;
151
- transform: scale(1);
152
- vertical-align: middle;
153
- border: $check-border-width solid $check-border-color;
154
- transition: all .2s ease;
155
-
156
- svg {
157
- position: absolute;
158
- top: 4px;
159
- left: 3px;
160
- fill: none;
161
- stroke: #ffffff;
162
- stroke-width: 2;
163
- stroke-linecap: round;
164
- stroke-linejoin: round;
165
- stroke-dasharray: 16px;
166
- stroke-dashoffset: 16px;
167
- transition: all .3s ease;
168
- transition-delay: .1s;
169
- }
170
-
171
- &:before {
172
- content: '';
173
- width: 100%;
174
- height: 100%;
175
- background: $check-color;
176
- display: block;
177
- transform: scale(0);
178
- opacity: 1;
179
- border-radius: 50%;
180
- }
181
- }
182
-
183
- &.radio-label {
184
- width: 100%;
185
- padding-left: 8px;
186
- overflow: hidden;
187
- text-overflow: ellipsis;
188
- @include reset-text;
189
- }
190
- }
191
-
192
- &:hover > span:first-child {
193
- border-color: $check-color;
194
- }
195
- }
196
-
197
- input[type="radio"] {
198
- display: none;
199
- }
200
-
201
- input[type="radio"]:checked + label {
202
- > span {
203
- &:first-child {
204
- background: $check-color;
205
- border-color: $check-color;
206
- animation: wave .4s ease;
207
-
208
- svg {
209
- stroke-dashoffset: 0;
210
- }
211
-
212
- &:before {
213
- transform: scale(3.5);
214
- opacity: 0;
215
- transition: all .6s ease;
216
- }
217
- }
218
- }
219
- }
220
-
221
- input[type="radio"]:disabled + label,
222
- input[type="radio"].disabled + label {
223
- > span {
224
- &:first-child {
225
- cursor: not-allowed;
226
- background-color: theme-color('light');
227
- border: $check-border-width solid $check-border-color;
228
- opacity: 0.35;
229
- }
230
- }
231
-
232
- &:hover {
233
- > span {
234
- &:first-child {
235
- border: $check-border-width solid $check-border-color;
236
- }
237
- }
238
- }
239
- }
240
- }
241
-
242
- $onoffswitch-height: 20px;
243
-
244
- // ON/OFF Switch
245
- .onoffswitch {
246
- display: inline-flex;
247
- vertical-align: middle;
248
- position: relative;
249
- user-select: none;
250
- width: 40px;
251
- margin: 0 auto;
252
-
253
- & + label {
254
- margin-left: 10px;
255
- margin-bottom: 0;
256
- flex-basis: 0;
257
- flex-grow: 1;
258
- }
259
-
260
- .onoffswitch-checkbox {
261
- display: none;
262
- background: color('red');
263
-
264
- &:disabled {
265
- cursor: not-allowed;
266
- pointer-events: none;
267
-
268
- & + .onoffswitch-label {
269
- opacity: 0.4;
270
-
271
- &:hover {
272
- cursor: not-allowed;
273
- }
274
- }
275
- }
276
- }
277
-
278
- .onoffswitch-label {
279
- display: block;
280
- width: 100%;
281
- overflow: hidden;
282
- cursor: pointer;
283
- height: $onoffswitch-height;
284
- padding: 0;
285
- line-height: $onoffswitch-height;
286
- border: 2px solid $grey-600;
287
- border-radius: $onoffswitch-height;
288
- background-color: $grey-600;
289
- margin-bottom: 0;
290
- box-sizing: content-box;
291
- transition: background-color 0.3s ease-in, border-color 0.3s ease-in;
292
-
293
- &:before {
294
- content: '';
295
- display: block;
296
- width: $onoffswitch-height;
297
- height: $onoffswitch-height;
298
- margin: 0px;
299
- background: #ffffff;
300
- position: absolute;
301
- top: 0;
302
- right: 16px;
303
- bottom: 0;
304
- border: 2px solid $grey-600;
305
- border-radius: $onoffswitch-height;
306
- transition: background-color 0.3s ease-in, border-color 0.3s ease-in, right 0.3s ease-in;
307
- box-sizing: content-box;
308
- }
309
- }
310
-
311
- .onoffswitch-checkbox:checked + .onoffswitch-label {
312
- background-color: theme-color('brand');
313
- }
314
-
315
- .onoffswitch-checkbox:checked + .onoffswitch-label,
316
- .onoffswitch-checkbox:checked + .onoffswitch-label:before {
317
- border-color: theme-color('brand');
318
- }
319
-
320
- .onoffswitch-checkbox:checked + .onoffswitch-label:before {
321
- right: 0px;
322
- }
323
- }
324
-
325
-
326
- // Form label gorup
327
- .form-label-group {
328
- position: relative;
329
-
330
- select {
331
- -webkit-appearance: none;
332
-
333
- @-moz-document url-prefix() {
334
- text-indent: -2px;
335
- }
336
- }
337
-
338
- & > input, select, textarea, label,
339
- & > .input-group > label {
340
- padding: $input-padding-y-lg $input-padding-x-lg;
341
- }
342
-
343
- & > label,
344
- & > .input-group > label {
345
- position: absolute;
346
- top: 0;
347
- left: 0;
348
- display: block;
349
- width: 100%;
350
- margin-bottom: 0;
351
- line-height: $input-line-height-lg;
352
- color: $input-placeholder-color;
353
- border: 1px solid transparent;
354
- border-radius: $border-radius;
355
- transition: all .1s ease-in-out;
356
- pointer-events: none;
357
- font-size: $input-font-size-lg;
358
- white-space: nowrap;
359
- text-overflow: ellipsis;
360
- overflow: hidden;
361
- }
362
-
363
- input::-webkit-input-placeholder,
364
- input:-ms-input-placeholder,
365
- input::-ms-input-placeholder,
366
- input::-moz-placeholder,
367
- input::placeholder {
368
- color: transparent;
369
- }
370
-
371
- &:not(.label-on-top) .show-when-label-on-top {
372
- display: none;
373
- }
374
-
375
- &.label-on-top {
376
- input, select, textarea {
377
- padding-top: calc(#{$input-padding-y-lg} + #{$input-padding-y-lg} * (2 / 3));
378
- padding-bottom: calc(#{$input-padding-y-lg} / 3);
379
-
380
- & ~ label {
381
- padding-top: calc(#{$input-padding-y-lg} / 3);
382
- padding-bottom: calc(#{$input-padding-y-lg} / 3);
383
- font-size: $small-font-size;
384
- color: $input-placeholder-color;
385
- }
386
- }
387
- }
388
-
389
- input:-webkit-autofill {
390
- padding-top: calc(#{$input-padding-y-lg} + #{$input-padding-y-lg} * (2 / 3));
391
- padding-bottom: calc(#{$input-padding-y-lg} / 3);
392
-
393
- & ~ label {
394
- padding-top: calc(#{$input-padding-y-lg} / 3);
395
- padding-bottom: calc(#{$input-padding-y-lg} / 3);
396
- font-size: $small-font-size;
397
- color: $input-placeholder-color;
398
- }
399
- }
400
- }
401
-
402
-
403
- // Fake input
404
- .fake-input {
405
- background: $input-bg;
406
- border: 1px solid $border-color;
407
- line-height: $input-line-height;
408
- border-radius: $border-radius;
409
- height: $input-height;
410
- padding: $input-padding-y $input-padding-x;
411
- font-family: inherit;
412
- font-size: $font-size-base;
413
- box-sizing: border-box;
414
- }
415
-
416
-
417
- // Form contorl placeholder
418
- .form-control-placeholder {
419
- display: block;
420
- width: 100%;
421
- height: $input-height;
422
- padding: $input-padding-y $input-padding-x;
423
- font-family: $input-font-family;
424
- font-size: $input-font-size;
425
- line-height: input-line-height;
426
- color: $body-color;
427
- box-sizing: border-box;
428
- &.input-lg {
429
- padding: $input-padding-y-lg $input-padding-x-lg;
430
- font-size: $input-font-size-lg;
431
- height: $input-height-lg;
432
- line-height: $input-line-height-lg;
433
- }
434
- &.input-sm {
435
- padding: $input-padding-y-sm $input-padding-x-sm;
436
- font-size: $input-font-size-sm;
437
- height: $input-height-sm;
438
- line-height: $input-line-height-sm;
439
- }
440
- & + .input-validation {
441
- width: 100%;
442
- flex: 1;
443
- }
444
- }