@finqu/cool 1.2.27 → 1.2.29

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 (74) hide show
  1. package/dist/css/cool-grid.css +703 -17
  2. package/dist/css/cool-grid.css.map +3 -3
  3. package/dist/css/cool-grid.min.css +1 -1
  4. package/dist/css/cool-grid.min.css.map +1 -1
  5. package/dist/css/cool-reboot.css +16 -15
  6. package/dist/css/cool-reboot.css.map +7 -7
  7. package/dist/css/cool-reboot.min.css +1 -1
  8. package/dist/css/cool-reboot.min.css.map +1 -1
  9. package/dist/css/cool.css +2663 -2160
  10. package/dist/css/cool.css.map +30 -30
  11. package/dist/css/cool.min.css +1 -1
  12. package/dist/css/cool.min.css.map +1 -1
  13. package/dist/js/cool.bundle.js +142 -116
  14. package/dist/js/cool.bundle.js.map +1 -1
  15. package/dist/js/cool.bundle.min.js +3 -3
  16. package/dist/js/cool.bundle.min.js.map +1 -1
  17. package/dist/js/cool.esm.js +142 -116
  18. package/dist/js/cool.esm.js.map +1 -1
  19. package/dist/js/cool.esm.min.js +3 -3
  20. package/dist/js/cool.esm.min.js.map +1 -1
  21. package/dist/js/cool.js +142 -116
  22. package/dist/js/cool.js.map +1 -1
  23. package/dist/js/cool.min.js +3 -3
  24. package/dist/js/cool.min.js.map +1 -1
  25. package/html/index.html +41 -42
  26. package/js/dist/collapse.js +912 -667
  27. package/js/dist/collapse.js.map +1 -1
  28. package/js/dist/common.js +1211 -1367
  29. package/js/dist/common.js.map +1 -1
  30. package/js/dist/dropdown.js +2 -2
  31. package/js/dist/popover.js +1784 -1610
  32. package/js/dist/popover.js.map +1 -1
  33. package/js/dist/sectiontabs.js +2 -2
  34. package/js/dist/select.js +3330 -3302
  35. package/js/dist/select.js.map +1 -1
  36. package/js/dist/tooltip.js +1708 -1594
  37. package/js/dist/tooltip.js.map +1 -1
  38. package/js/src/collapse.js +44 -30
  39. package/js/src/common.js +60 -77
  40. package/js/src/dialog.js +3 -2
  41. package/js/src/popover.js +15 -4
  42. package/js/src/select.js +7 -6
  43. package/js/src/tooltip.js +15 -9
  44. package/package.json +1 -1
  45. package/scss/_alert.scss +26 -30
  46. package/scss/_badge.scss +44 -13
  47. package/scss/_buttons.scss +60 -19
  48. package/scss/_custom-forms.scss +51 -36
  49. package/scss/_dialog.scss +15 -16
  50. package/scss/_dropdown.scss +2 -0
  51. package/scss/_forms.scss +2 -1
  52. package/scss/_frame.scss +310 -231
  53. package/scss/_functions.scss +1 -1
  54. package/scss/_images.scss +51 -52
  55. package/scss/_input-group.scss +35 -21
  56. package/scss/_navbar.scss +30 -4
  57. package/scss/_pagination.scss +25 -16
  58. package/scss/_popover.scss +3 -1
  59. package/scss/_reboot.scss +5 -4
  60. package/scss/_root.scss +3 -3
  61. package/scss/_section.scss +162 -97
  62. package/scss/_select.scss +12 -0
  63. package/scss/_tables.scss +55 -36
  64. package/scss/_tabs.scss +29 -26
  65. package/scss/_type.scss +9 -1
  66. package/scss/_variables.scss +376 -252
  67. package/scss/mixins/_alert-variant.scss +6 -11
  68. package/scss/mixins/_badge-variant.scss +2 -2
  69. package/scss/mixins/_gradients.scss +5 -5
  70. package/scss/utilities/_background.scss +3 -3
  71. package/scss/utilities/_borders.scss +5 -5
  72. package/scss/utilities/_placeholder.scss +6 -5
  73. package/scss/utilities/_text.scss +3 -3
  74. package/html/dropdown-test.html +0 -200
@@ -7,6 +7,11 @@
7
7
  }
8
8
 
9
9
 
