@esportsplus/ui 0.7.16 → 0.8.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.
Files changed (165) hide show
  1. package/.editorconfig +9 -9
  2. package/.gitattributes +2 -2
  3. package/build/components/clipboard/index.d.ts +1 -0
  4. package/build/components/clipboard/index.js +1 -0
  5. package/build/components/counter/index.js +16 -16
  6. package/build/components/ellipsis/index.js +6 -6
  7. package/build/components/footer/index.js +46 -46
  8. package/build/components/form/layout.js +10 -10
  9. package/build/components/link/hover.js +8 -8
  10. package/build/components/loader/index.js +15 -15
  11. package/build/components/loading/index.js +2 -2
  12. package/build/components/magnet/index.js +7 -7
  13. package/build/components/scrollbar/index.js +9 -9
  14. package/build/components/site/index.js +5 -5
  15. package/components/styles.css +1 -2
  16. package/components/variables.css +1 -3
  17. package/lib.scss +1 -1
  18. package/package.json +4 -1
  19. package/src/components/accordion/index.ts +34 -34
  20. package/src/components/accordion/scss/index.scss +16 -16
  21. package/src/components/accordion/scss/variables.scss +9 -9
  22. package/src/components/anchor/scss/index.scss +41 -41
  23. package/src/components/anchor/scss/variables.scss +4 -4
  24. package/src/components/banner/scss/index.scss +40 -40
  25. package/src/components/banner/scss/variables.scss +9 -9
  26. package/src/components/button/scss/index.scss +114 -114
  27. package/src/components/button/scss/variables.scss +66 -66
  28. package/src/components/card/scss/index.scss +35 -35
  29. package/src/components/card/scss/variables.scss +41 -41
  30. package/src/components/clipboard/index.ts +4 -3
  31. package/src/components/clipboard/scss/index.scss +3 -0
  32. package/src/components/clipboard/write.ts +8 -8
  33. package/src/components/container/scss/index.scss +8 -8
  34. package/src/components/container/scss/variables.scss +5 -5
  35. package/src/components/counter/index.ts +93 -93
  36. package/src/components/counter/scss/index.scss +61 -61
  37. package/src/components/counter/scss/variables.scss +26 -26
  38. package/src/components/ellipsis/index.ts +9 -9
  39. package/src/components/ellipsis/scss/index.scss +27 -27
  40. package/src/components/ellipsis/scss/variables.scss +4 -4
  41. package/src/components/footer/index.ts +78 -78
  42. package/src/components/footer/scss/index.scss +25 -25
  43. package/src/components/form/action.ts +80 -80
  44. package/src/components/form/index.ts +5 -5
  45. package/src/components/form/input.ts +14 -14
  46. package/src/components/form/layout.ts +25 -25
  47. package/src/components/form/types.ts +15 -15
  48. package/src/components/frame/scss/index.scss +11 -11
  49. package/src/components/grid/scss/index.scss +9 -9
  50. package/src/components/grid/scss/variables.scss +5 -5
  51. package/src/components/group/scss/index.scss +36 -36
  52. package/src/components/group/scss/variables.scss +17 -17
  53. package/src/components/highlight/index.ts +47 -47
  54. package/src/components/highlight/scss/index.scss +4 -4
  55. package/src/components/highlight/scss/variables.scss +3 -3
  56. package/src/components/icon/scss/index.scss +16 -16
  57. package/src/components/icon/scss/variables.scss +7 -7
  58. package/src/components/json/download.ts +14 -14
  59. package/src/components/json/index.ts +3 -3
  60. package/src/components/link/hover.ts +18 -18
  61. package/src/components/link/index.ts +3 -3
  62. package/src/components/link/scss/index.scss +65 -65
  63. package/src/components/link/scss/variables.scss +46 -46
  64. package/src/components/loader/index.ts +34 -34
  65. package/src/components/loader/scss/index.scss +68 -68
  66. package/src/components/loader/scss/variables.scss +5 -5
  67. package/src/components/loading/index.ts +7 -7
  68. package/src/components/loading/scss/index.scss +16 -16
  69. package/src/components/loading/scss/variables.scss +5 -5
  70. package/src/components/magnet/index.ts +54 -54
  71. package/src/components/magnet/scss/index.scss +16 -16
  72. package/src/components/magnet/scss/variables.scss +4 -4
  73. package/src/components/modal/scss/index.scss +34 -34
  74. package/src/components/modal/scss/variables.scss +6 -6
  75. package/src/components/number/index.ts +23 -23
  76. package/src/components/page/index.ts +14 -14
  77. package/src/components/page/scss/index.scss +31 -31
  78. package/src/components/page/scss/variables.scss +15 -15
  79. package/src/components/root/index.ts +4 -4
  80. package/src/components/root/onclick.ts +20 -20
  81. package/src/components/root/scss/index.scss +94 -94
  82. package/src/components/root/scss/variables.scss +100 -100
  83. package/src/components/row/scss/index.scss +7 -7
  84. package/src/components/scrollbar/index.ts +43 -43
  85. package/src/components/scrollbar/scss/index.scss +70 -70
  86. package/src/components/scrollbar/scss/variables.scss +6 -6
  87. package/src/components/sidebar/scss/index.scss +49 -49
  88. package/src/components/sidebar/scss/variables.scss +20 -20
  89. package/src/components/site/index.ts +26 -26
  90. package/src/components/site/scss/index.scss +3 -3
  91. package/src/components/text/scss/index.scss +9 -9
  92. package/src/components/text/scss/variables.scss +8 -8
  93. package/src/components/thumbnail/scss/index.scss +7 -7
  94. package/src/components/thumbnail/scss/variables.scss +7 -7
  95. package/src/components/tooltip/index.ts +84 -84
  96. package/src/components/tooltip/scss/_center.scss +13 -13
  97. package/src/components/tooltip/scss/_east.scss +34 -34
  98. package/src/components/tooltip/scss/_north.scss +34 -34
  99. package/src/components/tooltip/scss/_south.scss +35 -35
  100. package/src/components/tooltip/scss/_west.scss +34 -34
  101. package/src/components/tooltip/scss/index.scss +93 -93
  102. package/src/components/tooltip/scss/variables.scss +24 -24
  103. package/src/components/truncate/index.ts +13 -13
  104. package/src/components/typewriter/index.ts +53 -53
  105. package/src/components/typewriter/scss/index.scss +14 -14
  106. package/src/css-utilities/[margin,padding]/scss/index.scss +41 -41
  107. package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -54
  108. package/src/css-utilities/absolute/scss/index.scss +36 -36
  109. package/src/css-utilities/background/scss/variables.scss +27 -27
  110. package/src/css-utilities/border/scss/index.scss +21 -21
  111. package/src/css-utilities/border/scss/variables.scss +66 -66
  112. package/src/css-utilities/color/scss/variables.scss +31 -31
  113. package/src/css-utilities/disabled/scss/index.scss +4 -4
  114. package/src/css-utilities/flex/scss/index.scss +65 -65
  115. package/src/css-utilities/glass/scss/index.scss +2 -2
  116. package/src/css-utilities/glass/scss/variables.scss +2 -2
  117. package/src/css-utilities/hidden/scss/index.scss +28 -28
  118. package/src/css-utilities/index.scss +14 -14
  119. package/src/css-utilities/inline/scss/index.scss +7 -7
  120. package/src/css-utilities/line-height/scss/variables.scss +10 -10
  121. package/src/css-utilities/not-allowed/scss/index.scss +7 -7
  122. package/src/css-utilities/overflow/scss/index.scss +4 -4
  123. package/src/css-utilities/pointer/scss/index.scss +5 -5
  124. package/src/css-utilities/size/scss/variables.scss +12 -12
  125. package/src/css-utilities/squircle/scss/index.scss +4 -4
  126. package/src/css-utilities/text/scss/index.scss +89 -89
  127. package/src/css-utilities/text/scss/variables.scss +31 -31
  128. package/src/css-utilities/viewport/scss/index.scss +4 -4
  129. package/src/css-utilities/width/scss/index.scss +3 -3
  130. package/src/css-utilities/width/scss/variables.scss +9 -9
  131. package/src/index.ts +18 -18
  132. package/src/lib/index.scss +7 -7
  133. package/src/lib/scss/breakpoint.scss +41 -41
  134. package/src/lib/scss/color.scss +1 -1
  135. package/src/lib/scss/css-variables.scss +16 -16
  136. package/src/lib/scss/list.scss +77 -77
  137. package/src/lib/scss/map.scss +1 -1
  138. package/src/lib/scss/position.scss +55 -55
  139. package/src/lib/scss/string.scss +34 -34
  140. package/src/tokens/index.scss +11 -11
  141. package/src/tokens/scss/border-radius.scss +12 -12
  142. package/src/tokens/scss/border-width.scss +6 -6
  143. package/src/tokens/scss/box-shadow.scss +39 -21
  144. package/src/tokens/scss/color.scss +64 -65
  145. package/src/tokens/scss/font-size.scss +16 -16
  146. package/src/tokens/scss/font-weight.scss +6 -6
  147. package/src/tokens/scss/line-height.scss +6 -6
  148. package/src/tokens/scss/size.scss +13 -13
  149. package/src/tokens/scss/spacer.scss +10 -8
  150. package/src/tokens/scss/state.scss +87 -87
  151. package/src/tokens/scss/transition-duration.scss +1 -1
  152. package/storage/fonts/montserrat/index.css +79 -79
  153. package/storage/psd/Color Palette.psd +0 -0
  154. package/tokens.scss +1 -1
  155. package/tsconfig.json +2 -2
  156. package/utilities/styles.css +1 -1
  157. package/utilities/variables.css +1 -1
  158. package/webpack.config.ts +25 -25
  159. package/.github/dependabot.yml +0 -23
  160. package/.github/workflows/bump.yml +0 -7
  161. package/.github/workflows/publish.yml +0 -14
  162. package/src/components/border/scss/index.scss +0 -10
  163. package/src/components/border/scss/variables.scss +0 -6
  164. package/src/components/bubble/scss/index.scss +0 -30
  165. package/src/components/bubble/scss/variables.scss +0 -19
