@basis-ng/styles 0.0.1-alpha.20 → 0.0.1-alpha.200

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 (71) hide show
  1. package/package.json +28 -36
  2. package/src/components/alert.css +58 -0
  3. package/src/components/backdrop.css +17 -0
  4. package/src/components/badge.css +43 -0
  5. package/src/components/button-group.css +16 -0
  6. package/src/components/button.css +88 -0
  7. package/src/components/calendar.css +56 -0
  8. package/src/components/card.css +24 -0
  9. package/src/components/checkbox.css +66 -0
  10. package/src/components/command-options.css +17 -0
  11. package/src/components/command.css +20 -0
  12. package/src/components/dialog.css +41 -0
  13. package/src/components/drawer.css +112 -0
  14. package/src/components/input-group.css +138 -0
  15. package/src/components/input.css +56 -0
  16. package/src/components/{label.component.css → label.css} +70 -74
  17. package/src/components/menu.css +154 -0
  18. package/src/components/option.css +37 -0
  19. package/src/components/otp.css +64 -0
  20. package/src/components/range.css +29 -0
  21. package/src/components/{row-item.component.css → row-item.css} +14 -14
  22. package/src/components/{row.component.css → row.css} +48 -56
  23. package/src/components/select-options.css +56 -0
  24. package/src/components/select.css +230 -0
  25. package/src/components/skeleton.css +37 -0
  26. package/src/components/spinner.css +3 -0
  27. package/src/components/switch.css +48 -0
  28. package/src/components/tabs.css +84 -0
  29. package/src/components/textarea-group.css +63 -0
  30. package/src/components/textarea.css +35 -0
  31. package/src/components/tooltip.css +37 -0
  32. package/src/components/tree.css +64 -0
  33. package/src/index.css +82 -39
  34. package/src/utilities/general.css +7 -0
  35. package/src/utilities/index.css +2 -0
  36. package/src/utilities/sizes.css +7 -0
  37. package/src/components/alert.component.css +0 -71
  38. package/src/components/attached-box.component.css +0 -84
  39. package/src/components/badge.component.css +0 -58
  40. package/src/components/bottom-sheet.component.css +0 -49
  41. package/src/components/button-group.component.css +0 -20
  42. package/src/components/button.component.css +0 -164
  43. package/src/components/checkbox.component.css +0 -41
  44. package/src/components/color-picker.component.css +0 -34
  45. package/src/components/combobox-options.component.css +0 -41
  46. package/src/components/combobox.component.css +0 -8
  47. package/src/components/command-options.component.css +0 -33
  48. package/src/components/command.component.css +0 -45
  49. package/src/components/icon.component.css +0 -5
  50. package/src/components/input-group.component.css +0 -110
  51. package/src/components/input.component.css +0 -70
  52. package/src/components/menu-group.component.css +0 -18
  53. package/src/components/menu-item-checkbox.component.css +0 -32
  54. package/src/components/menu-item-radio.component.css +0 -32
  55. package/src/components/menu-item.component.css +0 -32
  56. package/src/components/menu-label.component.css +0 -4
  57. package/src/components/menu.component.css +0 -32
  58. package/src/components/option.component.css +0 -26
  59. package/src/components/range.component.css +0 -39
  60. package/src/components/select-options.component.css +0 -41
  61. package/src/components/select.component.css +0 -8
  62. package/src/components/side-sheet.component.css +0 -59
  63. package/src/components/spinner.component.css +0 -13
  64. package/src/components/switch.component.css +0 -68
  65. package/src/components/tab.component.css +0 -41
  66. package/src/components/table.component.css +0 -34
  67. package/src/components/tabs.component.css +0 -18
  68. package/src/components/textarea.component.css +0 -40
  69. package/src/components/tooltip.component.css +0 -45
  70. package/src/components/tree-node.component.css +0 -77
  71. package/src/components/tree.component.css +0 -7
