@kashi-ui/css 0.6.0 → 0.8.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.
@@ -0,0 +1,102 @@
1
+ /* نوار پیشرفت و اسپینر
2
+ * <div class="k-progress" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" aria-label="…"><div class="k-progress__bar" style="--k-value: 40%"></div></div>
3
+ */
4
+ .k-progress-field { display: grid; gap: var(--k-space-2); }
5
+ .k-progress-field__head { display: flex; justify-content: space-between; gap: var(--k-space-3); font-size: var(--k-text-sm); }
6
+ .k-progress-field__label { color: var(--k-text-secondary); font-weight: var(--k-weight-medium); }
7
+ .k-progress-field__value { color: var(--k-text-tertiary); font-variant-numeric: tabular-nums; }
8
+
9
+ .k-progress {
10
+ --_h: var(--k-progress-height, 0.5rem);
11
+ --_c: var(--k-progress-color, var(--k-bg-brand));
12
+ position: relative;
13
+ block-size: var(--_h);
14
+ border-radius: var(--k-radius-full);
15
+ background: var(--k-bg-tertiary);
16
+ overflow: hidden;
17
+ }
18
+ .k-progress--sm { --_h: 0.25rem; }
19
+ .k-progress--lg { --_h: 0.75rem; }
20
+ .k-progress--success { --_c: var(--k-text-success); }
21
+ .k-progress--warning { --_c: var(--k-text-warning); }
22
+ .k-progress--error { --_c: var(--k-text-error); }
23
+ .k-progress__bar {
24
+ block-size: 100%;
25
+ inline-size: var(--k-value, 0%);
26
+ border-radius: inherit;
27
+ background: var(--_c);
28
+ transition: inline-size var(--k-duration-slow) var(--k-ease-standard);
29
+ }
30
+ /* نامعین: مقدار مشخص نیست */
31
+ .k-progress:not([aria-valuenow]) .k-progress__bar {
32
+ inline-size: 40%;
33
+ animation: k-progress-indeterminate 1.4s var(--k-ease-standard) infinite;
34
+ }
35
+ @keyframes k-progress-indeterminate { from { translate: 120% 0; } to { translate: -260% 0; } }
36
+ [dir="ltr"] .k-progress:not([aria-valuenow]) .k-progress__bar { animation-direction: reverse; }
37
+
38
+ /* حلقهٔ پیشرفت */
39
+ .k-progress-ring {
40
+ --_s: var(--k-progress-ring-size, 3.5rem);
41
+ --_c: var(--k-progress-color, var(--k-bg-brand));
42
+ position: relative;
43
+ display: inline-grid;
44
+ place-items: center;
45
+ inline-size: var(--_s);
46
+ block-size: var(--_s);
47
+ }
48
+ .k-progress-ring--sm { --_s: var(--k-progress-ring-size, 2.5rem); }
49
+ .k-progress-ring--lg { --_s: var(--k-progress-ring-size, 5rem); }
50
+ .k-progress-ring.k-progress--success { --_c: var(--k-text-success); }
51
+ .k-progress-ring.k-progress--warning { --_c: var(--k-text-warning); }
52
+ .k-progress-ring.k-progress--error { --_c: var(--k-text-error); }
53
+ .k-progress-ring svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; rotate: -90deg; }
54
+ [dir="rtl"] .k-progress-ring svg { scale: -1 1; rotate: 90deg; }
55
+ .k-progress-ring circle { fill: none; stroke-width: 4; }
56
+ .k-progress-ring__track { stroke: var(--k-bg-tertiary); }
57
+ .k-progress-ring__bar { stroke: var(--_c); stroke-linecap: round; transition: stroke-dashoffset var(--k-duration-slow) var(--k-ease-standard); }
58
+ .k-progress-ring__value { color: var(--k-text-primary); font-size: calc(var(--_s) * 0.24); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
59
+ .k-progress-ring--indeterminate svg { animation: k-spin 1s linear infinite; }
60
+
61
+ .k-spinner {
62
+ --_s: 1.25rem;
63
+ display: inline-block;
64
+ inline-size: var(--_s);
65
+ block-size: var(--_s);
66
+ border: 2px solid color-mix(in srgb, currentColor 20%, transparent);
67
+ border-block-start-color: currentColor;
68
+ border-radius: 50%;
69
+ color: var(--k-text-brand);
70
+ animation: k-spin 0.7s linear infinite;
71
+ vertical-align: middle;
72
+ }
73
+ .k-spinner--sm { --_s: 1rem; }
74
+ .k-spinner--lg { --_s: 2rem; border-width: 3px; }
75
+ @media (prefers-reduced-motion: reduce) {
76
+ /* حلقهٔ پیشرفت */
77
+ .k-progress-ring {
78
+ --_s: var(--k-progress-ring-size, 3.5rem);
79
+ --_c: var(--k-progress-color, var(--k-bg-brand));
80
+ position: relative;
81
+ display: inline-grid;
82
+ place-items: center;
83
+ inline-size: var(--_s);
84
+ block-size: var(--_s);
85
+ }
86
+ .k-progress-ring--sm { --_s: var(--k-progress-ring-size, 2.5rem); }
87
+ .k-progress-ring--lg { --_s: var(--k-progress-ring-size, 5rem); }
88
+ .k-progress-ring.k-progress--success { --_c: var(--k-text-success); }
89
+ .k-progress-ring.k-progress--warning { --_c: var(--k-text-warning); }
90
+ .k-progress-ring.k-progress--error { --_c: var(--k-text-error); }
91
+ .k-progress-ring svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; rotate: -90deg; }
92
+ [dir="rtl"] .k-progress-ring svg { scale: -1 1; rotate: 90deg; }
93
+ .k-progress-ring circle { fill: none; stroke-width: 4; }
94
+ .k-progress-ring__track { stroke: var(--k-bg-tertiary); }
95
+ .k-progress-ring__bar { stroke: var(--_c); stroke-linecap: round; transition: stroke-dashoffset var(--k-duration-slow) var(--k-ease-standard); }
96
+ .k-progress-ring__value { color: var(--k-text-primary); font-size: calc(var(--_s) * 0.24); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
97
+ .k-progress-ring--indeterminate svg { animation: k-spin 1s linear infinite; }
98
+
99
+ .k-spinner { animation-duration: 2s !important; }
100
+ .k-progress:not([aria-valuenow]) .k-progress__bar { animation: none; inline-size: 100%; opacity: 0.5; }
101
+ }
102
+ @media (forced-colors: active) { .k-progress { border: 1px solid CanvasText; } .k-progress__bar { background: Highlight; } }
@@ -0,0 +1,17 @@
1
+ /* اسکلت بارگذاری — تزئینی است؛ روی ظرف والد aria-busy="true" بگذارید */
2
+ .k-skeleton {
3
+ display: block;
4
+ inline-size: var(--k-skeleton-width, 100%);
5
+ block-size: var(--k-skeleton-height, 1em);
6
+ border-radius: var(--k-skeleton-radius, var(--k-radius-sm));
7
+ background:
8
+ linear-gradient(90deg, transparent, color-mix(in srgb, var(--k-text-primary) 6%, transparent), transparent) 0 0 / 200% 100% no-repeat,
9
+ var(--k-bg-tertiary);
10
+ animation: k-shimmer 1.6s linear infinite;
11
+ }
12
+ .k-skeleton--text { block-size: 0.8em; margin-block: 0.35em; }
13
+ .k-skeleton--text:last-child:not(:only-child) { inline-size: 70%; }
14
+ .k-skeleton--circle { border-radius: 50%; }
15
+ .k-skeleton-group { display: grid; gap: var(--k-space-1); }
16
+ @keyframes k-shimmer { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
17
+ @media (prefers-reduced-motion: reduce) { .k-skeleton { animation: none; } }
@@ -0,0 +1,54 @@
1
+ /* مراحل (Stepper)
2
+ * متغیرها: --k-step-size --k-step-line --k-step-done */
3
+ .k-steps { display: flex; gap: var(--k-space-4); margin: 0; padding: 0; list-style: none; counter-reset: k-step; }
4
+ .k-steps__step { position: relative; flex: 1; display: grid; justify-items: center; gap: var(--k-space-2); text-align: center; min-inline-size: 0; }
5
+ .k-steps__marker {
6
+ position: relative;
7
+ z-index: 1;
8
+ display: grid;
9
+ place-items: center;
10
+ inline-size: var(--k-step-size, 2rem);
11
+ block-size: var(--k-step-size, 2rem);
12
+ border: 2px solid var(--k-border-secondary);
13
+ border-radius: 50%;
14
+ background: var(--k-bg-primary);
15
+ color: var(--k-text-tertiary);
16
+ font-size: var(--k-text-sm);
17
+ font-weight: var(--k-weight-semibold);
18
+ }
19
+ .k-steps__marker svg { inline-size: 1rem; block-size: 1rem; }
20
+ /* خط اتصال */
21
+ .k-steps__step + .k-steps__step::before {
22
+ content: "";
23
+ position: absolute;
24
+ inset-block-start: 1rem;
25
+ inset-inline-end: calc(50% + 1.25rem);
26
+ inline-size: calc(100% - 2.5rem + var(--k-space-4));
27
+ block-size: 2px;
28
+ border-radius: 1px;
29
+ background: var(--k-step-line, var(--k-border-secondary));
30
+ }
31
+ .k-steps__step[data-status="complete"] + .k-steps__step::before { background: var(--k-step-done, var(--k-bg-brand)); }
32
+ .k-steps__step[data-status="complete"] .k-steps__marker { border-color: var(--k-bg-brand); background: var(--k-bg-brand); color: var(--k-text-on-brand); }
33
+ .k-steps__step[data-status="current"] .k-steps__marker { border-color: var(--k-border-brand); color: var(--k-text-brand); box-shadow: var(--k-ring-brand); }
34
+ .k-steps__title { color: var(--k-text-secondary); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); }
35
+ .k-steps__step[data-status="current"] .k-steps__title { color: var(--k-text-brand); }
36
+ .k-steps__step[data-status="upcoming"] .k-steps__title { color: var(--k-text-tertiary); }
37
+ .k-steps__description { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
38
+
39
+ /* عمودی */
40
+ .k-steps--vertical { flex-direction: column; gap: var(--k-space-6); }
41
+ .k-steps--vertical .k-steps__step { grid-template-columns: auto 1fr; justify-items: start; column-gap: var(--k-space-3); text-align: start; }
42
+ .k-steps--vertical .k-steps__marker { grid-row: span 2; }
43
+ .k-steps--vertical .k-steps__step + .k-steps__step::before {
44
+ inset-block-start: auto;
45
+ inset-block-end: calc(100% + 0.25rem);
46
+ inset-inline-end: auto;
47
+ inset-inline-start: calc(1rem - 1px);
48
+ inline-size: 2px;
49
+ block-size: calc(var(--k-space-6) - 0.5rem);
50
+ }
51
+ @media (max-width: 36rem) {
52
+ .k-steps:not(.k-steps--vertical) .k-steps__description { display: none; }
53
+ }
54
+ @media (forced-colors: active) { .k-steps__step[data-status="current"] .k-steps__marker { outline: 2px solid Highlight; } }
@@ -0,0 +1,76 @@
1
+ /* جدول داده
2
+ * متغیرها: --k-table-radius --k-table-cell-px --k-table-cell-py --k-table-header-bg --k-table-stripe --k-table-row-hover
3
+ */
4
+ .k-table-wrap {
5
+ overflow-x: auto;
6
+ border: 1px solid var(--k-border-secondary);
7
+ border-radius: var(--k-table-radius, var(--k-radius-xl));
8
+ background: var(--k-bg-elevated);
9
+ box-shadow: var(--k-shadow-xs), var(--k-highlight);
10
+ }
11
+ .k-table-wrap--sticky { overflow-y: auto; }
12
+ .k-table-wrap--sticky thead th { position: sticky; inset-block-start: 0; z-index: 1; box-shadow: 0 1px 0 var(--k-border-secondary); }
13
+ .k-table-wrap:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
14
+ .k-table { inline-size: 100%; border-collapse: collapse; font-size: var(--k-text-sm); }
15
+ .k-table caption { padding: var(--k-space-5) var(--k-space-6) var(--k-space-4); text-align: start; caption-side: top; }
16
+ .k-table__caption-title { display: block; color: var(--k-text-primary); font-size: var(--k-text-lg); font-weight: var(--k-weight-semibold); }
17
+ .k-table__caption-desc { display: block; margin-block-start: var(--k-space-1); color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-regular); }
18
+ .k-table th, .k-table td { padding: var(--k-table-cell-py, var(--k-space-3)) var(--k-table-cell-px, var(--k-space-6)); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--k-border-secondary); }
19
+ .k-table thead th {
20
+ padding-block: var(--k-space-3);
21
+ background: var(--k-table-header-bg, var(--k-bg-secondary));
22
+ color: var(--k-text-tertiary);
23
+ font-size: var(--k-text-xs);
24
+ font-weight: var(--k-weight-semibold);
25
+ white-space: nowrap;
26
+ }
27
+ .k-table tbody tr { transition: background-color var(--k-duration-fast); }
28
+ .k-table tbody tr:hover { background: var(--k-table-row-hover, var(--k-bg-hover)); }
29
+ .k-table--striped tbody tr:nth-child(even) { background: var(--k-table-stripe, var(--k-bg-secondary)); }
30
+ .k-table--clickable tbody tr:not([aria-hidden]) { cursor: pointer; }
31
+ .k-table .k-table__align-center { text-align: center; }
32
+ .k-table .k-table__align-end { text-align: end; }
33
+ .k-table__footer { padding: var(--k-space-3) var(--k-table-cell-px, var(--k-space-6)); border-block-start: 1px solid var(--k-border-secondary); }
34
+ @media (max-width: 40rem) { .k-table .k-table__hide-sm { display: none; } }
35
+ @media (max-width: 56rem) { .k-table .k-table__hide-md { display: none; } }
36
+ .k-table tbody tr[aria-selected="true"] { background: var(--k-bg-brand-subtle); }
37
+ .k-table tbody tr:last-child > * { border-block-end: 0; }
38
+ .k-table td { color: var(--k-text-tertiary); }
39
+ .k-table td:first-child, .k-table__primary { color: var(--k-text-primary); font-weight: var(--k-weight-medium); }
40
+ .k-table .k-table__num { text-align: end; font-variant-numeric: tabular-nums; }
41
+ .k-table .k-table__check { inline-size: 1px; padding-inline-end: 0; }
42
+ .k-table--compact th, .k-table--compact td { padding-block: var(--k-space-2); }
43
+
44
+ /* سرستون قابل‌مرتب‌سازی */
45
+ .k-table__sort {
46
+ display: inline-flex;
47
+ align-items: center;
48
+ gap: var(--k-space-1);
49
+ margin: calc(var(--k-space-1) * -1);
50
+ padding: var(--k-space-1);
51
+ border: 0;
52
+ border-radius: var(--k-radius-sm);
53
+ background: none;
54
+ color: inherit;
55
+ font: inherit;
56
+ cursor: pointer;
57
+ }
58
+ .k-table__sort:hover { color: var(--k-text-primary); }
59
+ .k-table__sort:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
60
+ .k-table__sort::after {
61
+ content: "";
62
+ inline-size: 0.875rem;
63
+ block-size: 0.875rem;
64
+ background: currentColor;
65
+ opacity: 0.35;
66
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4-4 4 4M6 12l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
67
+ }
68
+ [aria-sort="ascending"] .k-table__sort::after, [aria-sort="descending"] .k-table__sort::after {
69
+ opacity: 1;
70
+ color: var(--k-text-brand);
71
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 15V5m-4 4 4-4 4 4'/%3E%3C/svg%3E");
72
+ }
73
+ [aria-sort="descending"] .k-table__sort::after { rotate: 180deg; }
74
+ [aria-sort] .k-table__sort { color: var(--k-text-primary); }
75
+ .k-table__empty td { padding: 0; }
76
+ @media (forced-colors: active) { .k-table-wrap { border-color: CanvasText; } .k-table tbody tr[aria-selected="true"] { outline: 2px solid Highlight; } }
@@ -1,7 +1,10 @@
1
1
  /* زبانه‌ها (Tabs) — ساختار ARIA را کامپوننت React می‌سازد
2
2
  * گونه‌ها: k-tabs--line (پیش‌فرض) | k-tabs--pill | k-tabs--segmented — تمام‌عرض: k-tabs--block
3
+ * عمودی: k-tabs--vertical — فشرده: k-tabs--sm
4
+ *
5
+ * متغیرها: --k-tab-height --k-tab-radius --k-tabs-gap --k-tabs-indicator --k-tabs-list-width
3
6
  */
