@finqu/cool 1.3.0 → 2.0.2
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.
- package/README.md +23 -9
- package/dist/css/cool.css +13391 -7742
- package/dist/css/cool.css.map +1 -1
- package/dist/css/cool.min.css +2 -93
- package/dist/css/cool.min.css.map +1 -1
- package/dist/js/cool.bundle.js +16051 -17050
- package/dist/js/cool.bundle.js.map +1 -1
- package/dist/js/cool.bundle.min.js +11 -18
- package/dist/js/cool.bundle.min.js.map +1 -1
- package/dist/js/cool.esm.js +3469 -4468
- package/dist/js/cool.esm.js.map +1 -1
- package/dist/js/cool.esm.min.js +2 -8
- package/dist/js/cool.esm.min.js.map +1 -1
- package/dist/js/cool.js +5083 -6089
- package/dist/js/cool.js.map +1 -1
- package/dist/js/cool.min.js +2 -8
- package/dist/js/cool.min.js.map +1 -1
- package/package.json +48 -16
- package/scss/LISENCE +15 -0
- package/scss/_badge.scss +134 -0
- package/scss/_button-group.scss +80 -0
- package/scss/_buttons.scss +304 -0
- package/scss/_dark.scss +637 -0
- package/scss/_dialog.scss +351 -0
- package/scss/_dropdown.scss +165 -0
- package/scss/_forms.scss +613 -0
- package/scss/_frame.scss +948 -0
- package/scss/_grid.scss +215 -0
- package/scss/_input-group.scss +326 -0
- package/scss/_list-group.scss +127 -0
- package/scss/_media.scss +439 -0
- package/scss/_navbar.scss +122 -0
- package/scss/_notification.scss +115 -0
- package/scss/_pagination.scss +82 -0
- package/scss/_popover.scss +61 -0
- package/scss/_reboot.scss +306 -0
- package/scss/_root.scss +848 -0
- package/scss/_section.scss +735 -0
- package/scss/_select.scss +559 -0
- package/scss/_tables.scss +611 -0
- package/scss/_tabs.scss +50 -0
- package/scss/_toast.scss +277 -0
- package/scss/_tooltip.scss +130 -0
- package/scss/_typography.scss +166 -0
- package/scss/_variables.scss +1229 -0
- package/scss/cool.scss +69 -0
- package/scss/utilities/_align.scss +51 -0
- package/scss/utilities/_animation.scss +165 -0
- package/scss/utilities/_background.scss +72 -0
- package/scss/utilities/_borders.scss +205 -0
- package/scss/utilities/_collapse.scss +28 -0
- package/scss/utilities/_cursor.scss +160 -0
- package/scss/utilities/_display.scss +116 -0
- package/scss/utilities/_embed.scss +89 -0
- package/scss/utilities/_fill.scss +79 -0
- package/scss/utilities/_filters.scss +233 -0
- package/scss/utilities/_flex.scss +216 -0
- package/scss/utilities/_grid.scss +136 -0
- package/scss/utilities/_opacity.scss +131 -0
- package/scss/utilities/_overflow.scss +242 -0
- package/scss/utilities/_perfect-scrollbar.scss +147 -0
- package/scss/utilities/_pointer-events.scss +125 -0
- package/scss/utilities/_position.scss +130 -0
- package/scss/utilities/_screen-readers.scss +95 -0
- package/scss/utilities/_shadows.scss +195 -0
- package/scss/utilities/_sizing.scss +288 -0
- package/scss/utilities/_spacing.scss +168 -0
- package/scss/utilities/_stroke.scss +124 -0
- package/scss/utilities/_text.scss +420 -0
- package/scss/utilities/_transform.scss +232 -0
- package/scss/utilities/_transitions.scss +147 -0
- package/scss/utilities/_user-select.scss +93 -0
- package/scss/utilities/_visibility.scss +66 -0
- package/scss/utilities/_z-index.scss +169 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@use "variables" as *;
|
|
2
|
+
/* Pagination ========================================================================== */
|
|
3
|
+
|
|
4
|
+
@mixin cool-pagination {
|
|
5
|
+
.pagination {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
list-style: none;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
font-family: var(--cool-pagination-font-family);
|
|
14
|
+
font-weight: var(--cool-pagination-font-weight);
|
|
15
|
+
gap: var(--cool-spacing-1);
|
|
16
|
+
|
|
17
|
+
.page-item {
|
|
18
|
+
position: relative;
|
|
19
|
+
outline: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
|
|
22
|
+
&:after {
|
|
23
|
+
content: " ";
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 2px;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.active {
|
|
31
|
+
.page-link {
|
|
32
|
+
z-index: 2;
|
|
33
|
+
color: var(--cool-pagination-active-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:after {
|
|
37
|
+
background-color: var(--cool-pagination-active-color);
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.disabled {
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
|
|
45
|
+
.page-link {
|
|
46
|
+
color: var(--cool-pagination-disabled-color);
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:not(.active):not(.disabled) {
|
|
52
|
+
.page-link {
|
|
53
|
+
&:focus,
|
|
54
|
+
&:hover {
|
|
55
|
+
color: var(--cool-pagination-hover-color);
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover:after {
|
|
61
|
+
background-color: var(--cool-pagination-color);
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.page-link {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: block;
|
|
69
|
+
padding: var(--cool-pagination-padding-y) var(--cool-pagination-padding-x);
|
|
70
|
+
color: var(--cool-pagination-color);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if $cool-use-component-layer {
|
|
77
|
+
@layer components {
|
|
78
|
+
@include cool-pagination;
|
|
79
|
+
}
|
|
80
|
+
} @else {
|
|
81
|
+
@include cool-pagination;
|
|
82
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "variables" as *;
|
|
2
|
+
/* Popover ========================================================================== */
|
|
3
|
+
|
|
4
|
+
@mixin cool-popover {
|
|
5
|
+
.popover {
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
z-index: var(--cool-zindex-popover);
|
|
10
|
+
display: block;
|
|
11
|
+
max-width: var(--cool-popover-max-width);
|
|
12
|
+
font-size: var(--cool-popover-font-size);
|
|
13
|
+
word-wrap: break-word;
|
|
14
|
+
background-color: var(--cool-popover-bg);
|
|
15
|
+
background-clip: padding-box;
|
|
16
|
+
border: var(--cool-popover-border-width) solid var(--cool-popover-border-color);
|
|
17
|
+
border-radius: var(--cool-popover-border-radius);
|
|
18
|
+
box-shadow: var(--cool-popover-box-shadow);
|
|
19
|
+
font-family: var(--cool-font-family-base);
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: var(--cool-font-weight-base);
|
|
22
|
+
line-height: var(--cool-line-height-base);
|
|
23
|
+
text-align: start;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
text-shadow: none;
|
|
26
|
+
text-transform: none;
|
|
27
|
+
letter-spacing: normal;
|
|
28
|
+
word-break: normal;
|
|
29
|
+
word-spacing: normal;
|
|
30
|
+
white-space: normal;
|
|
31
|
+
line-break: auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.popover-header {
|
|
35
|
+
padding: var(--cool-popover-header-padding-y) var(--cool-popover-header-padding-x);
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
font-size: var(--cool-font-size-base);
|
|
39
|
+
color: var(--cool-popover-header-color);
|
|
40
|
+
background-color: var(--cool-popover-header-bg);
|
|
41
|
+
border-top-left-radius: calc(var(--cool-border-radius) - var(--cool-popover-border-width));
|
|
42
|
+
border-top-right-radius: calc(var(--cool-border-radius) - var(--cool-popover-border-width));
|
|
43
|
+
|
|
44
|
+
&:empty {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.popover-body {
|
|
50
|
+
padding: var(--cool-popover-body-padding-y) var(--cool-popover-body-padding-x);
|
|
51
|
+
color: var(--cool-popover-body-color);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@if $cool-use-component-layer {
|
|
56
|
+
@layer components {
|
|
57
|
+
@include cool-popover;
|
|
58
|
+
}
|
|
59
|
+
} @else {
|
|
60
|
+
@include cool-popover;
|
|
61
|
+
}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/* Reboot ========================================================================== */
|
|
2
|
+
@layer reset {
|
|
3
|
+
*,
|
|
4
|
+
*::before,
|
|
5
|
+
*::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
font-family: sans-serif;
|
|
11
|
+
line-height: 1.15;
|
|
12
|
+
-webkit-text-size-adjust: 100%;
|
|
13
|
+
-ms-text-size-adjust: 100%;
|
|
14
|
+
-ms-overflow-style: scrollbar;
|
|
15
|
+
-webkit-tap-highlight-color: rgba(#000000, 0);
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
/** for rem units */
|
|
18
|
+
font-size: var(--cool-font-size-base);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
margin: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
font-family: var(--cool-font-family-base);
|
|
25
|
+
font-size: var(--cool-font-size-base);
|
|
26
|
+
font-weight: var(--cool-font-weight-base);
|
|
27
|
+
line-height: var(--cool-line-height-base);
|
|
28
|
+
color: var(--cool-body-color);
|
|
29
|
+
text-align: left;
|
|
30
|
+
background-color: var(--cool-body-bg);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
article,
|
|
34
|
+
aside,
|
|
35
|
+
figcaption,
|
|
36
|
+
figure,
|
|
37
|
+
footer,
|
|
38
|
+
header,
|
|
39
|
+
hgroup,
|
|
40
|
+
main,
|
|
41
|
+
nav,
|
|
42
|
+
section {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
button,
|
|
47
|
+
input,
|
|
48
|
+
optgroup,
|
|
49
|
+
select,
|
|
50
|
+
textarea {
|
|
51
|
+
margin: 0;
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
font-size: inherit;
|
|
54
|
+
line-height: inherit;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
hr {
|
|
58
|
+
box-sizing: content-box;
|
|
59
|
+
height: 0;
|
|
60
|
+
overflow: visible;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
button {
|
|
64
|
+
border-radius: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
button,
|
|
68
|
+
input {
|
|
69
|
+
overflow: visible;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
button,
|
|
73
|
+
select {
|
|
74
|
+
text-transform: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
select {
|
|
78
|
+
word-wrap: normal;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
img {
|
|
82
|
+
vertical-align: middle;
|
|
83
|
+
border-style: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
svg {
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
progress {
|
|
92
|
+
vertical-align: baseline;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
abbr[title],
|
|
96
|
+
abbr[data-original-title] {
|
|
97
|
+
text-decoration: underline;
|
|
98
|
+
text-decoration: underline dotted;
|
|
99
|
+
cursor: help;
|
|
100
|
+
border-bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
address {
|
|
104
|
+
margin-bottom: 16px;
|
|
105
|
+
font-style: normal;
|
|
106
|
+
line-height: inherit;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
ol,
|
|
110
|
+
ul,
|
|
111
|
+
dl {
|
|
112
|
+
margin-top: 0;
|
|
113
|
+
margin-bottom: 16px;
|
|
114
|
+
padding-inline-start: 1em;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ol ol,
|
|
118
|
+
ul ul,
|
|
119
|
+
ol ul,
|
|
120
|
+
ul ol {
|
|
121
|
+
margin-bottom: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
dt {
|
|
125
|
+
font-weight: var(--cool-font-weight-normal);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
dd {
|
|
129
|
+
margin-bottom: 8px;
|
|
130
|
+
margin-left: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
blockquote {
|
|
134
|
+
margin: 0 0 16px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
dfn {
|
|
138
|
+
font-style: italic;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[tabindex="-1"]:focus {
|
|
142
|
+
outline: 0 !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
button,
|
|
146
|
+
html [type="button"],
|
|
147
|
+
[type="reset"],
|
|
148
|
+
[type="submit"] {
|
|
149
|
+
-webkit-appearance: button;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
button,
|
|
153
|
+
[type="button"],
|
|
154
|
+
[type="reset"],
|
|
155
|
+
[type="submit"] {
|
|
156
|
+
&:not(:disabled):not(.disabled) {
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
button::-moz-focus-inner,
|
|
162
|
+
[type="button"]::-moz-focus-inner,
|
|
163
|
+
[type="reset"]::-moz-focus-inner,
|
|
164
|
+
[type="submit"]::-moz-focus-inner {
|
|
165
|
+
border-style: none;
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
button:-moz-focusring,
|
|
170
|
+
[type="button"]:-moz-focusring,
|
|
171
|
+
[type="reset"]:-moz-focusring,
|
|
172
|
+
[type="submit"]:-moz-focusring {
|
|
173
|
+
outline: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
textarea {
|
|
177
|
+
overflow: auto;
|
|
178
|
+
resize: vertical;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[type="checkbox"],
|
|
182
|
+
[type="radio"] {
|
|
183
|
+
box-sizing: border-box;
|
|
184
|
+
padding: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
188
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
189
|
+
height: auto;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[type="search"] {
|
|
193
|
+
-webkit-appearance: textfield;
|
|
194
|
+
outline-offset: -2px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[type="search"]::-webkit-search-cancel-button,
|
|
198
|
+
[type="search"]::-webkit-search-decoration {
|
|
199
|
+
-webkit-appearance: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
::-webkit-file-upload-button {
|
|
203
|
+
-webkit-appearance: button;
|
|
204
|
+
font: inherit;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[type="checkbox"] {
|
|
208
|
+
margin-right: 5px;
|
|
209
|
+
vertical-align: top;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
input[type="date"],
|
|
213
|
+
input[type="time"],
|
|
214
|
+
input[type="datetime-local"],
|
|
215
|
+
input[type="month"] {
|
|
216
|
+
-webkit-appearance: listbox;
|
|
217
|
+
|
|
218
|
+
@supports (-webkit-touch-callout: none) {
|
|
219
|
+
min-width: intrinsic;
|
|
220
|
+
max-height: intrinsic;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&::-webkit-date-and-time-value {
|
|
224
|
+
font-family: var(--cool-input-font-family);
|
|
225
|
+
font-size: var(--cool-input-font-size);
|
|
226
|
+
font-weight: var(--cool-input-font-weight);
|
|
227
|
+
line-height: var(--cool-input-line-height);
|
|
228
|
+
padding: var(--cool-input-padding-y) var(--cool-input-padding-x);
|
|
229
|
+
text-align: left;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
fieldset,
|
|
234
|
+
.fieldset {
|
|
235
|
+
background: var(--cool-body-bg);
|
|
236
|
+
border: 1px solid var(--cool-border-color);
|
|
237
|
+
border-radius: var(--cool-border-radius);
|
|
238
|
+
padding: 10px 15px;
|
|
239
|
+
box-sizing: border-box;
|
|
240
|
+
margin: 0;
|
|
241
|
+
|
|
242
|
+
legend {
|
|
243
|
+
font-size: 12px;
|
|
244
|
+
color: var(--cool-theme-color-medium);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[hidden] {
|
|
249
|
+
display: none !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
a {
|
|
253
|
+
color: var(--cool-link-color);
|
|
254
|
+
text-decoration: var(--cool-link-text-decoration);
|
|
255
|
+
background-color: transparent;
|
|
256
|
+
-webkit-text-decoration-skip: objects;
|
|
257
|
+
|
|
258
|
+
&:hover {
|
|
259
|
+
color: var(--cool-link-hover-color);
|
|
260
|
+
|
|
261
|
+
&:not([class]) {
|
|
262
|
+
text-decoration: var(--cool-link-hover-text-decoration);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
a:not([href]):not([tabindex]) {
|
|
268
|
+
text-decoration: none;
|
|
269
|
+
|
|
270
|
+
&:hover,
|
|
271
|
+
&:focus {
|
|
272
|
+
color: inherit;
|
|
273
|
+
text-decoration: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:focus {
|
|
277
|
+
outline: 0;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
p {
|
|
282
|
+
margin: 0 0 calc(var(--cool-line-height-computed));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
code {
|
|
286
|
+
font-family: var(--cool-font-family-monospace);
|
|
287
|
+
font-size: 80%;
|
|
288
|
+
font-weight: var(--cool-font-weight-bolder);
|
|
289
|
+
color: var(--cool-theme-color-brand);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
strong,
|
|
293
|
+
b {
|
|
294
|
+
font-weight: var(--cool-font-weight-bolder);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
label {
|
|
298
|
+
display: inline-block;
|
|
299
|
+
font-size: var(--cool-label-font-size);
|
|
300
|
+
margin-bottom: var(--cool-label-margin-bottom);
|
|
301
|
+
|
|
302
|
+
&[for] {
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|