@esportsplus/ui 0.0.1
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 -0
- package/.gitattributes +2 -0
- package/components/accordion/scss/accordion.scss +16 -0
- package/components/accordion/scss/variables.scss +4 -0
- package/components/alert/scss/alert.scss +104 -0
- package/components/alert/scss/variables.scss +25 -0
- package/components/anchor/scss/anchor.scss +41 -0
- package/components/anchor/scss/anchors.scss +9 -0
- package/components/anchor/scss/variables.scss +5 -0
- package/components/banner/scss/banner.scss +13 -0
- package/components/border/scss/border.scss +10 -0
- package/components/border/scss/variables.scss +6 -0
- package/components/bubble/scss/bubble.scss +30 -0
- package/components/bubble/scss/variables.scss +19 -0
- package/components/button/scss/button.scss +93 -0
- package/components/button/scss/variables.scss +70 -0
- package/components/card/scss/card.scss +36 -0
- package/components/card/scss/variables.scss +42 -0
- package/components/container/scss/container.scss +10 -0
- package/components/container/scss/variables.scss +5 -0
- package/components/ellipsis/scss/ellipsis.scss +72 -0
- package/components/ellipsis/scss/variables.scss +3 -0
- package/components/field/scss/_check.scss +225 -0
- package/components/field/scss/_normalize.scss +36 -0
- package/components/field/scss/_text.scss +103 -0
- package/components/field/scss/field.scss +132 -0
- package/components/field/scss/variables.scss +133 -0
- package/components/group/scss/group.scss +41 -0
- package/components/group/scss/variables.scss +25 -0
- package/components/icon/scss/icon.scss +18 -0
- package/components/icon/scss/variables.scss +8 -0
- package/components/link/scss/link.scss +29 -0
- package/components/link/scss/variables.scss +48 -0
- package/components/loading/scss/loading.scss +24 -0
- package/components/loading/scss/variables.scss +31 -0
- package/components/page/scss/page.scss +22 -0
- package/components/page/scss/variables.scss +19 -0
- package/components/processing/scss/processing.scss +47 -0
- package/components/processing/scss/variables.scss +11 -0
- package/components/root/scss/root.scss +93 -0
- package/components/root/scss/variables.scss +54 -0
- package/components/row/scss/row.scss +8 -0
- package/components/row/scss/variables.scss +3 -0
- package/components/scrollbar/scss/scrollbar.scss +51 -0
- package/components/scrollbar/scss/variables.scss +8 -0
- package/components/sidebar/scss/sidebar.scss +50 -0
- package/components/sidebar/scss/sidebars.scss +13 -0
- package/components/sidebar/scss/variables.scss +25 -0
- package/components/site/scss/site.scss +3 -0
- package/components/text/scss/text.scss +12 -0
- package/components/text/scss/variables.scss +9 -0
- package/components/thumbnail/scss/thumbnail.scss +7 -0
- package/components/thumbnail/scss/variables.scss +7 -0
- package/components/tooltip/scss/_center.scss +13 -0
- package/components/tooltip/scss/_east.scss +34 -0
- package/components/tooltip/scss/_north.scss +34 -0
- package/components/tooltip/scss/_south.scss +35 -0
- package/components/tooltip/scss/_west.scss +34 -0
- package/components/tooltip/scss/tooltip.scss +107 -0
- package/components/tooltip/scss/variables.scss +25 -0
- package/css-utilities/[margin,padding]/scss/styles.scss +41 -0
- package/css-utilities/[margin,padding]/scss/variables.scss +52 -0
- package/css-utilities/[max,min]/scss/styles.scss +11 -0
- package/css-utilities/[max,min]/scss/variables.scss +23 -0
- package/css-utilities/absolute/scss/absolute.scss +59 -0
- package/css-utilities/background/scss/variables.scss +28 -0
- package/css-utilities/border/scss/border.scss +21 -0
- package/css-utilities/border/scss/variables.scss +66 -0
- package/css-utilities/color/scss/variables.scss +32 -0
- package/css-utilities/disabled/scss/disabled.scss +17 -0
- package/css-utilities/disabled/scss/variables.scss +4 -0
- package/css-utilities/flex/scss/flex.scss +67 -0
- package/css-utilities/hidden/scss/hidden.scss +28 -0
- package/css-utilities/index.scss +14 -0
- package/css-utilities/inline/scss/inline.scss +7 -0
- package/css-utilities/line-height/scss/variables.scss +10 -0
- package/css-utilities/not-allowed/scss/not-allowed.scss +14 -0
- package/css-utilities/overflow/scss/overflow.scss +5 -0
- package/css-utilities/pointer/scss/pointer.scss +5 -0
- package/css-utilities/size/scss/variables.scss +12 -0
- package/css-utilities/slide/scss/slide.scss +20 -0
- package/css-utilities/slide/scss/variables.scss +6 -0
- package/css-utilities/text/scss/text.scss +93 -0
- package/css-utilities/text/scss/variables.scss +31 -0
- package/css-utilities/width/scss/variables.scss +12 -0
- package/css-utilities/width/scss/width.scss +3 -0
- package/index.scss +1 -0
- package/lib/index.scss +7 -0
- package/lib/scss/breakpoint.scss +41 -0
- package/lib/scss/color.scss +8 -0
- package/lib/scss/css-variables.scss +13 -0
- package/lib/scss/list.scss +112 -0
- package/lib/scss/map.scss +8 -0
- package/lib/scss/position.scss +84 -0
- package/lib/scss/string.scss +54 -0
- package/package.json +22 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Bold.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Bold.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-BoldItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-BoldItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Italic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Italic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Medium.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Medium.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-MediumItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-MediumItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Regular.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-Regular.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBold.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBold.woff2 +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBoldItalic.woff +0 -0
- package/storage/fonts/Montserrat/fonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/storage/fonts/Montserrat/montserrat.css +79 -0
- package/storage/psd/Color Palette.psd +0 -0
- package/tokens/index.scss +11 -0
- package/tokens/scss/border-radius.scss +12 -0
- package/tokens/scss/border-width.scss +6 -0
- package/tokens/scss/box-shadow.scss +13 -0
- package/tokens/scss/breakpoints.scss +13 -0
- package/tokens/scss/color.scss +71 -0
- package/tokens/scss/font-size.scss +12 -0
- package/tokens/scss/font-weight.scss +6 -0
- package/tokens/scss/line-height.scss +6 -0
- package/tokens/scss/size.scss +13 -0
- package/tokens/scss/state.scss +93 -0
- package/tokens/scss/transition-duration.scss +5 -0
- package/webpack.sass.config.js +59 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.icon {
|
|
2
|
+
color: var(--color);
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 0 0 var(--width);
|
|
5
|
+
height: var(--height);
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
transform: rotate(var(--rotate));
|
|
9
|
+
width: var(--width);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
svg {
|
|
13
|
+
color: currentColor;
|
|
14
|
+
fill: currentColor;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.link {
|
|
5
|
+
align-content: center;
|
|
6
|
+
background: var(--background);
|
|
7
|
+
color: var(--color);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
font-size: var(--font-size);
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
line-height: var(--line-height);
|
|
14
|
+
padding: calc(var(--padding-vertical) - var(--border-width)) calc(var(--padding-horizontal) - var(--border-width));
|
|
15
|
+
position: relative;
|
|
16
|
+
transition:
|
|
17
|
+
background var(--transition-duration) ease-in-out,
|
|
18
|
+
border-color var(--transition-duration) ease-in-out,
|
|
19
|
+
color var(--transition-duration) ease-in-out,
|
|
20
|
+
opacity var(--transition-duration) ease-in-out;
|
|
21
|
+
width: var(--width);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
&--underline {
|
|
25
|
+
@include tokens.state(active hover) {
|
|
26
|
+
text-decoration: underline;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.link {
|
|
5
|
+
--background: var(--background-default);
|
|
6
|
+
--background-active: var(--background-default);
|
|
7
|
+
--background-default: transparent;
|
|
8
|
+
--background-hover: var(--background-default);
|
|
9
|
+
--background-pressed: var(--background-default);
|
|
10
|
+
--border-color: var(--border-color-default);
|
|
11
|
+
--border-color-active: var(--border-color-default);
|
|
12
|
+
--border-color-default: var(--background);
|
|
13
|
+
--border-color-hover: var(--border-color-default);
|
|
14
|
+
--border-color-pressed: var(--border-color-default);
|
|
15
|
+
--border-radius: var(--border-radius-400);
|
|
16
|
+
--border-width: 0px;
|
|
17
|
+
--color: var(--color-default);
|
|
18
|
+
--color-active: var(--color-default);
|
|
19
|
+
--color-default: var(--color-text-400);
|
|
20
|
+
--color-hover: var(--color-default);
|
|
21
|
+
--color-pressed: var(--color-default);
|
|
22
|
+
--font-size: var(--font-size-400);
|
|
23
|
+
--font-weight: var(--font-weight-500);
|
|
24
|
+
--line-height: var(--line-height-400);
|
|
25
|
+
--padding-horizontal: var(--size-400);
|
|
26
|
+
--padding-vertical: var(--size-400);
|
|
27
|
+
--transition-duration: var(--transition-duration-400);
|
|
28
|
+
--width: auto;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@include tokens.state(active) {
|
|
32
|
+
--background: var(--background-active);
|
|
33
|
+
--border-color: var(--border-color-active);
|
|
34
|
+
--color: var(--color-active);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include tokens.state(hover) {
|
|
38
|
+
--background: var(--background-hover);
|
|
39
|
+
--border-color: var(--border-color-hover);
|
|
40
|
+
--color: var(--color-hover);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include tokens.state(pressed) {
|
|
44
|
+
--background: var(--background-pressed);
|
|
45
|
+
--border-color: var(--border-color-pressed);
|
|
46
|
+
--color: var(--color-pressed);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
|
|
3
|
+
.processing {
|
|
4
|
+
height: var(--size);
|
|
5
|
+
position: relative;
|
|
6
|
+
width: var(--size);
|
|
7
|
+
animation: processing var(--animation-duration) linear infinite;
|
|
8
|
+
|
|
9
|
+
&-ring {
|
|
10
|
+
clip: rect(calc(var(--size) / 2), var(--size), var(--size), 0);
|
|
11
|
+
|
|
12
|
+
&,
|
|
13
|
+
&::after,
|
|
14
|
+
&::before {
|
|
15
|
+
@include lib.position(absolute, full);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&,
|
|
19
|
+
&::before {
|
|
20
|
+
animation: processing calc(var(--animation-duration) / 2) cubic-bezier(0.770, 0.000, 0.175, 1.000) infinite;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::after,
|
|
24
|
+
&::before {
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
content: "";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::after {
|
|
30
|
+
border: var(--border-width) var(--border-style) var(--border-color-secondary);
|
|
31
|
+
opacity: var(--opacity);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::before {
|
|
35
|
+
border-top: var(--border-width) var(--border-style) var(--border-color-primary);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes processing {
|
|
41
|
+
0% {
|
|
42
|
+
transform: rotate(0deg);
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
transform: rotate(360deg);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.processing {
|
|
2
|
+
--animation-duration: 2.64s;
|
|
3
|
+
--border-color-primary: var(--color-black-500);
|
|
4
|
+
--border-color-secondary: var(--color-border-300);
|
|
5
|
+
--border-style: solid;
|
|
6
|
+
--border-width: var(--border-width-600);
|
|
7
|
+
--height: var(--size);
|
|
8
|
+
--opacity: 0.64;
|
|
9
|
+
--size: var(--size-600);
|
|
10
|
+
--width: var(--size);
|
|
11
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.sidebar {
|
|
5
|
+
@include lib.position(absolute, var(--position-vertical) null var(--position-vertical) null);
|
|
6
|
+
cursor: default;
|
|
7
|
+
max-width: var(--width);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
pointer-events: auto;
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use 'ui/tokens';
|
|
2
|
+
|
|
3
|
+
.sidebar {
|
|
4
|
+
--position-horizontal: 0px;
|
|
5
|
+
--position-vertical: 0px;
|
|
6
|
+
--transition-duration: var(--transition-duration-400);
|
|
7
|
+
--width: var(--width-default);
|
|
8
|
+
--width-closed: var(--width-default);
|
|
9
|
+
--width-default: 400px;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@include tokens.state(default) {
|
|
13
|
+
--width: var(--width-closed);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
&--floating {
|
|
18
|
+
--position-horizontal: var(--size-100);
|
|
19
|
+
--position-vertical: var(--size-100);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sidebars {
|
|
24
|
+
--transition-duration: var(--transition-duration-400);
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.text {
|
|
2
|
+
align-items: center;
|
|
3
|
+
color: var(--color);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: wrap;
|
|
6
|
+
font-size: var(--font-size);
|
|
7
|
+
font-weight: var(--font-weight);
|
|
8
|
+
line-height: var(--line-height);
|
|
9
|
+
position: relative;
|
|
10
|
+
transition: color var(--transition-duration) ease-in-out;
|
|
11
|
+
width: var(--width);
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.text {
|
|
2
|
+
--color: var(--color-default);
|
|
3
|
+
--color-default: inherit;
|
|
4
|
+
--font-size: var(--font-size-400);
|
|
5
|
+
--font-weight: var(--font-weight-400);
|
|
6
|
+
--line-height: var(--line-height-400);
|
|
7
|
+
--transition-duration: var(--transition-duration-400);
|
|
8
|
+
--width: auto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@mixin center($active) {
|
|
2
|
+
&--c {
|
|
3
|
+
bottom: 50%;
|
|
4
|
+
position: absolute;
|
|
5
|
+
right: 50%;
|
|
6
|
+
transform: translate(50%, 50%) scale(var(--scaleX), var(--scaleY));
|
|
7
|
+
transform-origin: center center;
|
|
8
|
+
|
|
9
|
+
#{$active} {
|
|
10
|
+
transform: translate(50%, 50%) scale(1);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@mixin east($active) {
|
|
2
|
+
&--en,
|
|
3
|
+
&--es {
|
|
4
|
+
left: calc(100% - var(--spacer));
|
|
5
|
+
position: absolute;
|
|
6
|
+
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
+
|
|
8
|
+
#{$active} {
|
|
9
|
+
transform: translateX(calc(var(--spacer) * 2));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--e {
|
|
14
|
+
bottom: 50%;
|
|
15
|
+
left: calc(100% - var(--spacer));
|
|
16
|
+
position: absolute;
|
|
17
|
+
transform: translateY(50%) scaleX(var(--scaleX));
|
|
18
|
+
transform-origin: center left;
|
|
19
|
+
|
|
20
|
+
#{$active} {
|
|
21
|
+
transform: translate(calc(var(--spacer) * 2), 50%) scale(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--en {
|
|
26
|
+
top: 0;
|
|
27
|
+
transform-origin: top left;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--es {
|
|
31
|
+
bottom: 0;
|
|
32
|
+
transform-origin: bottom left;
|
|
33
|
+
}
|
|
34
|
+
}
|