4
- .k-tabs { display: grid; gap: var(--k-space-4); }
7
+ .k-tabs { display: grid; gap: var(--k-tabs-gap, var(--k-space-4)); }
5
8
 
6
9
  .k-tabs__list {
7
10
  position: relative;
@@ -17,10 +20,10 @@
17
20
  align-items: center;
18
21
  justify-content: center;
19
22
  gap: var(--k-space-2);
20
- min-block-size: calc(2.5rem * var(--k-density));
23
+ min-block-size: var(--k-tab-height, calc(2.5rem * var(--k-density)));
21
24
  padding-inline: var(--k-space-3);
22
25
  border: 0;
23
- border-radius: var(--k-radius-md);
26
+ border-radius: var(--k-tab-radius, var(--k-radius-md));
24
27
  background: transparent;
25
28
  color: var(--k-text-tertiary);
26
29
  font: inherit;
@@ -49,7 +52,7 @@
49
52
  inset-block-end: -1px;
50
53
  block-size: 2px;
51
54
  border-radius: 2px;
52
- background: var(--k-border-brand);
55
+ background: var(--k-tabs-indicator, var(--k-border-brand));
53
56
  }
54
57
 
55
58
  /* قرصی */
@@ -72,6 +75,22 @@
72
75
  .k-tabs--block .k-tabs__list { inline-size: auto; }
