@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,34 @@
|
|
|
1
|
+
@mixin north($active) {
|
|
2
|
+
&--ne,
|
|
3
|
+
&--nw {
|
|
4
|
+
bottom: calc(100% - var(--spacer));
|
|
5
|
+
position: absolute;
|
|
6
|
+
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
+
|
|
8
|
+
#{$active} {
|
|
9
|
+
transform: translateY(calc(var(--spacer) * -2));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--n {
|
|
14
|
+
bottom: calc(100% - var(--spacer));
|
|
15
|
+
position: absolute;
|
|
16
|
+
right: 50%;
|
|
17
|
+
transform: translateX(50%) scaleY(var(--scaleY));
|
|
18
|
+
transform-origin: center bottom;
|
|
19
|
+
|
|
20
|
+
#{$active} {
|
|
21
|
+
transform: translate(50%, calc(var(--spacer) * -2)) scale(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--ne {
|
|
26
|
+
right: 0;
|
|
27
|
+
transform-origin: bottom right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--nw {
|
|
31
|
+
left: 0;
|
|
32
|
+
transform-origin: bottom left;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@mixin south($active) {
|
|
2
|
+
&--se,
|
|
3
|
+
&--sw {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: calc(100% - var(--spacer));
|
|
6
|
+
transform: scale(var(--scaleX), var(--scaleY));
|
|
7
|
+
|
|
8
|
+
#{$active} {
|
|
9
|
+
transform: translateY(calc(var(--spacer) * 2));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--s {
|
|
14
|
+
position: absolute;
|
|
15
|
+
right: 50%;
|
|
16
|
+
top: calc(100% - var(--spacer));
|
|
17
|
+
transform: translateX(50%) scaleY(var(--scaleY));
|
|
18
|
+
transform-origin: center top;
|
|
19
|
+
|
|
20
|
+
#{$active} {
|
|
21
|
+
transform: translate(50%, calc(var(--spacer) * 2)) scale(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--se {
|
|
26
|
+
right: 0;
|
|
27
|
+
transform-origin: top right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--sw {
|
|
31
|
+
left: 0;
|
|
32
|
+
transform-origin: top left;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@mixin west($active) {
|
|
2
|
+
&--wn,
|
|
3
|
+
&--ws {
|
|
4
|
+
position: absolute;
|
|
5
|
+
right: calc(100% - var(--spacer));
|
|
6
|
+
transform: scale(var(--scale));
|
|
7
|
+
|
|
8
|
+
#{$active} {
|
|
9
|
+
transform: translateX(calc(var(--spacer) * -2));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--w {
|
|
14
|
+
bottom: 50%;
|
|
15
|
+
position: absolute;
|
|
16
|
+
right: calc(100% - var(--spacer));
|
|
17
|
+
transform: translateY(50%) scaleX(var(--scaleX));
|
|
18
|
+
transform-origin: center right;
|
|
19
|
+
|
|
20
|
+
#{$active} {
|
|
21
|
+
transform: translate(calc(var(--spacer) * -2), 50%) scale(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--wn {
|
|
26
|
+
top: 0;
|
|
27
|
+
transform-origin: top right;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--ws {
|
|
31
|
+
bottom: 0;
|
|
32
|
+
transform-origin: bottom right;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
@use 'center' as *;
|
|
4
|
+
@use 'east' as *;
|
|
5
|
+
@use 'north' as *;
|
|
6
|
+
@use 'south' as *;
|
|
7
|
+
@use 'west' as *;
|
|
8
|
+
|
|
9
|
+
.tooltip {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
position: relative;
|
|
12
|
+
z-index: 8;
|
|
13
|
+
|
|
14
|
+
@include tokens.state(active) {
|
|
15
|
+
z-index: 9;
|
|
16
|
+
|
|
17
|
+
// Add invisible box to increase activation/hover area
|
|
18
|
+
&.tooltip--box {
|
|
19
|
+
$size: calc(100% + var(--spacer) * 2.5);
|
|
20
|
+
|
|
21
|
+
&::before {
|
|
22
|
+
@include lib.position(absolute, center);
|
|
23
|
+
content: '';
|
|
24
|
+
height: $size;
|
|
25
|
+
width: $size;
|
|
26
|
+
z-index: -1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Rotate arrow only if parent tooltip is active
|
|
31
|
+
:not(.tooltip) .tooltip-arrow,
|
|
32
|
+
> .tooltip-arrow {
|
|
33
|
+
transform: rotate(-90deg);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
&-arrow {
|
|
39
|
+
margin: 0 -1px;
|
|
40
|
+
transform: rotate(90deg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
*--------------------------------------------------------------------------
|
|
46
|
+
*
|
|
47
|
+
* Tooltip Content Wrapper
|
|
48
|
+
*
|
|
49
|
+
* Wrapper Is Used To Simplify Animation, Positioning And
|
|
50
|
+
* Visibility Of Tooltip Content
|
|
51
|
+
*
|
|
52
|
+
* Tooltips Are Activated By JS To Simplify CSS Selectors:
|
|
53
|
+
* - On 'hover' By Default
|
|
54
|
+
* - On 'click' When Using "data-trigger='toggle'"
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
&-content,
|
|
59
|
+
&-message {
|
|
60
|
+
background: var(--background);
|
|
61
|
+
border-radius: var(--border-radius);
|
|
62
|
+
box-shadow: var(--box-shadow);
|
|
63
|
+
max-width: var(--max-width);
|
|
64
|
+
min-width: var(--min-width);
|
|
65
|
+
opacity: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
transition:
|
|
68
|
+
opacity var(--transition-duration) ease-in-out,
|
|
69
|
+
transform var(--transition-duration) ease-in-out;
|
|
70
|
+
width: var(--width);
|
|
71
|
+
z-index: 9;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Shared With Positioning CSS
|
|
75
|
+
$active: '#{tokens.state(active, '.tooltip')} > &, #{tokens.state(active, '.tooltip')} :not(.tooltip) > &';
|
|
76
|
+
$not-active: '#{tokens.state(inactive, '.tooltip')} > &, #{tokens.state(inactive, '.tooltip')} :not(.tooltip) > &';
|
|
77
|
+
|
|
78
|
+
#{$active} {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#{$not-active} {
|
|
83
|
+
&, * {
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@include center($active);
|
|
90
|
+
@include east($active);
|
|
91
|
+
@include north($active);
|
|
92
|
+
@include south($active);
|
|
93
|
+
@include west($active);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&-message {
|
|
97
|
+
background: var(--background);
|
|
98
|
+
color: var(--color);
|
|
99
|
+
cursor: auto;
|
|
100
|
+
font-size: var(--font-size);
|
|
101
|
+
font-weight: var(--font-weight);
|
|
102
|
+
line-height: normal;
|
|
103
|
+
padding: var(--padding-vertical) var(--padding-horizontal);
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.tooltip {
|
|
2
|
+
&-content,
|
|
3
|
+
&-message {
|
|
4
|
+
--background: var(--background-default);
|
|
5
|
+
--background-default: transparent;
|
|
6
|
+
--border-radius: var(--border-radius-300);
|
|
7
|
+
--box-shadow: var(--box-shadow-400);
|
|
8
|
+
--max-width: calc(90vw - (var(--size-700) * 2));
|
|
9
|
+
--min-width: auto;
|
|
10
|
+
--scaleX: 0.64;
|
|
11
|
+
--scaleY: 0.64;
|
|
12
|
+
--spacer: var(--size-300);
|
|
13
|
+
--transition-duration: var(--transition-duration-300);
|
|
14
|
+
--width: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-message {
|
|
18
|
+
--background-default: var(--color-black-400);
|
|
19
|
+
--color: var(--color-white-400);
|
|
20
|
+
--font-size: var(--font-size-300);
|
|
21
|
+
--font-weight: var(--font-weight-400);
|
|
22
|
+
--padding-horizontal: var(--size-300);
|
|
23
|
+
--padding-vertical: var(--size-300);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@each $property in margin padding {
|
|
2
|
+
.--#{$property} {
|
|
3
|
+
&,
|
|
4
|
+
&-horizontal {
|
|
5
|
+
#{$property}-left: var(--#{$property}-horizontal);
|
|
6
|
+
#{$property}-right: var(--#{$property}-horizontal);
|
|
7
|
+
|
|
8
|
+
@if ($property == padding) {
|
|
9
|
+
&.--border {
|
|
10
|
+
padding-left: calc(var(--padding-horizontal) - var(--border-width));
|
|
11
|
+
padding-right: calc(var(--padding-horizontal) - var(--border-width));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&,
|
|
17
|
+
&-vertical {
|
|
18
|
+
#{$property}-bottom: var(--#{$property}-vertical);
|
|
19
|
+
#{$property}-top: var(--#{$property}-vertical);
|
|
20
|
+
|
|
21
|
+
@if ($property == padding) {
|
|
22
|
+
&.--border {
|
|
23
|
+
padding-bottom: calc(var(--padding-vertical) - var(--border-width));
|
|
24
|
+
padding-top: calc(var(--padding-vertical) - var(--border-width));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@each $direction in 'bottom' 'top' {
|
|
30
|
+
&-#{$direction} {
|
|
31
|
+
#{$property}-#{$direction}: var(--#{$property}-vertical);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@each $direction in 'left' 'right' {
|
|
36
|
+
&-#{$direction} {
|
|
37
|
+
#{$property}-#{$direction}: var(--#{$property}-horizontal);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
@each $property in margin padding {
|
|
5
|
+
.--#{$property} {
|
|
6
|
+
@each $direction in 'horizontal' 'vertical' {
|
|
7
|
+
&-border {
|
|
8
|
+
&-width {
|
|
9
|
+
--#{$property}-#{$direction}: var(--border-width-400);
|
|
10
|
+
|
|
11
|
+
@each $key in lib.map-keys(tokens.$border-width) {
|
|
12
|
+
&,
|
|
13
|
+
&-#{$direction} {
|
|
14
|
+
&-#{$key} {
|
|
15
|
+
--#{$property}-#{$direction}: var(--border-width-#{$key});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@each $key in lib.map-keys(tokens.$size) {
|
|
23
|
+
&,
|
|
24
|
+
&-#{$direction} {
|
|
25
|
+
&-#{$key} {
|
|
26
|
+
--#{$property}-#{$direction}: var(--size-#{$key});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&,
|
|
32
|
+
&-#{$direction} {
|
|
33
|
+
&-inherit {
|
|
34
|
+
--#{$property}-#{$direction}: inherit;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@each $property in margin {
|
|
42
|
+
.--#{$property} {
|
|
43
|
+
@each $direction in 'horizontal' 'vertical' {
|
|
44
|
+
&,
|
|
45
|
+
&-#{$direction} {
|
|
46
|
+
&-auto {
|
|
47
|
+
--#{$property}-#{$direction}: auto;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@each $prefix in max min {
|
|
2
|
+
.--#{$prefix} {
|
|
3
|
+
&-height {
|
|
4
|
+
&-full {
|
|
5
|
+
--#{$prefix}-height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-viewport {
|
|
9
|
+
--#{$prefix}-height: 100vh;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-width {
|
|
14
|
+
&-full {
|
|
15
|
+
--#{$prefix}-width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-viewport {
|
|
19
|
+
--#{$prefix}-width: 100vw;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
|
|
3
|
+
.--absolute {
|
|
4
|
+
&-bottom,
|
|
5
|
+
&-top {
|
|
6
|
+
left: 0;
|
|
7
|
+
position: absolute;
|
|
8
|
+
right: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-left,
|
|
12
|
+
&-right {
|
|
13
|
+
bottom: 0;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-center {
|
|
19
|
+
@include lib.position(absolute, center);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-full {
|
|
23
|
+
@include lib.position(absolute, full);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-horizontal {
|
|
27
|
+
&,
|
|
28
|
+
&-bottom,
|
|
29
|
+
&-top {
|
|
30
|
+
@include lib.position(absolute, horizontal);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-vertical {
|
|
35
|
+
&,
|
|
36
|
+
&-left,
|
|
37
|
+
&-right {
|
|
38
|
+
@include lib.position(absolute, vertical);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@each $direction in 'bottom' 'top' {
|
|
43
|
+
&,
|
|
44
|
+
&-horizontal {
|
|
45
|
+
&-#{$direction} {
|
|
46
|
+
#{$direction}: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@each $direction in 'left' 'right' {
|
|
52
|
+
&,
|
|
53
|
+
&-vertical {
|
|
54
|
+
&-#{$direction} {
|
|
55
|
+
#{$direction}: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.--background {
|
|
5
|
+
&-state {
|
|
6
|
+
--background: var(--background-default);
|
|
7
|
+
--background-active: var(--background-default);
|
|
8
|
+
--background-default: transparent;
|
|
9
|
+
--background-hover: var(--background-default);
|
|
10
|
+
--background-pressed: var(--background-default);
|
|
11
|
+
|
|
12
|
+
@include tokens.state(active) {
|
|
13
|
+
--background: var(--background-active);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include tokens.state(hover) {
|
|
17
|
+
--background: var(--background-hover);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include tokens.state(pressed) {
|
|
21
|
+
--background: var(--background-pressed);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin css-variables($colors) {
|
|
27
|
+
@include tokens.state-utility('.--background', 'background', $colors);
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.--border {
|
|
2
|
+
border: var(--border-width) var(--border-style) var(--border-color);
|
|
3
|
+
|
|
4
|
+
@each $key in 'bottom' 'left' 'right' 'top' {
|
|
5
|
+
&-#{$key} {
|
|
6
|
+
border-#{$key}: var(--border-width) var(--border-style) var(--border-color);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-offset {
|
|
11
|
+
@each $key in 'bottom' 'left' 'right' 'top' {
|
|
12
|
+
&-#{$key} {
|
|
13
|
+
margin-#{$key}: calc(var(--border-width) * -1);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-radius {
|
|
19
|
+
border-radius: var(--border-radius);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.--border {
|
|
5
|
+
&,
|
|
6
|
+
&-bottom,
|
|
7
|
+
&-left,
|
|
8
|
+
&-right,
|
|
9
|
+
&-top {
|
|
10
|
+
--border-color: var(--border-color-default);
|
|
11
|
+
--border-style: solid;
|
|
12
|
+
--border-width: var(--border-width-400);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-dashed {
|
|
16
|
+
--border-style: dashed;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-dotted {
|
|
20
|
+
--border-style: dotted;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-radius {
|
|
24
|
+
--border-radius: var(--border-radius-400);
|
|
25
|
+
|
|
26
|
+
@each $key in lib.map-keys(tokens.$border-radius) {
|
|
27
|
+
&-#{$key} {
|
|
28
|
+
--border-radius: var(--border-radius-#{$key});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-state {
|
|
34
|
+
--border-color: var(--border-color-default);
|
|
35
|
+
--border-color-active: var(--border-color-default);
|
|
36
|
+
--border-color-default: transparent;
|
|
37
|
+
--border-color-hover: var(--border-color-default);
|
|
38
|
+
--border-color-pressed: var(--border-color-default);
|
|
39
|
+
|
|
40
|
+
@include tokens.state(active) {
|
|
41
|
+
--border-color: var(--border-color-active);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include tokens.state(hover) {
|
|
45
|
+
--border-color: var(--border-color-hover);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include tokens.state(pressed) {
|
|
49
|
+
--border-color: var(--border-color-pressed);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-width {
|
|
54
|
+
--border-width: var(--border-width-400);
|
|
55
|
+
|
|
56
|
+
@each $key in lib.map-keys(tokens.$border-width) {
|
|
57
|
+
&-#{$key} {
|
|
58
|
+
--border-width: var(--border-width-#{$key});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@mixin css-variables($colors) {
|
|
65
|
+
@include tokens.state-utility('.--border', 'border-color', $colors);
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.--color {
|
|
5
|
+
&-inherit {
|
|
6
|
+
--color: inherit;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-state {
|
|
10
|
+
--color: var(--color-default);
|
|
11
|
+
--color-active: var(--color-default);
|
|
12
|
+
--color-default: var(--color-text-400);
|
|
13
|
+
--color-hover: var(--color-default);
|
|
14
|
+
--color-pressed: var(--color-default);
|
|
15
|
+
|
|
16
|
+
@include tokens.state(active) {
|
|
17
|
+
--color: var(--color-active);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include tokens.state(hover) {
|
|
21
|
+
--color: var(--color-hover);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include tokens.state(pressed) {
|
|
25
|
+
--color: var(--color-pressed);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin css-variables($colors) {
|
|
31
|
+
@include tokens.state-utility('.--color', 'color', $colors);
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*------------------------------------------------------------------------------
|
|
3
|
+
*
|
|
4
|
+
* Disabled State
|
|
5
|
+
*
|
|
6
|
+
* When Using The '.disabled' Class
|
|
7
|
+
* - Form Elements Have The 'disabled' Attribute Added
|
|
8
|
+
* - Links Have The 'href' Attribute Removed
|
|
9
|
+
*
|
|
10
|
+
* ^ Reasons For Using A Single Class Vs '--disabled' Modifier On Each Module.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
.--disabled {
|
|
15
|
+
opacity: var(--opacity);
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@use 'ui/tokens';
|
|
2
|
+
|
|
3
|
+
.--flex {
|
|
4
|
+
&-center {
|
|
5
|
+
align-content: center;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-column {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-flow: column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-end {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-fill {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-fixed {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: 0 0 var(--width);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-horizontal {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
|
|
38
|
+
&-space-between {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-row {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-flow: row;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-start {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-vertical {
|
|
57
|
+
align-items: center;
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
|
|
61
|
+
&-space-between {
|
|
62
|
+
align-items: space-between;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'ui/lib';
|
|
2
|
+
@use 'ui/tokens';
|
|
3
|
+
|
|
4
|
+
.--hidden {
|
|
5
|
+
display: none;
|
|
6
|
+
|
|
7
|
+
&-active {
|
|
8
|
+
@include tokens.state(active) {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-inactive {
|
|
14
|
+
@include tokens.state(inactive) {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-visibility {
|
|
20
|
+
@include lib.position(absolute, 0 null null 0);
|
|
21
|
+
appearance: none;
|
|
22
|
+
height: 0px;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
width: 0px;
|
|
26
|
+
z-index: -1;
|
|
27
|
+
}
|
|
28
|
+
}
|