@esportsplus/ui 0.1.8 → 0.2.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/.editorconfig +9 -9
- package/.gitattributes +2 -2
- package/.github/dependabot.yml +23 -0
- package/.github/workflows/bump.yml +7 -0
- package/.github/workflows/publish.yml +14 -0
- package/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +34 -36
- package/build/components/export/clipboard.js +1 -3
- package/build/components/export/index.js +3 -8
- package/build/components/export/json.js +1 -3
- package/build/components/field/checkbox.d.ts +1 -1
- package/build/components/field/checkbox.js +32 -37
- package/build/components/field/description.d.ts +1 -1
- package/build/components/field/description.js +4 -6
- package/build/components/field/error.d.ts +1 -1
- package/build/components/field/error.js +4 -6
- package/build/components/field/file.d.ts +1 -1
- package/build/components/field/file.js +36 -41
- package/build/components/field/index.d.ts +8 -8
- package/build/components/field/index.js +8 -13
- package/build/components/field/optional.d.ts +2 -2
- package/build/components/field/optional.js +8 -13
- package/build/components/field/select.d.ts +1 -1
- package/build/components/field/select.js +65 -70
- package/build/components/field/switch.d.ts +1 -1
- package/build/components/field/switch.js +3 -8
- package/build/components/field/text.d.ts +1 -1
- package/build/components/field/text.js +37 -42
- package/build/components/field/textarea.d.ts +1 -1
- package/build/components/field/textarea.js +3 -8
- package/build/components/field/title.d.ts +1 -1
- package/build/components/field/title.js +14 -19
- package/build/components/form/action.js +7 -13
- package/build/components/form/index.d.ts +1 -1
- package/build/components/form/index.js +4 -9
- package/build/components/form/input.js +1 -3
- package/build/components/form/layout.d.ts +1 -1
- package/build/components/form/layout.js +11 -13
- package/build/components/form/types.d.ts +1 -1
- package/build/components/form/types.js +1 -2
- package/build/components/number/index.js +2 -6
- package/build/components/page/index.js +2 -7
- package/build/components/root/index.js +3 -9
- package/build/components/root/onclick.js +1 -3
- package/build/components/scrollbar/index.d.ts +3 -3
- package/build/components/scrollbar/index.js +13 -15
- package/build/components/site/index.d.ts +1 -1
- package/build/components/site/index.js +10 -15
- package/build/components/tooltip/index.d.ts +5 -5
- package/build/components/tooltip/index.js +8 -13
- package/build/components/tooltip/menu.d.ts +1 -1
- package/build/components/tooltip/menu.js +34 -36
- package/build/index.js +11 -27
- package/lib.scss +1 -1
- package/package.json +25 -25
- package/src/components/accordion/scss/index.scss +16 -16
- package/src/components/accordion/scss/variables.scss +4 -4
- package/src/components/alert/index.ts +156 -156
- package/src/components/alert/scss/index.scss +54 -54
- package/src/components/alert/scss/variables.scss +8 -8
- package/src/components/anchor/scss/index.scss +41 -41
- package/src/components/anchor/scss/variables.scss +5 -5
- package/src/components/banner/scss/index.scss +40 -40
- package/src/components/banner/scss/variables.scss +5 -5
- package/src/components/border/scss/index.scss +10 -10
- package/src/components/border/scss/variables.scss +6 -6
- package/src/components/bubble/scss/index.scss +30 -30
- package/src/components/bubble/scss/variables.scss +19 -19
- package/src/components/button/scss/index.scss +92 -92
- package/src/components/button/scss/variables.scss +69 -69
- package/src/components/card/scss/index.scss +35 -35
- package/src/components/card/scss/variables.scss +42 -42
- package/src/components/container/scss/index.scss +10 -10
- package/src/components/container/scss/variables.scss +5 -5
- package/src/components/ellipsis/scss/index.scss +71 -71
- package/src/components/ellipsis/scss/variables.scss +2 -2
- package/src/components/export/clipboard.ts +11 -11
- package/src/components/export/index.ts +4 -4
- package/src/components/export/json.ts +14 -14
- package/src/components/field/checkbox.ts +60 -60
- package/src/components/field/description.ts +11 -11
- package/src/components/field/error.ts +13 -13
- package/src/components/field/file.ts +64 -64
- package/src/components/field/index.ts +9 -9
- package/src/components/field/optional.ts +26 -26
- package/src/components/field/scss/_check.scss +225 -225
- package/src/components/field/scss/_normalize.scss +36 -36
- package/src/components/field/scss/_text.scss +106 -106
- package/src/components/field/scss/index.scss +158 -158
- package/src/components/field/scss/variables.scss +138 -138
- package/src/components/field/select.ts +150 -150
- package/src/components/field/switch.ts +8 -8
- package/src/components/field/text.ts +68 -68
- package/src/components/field/textarea.ts +7 -7
- package/src/components/field/title.ts +22 -22
- package/src/components/form/action.ts +67 -67
- package/src/components/form/index.ts +5 -5
- package/src/components/form/input.ts +14 -14
- package/src/components/form/layout.ts +25 -25
- package/src/components/form/types.ts +15 -15
- package/src/components/group/scss/index.scss +36 -36
- package/src/components/group/scss/variables.scss +17 -17
- package/src/components/icon/scss/index.scss +17 -17
- package/src/components/icon/scss/variables.scss +7 -7
- package/src/components/link/scss/index.scss +28 -28
- package/src/components/link/scss/variables.scss +47 -47
- package/src/components/loading/scss/index.scss +24 -24
- package/src/components/loading/scss/variables.scss +31 -31
- package/src/components/modal/scss/index.scss +31 -31
- package/src/components/modal/scss/variables.scss +10 -10
- package/src/components/number/index.ts +23 -23
- package/src/components/page/index.ts +14 -14
- package/src/components/page/scss/index.scss +27 -27
- package/src/components/page/scss/variables.scss +27 -27
- package/src/components/processing/scss/index.scss +46 -46
- package/src/components/processing/scss/variables.scss +11 -11
- package/src/components/root/index.ts +4 -4
- package/src/components/root/onclick.ts +20 -20
- package/src/components/root/scss/index.scss +93 -93
- package/src/components/root/scss/variables.scss +55 -55
- package/src/components/row/scss/index.scss +7 -7
- package/src/components/scrollbar/index.ts +43 -43
- package/src/components/scrollbar/scss/index.scss +59 -59
- package/src/components/scrollbar/scss/variables.scss +6 -6
- package/src/components/sidebar/scss/index.scss +50 -50
- package/src/components/sidebar/scss/variables.scss +21 -21
- package/src/components/site/index.ts +26 -26
- package/src/components/site/scss/index.scss +3 -3
- package/src/components/text/scss/index.scss +12 -12
- package/src/components/text/scss/variables.scss +9 -9
- package/src/components/thumbnail/scss/index.scss +7 -7
- package/src/components/thumbnail/scss/variables.scss +7 -7
- package/src/components/tooltip/index.ts +93 -93
- package/src/components/tooltip/menu.ts +70 -70
- package/src/components/tooltip/scss/_center.scss +13 -13
- package/src/components/tooltip/scss/_east.scss +34 -34
- package/src/components/tooltip/scss/_north.scss +34 -34
- package/src/components/tooltip/scss/_south.scss +35 -35
- package/src/components/tooltip/scss/_west.scss +34 -34
- package/src/components/tooltip/scss/index.scss +93 -93
- package/src/components/tooltip/scss/variables.scss +25 -25
- package/src/css-utilities/[margin,padding]/scss/index.scss +41 -41
- package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
- package/src/css-utilities/absolute/scss/index.scss +59 -59
- package/src/css-utilities/background/scss/variables.scss +27 -27
- package/src/css-utilities/border/scss/index.scss +21 -21
- package/src/css-utilities/border/scss/variables.scss +66 -66
- package/src/css-utilities/color/scss/variables.scss +31 -31
- package/src/css-utilities/disabled/scss/index.scss +4 -4
- package/src/css-utilities/flex/scss/index.scss +65 -65
- package/src/css-utilities/glass/scss/index.scss +2 -2
- package/src/css-utilities/glass/scss/variables.scss +2 -2
- package/src/css-utilities/hidden/scss/index.scss +28 -28
- package/src/css-utilities/index.scss +14 -14
- package/src/css-utilities/inline/scss/index.scss +7 -7
- package/src/css-utilities/line-height/scss/variables.scss +10 -10
- package/src/css-utilities/not-allowed/scss/index.scss +7 -7
- package/src/css-utilities/overflow/scss/index.scss +4 -4
- package/src/css-utilities/pointer/scss/index.scss +5 -5
- package/src/css-utilities/size/scss/variables.scss +12 -12
- package/src/css-utilities/slide/scss/index.scss +21 -21
- package/src/css-utilities/slide/scss/variables.scss +10 -10
- package/src/css-utilities/text/scss/index.scss +93 -93
- package/src/css-utilities/text/scss/variables.scss +31 -31
- package/src/css-utilities/transition/scss/variables.scss +14 -14
- package/src/css-utilities/viewport/scss/index.scss +4 -4
- package/src/css-utilities/width/scss/index.scss +3 -3
- package/src/css-utilities/width/scss/variables.scss +9 -9
- package/src/index.ts +11 -11
- package/src/lib/index.scss +7 -7
- package/src/lib/scss/breakpoint.scss +41 -41
- package/src/lib/scss/color.scss +1 -1
- package/src/lib/scss/css-variables.scss +13 -13
- package/src/lib/scss/list.scss +76 -76
- package/src/lib/scss/map.scss +1 -1
- package/src/lib/scss/position.scss +77 -77
- package/src/lib/scss/string.scss +33 -33
- package/src/tokens/index.scss +11 -11
- package/src/tokens/scss/border-radius.scss +12 -12
- package/src/tokens/scss/border-width.scss +6 -6
- package/src/tokens/scss/box-shadow.scss +13 -13
- package/src/tokens/scss/color.scss +64 -64
- package/src/tokens/scss/font-size.scss +12 -12
- package/src/tokens/scss/font-weight.scss +6 -6
- package/src/tokens/scss/line-height.scss +6 -6
- package/src/tokens/scss/size.scss +13 -13
- package/src/tokens/scss/spacer.scss +8 -8
- package/src/tokens/scss/state.scss +86 -86
- package/src/tokens/scss/transition-duration.scss +5 -5
- package/storage/fonts/montserrat/index.css +79 -79
- package/tokens.scss +1 -1
- package/tsconfig.json +10 -10
- package/utilities/styles.css +1 -1
- package/utilities/variables.css +1 -1
- package/webpack.config.ts +25 -25
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
let queue: VoidFunction[] = [];
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const onclick = async () => {
|
|
5
|
-
if (queue.length === 0) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
let item;
|
|
10
|
-
|
|
11
|
-
while (item = queue.pop()) {
|
|
12
|
-
await item();
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
onclick.add = (fn: VoidFunction) => {
|
|
17
|
-
queue.push(fn);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
let queue: VoidFunction[] = [];
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const onclick = async () => {
|
|
5
|
+
if (queue.length === 0) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let item;
|
|
10
|
+
|
|
11
|
+
while (item = queue.pop()) {
|
|
12
|
+
await item();
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
onclick.add = (fn: VoidFunction) => {
|
|
17
|
+
queue.push(fn);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
|
|
21
21
|
export default onclick;
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
body,
|
|
2
|
-
html {
|
|
3
|
-
height: 100%;
|
|
4
|
-
overflow-x: hidden;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
body {
|
|
9
|
-
background-color: var(--background);
|
|
10
|
-
color: var(--color);
|
|
11
|
-
font-family: var(--font-family);
|
|
12
|
-
font-size: var(--font-size);
|
|
13
|
-
font-weight: var(--font-weight);
|
|
14
|
-
line-height: var(--line-height);
|
|
15
|
-
min-width: var(--min-width);
|
|
16
|
-
text-rendering: optimizeLegibility;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
*,
|
|
22
|
-
*::after,
|
|
23
|
-
*::before {
|
|
24
|
-
box-sizing: border-box;
|
|
25
|
-
transition: inherit;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
section {
|
|
29
|
-
align-content: flex-start;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
justify-content: flex-start;
|
|
33
|
-
position: relative;
|
|
34
|
-
width: var(--width);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
h1, h2, h3, h4, h5 {
|
|
38
|
-
color: var(--color);
|
|
39
|
-
font-size: var(--font-size);
|
|
40
|
-
font-weight: var(--font-weight);
|
|
41
|
-
line-height: var(--line-height);
|
|
42
|
-
margin: 0;
|
|
43
|
-
padding: 0;
|
|
44
|
-
position: relative;
|
|
45
|
-
width: 100%;
|
|
46
|
-
word-wrap: break-word;
|
|
47
|
-
|
|
48
|
-
sub,
|
|
49
|
-
sup {
|
|
50
|
-
font-size: 0.64em;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
a {
|
|
55
|
-
color: var(--color, inherit);
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
outline: none;
|
|
58
|
-
text-decoration: none;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
b,
|
|
62
|
-
strong {
|
|
63
|
-
color: var(--color, inherit);
|
|
64
|
-
font-weight: var(--font-weight);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
p {
|
|
68
|
-
margin: 0;
|
|
69
|
-
padding: 0;
|
|
70
|
-
width: 100%;
|
|
71
|
-
word-wrap: break-word;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
pre {
|
|
75
|
-
margin: 0;
|
|
76
|
-
overflow-wrap: break-word;
|
|
77
|
-
padding: 0;
|
|
78
|
-
white-space: break-spaces;
|
|
79
|
-
width: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
sub,
|
|
83
|
-
sup {
|
|
84
|
-
font-size: 0.8em;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
sub {
|
|
88
|
-
bottom: -0.48em;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
sup {
|
|
92
|
-
top: -0.48em;
|
|
93
|
-
}
|
|
1
|
+
body,
|
|
2
|
+
html {
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow-x: hidden;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
body {
|
|
9
|
+
background-color: var(--background);
|
|
10
|
+
color: var(--color);
|
|
11
|
+
font-family: var(--font-family);
|
|
12
|
+
font-size: var(--font-size);
|
|
13
|
+
font-weight: var(--font-weight);
|
|
14
|
+
line-height: var(--line-height);
|
|
15
|
+
min-width: var(--min-width);
|
|
16
|
+
text-rendering: optimizeLegibility;
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
*,
|
|
22
|
+
*::after,
|
|
23
|
+
*::before {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
transition: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
section {
|
|
29
|
+
align-content: flex-start;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
position: relative;
|
|
34
|
+
width: var(--width);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1, h2, h3, h4, h5 {
|
|
38
|
+
color: var(--color);
|
|
39
|
+
font-size: var(--font-size);
|
|
40
|
+
font-weight: var(--font-weight);
|
|
41
|
+
line-height: var(--line-height);
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
position: relative;
|
|
45
|
+
width: 100%;
|
|
46
|
+
word-wrap: break-word;
|
|
47
|
+
|
|
48
|
+
sub,
|
|
49
|
+
sup {
|
|
50
|
+
font-size: 0.64em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
a {
|
|
55
|
+
color: var(--color, inherit);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
outline: none;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
b,
|
|
62
|
+
strong {
|
|
63
|
+
color: var(--color, inherit);
|
|
64
|
+
font-weight: var(--font-weight);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
p {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
width: 100%;
|
|
71
|
+
word-wrap: break-word;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
pre {
|
|
75
|
+
margin: 0;
|
|
76
|
+
overflow-wrap: break-word;
|
|
77
|
+
padding: 0;
|
|
78
|
+
white-space: break-spaces;
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
sub,
|
|
83
|
+
sup {
|
|
84
|
+
font-size: 0.8em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
sub {
|
|
88
|
+
bottom: -0.48em;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
sup {
|
|
92
|
+
top: -0.48em;
|
|
93
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
body {
|
|
5
|
-
@include lib.css-variables(border-radius, tokens.$border-radius);
|
|
6
|
-
@include lib.css-variables(box-shadow, tokens.$box-shadow);
|
|
7
|
-
@include lib.css-variables(border-width, tokens.$border-width);
|
|
8
|
-
@include lib.css-variables(color, tokens.$color);
|
|
9
|
-
@include lib.css-variables(font-size, tokens.$font-size);
|
|
10
|
-
@include lib.css-variables(font-weight, tokens.$font-weight);
|
|
11
|
-
@include lib.css-variables(line-height, tokens.$line-height);
|
|
12
|
-
@include lib.css-variables(size, tokens.$size);
|
|
13
|
-
@include lib.css-variables(spacer, tokens.$spacer);
|
|
14
|
-
@include lib.css-variables(transition-duration, tokens.$transition-duration);
|
|
15
|
-
|
|
16
|
-
--background: var(--color-grey-400);
|
|
17
|
-
--color: var(--color-text-400);
|
|
18
|
-
--font-family: 'Montserrat', sans-serif;
|
|
19
|
-
--font-size: var(--font-size-400);
|
|
20
|
-
--font-weight: var(--font-weight-400);
|
|
21
|
-
--line-height: var(--line-height-400);
|
|
22
|
-
--min-width: 320px;
|
|
23
|
-
|
|
24
|
-
// Used by components requiring scrollbar width
|
|
25
|
-
// - Should be updated using JS on load
|
|
26
|
-
--scrollbar-width: 17px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
section {
|
|
30
|
-
--width: 100%;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
h1, h2, h3, h4, h5 {
|
|
34
|
-
--color: var(--color-text-400);
|
|
35
|
-
--font-weight: var(--font-weight-600);
|
|
36
|
-
--line-height: var(--line-height-300);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Loop Through Font Size Keys To Set Header Font Size + Line Height
|
|
40
|
-
$keys: lib.map-keys(tokens.$font-size);
|
|
41
|
-
$i: nth($keys, lib.list-length($keys));
|
|
42
|
-
|
|
43
|
-
@each $h in h1 h2 h3 h4 h5 {
|
|
44
|
-
#{$h} {
|
|
45
|
-
--font-size: var(--font-size-#{$i});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$i: $i - 100;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
b,
|
|
52
|
-
strong {
|
|
53
|
-
--color: var(--color-text-400);
|
|
54
|
-
--font-weight: var(--font-weight-500);
|
|
55
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
body {
|
|
5
|
+
@include lib.css-variables(border-radius, tokens.$border-radius);
|
|
6
|
+
@include lib.css-variables(box-shadow, tokens.$box-shadow);
|
|
7
|
+
@include lib.css-variables(border-width, tokens.$border-width);
|
|
8
|
+
@include lib.css-variables(color, tokens.$color);
|
|
9
|
+
@include lib.css-variables(font-size, tokens.$font-size);
|
|
10
|
+
@include lib.css-variables(font-weight, tokens.$font-weight);
|
|
11
|
+
@include lib.css-variables(line-height, tokens.$line-height);
|
|
12
|
+
@include lib.css-variables(size, tokens.$size);
|
|
13
|
+
@include lib.css-variables(spacer, tokens.$spacer);
|
|
14
|
+
@include lib.css-variables(transition-duration, tokens.$transition-duration);
|
|
15
|
+
|
|
16
|
+
--background: var(--color-grey-400);
|
|
17
|
+
--color: var(--color-text-400);
|
|
18
|
+
--font-family: 'Montserrat', sans-serif;
|
|
19
|
+
--font-size: var(--font-size-400);
|
|
20
|
+
--font-weight: var(--font-weight-400);
|
|
21
|
+
--line-height: var(--line-height-400);
|
|
22
|
+
--min-width: 320px;
|
|
23
|
+
|
|
24
|
+
// Used by components requiring scrollbar width
|
|
25
|
+
// - Should be updated using JS on load
|
|
26
|
+
--scrollbar-width: 17px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
section {
|
|
30
|
+
--width: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
h1, h2, h3, h4, h5 {
|
|
34
|
+
--color: var(--color-text-400);
|
|
35
|
+
--font-weight: var(--font-weight-600);
|
|
36
|
+
--line-height: var(--line-height-300);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Loop Through Font Size Keys To Set Header Font Size + Line Height
|
|
40
|
+
$keys: lib.map-keys(tokens.$font-size);
|
|
41
|
+
$i: nth($keys, lib.list-length($keys));
|
|
42
|
+
|
|
43
|
+
@each $h in h1 h2 h3 h4 h5 {
|
|
44
|
+
#{$h} {
|
|
45
|
+
--font-size: var(--font-size-#{$i});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
$i: $i - 100;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
b,
|
|
52
|
+
strong {
|
|
53
|
+
--color: var(--color-text-400);
|
|
54
|
+
--font-weight: var(--font-weight-500);
|
|
55
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.row {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-wrap: wrap;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
position: relative;
|
|
6
|
-
width: 100%;
|
|
7
|
-
}
|
|
1
|
+
.row {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { reactive } from '@esportsplus/reactivity';
|
|
2
|
-
import { html } from '@esportsplus/template';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let root = document.body,
|
|
6
|
-
width: number | undefined;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default ({ fixed, style }: { fixed?: boolean, style?: string } = {}) => {
|
|
10
|
-
let state = reactive({
|
|
11
|
-
height: 100,
|
|
12
|
-
translate: 0
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
attributes: {
|
|
17
|
-
class: () => {
|
|
18
|
-
return '--scrollbar-content';
|
|
19
|
-
},
|
|
20
|
-
onscroll: function(this: HTMLElement) {
|
|
21
|
-
if (width === undefined) {
|
|
22
|
-
width = this.offsetWidth - this.clientWidth;
|
|
23
|
-
|
|
24
|
-
if (width && width !== 17) {
|
|
25
|
-
root.style.setProperty('--scrollbar-width', `${width}px`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
state.height = (this.clientHeight / this.scrollHeight) * 100;
|
|
30
|
-
state.translate = (this.scrollTop / this.clientHeight) * 100;
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
html: html`
|
|
34
|
-
<div
|
|
35
|
-
class='scrollbar ${fixed ? 'scrollbar--fixed' : ''} ${() => state.height >= 100 ? 'scrollbar--hidden' : ''}'
|
|
36
|
-
style='${() => `
|
|
37
|
-
${style || ''}
|
|
38
|
-
--translate: translate3d(0, ${state.translate}%, 0);
|
|
39
|
-
--height: ${state.height}%;
|
|
40
|
-
`}'
|
|
41
|
-
></div>
|
|
42
|
-
`
|
|
43
|
-
};
|
|
1
|
+
import { reactive } from '@esportsplus/reactivity';
|
|
2
|
+
import { html } from '@esportsplus/template';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
let root = document.body,
|
|
6
|
+
width: number | undefined;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default ({ fixed, style }: { fixed?: boolean, style?: string } = {}) => {
|
|
10
|
+
let state = reactive({
|
|
11
|
+
height: 100,
|
|
12
|
+
translate: 0
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
attributes: {
|
|
17
|
+
class: () => {
|
|
18
|
+
return '--scrollbar-content';
|
|
19
|
+
},
|
|
20
|
+
onscroll: function(this: HTMLElement) {
|
|
21
|
+
if (width === undefined) {
|
|
22
|
+
width = this.offsetWidth - this.clientWidth;
|
|
23
|
+
|
|
24
|
+
if (width && width !== 17) {
|
|
25
|
+
root.style.setProperty('--scrollbar-width', `${width}px`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
state.height = (this.clientHeight / this.scrollHeight) * 100;
|
|
30
|
+
state.translate = (this.scrollTop / this.clientHeight) * 100;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
html: html`
|
|
34
|
+
<div
|
|
35
|
+
class='scrollbar ${fixed ? 'scrollbar--fixed' : ''} ${() => state.height >= 100 ? 'scrollbar--hidden' : ''}'
|
|
36
|
+
style='${() => `
|
|
37
|
+
${style || ''}
|
|
38
|
+
--translate: translate3d(0, ${state.translate}%, 0);
|
|
39
|
+
--height: ${state.height}%;
|
|
40
|
+
`}'
|
|
41
|
+
></div>
|
|
42
|
+
`
|
|
43
|
+
};
|
|
44
44
|
};
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
// Hide Chrome Mobile Scrollbar
|
|
2
|
-
::-webkit-scrollbar,
|
|
3
|
-
::-webkit-scrollbar-track,
|
|
4
|
-
::-webkit-scrollbar-thumb,
|
|
5
|
-
::-webkit-scrollbar-thumb:window-inactive {
|
|
6
|
-
background: transparent;
|
|
7
|
-
box-shadow: unset;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.--scrollbar {
|
|
11
|
-
&-container {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-flow: column;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-content {
|
|
19
|
-
height: 100%;
|
|
20
|
-
margin-right: calc(var(--scrollbar-width) * -1);
|
|
21
|
-
overflow-x: hidden;
|
|
22
|
-
overflow-y: scroll;
|
|
23
|
-
scroll-behavior: smooth;
|
|
24
|
-
width: calc(100% + var(--scrollbar-width));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.scrollbar {
|
|
29
|
-
height: 100%;
|
|
30
|
-
z-index: 9;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
&,
|
|
34
|
-
&::before {
|
|
35
|
-
position: absolute;
|
|
36
|
-
right: 0;
|
|
37
|
-
top: 0;
|
|
38
|
-
transition: opacity var(--transition-duration) ease-in-out;
|
|
39
|
-
width: 4px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&::before {
|
|
43
|
-
background: var(--background-default);
|
|
44
|
-
border-radius: 1px 0 0 1px;
|
|
45
|
-
content: '';
|
|
46
|
-
height: var(--height);
|
|
47
|
-
transform: var(--translate);
|
|
48
|
-
transform-origin: top center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
&--fixed {
|
|
53
|
-
position: fixed;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&--hidden {
|
|
57
|
-
opacity: 0;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
// Hide Chrome Mobile Scrollbar
|
|
2
|
+
::-webkit-scrollbar,
|
|
3
|
+
::-webkit-scrollbar-track,
|
|
4
|
+
::-webkit-scrollbar-thumb,
|
|
5
|
+
::-webkit-scrollbar-thumb:window-inactive {
|
|
6
|
+
background: transparent;
|
|
7
|
+
box-shadow: unset;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.--scrollbar {
|
|
11
|
+
&-container {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-flow: column;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-content {
|
|
19
|
+
height: 100%;
|
|
20
|
+
margin-right: calc(var(--scrollbar-width) * -1);
|
|
21
|
+
overflow-x: hidden;
|
|
22
|
+
overflow-y: scroll;
|
|
23
|
+
scroll-behavior: smooth;
|
|
24
|
+
width: calc(100% + var(--scrollbar-width));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.scrollbar {
|
|
29
|
+
height: 100%;
|
|
30
|
+
z-index: 9;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
&,
|
|
34
|
+
&::before {
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 0;
|
|
37
|
+
top: 0;
|
|
38
|
+
transition: opacity var(--transition-duration) ease-in-out;
|
|
39
|
+
width: 4px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
background: var(--background-default);
|
|
44
|
+
border-radius: 1px 0 0 1px;
|
|
45
|
+
content: '';
|
|
46
|
+
height: var(--height);
|
|
47
|
+
transform: var(--translate);
|
|
48
|
+
transform-origin: top center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
&--fixed {
|
|
53
|
+
position: fixed;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&--hidden {
|
|
57
|
+
opacity: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.scrollbar {
|
|
2
|
-
--background-default: transparent;
|
|
3
|
-
--height: 0;
|
|
4
|
-
--transition-duration: var(--transition-duration-400);
|
|
5
|
-
--translate: translate3d(0, 0, 0);
|
|
6
|
-
}
|
|
1
|
+
.scrollbar {
|
|
2
|
+
--background-default: transparent;
|
|
3
|
+
--height: 0;
|
|
4
|
+
--transition-duration: var(--transition-duration-400);
|
|
5
|
+
--translate: translate3d(0, 0, 0);
|
|
6
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
@use '/lib';
|
|
2
|
-
@use '/tokens';
|
|
3
|
-
|
|
4
|
-
.sidebar {
|
|
5
|
-
@include lib.position(absolute, var(--position-vertical) null var(--position-vertical) null);
|
|
6
|
-
cursor: default;
|
|
7
|
-
height: calc(100% - (var(--position-vertical) * 2));
|
|
8
|
-
max-width: var(--width);
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
transition:
|
|
11
|
-
max-width var(--transition-duration) ease-in-out,
|
|
12
|
-
opacity var(--transition-duration) ease-in-out,
|
|
13
|
-
transform var(--transition-duration) ease-in-out;
|
|
14
|
-
width: calc(100% - (var(--position-horizontal) * 2));
|
|
15
|
-
z-index: 1;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@include tokens.state(inactive) {
|
|
19
|
-
input[type='password'] {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&--e {
|
|
26
|
-
right: var(--position-horizontal);
|
|
27
|
-
|
|
28
|
-
&.sidebar--offscreen {
|
|
29
|
-
@include tokens.state(inactive) {
|
|
30
|
-
transform: translateX(var(--width));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&--w {
|
|
36
|
-
left: var(--position-horizontal);
|
|
37
|
-
|
|
38
|
-
&.sidebar--offscreen {
|
|
39
|
-
@include tokens.state(inactive) {
|
|
40
|
-
transform: translateX(calc(var(--width) * -1));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
&-content {
|
|
47
|
-
flex: 0 0 var(--width-default);
|
|
48
|
-
width: var(--width-default);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
@use '/lib';
|
|
2
|
+
@use '/tokens';
|
|
3
|
+
|
|
4
|
+
.sidebar {
|
|
5
|
+
@include lib.position(absolute, var(--position-vertical) null var(--position-vertical) null);
|
|
6
|
+
cursor: default;
|
|
7
|
+
height: calc(100% - (var(--position-vertical) * 2));
|
|
8
|
+
max-width: var(--width);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
transition:
|
|
11
|
+
max-width var(--transition-duration) ease-in-out,
|
|
12
|
+
opacity var(--transition-duration) ease-in-out,
|
|
13
|
+
transform var(--transition-duration) ease-in-out;
|
|
14
|
+
width: calc(100% - (var(--position-horizontal) * 2));
|
|
15
|
+
z-index: 1;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@include tokens.state(inactive) {
|
|
19
|
+
input[type='password'] {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
&--e {
|
|
26
|
+
right: var(--position-horizontal);
|
|
27
|
+
|
|
28
|
+
&.sidebar--offscreen {
|
|
29
|
+
@include tokens.state(inactive) {
|
|
30
|
+
transform: translateX(var(--width));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--w {
|
|
36
|
+
left: var(--position-horizontal);
|
|
37
|
+
|
|
38
|
+
&.sidebar--offscreen {
|
|
39
|
+
@include tokens.state(inactive) {
|
|
40
|
+
transform: translateX(calc(var(--width) * -1));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
&-content {
|
|
47
|
+
flex: 0 0 var(--width-default);
|
|
48
|
+
width: var(--width-default);
|
|
49
|
+
}
|
|
50
|
+
}
|