73
76
  .k-tabs--block .k-tabs__tab { flex: 1; }
74
77
 
78
+ /* فشرده */
79
+ .k-tabs--sm .k-tabs__tab { --k-tab-height: calc(2rem * var(--k-density)); padding-inline: var(--k-space-2); font-size: var(--k-text-xs); }
80
+
81
+ /* عمودی: فهرست در ستون کناری */
82
+ .k-tabs--vertical { grid-template-columns: var(--k-tabs-list-width, 13rem) minmax(0, 1fr); align-items: start; gap: var(--k-tabs-gap, var(--k-space-8)); }
83
+ .k-tabs--vertical .k-tabs__list { flex-direction: column; overflow: visible; }
84
+ .k-tabs--vertical .k-tabs__tab { justify-content: flex-start; }
85
+ .k-tabs--vertical.k-tabs--line .k-tabs__list { gap: var(--k-space-1); border-block-end: 0; border-inline-start: 1px solid var(--k-border-secondary); }
86
+ .k-tabs--vertical.k-tabs--line .k-tabs__tab { padding-inline: var(--k-space-3); }
87
+ .k-tabs--vertical.k-tabs--line .k-tabs__tab[aria-selected="true"]::after { inset-block: 0.25rem; inset-inline-start: -1px; inset-inline-end: auto; inline-size: 2px; block-size: auto; }
88
+ .k-tabs--vertical.k-tabs--segmented .k-tabs__list { inline-size: auto; }
89
+ @media (max-width: 40rem) {
90
+ .k-tabs--vertical { grid-template-columns: minmax(0, 1fr); }
91
+ .k-tabs--vertical .k-tabs__list { flex-direction: row; overflow-x: auto; }
92
+ }
93
+
75
94
  @media (forced-colors: active) {
76
95
  .k-tabs__tab[aria-selected="true"] { outline: 2px solid Highlight; }
77
96
  }
