zenkit-css 1.2.3 → 1.4.0
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/dist/zenkit.css +7014 -0
- package/dist/zenkit.css.map +1 -1
- package/dist/zenkit.min.css +1 -1
- package/dist/zenkit.min.css.map +1 -1
- package/package.json +1 -1
- package/scss/components/_absolutecenter.scss +46 -0
- package/scss/components/_actionicon.scss +141 -0
- package/scss/components/_angleslider.scss +75 -0
- package/scss/components/_appbar.scss +96 -0
- package/scss/components/_appshell.scss +137 -0
- package/scss/components/_backdrop.scss +66 -0
- package/scss/components/_backgroundimage.scss +81 -0
- package/scss/components/_blockquote.scss +70 -0
- package/scss/components/_burger.scss +127 -0
- package/scss/components/_center.scss +33 -0
- package/scss/components/_chart.scss +100 -0
- package/scss/components/_checkboxcard.scss +105 -0
- package/scss/components/_checkboxgroup.scss +45 -0
- package/scss/components/_collapse.scss +76 -0
- package/scss/components/_colorinput.scss +103 -0
- package/scss/components/_colorswatch.scss +94 -0
- package/scss/components/_combobox.scss +157 -0
- package/scss/components/_contextmenu.scss +150 -0
- package/scss/components/_copybutton.scss +117 -0
- package/scss/components/_datagrid.scss +200 -0
- package/scss/components/_datalist.scss +104 -0
- package/scss/components/_datetimepicker.scss +123 -0
- package/scss/components/_dialog.scss +176 -0
- package/scss/components/_disclosure.scss +182 -0
- package/scss/components/_dropzone.scss +159 -0
- package/scss/components/_filebutton.scss +64 -0
- package/scss/components/_fileinput.scss +157 -0
- package/scss/components/_floatcomponent.scss +128 -0
- package/scss/components/_floatingindicator.scss +49 -0
- package/scss/components/_gauge.scss +143 -0
- package/scss/components/_group.scss +100 -0
- package/scss/components/_heading.scss +143 -0
- package/scss/components/_highlight.scss +60 -0
- package/scss/components/_indicator.scss +171 -0
- package/scss/components/_infinitescroll.scss +53 -0
- package/scss/components/_jsoninput.scss +124 -0
- package/scss/components/_label.scss +77 -0
- package/scss/components/_linkoverlay.scss +74 -0
- package/scss/components/_listbox.scss +188 -0
- package/scss/components/_loadingoverlay.scss +80 -0
- package/scss/components/_mark.scss +72 -0
- package/scss/components/_monthpicker.scss +141 -0
- package/scss/components/_multiselect.scss +192 -0
- package/scss/components/_navlink.scss +127 -0
- package/scss/components/_overlay.scss +97 -0
- package/scss/components/_paper.scss +98 -0
- package/scss/components/_pill.scss +141 -0
- package/scss/components/_pillsinput.scss +138 -0
- package/scss/components/_radiocard.scss +122 -0
- package/scss/components/_rangecalendar.scss +267 -0
- package/scss/components/_rangeslider.scss +146 -0
- package/scss/components/_richtexteditor.scss +222 -0
- package/scss/components/_ringprogress.scss +101 -0
- package/scss/components/_scrollshadow.scss +152 -0
- package/scss/components/_semicircleprogress.scss +116 -0
- package/scss/components/_separator.scss +126 -0
- package/scss/components/_simplegrid.scss +129 -0
- package/scss/components/_skipnavlink.scss +51 -0
- package/scss/components/_slider.scss +199 -0
- package/scss/components/_sortable.scss +115 -0
- package/scss/components/_sparkline.scss +124 -0
- package/scss/components/_splitbutton.scss +153 -0
- package/scss/components/_spoiler.scss +73 -0
- package/scss/components/_stepper.scss +153 -0
- package/scss/components/_tableofcontents.scss +107 -0
- package/scss/components/_tagsinput.scss +158 -0
- package/scss/components/_textcomponent.scss +183 -0
- package/scss/components/_themeicon.scss +121 -0
- package/scss/components/_togglegroup.scss +137 -0
- package/scss/components/_toggletip.scss +159 -0
- package/scss/components/_toolbar.scss +140 -0
- package/scss/components/_unstyledbutton.scss +43 -0
- package/scss/components/_user.scss +118 -0
- package/scss/components/_virtuallist.scss +118 -0
- package/scss/components/_yearpicker.scss +145 -0
- package/scss/zenkit.scss +87 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Highlight Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.highlight {
|
|
6
|
+
--zk-highlight-bg: rgba(var(--zk-warning-rgb), 0.3);
|
|
7
|
+
--zk-highlight-color: inherit;
|
|
8
|
+
|
|
9
|
+
background-color: var(--zk-highlight-bg);
|
|
10
|
+
color: var(--zk-highlight-color);
|
|
11
|
+
padding: 0.1em 0.2em;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
|
|
14
|
+
// Color variants
|
|
15
|
+
&-yellow {
|
|
16
|
+
--zk-highlight-bg: rgba(255, 235, 59, 0.4);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-green {
|
|
20
|
+
--zk-highlight-bg: rgba(var(--zk-success-rgb), 0.3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-blue {
|
|
24
|
+
--zk-highlight-bg: rgba(var(--zk-info-rgb), 0.3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-red {
|
|
28
|
+
--zk-highlight-bg: rgba(var(--zk-danger-rgb), 0.3);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-cyan {
|
|
32
|
+
--zk-highlight-bg: rgba(0, 188, 212, 0.3);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-pink {
|
|
36
|
+
--zk-highlight-bg: rgba(233, 30, 99, 0.3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-grape {
|
|
40
|
+
--zk-highlight-bg: rgba(156, 39, 176, 0.3);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&-orange {
|
|
44
|
+
--zk-highlight-bg: rgba(255, 152, 0, 0.3);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Mark element (semantic highlighting)
|
|
48
|
+
mark.highlight,
|
|
49
|
+
.highlight-mark {
|
|
50
|
+
background-color: var(--zk-highlight-bg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Mark styling (global)
|
|
55
|
+
mark {
|
|
56
|
+
background-color: rgba(var(--zk-warning-rgb), 0.3);
|
|
57
|
+
color: inherit;
|
|
58
|
+
padding: 0.1em 0.2em;
|
|
59
|
+
border-radius: 2px;
|
|
60
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Indicator Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.indicator {
|
|
6
|
+
--zk-indicator-size: 10px;
|
|
7
|
+
--zk-indicator-color: var(--zk-danger);
|
|
8
|
+
--zk-indicator-offset: 0;
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
|
|
13
|
+
&-dot {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: var(--zk-indicator-size);
|
|
16
|
+
height: var(--zk-indicator-size);
|
|
17
|
+
background: var(--zk-indicator-color);
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
border: 2px solid var(--zk-bg-primary);
|
|
20
|
+
z-index: 1;
|
|
21
|
+
|
|
22
|
+
// Positions
|
|
23
|
+
&.top-start {
|
|
24
|
+
top: var(--zk-indicator-offset);
|
|
25
|
+
left: var(--zk-indicator-offset);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.top-center {
|
|
29
|
+
top: var(--zk-indicator-offset);
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.top-end {
|
|
35
|
+
top: var(--zk-indicator-offset);
|
|
36
|
+
right: var(--zk-indicator-offset);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.middle-start {
|
|
40
|
+
top: 50%;
|
|
41
|
+
left: var(--zk-indicator-offset);
|
|
42
|
+
transform: translateY(-50%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.middle-center {
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translate(-50%, -50%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.middle-end {
|
|
52
|
+
top: 50%;
|
|
53
|
+
right: var(--zk-indicator-offset);
|
|
54
|
+
transform: translateY(-50%);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.bottom-start {
|
|
58
|
+
bottom: var(--zk-indicator-offset);
|
|
59
|
+
left: var(--zk-indicator-offset);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.bottom-center {
|
|
63
|
+
bottom: var(--zk-indicator-offset);
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translateX(-50%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.bottom-end {
|
|
69
|
+
bottom: var(--zk-indicator-offset);
|
|
70
|
+
right: var(--zk-indicator-offset);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-label {
|
|
75
|
+
position: absolute;
|
|
76
|
+
min-width: 18px;
|
|
77
|
+
height: 18px;
|
|
78
|
+
padding: 0 6px;
|
|
79
|
+
background: var(--zk-indicator-color);
|
|
80
|
+
border-radius: 9px;
|
|
81
|
+
border: 2px solid var(--zk-bg-primary);
|
|
82
|
+
font-size: 0.625rem;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
color: #fff;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
z-index: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Sizes
|
|
92
|
+
&-xs {
|
|
93
|
+
--zk-indicator-size: 6px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&-sm {
|
|
97
|
+
--zk-indicator-size: 8px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-md {
|
|
101
|
+
--zk-indicator-size: 10px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&-lg {
|
|
105
|
+
--zk-indicator-size: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-xl {
|
|
109
|
+
--zk-indicator-size: 16px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Colors
|
|
113
|
+
&-primary {
|
|
114
|
+
--zk-indicator-color: var(--zk-primary);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&-success {
|
|
118
|
+
--zk-indicator-color: var(--zk-success);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-warning {
|
|
122
|
+
--zk-indicator-color: var(--zk-warning);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-danger {
|
|
126
|
+
--zk-indicator-color: var(--zk-danger);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-info {
|
|
130
|
+
--zk-indicator-color: var(--zk-info);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Processing animation
|
|
134
|
+
&-processing {
|
|
135
|
+
.indicator-dot {
|
|
136
|
+
animation: indicator-pulse 1.5s ease-in-out infinite;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Disabled
|
|
141
|
+
&-disabled {
|
|
142
|
+
.indicator-dot,
|
|
143
|
+
.indicator-label {
|
|
144
|
+
opacity: 0.5;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Inline mode
|
|
149
|
+
&-inline {
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 0.5rem;
|
|
153
|
+
|
|
154
|
+
.indicator-dot {
|
|
155
|
+
position: static;
|
|
156
|
+
border: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes indicator-pulse {
|
|
162
|
+
0%,
|
|
163
|
+
100% {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: scale(1);
|
|
166
|
+
}
|
|
167
|
+
50% {
|
|
168
|
+
opacity: 0.5;
|
|
169
|
+
transform: scale(1.2);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// InfiniteScroll Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.infinite-scroll {
|
|
6
|
+
position: relative;
|
|
7
|
+
|
|
8
|
+
&-content {
|
|
9
|
+
min-height: 100px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-loader {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
padding: 1.5rem;
|
|
17
|
+
color: var(--zk-text-muted);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-end-message {
|
|
21
|
+
text-align: center;
|
|
22
|
+
padding: 1.5rem;
|
|
23
|
+
color: var(--zk-text-muted);
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-error {
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 1.5rem;
|
|
30
|
+
color: var(--zk-danger);
|
|
31
|
+
|
|
32
|
+
&-retry {
|
|
33
|
+
margin-top: 0.5rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Scroll direction
|
|
38
|
+
&-reverse {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column-reverse;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Threshold indicator (dev mode)
|
|
44
|
+
&-threshold {
|
|
45
|
+
position: absolute;
|
|
46
|
+
left: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
height: 1px;
|
|
49
|
+
background: var(--zk-danger);
|
|
50
|
+
opacity: 0.3;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// JsonInput Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.json-input {
|
|
6
|
+
--zk-json-input-bg: var(--zk-bg-secondary);
|
|
7
|
+
--zk-json-input-border-color: var(--zk-border-color);
|
|
8
|
+
--zk-json-input-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.25rem;
|
|
13
|
+
|
|
14
|
+
&-label {
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: var(--zk-text-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-wrapper {
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-textarea {
|
|
25
|
+
width: 100%;
|
|
26
|
+
min-height: 150px;
|
|
27
|
+
padding: 0.75rem;
|
|
28
|
+
font-family: var(--zk-json-input-font);
|
|
29
|
+
font-size: 0.8125rem;
|
|
30
|
+
line-height: 1.5;
|
|
31
|
+
background: var(--zk-json-input-bg);
|
|
32
|
+
border: 1px solid var(--zk-json-input-border-color);
|
|
33
|
+
border-radius: var(--zk-radius-md);
|
|
34
|
+
color: var(--zk-text-primary);
|
|
35
|
+
resize: vertical;
|
|
36
|
+
outline: none;
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
border-color: var(--zk-primary);
|
|
40
|
+
box-shadow: 0 0 0 3px rgba(var(--zk-primary-rgb), 0.1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::placeholder {
|
|
44
|
+
color: var(--zk-text-muted);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-format-btn {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0.5rem;
|
|
51
|
+
right: 0.5rem;
|
|
52
|
+
padding: 0.25rem 0.5rem;
|
|
53
|
+
font-size: 0.75rem;
|
|
54
|
+
background: var(--zk-bg-primary);
|
|
55
|
+
border: 1px solid var(--zk-border-color);
|
|
56
|
+
border-radius: var(--zk-radius-sm);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
color: var(--zk-text-secondary);
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
background: var(--zk-bg-tertiary);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-error {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 0.25rem;
|
|
69
|
+
font-size: 0.75rem;
|
|
70
|
+
color: var(--zk-danger);
|
|
71
|
+
margin-top: 0.25rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&-valid {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.25rem;
|
|
78
|
+
font-size: 0.75rem;
|
|
79
|
+
color: var(--zk-success);
|
|
80
|
+
margin-top: 0.25rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Syntax highlighting (line numbers)
|
|
84
|
+
&-with-lines {
|
|
85
|
+
.json-input-textarea {
|
|
86
|
+
padding-left: 3rem;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-lines {
|
|
91
|
+
position: absolute;
|
|
92
|
+
left: 0;
|
|
93
|
+
top: 0;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
width: 2.5rem;
|
|
96
|
+
padding: 0.75rem 0.5rem;
|
|
97
|
+
background: var(--zk-bg-tertiary);
|
|
98
|
+
border-right: 1px solid var(--zk-border-color);
|
|
99
|
+
border-radius: var(--zk-radius-md) 0 0 var(--zk-radius-md);
|
|
100
|
+
font-family: var(--zk-json-input-font);
|
|
101
|
+
font-size: 0.8125rem;
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
color: var(--zk-text-muted);
|
|
104
|
+
text-align: right;
|
|
105
|
+
user-select: none;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Disabled
|
|
110
|
+
&-disabled {
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
|
|
113
|
+
.json-input-textarea {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Readonly
|
|
119
|
+
&-readonly {
|
|
120
|
+
.json-input-textarea {
|
|
121
|
+
background: var(--zk-bg-tertiary);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// Label Component
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
.label {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
color: var(--zk-text-primary);
|
|
10
|
+
line-height: 1.4;
|
|
11
|
+
|
|
12
|
+
// Required indicator
|
|
13
|
+
&-required {
|
|
14
|
+
&::after {
|
|
15
|
+
content: " *";
|
|
16
|
+
color: var(--zk-danger);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Sizes
|
|
21
|
+
&-xs {
|
|
22
|
+
font-size: 0.75rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-sm {
|
|
26
|
+
font-size: 0.8125rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-md {
|
|
30
|
+
font-size: 0.875rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-lg {
|
|
34
|
+
font-size: 1rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Optional indicator
|
|
38
|
+
&-optional {
|
|
39
|
+
&::after {
|
|
40
|
+
content: " (optional)";
|
|
41
|
+
font-size: 0.75em;
|
|
42
|
+
color: var(--zk-text-muted);
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// With description
|
|
48
|
+
&-with-description {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
gap: 0.125rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-description {
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
color: var(--zk-text-muted);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Inline style
|
|
61
|
+
&-inline {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 0.5rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Disabled state
|
|
68
|
+
&-disabled {
|
|
69
|
+
color: var(--zk-text-muted);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Error state
|
|
74
|
+
&-error {
|
|
75
|
+
color: var(--zk-danger);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// LinkOverlay Component (Chakra-style)
|
|
3
|
+
// ========================================
|
|
4
|
+
|
|
5
|
+
// Container that holds the link overlay
|
|
6
|
+
.link-box {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
// Elevate other interactive elements above the overlay
|
|
10
|
+
a:not(.link-overlay),
|
|
11
|
+
button,
|
|
12
|
+
[role="button"],
|
|
13
|
+
input,
|
|
14
|
+
select,
|
|
15
|
+
textarea,
|
|
16
|
+
[tabindex]:not([tabindex="-1"]) {
|
|
17
|
+
position: relative;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// The overlay link itself
|
|
23
|
+
.link-overlay {
|
|
24
|
+
position: static;
|
|
25
|
+
|
|
26
|
+
// Create the clickable overlay
|
|
27
|
+
&::before {
|
|
28
|
+
content: "";
|
|
29
|
+
position: absolute;
|
|
30
|
+
inset: 0;
|
|
31
|
+
z-index: 0;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Focus styles on the overlay
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
outline: none;
|
|
38
|
+
|
|
39
|
+
&::before {
|
|
40
|
+
outline: 2px solid var(--zk-primary);
|
|
41
|
+
outline-offset: 2px;
|
|
42
|
+
border-radius: inherit;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Remove default link styles if desired
|
|
47
|
+
&-unstyled {
|
|
48
|
+
color: inherit;
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Card with link overlay
|
|
58
|
+
.card.link-box {
|
|
59
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
transform: translateY(-2px);
|
|
63
|
+
box-shadow: var(--zk-shadow-md);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:has(.link-overlay:focus-visible) {
|
|
67
|
+
outline: 2px solid var(--zk-primary);
|
|
68
|
+
outline-offset: 2px;
|
|
69
|
+
|
|
70
|
+
.link-overlay:focus-visible::before {
|
|
71
|
+
outline: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|