@esportsplus/ui 0.0.1 → 0.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/.gitattributes +2 -2
- package/components/accordion/scss/accordion.scss +16 -16
- package/components/accordion/scss/variables.scss +4 -4
- package/components/anchor/scss/anchor.scss +41 -41
- package/components/anchor/scss/anchors.scss +9 -9
- package/components/anchor/scss/variables.scss +5 -5
- package/components/banner/scss/banner.scss +13 -13
- package/components/border/scss/border.scss +10 -10
- package/components/border/scss/variables.scss +6 -6
- package/components/bubble/scss/bubble.scss +30 -30
- package/components/bubble/scss/variables.scss +19 -19
- package/components/button/scss/button.scss +93 -93
- package/components/button/scss/variables.scss +70 -70
- package/components/card/scss/card.scss +36 -36
- package/components/card/scss/variables.scss +42 -42
- package/components/container/scss/container.scss +10 -10
- package/components/container/scss/variables.scss +5 -5
- package/components/field/scss/_check.scss +225 -225
- package/components/field/scss/_normalize.scss +36 -36
- package/components/field/scss/_text.scss +103 -103
- package/components/field/scss/field.scss +137 -132
- package/components/field/scss/variables.scss +138 -133
- package/components/group/scss/group.scss +41 -41
- package/components/group/scss/variables.scss +25 -25
- package/components/icon/scss/icon.scss +18 -18
- package/components/icon/scss/variables.scss +8 -8
- package/components/link/scss/link.scss +29 -29
- package/components/link/scss/variables.scss +48 -48
- package/components/loading/scss/loading.scss +24 -24
- package/components/loading/scss/variables.scss +31 -31
- package/components/page/scss/page.scss +22 -22
- package/components/page/scss/variables.scss +19 -19
- package/components/root/scss/root.scss +93 -93
- package/components/root/scss/variables.scss +54 -54
- package/components/row/scss/row.scss +8 -8
- package/components/scrollbar/scss/scrollbar.scss +51 -51
- package/components/scrollbar/scss/variables.scss +8 -8
- package/components/sidebar/scss/sidebar.scss +50 -50
- package/components/sidebar/scss/sidebars.scss +13 -13
- package/components/sidebar/scss/variables.scss +25 -25
- package/components/text/scss/text.scss +12 -12
- package/components/text/scss/variables.scss +9 -9
- package/components/thumbnail/scss/thumbnail.scss +7 -7
- package/components/thumbnail/scss/variables.scss +7 -7
- package/components/tooltip/scss/_center.scss +13 -13
- package/components/tooltip/scss/_east.scss +34 -34
- package/components/tooltip/scss/_north.scss +34 -34
- package/components/tooltip/scss/_south.scss +35 -35
- package/components/tooltip/scss/_west.scss +34 -34
- package/components/tooltip/scss/tooltip.scss +107 -107
- package/components/tooltip/scss/variables.scss +25 -25
- package/css-utilities/[margin,padding]/scss/styles.scss +41 -41
- package/css-utilities/[margin,padding]/scss/variables.scss +52 -52
- package/css-utilities/[max,min]/scss/variables.scss +23 -23
- package/css-utilities/absolute/scss/absolute.scss +59 -59
- package/css-utilities/background/scss/variables.scss +28 -28
- package/css-utilities/border/scss/border.scss +21 -21
- package/css-utilities/border/scss/variables.scss +66 -66
- package/css-utilities/color/scss/variables.scss +32 -32
- package/css-utilities/flex/scss/flex.scss +67 -67
- package/css-utilities/hidden/scss/hidden.scss +28 -28
- package/css-utilities/index.scss +14 -14
- package/css-utilities/pointer/scss/pointer.scss +5 -5
- package/css-utilities/size/scss/variables.scss +12 -12
- package/css-utilities/slide/scss/slide.scss +20 -20
- package/css-utilities/slide/scss/variables.scss +6 -6
- package/css-utilities/text/scss/text.scss +93 -93
- package/css-utilities/text/scss/variables.scss +31 -31
- package/css-utilities/width/scss/variables.scss +12 -12
- package/lib/index.scss +7 -7
- package/lib/scss/color.scss +8 -8
- package/lib/scss/list.scss +112 -112
- package/lib/scss/string.scss +54 -54
- package/package.json +22 -22
- package/storage/fonts/Montserrat/montserrat.css +79 -79
- package/tokens/index.scss +11 -11
- package/tokens/scss/border-radius.scss +12 -12
- package/tokens/scss/border-width.scss +6 -6
- package/tokens/scss/box-shadow.scss +13 -13
- package/tokens/scss/breakpoints.scss +13 -13
- package/tokens/scss/color.scss +71 -71
- package/tokens/scss/font-size.scss +12 -12
- package/tokens/scss/font-weight.scss +6 -6
- package/tokens/scss/line-height.scss +6 -6
- package/tokens/scss/size.scss +13 -13
- package/tokens/scss/state.scss +93 -93
- package/tokens/scss/transition-duration.scss +5 -5
- package/webpack.sass.config.js +59 -59
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
.loading {
|
|
2
|
-
animation: loading var(--animation-duration) infinite linear;
|
|
3
|
-
animation-delay: var(--animation-delay);
|
|
4
|
-
border: var(--border-width) var(--border-style) var(--border-color);
|
|
5
|
-
border-radius: 100%;
|
|
6
|
-
border-right-color: transparent;
|
|
7
|
-
border-top-color: transparent;
|
|
8
|
-
box-shadow: var(--box-shadow);
|
|
9
|
-
height: var(--height);
|
|
10
|
-
pointer-events: none;
|
|
11
|
-
position: relative;
|
|
12
|
-
transition: border-color var(--transition-duration) ease-in-out;
|
|
13
|
-
width: var(--width);
|
|
14
|
-
z-index: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@keyframes loading {
|
|
18
|
-
0% {
|
|
19
|
-
transform: rotate(0deg);
|
|
20
|
-
}
|
|
21
|
-
100% {
|
|
22
|
-
transform: rotate(360deg);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
.loading {
|
|
2
|
+
animation: loading var(--animation-duration) infinite linear;
|
|
3
|
+
animation-delay: var(--animation-delay);
|
|
4
|
+
border: var(--border-width) var(--border-style) var(--border-color);
|
|
5
|
+
border-radius: 100%;
|
|
6
|
+
border-right-color: transparent;
|
|
7
|
+
border-top-color: transparent;
|
|
8
|
+
box-shadow: var(--box-shadow);
|
|
9
|
+
height: var(--height);
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
position: relative;
|
|
12
|
+
transition: border-color var(--transition-duration) ease-in-out;
|
|
13
|
+
width: var(--width);
|
|
14
|
+
z-index: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes loading {
|
|
18
|
+
0% {
|
|
19
|
+
transform: rotate(0deg);
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
transform: rotate(360deg);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
.loading {
|
|
2
|
-
--animation-delay: calc(0s + (0.032s * var(--i)));
|
|
3
|
-
--animation-duration: calc(0.64s * (var(--i) + 1.5));
|
|
4
|
-
--border-color: inherit;
|
|
5
|
-
--border-style: solid;
|
|
6
|
-
--border-width: var(--border-width-400);
|
|
7
|
-
--box-shadow: none;
|
|
8
|
-
--height: calc(var(--size) * var(--multiplier));
|
|
9
|
-
--i: 0;
|
|
10
|
-
--multiplier: calc(1 - (.2 * var(--i)));
|
|
11
|
-
--size: var(--size-400);
|
|
12
|
-
--transition-duration: var(--transition-duration-400);
|
|
13
|
-
--width: calc(var(--size) * var(--multiplier));
|
|
14
|
-
|
|
15
|
-
.loading {
|
|
16
|
-
--i: 1;
|
|
17
|
-
--size: inherit;
|
|
18
|
-
|
|
19
|
-
.loading {
|
|
20
|
-
--i: 2;
|
|
21
|
-
|
|
22
|
-
.loading {
|
|
23
|
-
--i: 3;
|
|
24
|
-
|
|
25
|
-
.loading {
|
|
26
|
-
--i: 4;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
.loading {
|
|
2
|
+
--animation-delay: calc(0s + (0.032s * var(--i)));
|
|
3
|
+
--animation-duration: calc(0.64s * (var(--i) + 1.5));
|
|
4
|
+
--border-color: inherit;
|
|
5
|
+
--border-style: solid;
|
|
6
|
+
--border-width: var(--border-width-400);
|
|
7
|
+
--box-shadow: none;
|
|
8
|
+
--height: calc(var(--size) * var(--multiplier));
|
|
9
|
+
--i: 0;
|
|
10
|
+
--multiplier: calc(1 - (.2 * var(--i)));
|
|
11
|
+
--size: var(--size-400);
|
|
12
|
+
--transition-duration: var(--transition-duration-400);
|
|
13
|
+
--width: calc(var(--size) * var(--multiplier));
|
|
14
|
+
|
|
15
|
+
.loading {
|
|
16
|
+
--i: 1;
|
|
17
|
+
--size: inherit;
|
|
18
|
+
|
|
19
|
+
.loading {
|
|
20
|
+
--i: 2;
|
|
21
|
+
|
|
22
|
+
.loading {
|
|
23
|
+
--i: 3;
|
|
24
|
+
|
|
25
|
+
.loading {
|
|
26
|
+
--i: 4;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.page {
|
|
2
|
-
min-height: var(--min-height);
|
|
3
|
-
position: relative;
|
|
4
|
-
width: var(--width);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
&-subtitle,
|
|
8
|
-
&-suptitle,
|
|
9
|
-
&-title {
|
|
10
|
-
color: var(--color);
|
|
11
|
-
display: block;
|
|
12
|
-
line-height: var(--line-height);
|
|
13
|
-
position: relative;
|
|
14
|
-
width: 100%;
|
|
15
|
-
z-index: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-subtitle,
|
|
19
|
-
&-suptitle {
|
|
20
|
-
font-size: var(--font-size);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
.page {
|
|
2
|
+
min-height: var(--min-height);
|
|
3
|
+
position: relative;
|
|
4
|
+
width: var(--width);
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
&-subtitle,
|
|
8
|
+
&-suptitle,
|
|
9
|
+
&-title {
|
|
10
|
+
color: var(--color);
|
|
11
|
+
display: block;
|
|
12
|
+
line-height: var(--line-height);
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 100%;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-subtitle,
|
|
19
|
+
&-suptitle {
|
|
20
|
+
font-size: var(--font-size);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.page {
|
|
2
|
-
--min-height: 100vh;
|
|
3
|
-
--width: 100vw;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
&-subtitle,
|
|
7
|
-
&-suptitle {
|
|
8
|
-
--color: var(--color-default);
|
|
9
|
-
--color-default: var(--color-text-400);
|
|
10
|
-
--font-size: var(--font-size-400);
|
|
11
|
-
--line-height: var(--line-height-400);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-title {
|
|
15
|
-
--color: var(--color-default);
|
|
16
|
-
--color-default: var(--color-text-500);
|
|
17
|
-
--line-height: var(--line-height-400);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
.page {
|
|
2
|
+
--min-height: 100vh;
|
|
3
|
+
--width: 100vw;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
&-subtitle,
|
|
7
|
+
&-suptitle {
|
|
8
|
+
--color: var(--color-default);
|
|
9
|
+
--color-default: var(--color-text-400);
|
|
10
|
+
--font-size: var(--font-size-400);
|
|
11
|
+
--line-height: var(--line-height-400);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-title {
|
|
15
|
+
--color: var(--color-default);
|
|
16
|
+
--color-default: var(--color-text-500);
|
|
17
|
+
--line-height: var(--line-height-400);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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,54 +1,54 @@
|
|
|
1
|
-
@use 'ui/lib';
|
|
2
|
-
@use 'ui/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(transition-duration, tokens.$transition-duration);
|
|
14
|
-
|
|
15
|
-
--background: var(--color-grey-400);
|
|
16
|
-
--color: var(--color-text-400);
|
|
17
|
-
--font-family: 'Montserrat', sans-serif;
|
|
18
|
-
--font-size: var(--font-size-400);
|
|
19
|
-
--font-weight: var(--font-weight-400);
|
|
20
|
-
--line-height: var(--line-height-400);
|
|
21
|
-
--min-width: 320px;
|
|
22
|
-
|
|
23
|
-
// Used by components requiring scrollbar width
|
|
24
|
-
// - Should be updated using JS on load
|
|
25
|
-
--scrollbar-width: 17px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
section {
|
|
29
|
-
--width: 100%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
h1, h2, h3, h4, h5 {
|
|
33
|
-
--color: var(--color-text-400);
|
|
34
|
-
--font-weight: var(--font-weight-600);
|
|
35
|
-
--line-height: var(--line-height-300);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Loop Through Font Size Keys To Set Header Font Size + Line Height
|
|
39
|
-
$keys: lib.map-keys(tokens.$font-size);
|
|
40
|
-
$i: nth($keys, lib.list-length($keys));
|
|
41
|
-
|
|
42
|
-
@each $h in h1 h2 h3 h4 h5 {
|
|
43
|
-
#{$h} {
|
|
44
|
-
--font-size: var(--font-size-#{$i});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
$i: $i - 100;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
b,
|
|
51
|
-
strong {
|
|
52
|
-
--color: var(--color-text-400);
|
|
53
|
-
--font-weight: var(--font-weight-500);
|
|
54
|
-
}
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/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(transition-duration, tokens.$transition-duration);
|
|
14
|
+
|
|
15
|
+
--background: var(--color-grey-400);
|
|
16
|
+
--color: var(--color-text-400);
|
|
17
|
+
--font-family: 'Montserrat', sans-serif;
|
|
18
|
+
--font-size: var(--font-size-400);
|
|
19
|
+
--font-weight: var(--font-weight-400);
|
|
20
|
+
--line-height: var(--line-height-400);
|
|
21
|
+
--min-width: 320px;
|
|
22
|
+
|
|
23
|
+
// Used by components requiring scrollbar width
|
|
24
|
+
// - Should be updated using JS on load
|
|
25
|
+
--scrollbar-width: 17px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
section {
|
|
29
|
+
--width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h1, h2, h3, h4, h5 {
|
|
33
|
+
--color: var(--color-text-400);
|
|
34
|
+
--font-weight: var(--font-weight-600);
|
|
35
|
+
--line-height: var(--line-height-300);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Loop Through Font Size Keys To Set Header Font Size + Line Height
|
|
39
|
+
$keys: lib.map-keys(tokens.$font-size);
|
|
40
|
+
$i: nth($keys, lib.list-length($keys));
|
|
41
|
+
|
|
42
|
+
@each $h in h1 h2 h3 h4 h5 {
|
|
43
|
+
#{$h} {
|
|
44
|
+
--font-size: var(--font-size-#{$i});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$i: $i - 100;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
b,
|
|
51
|
+
strong {
|
|
52
|
+
--color: var(--color-text-400);
|
|
53
|
+
--font-weight: var(--font-weight-500);
|
|
54
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.row {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-wrap: wrap;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
min-height: var(--min-height);
|
|
6
|
-
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
1
|
+
.row {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
min-height: var(--min-height);
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
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
|
-
// Scrollable container
|
|
11
|
-
.--scrollbar {
|
|
12
|
-
height: 100%;
|
|
13
|
-
margin-right: calc(var(--scrollbar-width) * -1);
|
|
14
|
-
overflow-x: hidden;
|
|
15
|
-
overflow-y: scroll;
|
|
16
|
-
scroll-behavior: smooth;
|
|
17
|
-
width: calc(100% + var(--scrollbar-width));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.scrollbar {
|
|
21
|
-
height: 100%;
|
|
22
|
-
z-index: 9;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&,
|
|
26
|
-
&::before {
|
|
27
|
-
position: absolute;
|
|
28
|
-
right: 0;
|
|
29
|
-
top: 0;
|
|
30
|
-
transition: opacity var(--transition-duration) ease-in-out;
|
|
31
|
-
width: var(--width);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&::before {
|
|
35
|
-
background: var(--background-default);
|
|
36
|
-
border-radius: var(--border-radius);
|
|
37
|
-
content: '';
|
|
38
|
-
height: var(--height);
|
|
39
|
-
transform: var(--translate);
|
|
40
|
-
transform-origin: top center;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
&--fixed {
|
|
45
|
-
position: fixed;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--hidden {
|
|
49
|
-
opacity: 0;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
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
|
+
// Scrollable container
|
|
11
|
+
.--scrollbar {
|
|
12
|
+
height: 100%;
|
|
13
|
+
margin-right: calc(var(--scrollbar-width) * -1);
|
|
14
|
+
overflow-x: hidden;
|
|
15
|
+
overflow-y: scroll;
|
|
16
|
+
scroll-behavior: smooth;
|
|
17
|
+
width: calc(100% + var(--scrollbar-width));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.scrollbar {
|
|
21
|
+
height: 100%;
|
|
22
|
+
z-index: 9;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
&,
|
|
26
|
+
&::before {
|
|
27
|
+
position: absolute;
|
|
28
|
+
right: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
transition: opacity var(--transition-duration) ease-in-out;
|
|
31
|
+
width: var(--width);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::before {
|
|
35
|
+
background: var(--background-default);
|
|
36
|
+
border-radius: var(--border-radius);
|
|
37
|
+
content: '';
|
|
38
|
+
height: var(--height);
|
|
39
|
+
transform: var(--translate);
|
|
40
|
+
transform-origin: top center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&--fixed {
|
|
45
|
+
position: fixed;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--hidden {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.scrollbar {
|
|
2
|
-
--background-default: transparent;
|
|
3
|
-
--border-radius: 1px 0 0 1px;
|
|
4
|
-
--height: 0;
|
|
5
|
-
--transition-duration: var(--transition-duration-400);
|
|
6
|
-
--translate: translate3d(0, 0, 0);
|
|
7
|
-
--width: var(--size-100);
|
|
8
|
-
}
|
|
1
|
+
.scrollbar {
|
|
2
|
+
--background-default: transparent;
|
|
3
|
+
--border-radius: 1px 0 0 1px;
|
|
4
|
+
--height: 0;
|
|
5
|
+
--transition-duration: var(--transition-duration-400);
|
|
6
|
+
--translate: translate3d(0, 0, 0);
|
|
7
|
+
--width: var(--size-100);
|
|
8
|
+
}
|