@@ -1,5 +1,6 @@
1
1
  /* اعلان کوتاه (Toast) — محل نمایش را کامپوننت <Toaster> می‌سازد
2
2
  * رنگ‌ها: neutral | success | error | warning | info
3
+ * متغیرها: --k-toast-width --k-toast-radius --k-toast-bg
3
4
  */
4
5
  .k-toaster {
5
6
  position: fixed;
@@ -14,7 +15,13 @@
14
15
  list-style: none;
15
16
  pointer-events: none;
16
17
  }
17
- .k-toaster--top { inset-block: var(--k-space-6) auto; }
18
+ .k-toaster { inline-size: min(var(--k-toast-width, 24rem), calc(100vw - 2rem)); }
19
+ .k-toaster:is(.k-toaster--top-start, .k-toaster--top-center, .k-toaster--top-end) { inset-block: var(--k-space-6) auto; }
20
+ .k-toaster:is(.k-toaster--top-start, .k-toaster--bottom-start) { inset-inline: var(--k-space-6) auto; }
21
+ .k-toaster:is(.k-toaster--top-center, .k-toaster--bottom-center) { inset-inline: 0; margin-inline: auto; }
22
+ /* اعلان‌های بالا از بالا وارد می‌شوند */
23
+ .k-toaster:is(.k-toaster--top-start, .k-toaster--top-center, .k-toaster--top-end) .k-toast { animation-name: k-toast-in-top; }
24
+ @keyframes k-toast-in-top { from { opacity: 0; translate: 0 -12px; scale: 0.97; } }
18
25
  @media (max-width: 30rem) {
19
26
  .k-toaster { inset-inline: var(--k-space-4); inset-block-end: var(--k-space-4); inline-size: auto; }
20
27
  }