@@ -0,0 +1,64 @@
1
+ b-tree {
2
+ @apply flex flex-col w-full min-h-4 gap-0.5;
3
+ }
4
+
5
+ b-tree-node {
6
+ @apply flex flex-col box-border;
7
+
8
+ &.b-active section {
9
+ @apply bg-secondary text-secondary-foreground;
10
+ @apply dark:bg-secondary-dark dark:text-secondary-foreground-dark;
11
+ }
12
+
13
+ section {
14
+ @apply px-3 rounded-size-md flex justify-between items-center h-8 box-border gap-1.5 text-sm select-none;
15
+
16
+ ng-icon[cdkdraghandle] {
17
+ @apply cursor-move;
18
+ }
19
+
20
+ &:hover {
21
+ @apply bg-secondary/50;
22
+ @apply dark:bg-secondary-dark/50;
23
+ }
24
+
25
+ .projected-content {
26
+ @apply flex items-center flex-1 gap-3 py-2 cursor-pointer;
27
+ }
28
+ }
29
+
30
+ b-tree {
31
+ @apply pl-4 box-border;
32
+ }
33
+
34
+ &.cdk-drag-preview {
35
+ @apply h-full w-full overflow-hidden shadow-none;
36
+
37
+ & > section {
38
+ @apply px-3 rounded-size-md flex justify-between items-center h-8 box-border gap-1.5 text-sm select-none bg-background;
39
+ @apply dark:bg-background-dark;
40
+
41
+ .projected-content {
42
+ @apply flex items-center flex-1 gap-3 py-2 cursor-pointer;
43
+ }
44
+ }
45
+ }
46
+
47
+ &.cdk-drag-placeholder {
48
+ @apply opacity-0;
49
+ }
50
+ }
51
+
52
+ b-tree.cdk-drop-list-dragging {
53
+ @apply pointer-events-none;
54
+ }
55
+
56
+ .b-size-sm b-tree b-tree-node section {
57
+ @apply px-2 rounded-size-sm h-6 gap-1.5 text-xs;
58
+ }
59
+ .b-size-md b-tree b-tree-node section {
60
+ @apply px-3 rounded-size-md h-8 gap-1.5 text-sm;
61
+ }
62
+ .b-size-lg b-tree b-tree-node section {
63
+ @apply px-4 rounded-size-lg h-10 gap-2 text-base;
64
+ }
package/src/index.css CHANGED
@@ -1,39 +1,82 @@
1
- @import './components/alert.component.css';
2
- @import './components/badge.component.css';
3
- @import './components/attached-box.component.css';
4
- @import './components/badge.component.css';
5
- @import './components/bottom-sheet.component.css';
6
- @import './components/button-group.component.css';
7
- @import './components/button.component.css';
8
- @import './components/checkbox.component.css';
9
- @import './components/color-picker.component.css';
10
- @import './components/icon.component.css';
11
- @import './components/input-group.component.css';
12
- @import './components/input.component.css';
13
- @import './components/label.component.css';
14
- @import './components/menu-group.component.css';
15
- @import './components/menu-item-checkbox.component.css';
16
- @import './components/menu-item-radio.component.css';
17
- @import './components/menu-item.component.css';
18
- @import './components/menu-label.component.css';
19
- @import './components/menu.component.css';
20
- @import './components/range.component.css';
21
- @import './components/row-item.component.css';
22
- @import './components/row.component.css';
23
- @import './components/select.component.css';
24
- @import './components/select-options.component.css';
25
- @import './components/combobox.component.css';
26
- @import './components/combobox-options.component.css';
27
- @import './components/command.component.css';
28
- @import './components/command-options.component.css';
29
- @import './components/option.component.css';
30
- @import './components/side-sheet.component.css';
31
- @import './components/spinner.component.css';
32
- @import './components/switch.component.css';
33
- @import './components/tab.component.css';
34
- @import './components/table.component.css';
35
- @import './components/tabs.component.css';
36
- @import './components/textarea.component.css';
37
- @import './components/tooltip.component.css';
38
- @import './components/tree-node.component.css';
39
- @import './components/tree.component.css';
1
+ @import 'tailwindcss';
2
+ @import './utilities/index.css';
3
+
4
+ @theme {
5
+ /* Font family */
6
+ --font-display: 'Geist', sans-serif;
7
+ --font-display-mono: 'Geist Mono', monospace;
8
+
9
+ /* Rounded sizes */
10
+ --radius-size-xs: 0.25rem;
11
+ --radius-size-sm: 0.375rem;
12
+ --radius-size-md: 0.5rem;
13
+ --radius-size-lg: 0.75rem;
14
+
15
+ /* Light theme colors */
16
+ --color-background: #fff;
17
+ --color-surface: #fff;
18
+ --color-font: #0a0a0a;
19
+ --color-primary: #0a0a0a;
20
+ --color-primary-foreground: #fff;
21
+ --color-secondary: #f5f5f5;
22
+ --color-secondary-foreground: #0a0a0a;
23
+ --color-ring: #e0e0e0;
24
+ --color-destructive: #e53935;
25
+ --color-destructive-foreground: #fff;
26
+ --color-success: #b7e4c7;
27
+ --color-success-foreground: #22543d;
28
+ --color-warning: #fff3cd;
29
+ --color-warning-foreground: #856404;
30
+ --color-info: #e0e0e0;
31
+ --color-info-foreground: #333;
32
+
33
+ /* Dark theme colors */
34
+ --color-background-dark: #0a0a0a;
35
+ --color-surface-dark: #171717;
36
+ --color-font-dark: #fff;
37
+ --color-bg-dark: #0a0a0a;
38
+ --color-primary-dark: #fff;
39
+ --color-primary-foreground-dark: #0a0a0a;
40
+ --color-secondary-dark: #262626;
41
+ --color-secondary-foreground-dark: #fff;
42
+ --color-ring-dark: #ffffff26;
43
+ --color-destructive-dark: #ff6659;
44
+ --color-destructive-foreground-dark: #0a0a0a;
45
+ --color-success-dark: #22543d;
46
+ --color-success-foreground-dark: #d1fae5;
47
+ --color-warning-dark: #856404;
48
+ --color-warning-foreground-dark: #ffe066;
49
+ --color-info-dark: #424242;
50
+ --color-info-foreground-dark: #e0e0e0;
51
+ }
52
+
53
+ @import './components/alert.css';
54
+ @import './components/backdrop.css';
55
+ @import './components/badge.css';
56
+ @import './components/drawer.css';
57
+ @import './components/button-group.css';
58
+ @import './components/button.css';
59
+ @import './components/checkbox.css';
60
+ @import './components/input-group.css';
61
+ @import './components/input.css';
62
+ @import './components/label.css';
63
+ @import './components/menu.css';
64
+ @import './components/range.css';
65
+ @import './components/row-item.css';
66
+ @import './components/row.css';
67
+ @import './components/select.css';
68
+ @import './components/skeleton.css';
69
+ @import './components/command.css';
70
+ @import './components/command-options.css';
71
+ @import './components/option.css';
72
+ @import './components/spinner.css';
73
+ @import './components/switch.css';
74
+ @import './components/tabs.css';
75
+ @import './components/textarea.css';
76
+ @import './components/textarea-group.css';
77
+ @import './components/tooltip.css';
78
+ @import './components/tree.css';
79
+ @import './components/dialog.css';
80
+ @import './components/card.css';
81
+ @import './components/calendar.css';
82
+ @import './components/otp.css';
@@ -0,0 +1,7 @@
1
+ @utility no-scrollbar {
2
+ &::-webkit-scrollbar {
3
+ display: none;
4
+ }
5
+ -ms-overflow-style: none;
6
+ scrollbar-width: none;
7
+ }
@@ -0,0 +1,2 @@
1
+ @import './general.css';
2
+ @import './sizes.css';
@@ -0,0 +1,7 @@
1
+ @utility b-rounded-full {
2
+ border-radius: 9999px !important;
3
+ }
4
+
5
+ @utility b-rounded-none {
6
+ border-radius: 0 !important;
7
+ }
@@ -1,71 +0,0 @@
1
- b-alert {
2
- display: flex;
3
- align-items: center;
4
- gap: 1rem;
5
- padding: 1rem;
6
- border-radius: 0.5rem;
7
- position: relative;
8
- font-family: 'Geist', sans-serif;
9
- max-width: var(--max-width, none);
10
- width: 100%;
11
- box-sizing: border-box;
12
-
13
- .icon {
14
- flex-shrink: 0;
15
- align-self: flex-start;
16
- }
17
-
18
- .content {
19
- flex-grow: 1;
20
- display: flex;
21
- flex-direction: column;
22
- gap: 0.5rem;
23
-
24
- .title {
25
- font-weight: bold;
26
- }
27
-
28
- .body {
29
- font-size: 0.875rem;
30
- display: flex;
31
- flex-direction: column;
32
- gap: 0.2rem;
33
- }
34
- }
35
-
36
- &.success {
37
- background-color: var(--success);
38
- color: var(--success-foreground);
39
- border: 1px solid var(--success-border-color);
40
- }
41
-
42
- &.error {
43
- background-color: var(--error);
44
- color: var(--error-foreground);
45
- border: 1px solid var(--error-border-color);
46
- }
47
-
48
- &.warning {
49
- background-color: var(--warning);
50
- color: var(--warning-foreground);
51
- border: 1px solid var(--warning-border-color);
52
- }
53
-
54
- &.info {
55
- background-color: var(--secondary);
56
- color: var(--secondary-foreground);
57
- border: 1px solid var(--secondary-border-color);
58
- }
59
-
60
- .close-btn {
61
- align-self: flex-start;
62
- flex-shrink: 0;
63
- background: none;
64
- border: none;
65
- cursor: pointer;
66
- color: inherit;
67
- display: flex;
68
- align-items: start;
69
- padding: 0;
70
- }
71
- }
@@ -1,84 +0,0 @@
1
- b-attached-box {
2
- position: relative;
3
- cursor: pointer;
4
-
5
- .b-attached-box-content {
6
- position: absolute;
7
- display: flex;
8
- z-index: 1000;
9
- opacity: 0;
10
- transform: scale(var(--scale-from, 0.99))
11
- var(--translate-from, translateX(-10px));
12
- transition:
13
- opacity var(--duration, 0.15s) var(--enter-delay, 0s),
14
- transform var(--duration, 0.15s) var(--enter-delay, 0s);
15
- pointer-events: none;
16
-
17
- &.visible {
18
- opacity: 1;
19
- transform: scale(var(--scale-to, 1)) var(--translate-to, translateX(0));
20
- pointer-events: all;
21
- }
22
-
23
- /* Positioning classes */
24
- &.top-left {
25
- bottom: calc(100% + var(--gap, 0.5rem));
26
- left: 0;
27
- }
28
-
29
- &.top-center {
30
- bottom: calc(100% + var(--gap, 0.5rem));
31
- left: 50%;
32
- }
33
-
34
- &.top-right {
35
- bottom: calc(100% + var(--gap, 0.5rem));
36
- right: 0;
37
- }
38
-
39
- &.bottom-left {
40
- top: calc(100% + var(--gap, 0.5rem));
41
- left: 0;
42
- }
43
-
44
- &.bottom-center {
45
- top: calc(100% + var(--gap, 0.5rem));
46
- left: 50%;
47
- }
48
-
49
- &.bottom-right {
50
- top: calc(100% + var(--gap, 0.5rem));
51
- right: 0;
52
- }
53
-
54
- &.left-top {
55
- right: calc(100% + var(--gap, 0.5rem));
56
- top: 0;
57
- }
58
-
59
- &.left-center {
60
- right: calc(100% + var(--gap, 0.5rem));
61
- top: 50%;
62
- }
63
-
64
- &.left-bottom {
65
- right: calc(100% + var(--gap, 0.5rem));
66
- bottom: 0;
67
- }
68
-
69
- &.right-top {
70
- left: calc(100% + var(--gap, 0.5rem));
71
- top: 0;
72
- }
73
-
74
- &.right-center {
75
- left: calc(100% + var(--gap, 0.5rem));
76
- top: 50%;
77
- }
78
-
79
- &.right-bottom {
80
- left: calc(100% + var(--gap, 0.5rem));
81
- bottom: 0;
82
- }
83
- }
84
- }
@@ -1,58 +0,0 @@
1
- span[b-badge] {
2
- display: inline-flex;
3
- justify-content: center;
4
- align-items: center;
5
- font-size: 0.875rem;
6
- font-weight: 500;
7
- border-radius: 9999px;
8
- box-sizing: border-box;
9
- transition:
10
- background-color 0.2s,
11
- opacity 0.2s;
12
-
13
- &.primary {
14
- background-color: var(--primary, #0a0a0a);
15
- color: var(--primary-foreground, #ffffff);
16
- border: var(--border-px, 0px) solid var(--primary-border-color, #0a0a0a);
17
- }
18
-
19
- &.secondary {
20
- background-color: color-mix(
21
- in srgb,
22
- var(--secondary-foreground, #0a0a0a) 5%,
23
- var(--secondary, transparent)
24
- );
25
- color: var(--secondary-foreground, #0a0a0a);
26
- }
27
-
28
- &.ghost {
29
- background-color: transparent;
30
- color: var(--secondary-foreground, #0a0a0a);
31
-
32
- @media (width > 768px) {
33
- &:hover {
34
- background-color: color-mix(
35
- in srgb,
36
- var(--secondary-foreground, #0a0a0a) 5%,
37
- var(--secondary, transparent)
38
- );
39
- }
40
- }
41
- }
42
-
43
- &.outlined {
44
- background-color: var(--background, #ffffff);
45
- border: 1px solid var(--border-color, #ececec);
46
- color: var(--secondary-foreground, #0a0a0a);
47
- }
48
-
49
- &.size-small {
50
- font-size: 0.75rem;
51
- padding: 0.2rem 0.6rem;
52
- }
53
-
54
- &.size-default {
55
- font-size: 0.875rem;
56
- padding: 0.25rem 0.8rem;
57
- }
58
- }
@@ -1,49 +0,0 @@
1
- b-bottom-sheet {
2
- position: fixed;
3
- bottom: 0;
4
- left: 0;
5
- right: 0;
6
- background-color: var(--background, #ffffff);
7
- border-radius: 16px 16px 0 0;
8
- border: 1px solid var(--border-color, transparent);
9
- border-bottom: none;
10
- display: flex;
11
- flex-direction: column;
12
- z-index: 1001;
13
- will-change: transform;
14
- box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
15
- touch-action: none;
16
- user-select: none;
17
- transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
18
- padding-top: 40px;
19
- box-sizing: border-box;
20
- overflow: hidden;
21
- transform: translateY(100%);
22
-
23
- &.dragging {
24
- transition: none;
25
- }
26
-
27
- .drag-section {
28
- width: 100%;
29
- height: 40px;
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- cursor: grab;
34
- touch-action: none;
35
- position: absolute;
36
- top: 0;
37
-
38
- .drag-indicator {
39
- width: 20%;
40
- height: 4px;
41
- background-color: var(--input-border-color, #e0e0e0);
42
- border-radius: 2px;
43
- }
44
- }
45
- }
46
-
47
- html:has(b-bottom-sheet.open) {
48
- overflow: hidden;
49
- }
@@ -1,20 +0,0 @@
1
- b-button-group {
2
- display: flex;
3
-
4
- &:not(.spaced) {
5
- button:not(:last-child) {
6
- border-right: none !important;
7
- border-top-right-radius: 0 !important;
8
- border-bottom-right-radius: 0 !important;
9
- }
10
-
11
- button:not(:first-child) {
12
- border-top-left-radius: 0 !important;
13
- border-bottom-left-radius: 0 !important;
14
- }
15
- }
16
-
17
- &.spaced {
18
- gap: 0.5rem;
19
- }
20
- }
@@ -1,164 +0,0 @@
1
- button[b-button] {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- background-color: var(--primary, #0a0a0a);
6
- border-radius: var(--radius, 0.5rem);
7
- box-sizing: border-box;
8
- gap: 0.5rem;
9
- position: relative;
10
- transition:
11
- background-color 0.2s,
12
- opacity 0.2s;
13
- border: none;
14
- text-decoration: none;
15
- font-family: 'Geist', sans-serif;
16
- --border-px: 0px;
17
-
18
- &:focus-visible {
19
- outline: 2px solid var(--primary, #0a0a0a);
20
- outline-offset: 2px;
21
- }
22
-
23
- &.primary,
24
- &.outlined {
25
- --border-px: 1px;
26
- }
27
-
28
- &.primary {
29
- background-color: var(--primary, #0a0a0a);
30
- color: var(--primary-foreground, #ffffff);
31
- border: var(--border-px) solid var(--primary-border-color, #0a0a0a);
32
-
33
- @media (width > 768px) {
34
- &:hover {
35
- background-color: color-mix(
36
- in srgb,
37
- var(--primary-foreground, #ffffff) 5%,
38
- var(--primary, #0a0a0a)
39
- );
40
- }
41
- }
42
-
43
- &.toggled {
44
- background-color: color-mix(
45
- in srgb,
46
- var(--primary-foreground, #ffffff) 5%,
47
- var(--primary, #0a0a0a)
48
- );
49
- }
50
- }
51
-
52
- &.secondary {
53
- background-color: var(--secondary);
54
-
55
- @media (width > 768px) {
56
- &:hover {
57
- background-color: color-mix(
58
- in srgb,
59
- var(--secondary-foreground, #0a0a0a) 8%,
60
- var(--secondary, transparent)
61
- );
62
- }
63
- }
64
-
65
- &.toggled {
66
- background-color: color-mix(
67
- in srgb,
68
- var(--secondary-foreground, #0a0a0a) 8%,
69
- var(--secondary, transparent)
70
- );
71
- }
72
- }
73
-
74
- &.ghost {
75
- background-color: transparent;
76
-
77
- @media (width > 768px) {
78
- &:hover {
79
- background-color: color-mix(
80
- in srgb,
81
- var(--secondary-foreground, #0a0a0a) 5%,
82
- var(--secondary, transparent)
83
- );
84
- }
85
- }
86
-
87
- &.toggled {
88
- background-color: color-mix(
89
- in srgb,
90
- var(--secondary-foreground, #0a0a0a) 5%,
91
- var(--secondary, transparent)
92
- );
93
- }
94
- }
95
-
96
- &.outlined {
97
- background-color: var(--background, #ffffff);
98
- border: var(--border-px) solid var(--border-color, #ececec);
99
-
100
- @media (width > 768px) {
101
- &:hover {
102
- background-color: color-mix(
103
- in srgb,
104
- var(--secondary-foreground, #0a0a0a) 5%,
105
- var(--secondary, transparent)
106
- );
107
- }
108
- }
109
-
110
- &.toggled {
111
- background-color: color-mix(
112
- in srgb,
113
- var(--secondary-foreground, #0a0a0a) 5%,
114
- var(--secondary, transparent)
115
- );
116
- }
117
- }
118
-
119
- &.secondary,
120
- &.ghost,
121
- &.outlined {
122
- color: var(--secondary-foreground, #0a0a0a);
123
- }
124
-
125
- &:not(:disabled) {
126
- @media (width > 768px) {
127
- &:hover {
128
- cursor: pointer;
129
- }
130
- }
131
-
132
- @media (width >= 768px) {
133
- &.active {
134
- &:active {
135
- transform: scale(0.98);
136
- }
137
- }
138
- }
139
- }
140
-
141
- &:disabled {
142
- opacity: 0.5;
143
- cursor: not-allowed;
144
- pointer-events: none;
145
- }
146
-
147
- &.size-1 {
148
- padding-inline: 0.571rem;
149
- min-height: 1.714rem;
150
- font-size: 0.857rem;
151
- }
152
-
153
- &.size-2 {
154
- padding-inline: 0.857rem;
155
- min-height: 2.286rem;
156
- font-size: 1rem;
157
- }
158
-
159
- &.size-3 {
160
- padding-inline: 1.143rem;
161
- min-height: 2.857rem;
162
- font-size: 1.143rem;
163
- }
164
- }
@@ -1,41 +0,0 @@
1
- input[b-checkbox] {
2
- appearance: none;
3
- -webkit-appearance: none;
4
- display: inline-flex;
5
- align-items: center;
6
- justify-content: center;
7
- width: 1.3rem;
8
- height: 1.3rem;
9
- border: 1px solid var(--border, #d9d9d9);
10
- border-radius: 0.25rem;
11
- background-color: var(--background, #ffffff);
12
- cursor: pointer;
13
- transition:
14
- background-color 0.2s,
15
- border-color 0.2s;
16
-
17
- &:checked {
18
- background-color: var(--primary, #0a0a0a);
19
- border-color: var(--primary, #0a0a0a);
20
- }
21
-
22
- &:focus-visible {
23
- outline: 2px solid var(--primary, #0a0a0a);
24
- outline-offset: 2px;
25
- }
26
-
27
- &::after {
28
- content: '';
29
- display: block;
30
- width: 90%;
31
- height: 90%;
32
- background-color: var(--background, #ffffff);
33
- clip-path: polygon(14% 48%, 19% 43%, 39% 63%, 82% 15%, 87% 20%, 39% 74%);
34
- opacity: 0;
35
- transition: opacity 0.2s;
36
- }
37
-
38
- &:checked::after {
39
- opacity: 1;
40
- }
41
- }