10
+ $check-color: theme-color('info');
11
+ $check-border-color: $grey-200;
12
+ $check-border-width: 2px;
13
+ $check-radius: 6px;
14
+
10
15
  // Styled checkbox
11
16
  .styled-checkbox {
12
17
  line-height: 0;
@@ -28,10 +33,10 @@
28
33
  height: 17px;
29
34
  min-width: 17px;
30
35
  min-height: 17px;
31
- border-radius: $border-radius;
36
+ border-radius: $check-radius;
32
37
  transform: scale(1);
33
38
  vertical-align: middle;
34
- border: 1px solid #9098A9;
39
+ border: $check-border-width solid $check-border-color;
35
40
  transition: all .2s ease;
36
41
 
37
42
  svg {
@@ -39,7 +44,7 @@
39
44
  top: 4px;
40
45
  left: 3px;
41
46
  fill: none;
42
- stroke: color('white');
47
+ stroke: #ffffff;
43
48
  stroke-width: 2;
44
49
  stroke-linecap: round;
45
50
  stroke-linejoin: round;
@@ -53,11 +58,11 @@
53
58
  content: '';
54
59
  width: 100%;
55
60
  height: 100%;
56
- background: color('blue');
61
+ background: $check-color;
57
62
  display: block;
58
63
  transform: scale(0);
59
64
  opacity: 1;
60
- border-radius: 50%;
65
+ border-radius: $check-radius;
61
66
  }
62
67
  }
63
68
 
@@ -71,7 +76,7 @@
71
76
  }
72
77
 
73
78
  &:hover > span:first-child {
74
- border-color: color('blue');
79
+ border-color: $check-color;
75
80
  }
76
81
  }
77
82
 