@@ -28,8 +35,8 @@
28
35
  gap: var(--k-space-3);
29
36
  padding: var(--k-space-4);
30
37
  border: 1px solid var(--k-border-secondary);
31
- border-radius: var(--k-radius-xl);
32
- background: var(--k-bg-elevated);
38
+ border-radius: var(--k-toast-radius, var(--k-radius-xl));
39
+ background: var(--k-toast-bg, var(--k-bg-elevated));
33
40
  color: var(--k-text-primary);
34
41
  box-shadow: var(--k-shadow-lg), var(--k-highlight);
35
42
  pointer-events: auto;
@@ -1,5 +1,7 @@
1
1
  /* راهنمای کوتاه (Tooltip) — با hover و فوکوس، بسته شدن با Esc (WCAG 1.4.13)
2
2
  * فقط برای توضیح تکمیلی؛ اطلاعات ضروری را در tooltip پنهان نکنید.
3
+ * جایگاه: پیش‌فرض بالا | k-tooltip--bottom | k-tooltip--start | k-tooltip--end
4
+ * متغیرها: --k-tooltip-bg --k-tooltip-fg --k-tooltip-max-width --k-tooltip-radius
3
5
  */
4
6
  .k-tooltip-anchor { position: relative; display: inline-flex; }
5
7
 