@@ -1,69 +1,69 @@
1
- .loader {
2
- background-color: var(--color-black-500);
3
- bottom: 0;
4
- left: 0;
5
- position: fixed;
6
- opacity: 1;
7
- pointer-events: none;
8
- right: 0;
9
- top: 0;
10
- transition: all 0.3s ease-in-out;
11
- visibility: visible;
12
- z-index: 9999;
13
-
14
-
15
- &--load {
16
- animation: 0.6s 0.2s ease-in-out 1 both move;
17
-
18
- & & {
19
- animation: 0.6s ease-in-out 1 both move;
20
- }
21
- }
22
-
23
-
24
- @keyframes move {
25
- 0% {
26
- transform: translateY(0);
27
- }
28
- 80% {
29
- transform: translateY(-102%);
30
- }
31
- 100% {
32
- transform: translateY(-102%);
33
- }
34
- }
35
-
36
-
37
- & & {
38
- background-color: var(--color-black-400);
39
- }
40
-
41
- &-content {
42
- bottom: auto;
43
- left: 50%;
44
- position: absolute;
45
- right: auto;
46
- top: 50%;
47
- transform: translateX(-50%) translateY(-50%);
48
- }
49
-
50
- &-logo {
51
- color: white;
52
-
53
- &--scale {
54
- animation: scale 0.32s 1;
55
- animation-fill-mode: both;
56
-
57
- @keyframes scale {
58
- from {
59
- opacity: 1;
60
- transform: scale3d(1, 1, 1);
61
- }
62
- to {
63
- opacity: 0;
64
- transform: scale3d(1.8, 1.8, 1.8);
65
- }
66
- }
67
- }
68
- }
1
+ .loader {
2
+ background-color: var(--color-black-500);
3
+ bottom: 0;
4
+ left: 0;
5
+ position: fixed;
6
+ opacity: 1;
7
+ pointer-events: none;
8
+ right: 0;
9
+ top: 0;
10
+ transition: all 0.3s ease-in-out;
11
+ visibility: visible;
12
+ z-index: 9999;
13
+
14
+
15
+ &--load {
16
+ animation: 0.6s 0.2s ease-in-out 1 both move;
17
+
18
+ & & {
19
+ animation: 0.6s ease-in-out 1 both move;
20
+ }
21
+ }
22
+
23
+
24
+ @keyframes move {
25
+ 0% {
26
+ transform: translateY(0);
27
+ }
28
+ 80% {
29
+ transform: translateY(-102%);
30
+ }
31
+ 100% {
32
+ transform: translateY(-102%);
33
+ }
34
+ }
35
+
36
+
37
+ & & {
38
+ background-color: var(--color-black-400);
39
+ }
40
+
41
+ &-content {
42
+ bottom: auto;
43
+ left: 50%;
44
+ position: absolute;
45
+ right: auto;
46
+ top: 50%;
47
+ transform: translateX(-50%) translateY(-50%);
48
+ }
49
+
50
+ &-logo {
51
+ color: white;
52
+
53
+ &--scale {
54
+ animation: scale 0.32s 1;
55
+ animation-fill-mode: both;
56
+
57
+ @keyframes scale {
58
+ from {
59
+ opacity: 1;
60
+ transform: scale3d(1, 1, 1);
61
+ }
62
+ to {
63
+ opacity: 0;
64
+ transform: scale3d(1.8, 1.8, 1.8);
65
+ }
66
+ }
67
+ }
68
+ }
69
69
  }
@@ -1,6 +1,6 @@
1
- .loader {
2
- &-logo{
3
- --size: 10svh;
4
- --translateY: 8px;
5
- }
1
+ .loader {
2
+ &-logo{
3
+ --size: 10svh;
4
+ --translateY: 8px;
5
+ }
6
6
  }
@@ -1,8 +1,8 @@
1
- import { html } from '@esportsplus/template';
2
-
3
-
4
- export default (properties?: Record<PropertyKey, unknown>) => {
5
- return html`
6
- <div class="loading --border-width-700 --size-800" style='--border-color: var(--color-border-500);' ${properties}></div>
7
- `;
1
+ import { html } from '@esportsplus/template';
2
+
3
+
4
+ export default (properties?: Record<PropertyKey, unknown>) => {
5
+ return html`
6
+ <div class="loading --border-width-700 --size-800" style='--border-color: var(--color-border-500);' ${properties}></div>
7
+ `;
8
8
  };
@@ -1,17 +1,17 @@
1
- .loading {
2
- animation: Loading var(--animation-duration) linear infinite;
3
- border: var(--border-width) solid color-mix(in srgb, var(--border-color), transparent 90%);
4
- border-left-color: var(--border-color);
5
- border-radius: 100%;
6
- height: var(--size);
7
- width: var(--size);
8
- }
9
-
10
- @keyframes Loading {
11
- 0% {
12
- transform: rotate(0deg)
13
- }
14
- 100% {
15
- transform: rotate(360deg)
16
- }
1
+ .loading {
2
+ animation: Loading var(--animation-duration) linear infinite;
3
+ border: var(--border-width) solid color-mix(in srgb, var(--border-color), transparent 90%);
4
+ border-left-color: var(--border-color);
5
+ border-radius: 100%;
6
+ height: var(--size);
7
+ width: var(--size);
8
+ }
9
+
10
+ @keyframes Loading {
11
+ 0% {
12
+ transform: rotate(0deg)
13
+ }
14
+ 100% {
15
+ transform: rotate(360deg)
16
+ }
17
17
  }
@@ -1,6 +1,6 @@
1
- .loading {
2
- --animation-duration: 0.64s;
3
- --border-color: var(--color);
4
- --border-width: var(--border-width-400);
5
- --size: var(--size-400);
1
+ .loading {
2
+ --animation-duration: 0.64s;
3
+ --border-color: var(--color);
4
+ --border-width: var(--border-width-400);
5
+ --size: var(--size-400);
6
6
  }
@@ -1,55 +1,55 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
3
-
4
-
5
- export default ({ attributes, hide }: { attributes?: Record<string, unknown>, hide?: boolean }) => {
6
- let active = false,
7
- events: Record<string, Function> = {
8
- onmouseover: function (this: HTMLElement) {
9
- let { offsetHeight, offsetLeft, offsetTop, offsetWidth } = this;
10
-
11
- active = true;
12
-
13
- state.height = offsetHeight;
14
- state.left = offsetLeft;
15
- state.opacity = 1;
16
- state.top = offsetTop;
17
- state.width = offsetWidth;
18
- }
19
- },
20
- state = reactive({
21
- height: null as number | null,
22
- hide: true,
23
- left: 0,
24
- opacity: 0,
25
- top: 0,
26
- width: 0
27
- });
28
-
29
- if (hide === true) {
30
- events.onmouseout = () => {
31
- active = false;
32
- setTimeout(() => {
33
- if (active === true) {
34
- return;
35
- }
36
-
37
- state.opacity = 0;
38
- }, 50);
39
- };
40
- }
41
-
42
- return {
43
- html: html`
44
- <div class='magnet' style='${() => `
45
- height: ${state.height ? `${state.height}px` : '100%'};
46
- opacity: ${state.opacity};
47
- transform: translate(${state.left}px, ${state.top}px);
48
- width: ${state.width}px;
49
- `}' ${attributes}></div>
50
- `,
51
- sibling: {
52
- attributes: events
53
- }
54
- };
1
+ import { reactive } from '@esportsplus/reactivity';
2
+ import { html } from '@esportsplus/template';
3
+
4
+
5
+ export default ({ attributes, hide }: { attributes?: Record<string, unknown>, hide?: boolean }) => {
6
+ let active = false,
7
+ events: Record<string, Function> = {
8
+ onmouseover: function (this: HTMLElement) {
9
+ let { offsetHeight, offsetLeft, offsetTop, offsetWidth } = this;
10
+
11
+ active = true;
12
+
13
+ state.height = offsetHeight;
14
+ state.left = offsetLeft;
15
+ state.opacity = 1;
16
+ state.top = offsetTop;
17
+ state.width = offsetWidth;
18
+ }
19
+ },
20
+ state = reactive({
21
+ height: null as number | null,
22
+ hide: true,
23
+ left: 0,
24
+ opacity: 0,
25
+ top: 0,
26
+ width: 0
27
+ });
28
+
29
+ if (hide === true) {
30
+ events.onmouseout = () => {
31
+ active = false;
32
+ setTimeout(() => {
33
+ if (active === true) {
34
+ return;
35
+ }
36
+
37
+ state.opacity = 0;
38
+ }, 50);
39
+ };
40
+ }
41
+
42
+ return {
43
+ html: html`
44
+ <div class='magnet' style='${() => `
45
+ height: ${state.height ? `${state.height}px` : '100%'};
46
+ opacity: ${state.opacity};
47
+ transform: translate(${state.left}px, ${state.top}px);
48
+ width: ${state.width}px;
49
+ `}' ${attributes}></div>
50
+ `,
51
+ sibling: {
52
+ attributes: events
53
+ }
54
+ };
55
55
  };
@@ -1,16 +1,16 @@
1
- @use '/lib';
2
-
3
- .magnet {
4
- @include lib.position(absolute, 0 null null 0);
5
- background: var(--background);
6
- border-radius: var(--border-radius);
7
- height: 0;
8
- opacity: 0;
9
- transition:
10
- height var(--transition-duration) var(--timing-function),
11
- opacity var(--transition-duration) var(--timing-function),
12
- transform var(--transition-duration) var(--timing-function),
13
- width var(--transition-duration) var(--timing-function);
14
- width: 0;
15
- z-index: -1;
16
- }
1
+ @use '/lib';
2
+
3
+ .magnet {
4
+ @include lib.position(absolute, 0 null null 0);
5
+ background: var(--background);
6
+ border-radius: var(--border-radius);
7
+ height: 0;
8
+ opacity: 0;
9
+ transition:
10
+ height var(--transition-duration) var(--timing-function),
11
+ opacity var(--transition-duration) var(--timing-function),
12
+ transform var(--transition-duration) var(--timing-function),
13
+ width var(--transition-duration) var(--timing-function);
14
+ width: 0;
15
+ z-index: -1;
16
+ }
@@ -1,5 +1,5 @@
1
- .magnet {
2
- --background: transparent;
3
- --border-radius: var(--border-radius-400);
4
- --timing-function: var(--timing-circ);
1
+ .magnet {
2
+ --background: transparent;
3
+ --border-radius: var(--border-radius-400);
4
+ --timing-function: var(--timing-circ);
5
5
  }
@@ -1,35 +1,35 @@
1
- @use '/lib';
2
- @use '/tokens';
3
-
4
- .modal {
5
- @include lib.position(fixed, center);
6
- max-height: var(--max-height);
7
- overflow: hidden;
8
- transition:
9
- opacity var(--transition-duration) ease-in-out,
10
- transform var(--transition-duration) ease-in-out;
11
- transform-origin: center;
12
- width: min(var(--max-width), calc(100svw - (var(--margin-horizontal) * 2)));
13
- z-index: 2;
14
-
15
- @include tokens.state(inactive) {
16
- opacity: 0;
17
- pointer-events: none;
18
- transform: translate(50%, 50%) scale(0.8);
19
-
20
- input[type='password'] {
21
- display: none;
22
- }
23
- }
24
-
25
- &-frame {
26
- transition:
27
- opacity var(--transition-duration) ease-in-out,
28
- transform var(--transition-duration) ease-in-out;
29
- transform-origin: center;
30
-
31
- @include tokens.state(inactive) {
32
- display: none;
33
- }
34
- }
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .modal {
5
+ @include lib.position(fixed, center);
6
+ max-height: var(--max-height);
7
+ overflow: hidden;
8
+ transition:
9
+ opacity var(--transition-duration) ease-in-out,
10
+ transform var(--transition-duration) ease-in-out;
11
+ transform-origin: center;
12
+ width: min(var(--max-width), calc(100svw - (var(--margin-horizontal) * 2)));
13
+ z-index: 2;
14
+
15
+ @include tokens.state(inactive) {
16
+ opacity: 0;
17
+ pointer-events: none;
18
+ transform: translate(50%, 50%) scale(0.8);
19
+
20
+ input[type='password'] {
21
+ display: none;
22
+ }
23
+ }
24
+
25
+ &-frame {
26
+ transition:
27
+ opacity var(--transition-duration) ease-in-out,
28
+ transform var(--transition-duration) ease-in-out;
29
+ transform-origin: center;
30
+
31
+ @include tokens.state(inactive) {
32
+ display: none;
33
+ }
34
+ }
35
35
  }
@@ -1,6 +1,6 @@
1
- .modal {
2
- --margin-horizontal: 0px;
3
- --margin-vertical: 0px;
4
- --max-height: calc(100svh - (var(--margin-vertical) * 2));
5
- --max-width: 320px;
6
- }
1
+ .modal {
2
+ --margin-horizontal: 0px;
3
+ --margin-vertical: 0px;
4
+ --max-height: calc(100svh - (var(--margin-vertical) * 2));
5
+ --max-width: 320px;
6
+ }
@@ -1,24 +1,24 @@
1
- let formatter: null | Intl.NumberFormat = null,
2
- suffixes = ['th', 'st', 'nd', 'rd'];
3
-
4
-
5
- const abbreviate = (number: number) => {
6
- if (formatter === null) {
7
- formatter = new Intl.NumberFormat('en-GB', {
8
- notation: 'compact',
9
- compactDisplay: 'short'
10
- });
11
- }
12
-
13
- return formatter.format(number);
14
- };
15
-
16
- const ordinal = (number: number) => {
17
- let value = number % 100;
18
-
19
- return suffixes[(value - 20) % 10] || suffixes[value] || suffixes[0];
20
- };
21
-
22
-
23
- export default { abbreviate, ordinal };
1
+ let formatter: null | Intl.NumberFormat = null,
2
+ suffixes = ['th', 'st', 'nd', 'rd'];
3
+
4
+
5
+ const abbreviate = (number: number) => {
6
+ if (formatter === null) {
7
+ formatter = new Intl.NumberFormat('en-GB', {
8
+ notation: 'compact',
9
+ compactDisplay: 'short'
10
+ });
11
+ }
12
+
13
+ return formatter.format(number);
14
+ };
15
+
16
+ const ordinal = (number: number) => {
17
+ let value = number % 100;
18
+
19
+ return suffixes[(value - 20) % 10] || suffixes[value] || suffixes[0];
20
+ };
21
+
22
+
23
+ export default { abbreviate, ordinal };
24
24
  export { abbreviate, ordinal };
@@ -1,15 +1,15 @@
1
- const subtitle = {
2
- class: 'page-subtitle --margin-200 --text-crop-bottom'
3
- };
4
-
5
- const suptitle = {
6
- class: 'page-suptitle --text-bold-600 --text-crop --text-uppercase --text-300'
7
- };
8
-
9
- const title = {
10
- class: 'page-title --line-height-200 --margin-400 --text-crop'
11
- };
12
-
13
-
14
- export default { subtitle, suptitle, title };
1
+ const subtitle = {
2
+ class: 'page-subtitle --margin-200 --text-crop-bottom'
3
+ };
4
+
5
+ const suptitle = {
6
+ class: 'page-suptitle --text-bold-600 --text-crop --text-uppercase --text-300'
7
+ };
8
+
9
+ const title = {
10
+ class: 'page-title --line-height-200 --margin-400 --text-crop'
11
+ };
12
+
13
+
14
+ export default { subtitle, suptitle, title };
15
15
  export { subtitle, suptitle, title };
@@ -1,31 +1,31 @@
1
- .page {
2
- min-height: 100svh;
3
- position: relative;
4
- width: 100vw;
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
-
23
- &-suptitle + &-title,
24
- &-title + &-subtitle {
25
- margin-top: var(--margin-vertical);
26
- }
27
-
28
- &-title {
29
- text-wrap: balance;
30
- }
31
- }
1
+ .page {
2
+ min-height: 100svh;
3
+ position: relative;
4
+ width: 100vw;
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
+
23
+ &-suptitle + &-title,
24
+ &-title + &-subtitle {
25
+ margin-top: var(--margin-vertical);
26
+ }
27
+
28
+ &-title {
29
+ text-wrap: balance;
30
+ }
31
+ }
@@ -1,15 +1,15 @@
1
- .page {
2
- &-subtitle,
3
- &-suptitle {
4
- --color: var(--color-default);
5
- --color-default: var(--color-text-400);
6
- --font-size: var(--font-size-400);
7
- --line-height: var(--line-height-400);
8
- }
9
-
10
- &-title {
11
- --color: var(--color-default);
12
- --color-default: var(--color-text-500);
13
- --line-height: var(--line-height-400);
14
- }
15
- }
1
+ .page {
2
+ &-subtitle,
3
+ &-suptitle {
4
+ --color: var(--color-default);
5
+ --color-default: var(--color-text-400);
6
+ --font-size: var(--font-size-400);
7
+ --line-height: var(--line-height-400);
8
+ }
9
+
10
+ &-title {
11
+ --color: var(--color-default);
12
+ --color-default: var(--color-text-500);
13
+ --line-height: var(--line-height-400);
14
+ }
15
+ }
@@ -1,5 +1,5 @@
1
- import onclick from './onclick';
2
-
3
-
4
- export default { onclick };
1
+ import onclick from './onclick';
2
+
3
+
4
+ export default { onclick };
5
5
  export { onclick };