@@ -82,8 +87,8 @@
82
87
  input[type="checkbox"]:checked + label {
83
88
  > span {
84
89
  &:first-child {
85
- background: color('blue');
86
- border-color: color('blue');
90
+ background: $check-color;
91
+ border-color: $check-color;
87
92
  animation: wave .4s ease;
88
93
 
89
94
  svg {
@@ -104,8 +109,8 @@
104
109
  > span {
105
110
  &:first-child {
106
111
  cursor: not-allowed;
107
- background-color: color('grey-lightest');
108
- border: 1px solid #9098A9;
112
+ background-color: theme-color('light');
113
+ border: $check-border-width solid $check-border-color;
109
114
  opacity: 0.35;
110
115
  }
111
116
  }
@@ -113,7 +118,7 @@
113
118
  &:hover {
114
119
  > span {
115
120
  &:first-child {
116
- border: 1px solid #9098A9;
121
+ border: $check-border-width solid $check-border-color;
117
122
  }
118
123
  }
119
124
  }
@@ -145,7 +150,7 @@
145
150
  border-radius: 50%;
146
151
  transform: scale(1);
147
152
  vertical-align: middle;
148
- border: 1px solid #9098A9;
153
+ border: $check-border-width solid $check-border-color;
149
154
  transition: all .2s ease;
150
155
 
151
156
  svg {
@@ -153,7 +158,7 @@
153
158
  top: 4px;
154
159
  left: 3px;
155
160
  fill: none;
156
- stroke: color('white');
161
+ stroke: #ffffff;
157
162
  stroke-width: 2;
158
163
  stroke-linecap: round;
159
164
  stroke-linejoin: round;
@@ -167,7 +172,7 @@
167
172
  content: '';
168
173
  width: 100%;
169
174
  height: 100%;
170
- background: color('blue');
175
+ background: $check-color;
171
176
  display: block;
172
177
  transform: scale(0);
173
178
  opacity: 1;
@@ -185,7 +190,7 @@
185
190
  }
186
191
 
187
192
  &:hover > span:first-child {
188
- border-color: color('blue');
193
+ border-color: $check-color;
189
194
  }
190
195
  }
191
196
 
@@ -196,8 +201,8 @@
196
201
  input[type="radio"]:checked + label {
197
202
  > span {
198
203
  &:first-child {
199
- background: color('blue');
200
- border-color: color('blue');
204
+ background: $check-color;
205
+ border-color: $check-color;
201
206
  animation: wave .4s ease;
202
207
 
203
208
  svg {
@@ -218,8 +223,8 @@
218
223
  > span {
219
224
  &:first-child {
220
225
  cursor: not-allowed;
221
- background-color: color('grey-lightest');
222
- border: 1px solid #9098A9;
226
+ background-color: theme-color('light');
227
+ border: $check-border-width solid $check-border-color;
223
228
  opacity: 0.35;
224
229
  }
225
230
  }
@@ -227,13 +232,14 @@
227
232
  &:hover {
228
233
  > span {
229
234
  &:first-child {
230
- border: 1px solid #9098A9;
235
+ border: $check-border-width solid $check-border-color;
231
236
  }
232
237
  }
233
238
  }
234
239
  }
235
240
  }
236
241
 
242
+ $onoffswitch-height: 20px;
237
243
 
238
244
  // ON/OFF Switch
239
245
  .onoffswitch {
@@ -241,7 +247,7 @@
241
247
  vertical-align: middle;
242
248
  position: relative;
243
249
  user-select: none;
244
- width: 35px;
250
+ width: 40px;
245
251
  margin: 0 auto;
246
252
 
247
253
  & + label {
@@ -274,12 +280,12 @@
274
280
  width: 100%;
275
281
  overflow: hidden;
276
282
  cursor: pointer;
277
- height: 15px;
283
+ height: $onoffswitch-height;
278
284
  padding: 0;
279
- line-height: 15px;
280
- border: 2px solid #79868C;
281
- border-radius: 15px;
282
- background-color: #79868C;
285
+ line-height: $onoffswitch-height;
286
+ border: 2px solid $grey-600;
287
+ border-radius: $onoffswitch-height;
288
+ background-color: $grey-600;
283
289
  margin-bottom: 0;
284
290
  box-sizing: content-box;
285
291
  transition: background-color 0.3s ease-in, border-color 0.3s ease-in;
@@ -287,28 +293,28 @@
287
293
  &:before {
288
294
  content: '';
289
295
  display: block;
290
- width: 15px;
291
- height: 15px;
296
+ width: $onoffswitch-height;
297
+ height: $onoffswitch-height;
292
298
  margin: 0px;
293
- background: color('white');
299
+ background: #ffffff;
294
300
  position: absolute;
295
301
  top: 0;
296
302
  right: 16px;
297
303
  bottom: 0;
298
- border: 2px solid #79868C;
299
- border-radius: 15px;
304
+ border: 2px solid $grey-600;
305
+ border-radius: $onoffswitch-height;
300
306
  transition: background-color 0.3s ease-in, border-color 0.3s ease-in, right 0.3s ease-in;
301
307
  box-sizing: content-box;
302
308
  }
303
309
  }
304
310
 
305
311
  .onoffswitch-checkbox:checked + .onoffswitch-label {
306
- background-color: color('green');
312
+ background-color: theme-color('brand');
307
313
  }
308
314
 
309
315
  .onoffswitch-checkbox:checked + .onoffswitch-label,
310
316
  .onoffswitch-checkbox:checked + .onoffswitch-label:before {
311
- border-color: color('green');
317
+ border-color: theme-color('brand');
312
318
  }
313
319
 
314
320
  .onoffswitch-checkbox:checked + .onoffswitch-label:before {
@@ -329,11 +335,13 @@
329
335
  }
330
336
  }
331
337
 
332
- & > input, select, textarea, label {
338
+ & > input, select, textarea, label,
339
+ & > .input-group > label {
333
340
  padding: $input-padding-y-lg $input-padding-x-lg;
334
341
  }
335
342
 
336
- & > label {
343
+ & > label,
344
+ & > .input-group > label {
337
345
  position: absolute;
338
346
  top: 0;
339
347
  left: 0;
@@ -347,6 +355,9 @@
347
355
  transition: all .1s ease-in-out;
348
356
  pointer-events: none;
349
357
  font-size: $input-font-size-lg;
358
+ white-space: nowrap;
359
+ text-overflow: ellipsis;
360
+ overflow: hidden;
350
361
  }
351
362
 
352
363
  input::-webkit-input-placeholder,
@@ -357,6 +368,10 @@
357
368
  color: transparent;
358
369
  }
359
370
 
371
+ &:not(.label-on-top) .show-when-label-on-top {
372
+ display: none;
373
+ }
374
+
360
375
  &.label-on-top {
361
376
  input, select, textarea {
362
377
  padding-top: calc(#{$input-padding-y-lg} + #{$input-padding-y-lg} * (2 / 3));
@@ -387,7 +402,7 @@
387
402
 
388
403
  // Fake input
389
404
  .fake-input {
390
- background: color('grey-lighter');
405
+ background: $input-bg;
391
406
  border: 1px solid $border-color;
392
407
  line-height: $input-line-height;
393
408
  border-radius: $border-radius;
package/scss/_dialog.scss CHANGED
@@ -31,7 +31,7 @@
31
31
  text-align: left;
32
32
  border: none;
33
33
  border-radius: $border-radius;
34
- background-color: color('white');
34
+ background-color: #ffffff;
35
35
  background-clip: padding-box;
36
36
  outline: 0;
37
37
  overflow: auto;
@@ -41,15 +41,14 @@
41
41
  display: flex;
42
42
  align-items: flex-start;
43
43
  justify-content: space-between;
44
- padding: 12px 16px;
45
- border-bottom: 1px solid $border-color;
46
- @include media-breakpoint-down(md) {
47
- padding: 10px;
48
- }
44
+ padding: $dialog-padding-y $dialog-padding-x;
45
+ border-bottom: $dialog-border-width solid $border-color;
49
46
 
50
47
  .dialog-title {
51
48
  font-size: 20px;
52
49
  width: 100%;
50
+ font-family: $dialog-title-font-family;
51
+ font-weight: $dialog-title-font-weight;
53
52
  @include text-truncate;
54
53
  }
55
54
 
@@ -58,7 +57,7 @@
58
57
  background-color: transparent;
59
58
  border: 0;
60
59
  opacity: 0.75;
61
- color: color('blue-grey');
60
+ color: $body-color;
62
61
 
63
62
  &:hover,
64
63
  &:focus {
@@ -71,23 +70,23 @@
71
70
  .dialog-body {
72
71
  position: relative;
73
72
  flex: 1 1 auto;
74
- padding: 16px;
73
+ padding: $dialog-padding-y $dialog-padding-x;
75
74
  overflow-y: auto;
76
75
 
77
76
  .content-full-width {
78
- margin-left: -16px;
79
- margin-right: -16px;
77
+ margin-left: -$dialog-padding-x;
78
+ margin-right: -$dialog-padding-x;
80
79
  }
81
80
  }
82
81
 
83
82
  .dialog-footer {
84
83
  display: flex;
85
84
  align-items: center;
86
- justify-content: flex-end;
87
- padding: 12px 16px;
88
- border-top: 1px solid $border-color;
89
- @include media-breakpoint-down(md) {
90
- padding: 10px;
85
+ padding: $dialog-padding-y $dialog-padding-x;
86
+ border-top: $dialog-border-width solid $border-color;
87
+
88
+ .spacer {
89
+ flex: 1;
91
90
  }
92
91
  }
93
92
  }
@@ -135,7 +134,7 @@
135
134
  left: 0;
136
135
  right: 0;
137
136
  opacity: 0;
138
- background-color: color('black');
137
+ background-color: #000000;
139
138
  z-index: $zindex-dialog;
140
139
  backface-visibility: hidden;
141
140
  transition: opacity 0.1s;
@@ -45,6 +45,7 @@
45
45
  overflow: hidden;
46
46
  box-shadow: $dropdown-box-shadow;
47
47
  border-radius: $dropdown-border-radius;
48
+ font-family: $font-family-sans-serif;
48
49
 
49
50
  // IE11 fix for flexboxes
50
51
  @media all and (-ms-high-contrast:none) {
@@ -131,6 +132,7 @@
131
132
  border: 0;
132
133
  box-sizing: border-box;
133
134
  appearance: none;
135
+ font-family: $font-family-sans-serif;
134
136
 
135
137
  &:hover,
136
138
  &:focus {
package/scss/_forms.scss CHANGED
@@ -38,6 +38,7 @@ html.dom-ready .form-control {
38
38
  &[readonly] {
39
39
  background-color: $input-disabled-bg;
40
40
  opacity: 1;
41
+ color: $input-disabled-color;
41
42
  }
42
43
  }
43
44
 
@@ -163,7 +164,7 @@ textarea.form-control {
163
164
  margin-left: -$form-check-input-gutter;
164
165
 
165
166
  &:disabled ~ .form-check-label {
166
- color: color('grey-dark')
167
+ color: theme-color('medium')
167
168
  }
168
169
  }
169
170