@@ -43,6 +45,16 @@
43
45
  [dir="ltr"] .k-tooltip { animation-name: k-tip-in-ltr; }
44
46
  @keyframes k-tip-in-ltr { from { opacity: 0; translate: -50% 3px; } }
45
47
 
48
+ /* کنار عنصر */
49
+ .k-tooltip:is(.k-tooltip--start, .k-tooltip--end) { inset-block: 50% auto; translate: 0 -50%; animation-name: k-tip-side; }
50
+ .k-tooltip--start { inset-inline: auto calc(100% + 8px); }
51
+ .k-tooltip--end { inset-inline: calc(100% + 8px) auto; }
52
+ .k-tooltip:is(.k-tooltip--start, .k-tooltip--end)::after { inset-block: 50% auto; translate: 0 -50%; border-color: transparent; }
53
+ .k-tooltip--start::after { inset-inline: 100% auto; border-inline-start-color: var(--k-tooltip-bg, var(--k-text-primary)); }
54
+ .k-tooltip--end::after { inset-inline: auto 100%; border-inline-end-color: var(--k-tooltip-bg, var(--k-text-primary)); }
55
+ @keyframes k-tip-side { from { opacity: 0; } }
56
+ .k-tooltip { max-inline-size: var(--k-tooltip-max-width, 16rem); border-radius: var(--k-tooltip-radius, var(--k-radius-md)); }
57
+
46
58
  @media (forced-colors: active) {
47
59
  .k-tooltip { border: 1px solid CanvasText; }
48
60
  }