@kashi-ui/css 2.24.1 → 2.26.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/components/bill.css +13 -0
- package/dist/components/cropper.css +46 -0
- package/dist/components/gantt.css +100 -0
- package/dist/components/infinite.css +25 -0
- package/dist/components/invoice.css +69 -0
- package/dist/components/signature.css +51 -0
- package/dist/components/table.css +21 -0
- package/dist/kashi.css +337 -0
- package/dist/kashi.nofont.css +337 -0
- package/dist/tokens.css +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* شناسهٔ قبض و پرداخت: نوع قبض و مبلغ کنار فیلد با نقطهٔ رنگی نوع خدمت */
|
|
2
|
+
.k-bill__service { display: inline-flex; align-items: center; gap: var(--k-space-1_5); animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
3
|
+
.k-bill__service::before { content: ""; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bill-color, var(--k-text-tertiary)); }
|
|
4
|
+
.k-bill__service[data-service="water"] { --k-bill-color: var(--k-lajvard-500); }
|
|
5
|
+
.k-bill__service[data-service="electricity"] { --k-bill-color: var(--k-zafaran-500); }
|
|
6
|
+
.k-bill__service[data-service="gas"] { --k-bill-color: var(--k-anar-500); }
|
|
7
|
+
.k-bill__service[data-service="landline"], .k-bill__service[data-service="mobile"] { --k-bill-color: var(--k-firoozeh-500); }
|
|
8
|
+
.k-bill__service[data-service="municipality"], .k-bill__service[data-service="tax"] { --k-bill-color: var(--k-pesteh-500); }
|
|
9
|
+
.k-bill__service[data-service="fine"] { --k-bill-color: var(--k-anar-600); }
|
|
10
|
+
.k-bill__amount { color: var(--k-text-primary); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
11
|
+
@keyframes k-bill-in { from { opacity: 0; translate: 0 3px; } }
|
|
12
|
+
@media (prefers-reduced-motion: reduce) { .k-bill__service, .k-bill__amount { animation: none; } }
|
|
13
|
+
@media (forced-colors: active) { .k-bill__service::before { background: CanvasText; } }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* برش تصویر
|
|
2
|
+
* <div class="k-cropper"><div class="k-cropper__stage"><img class="k-cropper__img"><div class="k-cropper__frame"></div></div><div class="k-cropper__controls">…</div></div>
|
|
3
|
+
* متغیر: --k-cropper-height ارتفاع صحنه */
|
|
4
|
+
.k-cropper { display: grid; gap: var(--k-space-3); }
|
|
5
|
+
.k-cropper__stage {
|
|
6
|
+
position: relative;
|
|
7
|
+
block-size: var(--k-cropper-height, var(--k-cropper-height-default));
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: var(--k-radius-lg);
|
|
10
|
+
background: repeating-conic-gradient(var(--k-bg-muted) 0 25%, var(--k-bg-secondary) 0 50%) 0 0 / 1rem 1rem;
|
|
11
|
+
touch-action: none;
|
|
12
|
+
user-select: none;
|
|
13
|
+
cursor: grab;
|
|
14
|
+
}
|
|
15
|
+
.k-cropper__stage:active { cursor: grabbing; }
|
|
16
|
+
.k-cropper__stage:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
17
|
+
.k-cropper__img { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-inline-size: none; pointer-events: none; transform-origin: 50% 50%; transition: opacity var(--k-duration-normal); }
|
|
18
|
+
/* کادر وسط با تاریکی بیرونش (سایهٔ بزرگ) */
|
|
19
|
+
.k-cropper__frame {
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset-block-start: 50%;
|
|
22
|
+
inset-inline-start: 50%;
|
|
23
|
+
translate: -50% -50%;
|
|
24
|
+
border: 2px solid rgb(255 255 255 / 0.95);
|
|
25
|
+
border-radius: var(--k-radius-sm);
|
|
26
|
+
box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55);
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
transition: border-radius var(--k-duration-normal) var(--k-ease-emphasized);
|
|
29
|
+
}
|
|
30
|
+
.k-cropper[data-shape="circle"] .k-cropper__frame { border-radius: 50%; }
|
|
31
|
+
/* خطوط یکسوم، فقط هنگام کشیدن */
|
|
32
|
+
.k-cropper__grid { position: absolute; inset: 0; border-radius: inherit; opacity: 0; background:
|
|
33
|
+
linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0),
|
|
34
|
+
linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0);
|
|
35
|
+
transition: opacity var(--k-duration-normal); }
|
|
36
|
+
.k-cropper__stage:active .k-cropper__grid, .k-cropper__stage:focus-visible .k-cropper__grid { opacity: 1; }
|
|
37
|
+
.k-cropper__controls { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
38
|
+
.k-cropper__zoom { flex: 1; min-inline-size: 0; }
|
|
39
|
+
.k-cropper__btn { display: grid; place-items: center; flex-shrink: 0; inline-size: 2.25rem; block-size: 2.25rem; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
40
|
+
.k-cropper__btn svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
41
|
+
.k-cropper__btn:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
42
|
+
.k-cropper__btn:active:not(:disabled) { scale: 0.92; }
|
|
43
|
+
.k-cropper__btn:disabled { opacity: 0.4; cursor: default; }
|
|
44
|
+
.k-cropper__btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
45
|
+
@media (prefers-reduced-motion: reduce) { .k-cropper__frame, .k-cropper__grid, .k-cropper__btn, .k-cropper__img { transition: none; } }
|
|
46
|
+
@media (forced-colors: active) { .k-cropper__frame { border-color: Highlight; } }
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* نمودار گانت با تقویم شمسی
|
|
2
|
+
* <div class="k-gantt"><div class="k-gantt__scroll"><div class="k-gantt__grid">…<div class="k-gantt__row"><div class="k-gantt__name">…</div><div class="k-gantt__track"><button class="k-gantt__bar">…</button></div></div></div></div></div>
|
|
3
|
+
* متغیرها: --k-gantt-day پهنای هر روز --k-gantt-row ارتفاع ردیف --k-gantt-label-width ستون نام کارها --k-gantt-color رنگ نوار --k-gantt-height ارتفاع بیشینه */
|
|
4
|
+
.k-gantt {
|
|
5
|
+
--_day: var(--k-gantt-day, var(--k-gantt-day-default));
|
|
6
|
+
--_row: var(--k-gantt-row, var(--k-gantt-row-default));
|
|
7
|
+
--_label: var(--k-gantt-label-width, var(--k-gantt-label-width-default));
|
|
8
|
+
min-inline-size: 0;
|
|
9
|
+
}
|
|
10
|
+
.k-gantt__scroll { max-block-size: var(--k-gantt-height, none); overflow: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-surface); background: var(--k-bg-elevated); box-shadow: var(--k-shadow-xs), var(--k-highlight); overscroll-behavior-inline: contain; }
|
|
11
|
+
.k-gantt__scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
12
|
+
.k-gantt__grid { position: relative; display: grid; grid-template-columns: var(--_label) calc(var(--_day) * var(--k-gantt-days)); inline-size: max-content; min-inline-size: 100%; }
|
|
13
|
+
.k-gantt__head, .k-gantt__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
14
|
+
.k-gantt__head { position: sticky; inset-block-start: 0; z-index: calc(var(--k-z-sticky) + 1); background: var(--k-bg-elevated); box-shadow: 0 1px 0 var(--k-border-secondary); }
|
|
15
|
+
.k-gantt__corner, .k-gantt__name { position: sticky; inset-inline-start: 0; z-index: var(--k-z-sticky); background: var(--k-bg-elevated); border-inline-end: 1px solid var(--k-border-secondary); }
|
|
16
|
+
.k-gantt__corner { display: flex; align-items: end; padding: var(--k-space-2) var(--k-space-4); color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); }
|
|
17
|
+
.k-gantt__months, .k-gantt__days { display: grid; grid-template-columns: repeat(var(--k-gantt-days), var(--_day)); }
|
|
18
|
+
.k-gantt__month { overflow: hidden; padding: var(--k-space-2) var(--k-space-2) var(--k-space-1); border-inline-start: 1px solid var(--k-border-secondary); color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; }
|
|
19
|
+
.k-gantt__day { display: grid; place-items: center; block-size: 1.75rem; color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-variant-numeric: tabular-nums; }
|
|
20
|
+
.k-gantt__day[data-first] { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
21
|
+
.k-gantt__day[data-off] { color: var(--k-text-error); }
|
|
22
|
+
.k-gantt__day[data-today] { margin: 2px; border-radius: var(--k-radius-full); background: var(--k-bg-brand); color: var(--k-text-on-brand); font-weight: var(--k-weight-semibold); }
|
|
23
|
+
.k-gantt__row { transition: background-color var(--k-duration-fast); }
|
|
24
|
+
.k-gantt__row:hover, .k-gantt__row:hover .k-gantt__name { background: var(--k-bg-hover); }
|
|
25
|
+
.k-gantt__row:hover .k-gantt__name { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 3%); }
|
|
26
|
+
.k-gantt__name { display: flex; align-items: center; gap: var(--k-space-2); min-inline-size: 0; block-size: var(--_row); padding-inline: var(--k-space-4); border-block-start: 1px solid var(--k-border-secondary); }
|
|
27
|
+
.k-gantt__dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bg-brand); }
|
|
28
|
+
.k-gantt__label { flex: 1; min-inline-size: 0; overflow: hidden; color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); white-space: nowrap; text-overflow: ellipsis; }
|
|
29
|
+
.k-gantt__len { flex-shrink: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
30
|
+
.k-gantt__track {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: repeat(var(--k-gantt-days), var(--_day));
|
|
34
|
+
block-size: var(--_row);
|
|
35
|
+
border-block-start: 1px solid var(--k-border-secondary);
|
|
36
|
+
background-image: linear-gradient(to right, color-mix(in srgb, var(--k-border-secondary) 60%, transparent) 1px, transparent 1px);
|
|
37
|
+
background-size: var(--_day) 100%;
|
|
38
|
+
}
|
|
39
|
+
.k-gantt__off { grid-row: 1; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--k-text-error) 6%, transparent) 6px 7px); }
|
|
40
|
+
.k-gantt__bar {
|
|
41
|
+
--_c: var(--k-gantt-color, var(--k-brand-500));
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset-block: 0.5rem;
|
|
44
|
+
inset-inline-start: calc(var(--start) * var(--_day) + 2px);
|
|
45
|
+
z-index: var(--k-z-raised);
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
inline-size: calc(var(--len) * var(--_day) - 4px);
|
|
49
|
+
min-inline-size: 0.75rem;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
padding: 0;
|
|
52
|
+
border: 0;
|
|
53
|
+
border-radius: var(--k-radius-sm);
|
|
54
|
+
background: color-mix(in srgb, var(--_c) 22%, var(--k-bg-elevated));
|
|
55
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_c) 45%, transparent);
|
|
56
|
+
color: var(--k-text-primary);
|
|
57
|
+
font: inherit;
|
|
58
|
+
text-align: start;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
transition: inset-inline-start var(--k-duration-normal) var(--k-ease-emphasized), inline-size var(--k-duration-normal) var(--k-ease-emphasized), translate var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
61
|
+
animation: k-gantt-grow var(--k-duration-slow) var(--k-ease-emphasized) both;
|
|
62
|
+
transform-origin: 100% 50%;
|
|
63
|
+
}
|
|
64
|
+
.k-gantt__bar:dir(ltr) { transform-origin: 0 50%; }
|
|
65
|
+
.k-gantt__bar:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-sm); }
|
|
66
|
+
.k-gantt__bar:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--_c), var(--k-ring-brand); }
|
|
67
|
+
.k-gantt__bar[data-dragging] { z-index: calc(var(--k-z-raised) + 1); box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-lg); cursor: grabbing; transition: none; }
|
|
68
|
+
.k-gantt__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--progress); background: color-mix(in srgb, var(--_c) 50%, var(--k-bg-elevated)); transition: inline-size var(--k-duration-slow) var(--k-ease-emphasized); }
|
|
69
|
+
.k-gantt__bar[data-done] .k-gantt__fill { inline-size: 100%; }
|
|
70
|
+
.k-gantt__text { position: relative; overflow: hidden; padding-inline: var(--k-space-2); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; mix-blend-mode: normal; }
|
|
71
|
+
.k-gantt__grip { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 8px; cursor: ew-resize; }
|
|
72
|
+
.k-gantt__grip::after { content: ""; position: absolute; inset-block: 30%; inset-inline-end: 3px; inline-size: 2px; border-radius: 1px; background: currentColor; opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
73
|
+
.k-gantt__bar:hover .k-gantt__grip::after { opacity: 0.45; }
|
|
74
|
+
.k-gantt__bar[data-milestone] { inset-block: auto; inset-block-start: 50%; inline-size: calc(var(--_day) * 0.55); min-inline-size: 0; aspect-ratio: 1; translate: calc(var(--_day) * 0.2) -50%; rotate: 45deg; border-radius: 3px; background: var(--_c); animation: k-gantt-pop var(--k-duration-slow) var(--k-ease-spring) both; }
|
|
75
|
+
.k-gantt__bar[data-milestone]:hover { translate: calc(var(--_day) * 0.2) calc(-50% - 1px); }
|
|
76
|
+
.k-gantt__bar[data-milestone]:dir(rtl) { translate: calc(var(--_day) * -0.2) -50%; }
|
|
77
|
+
/* وابستگی: از پایان کار قبلی تا شروع این کار */
|
|
78
|
+
.k-gantt__dep {
|
|
79
|
+
position: absolute;
|
|
80
|
+
inset-inline-start: calc(var(--from) * var(--_day) - 2px);
|
|
81
|
+
inline-size: max(0.5rem, calc((var(--to) - var(--from)) * var(--_day) - 0.25rem));
|
|
82
|
+
inset-block-end: 50%;
|
|
83
|
+
block-size: calc(var(--rows) * var(--_row));
|
|
84
|
+
border-block-start: 1.5px solid var(--k-text-quaternary);
|
|
85
|
+
border-inline-end: 1.5px solid var(--k-text-quaternary);
|
|
86
|
+
border-start-end-radius: 6px;
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
}
|
|
89
|
+
.k-gantt__dep::after { content: ""; position: absolute; inset-block-end: -3px; inset-inline-end: -4.5px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--k-text-quaternary); }
|
|
90
|
+
.k-gantt__dep[data-below] { inset-block-end: auto; inset-block-start: 50%; border-block-start: 0; border-block-end: 1.5px solid var(--k-text-quaternary); border-start-end-radius: 0; border-end-end-radius: 6px; }
|
|
91
|
+
.k-gantt__dep[data-below]::after { inset-block-end: auto; inset-block-start: -3px; }
|
|
92
|
+
.k-gantt__dep[data-backward] { display: none; }
|
|
93
|
+
/* خط امروز */
|
|
94
|
+
.k-gantt__now { position: absolute; inset-block: 0; inset-inline-start: calc(var(--_label) + (var(--today) + 0.5) * var(--_day) - 1px); z-index: var(--k-z-raised); inline-size: 2px; background: var(--k-bg-brand); pointer-events: none; }
|
|
95
|
+
/* متن «امروز» فقط برای خواندن کد است؛ روز امروز در سرستون با دایرهٔ برند مشخص است */
|
|
96
|
+
.k-gantt__now span { display: none; }
|
|
97
|
+
@keyframes k-gantt-grow { from { scale: 0.2 1; opacity: 0; } }
|
|
98
|
+
@keyframes k-gantt-pop { from { scale: 0; } }
|
|
99
|
+
@media (prefers-reduced-motion: reduce) { .k-gantt__bar, .k-gantt__fill { animation: none; transition: none; } }
|
|
100
|
+
@media (forced-colors: active) { .k-gantt__bar { border: 1px solid CanvasText; } .k-gantt__fill, .k-gantt__now, .k-gantt__bar[data-milestone] { background: Highlight; forced-color-adjust: none; } }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* بارگذاری پیوسته و فهرست مجازی
|
|
2
|
+
* <div class="k-infinite"><div class="k-infinite__items">…</div><div class="k-infinite__loader">…</div><p class="k-infinite__end">…</p></div>
|
|
3
|
+
* <div class="k-vlist" role="list"><div class="k-vlist__space"><div class="k-vlist__item" role="listitem">…</div></div></div>
|
|
4
|
+
* متغیر: --k-vlist-height ارتفاع فهرست مجازی */
|
|
5
|
+
.k-infinite { display: grid; gap: var(--k-space-3); min-inline-size: 0; }
|
|
6
|
+
.k-infinite--scroll { overflow-y: auto; overscroll-behavior: contain; }
|
|
7
|
+
.k-infinite--scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
8
|
+
.k-infinite__items { display: grid; gap: inherit; }
|
|
9
|
+
.k-infinite__items > * { animation: k-infinite-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
10
|
+
.k-infinite__loader { display: grid; gap: var(--k-space-3); }
|
|
11
|
+
.k-infinite__sk { display: block; block-size: 3.5rem; border-radius: var(--k-radius-lg); }
|
|
12
|
+
.k-infinite__sk:nth-child(2) { opacity: 0.7; }
|
|
13
|
+
.k-infinite__sk:nth-child(3) { opacity: 0.4; }
|
|
14
|
+
.k-infinite__error { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--k-space-3); padding: var(--k-space-4); border-radius: var(--k-radius-lg); background: var(--k-bg-error-subtle); color: var(--k-text-error); font-size: var(--k-text-sm); }
|
|
15
|
+
.k-infinite__more { display: flex; justify-content: center; }
|
|
16
|
+
.k-infinite__end { display: flex; align-items: center; gap: var(--k-space-3); margin: 0; padding-block: var(--k-space-2); color: var(--k-text-tertiary); font-size: var(--k-text-sm); text-align: center; }
|
|
17
|
+
.k-infinite__end::before, .k-infinite__end::after { content: ""; flex: 1; border-block-start: 1px solid var(--k-border-secondary); }
|
|
18
|
+
.k-infinite__sentinel { block-size: 1px; margin-block-start: -1px; }
|
|
19
|
+
.k-vlist { position: relative; block-size: var(--k-vlist-height, var(--k-vlist-height-default)); overflow-y: auto; overscroll-behavior: contain; contain: strict; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-elevated); }
|
|
20
|
+
.k-vlist:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
21
|
+
.k-vlist__space { position: relative; inline-size: 100%; }
|
|
22
|
+
.k-vlist__item { position: absolute; inset-block-start: 0; inset-inline: 0; }
|
|
23
|
+
@keyframes k-infinite-in { from { opacity: 0; translate: 0 6px; } }
|
|
24
|
+
@media (prefers-reduced-motion: reduce) { .k-infinite__items > * { animation: none; } }
|
|
25
|
+
@media (forced-colors: active) { .k-vlist { border-color: CanvasText; } }
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* صورتحساب رسمی و پیشفاکتور؛ آمادهٔ چاپ و PDF
|
|
2
|
+
* <article class="k-invoice" data-variant="official|proforma"><header class="k-invoice__head">…</header><div class="k-invoice__parties">…</div><table class="k-invoice__table">…</table>…</article> */
|
|
3
|
+
.k-invoice {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: grid;
|
|
6
|
+
gap: var(--k-space-5);
|
|
7
|
+
padding: var(--k-space-8);
|
|
8
|
+
border: 1px solid var(--k-border-secondary);
|
|
9
|
+
border-radius: var(--k-radius-surface);
|
|
10
|
+
background: var(--k-bg-elevated);
|
|
11
|
+
box-shadow: var(--k-shadow-xs), var(--k-highlight);
|
|
12
|
+
color: var(--k-text-primary);
|
|
13
|
+
font-size: var(--k-text-sm);
|
|
14
|
+
}
|
|
15
|
+
.k-invoice__head { display: flex; flex-wrap: wrap; align-items: start; gap: var(--k-space-4) var(--k-space-6); padding-block-end: var(--k-space-5); border-block-end: 2px solid var(--k-text-primary); }
|
|
16
|
+
.k-invoice__logo { flex-shrink: 0; }
|
|
17
|
+
.k-invoice__title { flex: 1; min-inline-size: 12rem; margin: 0; font-size: var(--k-type-title-size); font-weight: var(--k-weight-bold); line-height: var(--k-type-title-leading); }
|
|
18
|
+
.k-invoice[data-variant="proforma"] .k-invoice__title::after { content: ""; display: inline-block; inline-size: 0.5rem; block-size: 0.5rem; margin-inline-start: var(--k-space-2); border-radius: 50%; background: var(--k-zafaran-500); vertical-align: middle; }
|
|
19
|
+
.k-invoice__meta { display: grid; grid-template-columns: auto auto; gap: var(--k-space-1) var(--k-space-4); margin: 0; }
|
|
20
|
+
.k-invoice__meta div, .k-invoice__totals div { display: contents; }
|
|
21
|
+
.k-invoice__meta dt { color: var(--k-text-tertiary); }
|
|
22
|
+
.k-invoice__meta dd { margin: 0; font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
|
|
23
|
+
.k-invoice__mono { font-family: var(--k-font-mono); font-size: var(--k-text-xs); letter-spacing: 0.02em; }
|
|
24
|
+
.k-invoice__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--k-space-4); }
|
|
25
|
+
.k-invoice__party { padding: var(--k-space-4); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-secondary); }
|
|
26
|
+
.k-invoice__party-title { margin: 0 0 var(--k-space-3); color: var(--k-text-secondary); font-size: var(--k-type-label-size); font-weight: var(--k-weight-semibold); line-height: var(--k-type-label-leading); }
|
|
27
|
+
.k-invoice__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-2) var(--k-space-4); margin: 0; }
|
|
28
|
+
.k-invoice__dl div { display: grid; gap: 2px; min-inline-size: 0; }
|
|
29
|
+
.k-invoice__dl dt { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
30
|
+
.k-invoice__dl dd { margin: 0; overflow-wrap: anywhere; font-weight: var(--k-weight-medium); }
|
|
31
|
+
.k-invoice__dl .k-invoice__num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
|
|
32
|
+
.k-invoice__wide { grid-column: 1 / -1; }
|
|
33
|
+
.k-invoice__table-wrap { overflow-x: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); }
|
|
34
|
+
.k-invoice__table-wrap:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
35
|
+
.k-invoice__table { inline-size: 100%; border-collapse: collapse; }
|
|
36
|
+
.k-invoice__table th, .k-invoice__table td { padding: var(--k-space-2_5) var(--k-space-3); border-block-end: 1px solid var(--k-border-secondary); text-align: start; vertical-align: top; }
|
|
37
|
+
.k-invoice__table thead th { background: var(--k-bg-muted); color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; }
|
|
38
|
+
.k-invoice__table tbody tr:last-child td { border-block-end: 0; }
|
|
39
|
+
.k-invoice__table tbody tr { transition: background-color var(--k-duration-fast); }
|
|
40
|
+
.k-invoice__table tbody tr:hover { background: var(--k-bg-hover); }
|
|
41
|
+
.k-invoice__table .k-invoice__n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
42
|
+
.k-invoice__table .k-invoice__num-col { inline-size: 3rem; color: var(--k-text-tertiary); text-align: center; }
|
|
43
|
+
.k-invoice__code { display: block; margin-block-start: 2px; color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: start; }
|
|
44
|
+
.k-invoice__unit { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
45
|
+
.k-invoice__summary { display: grid; justify-items: end; gap: var(--k-space-3); }
|
|
46
|
+
.k-invoice__totals { display: grid; grid-template-columns: auto minmax(9rem, auto); gap: var(--k-space-2) var(--k-space-6); margin: 0; }
|
|
47
|
+
.k-invoice__totals dt { color: var(--k-text-tertiary); }
|
|
48
|
+
.k-invoice__totals dd { margin: 0; text-align: end; font-weight: var(--k-weight-medium); font-variant-numeric: tabular-nums; }
|
|
49
|
+
.k-invoice__payable dt, .k-invoice__payable dd { padding-block-start: var(--k-space-3); border-block-start: 1px solid var(--k-border-primary); color: var(--k-text-primary); font-size: var(--k-text-md); font-weight: var(--k-weight-bold); }
|
|
50
|
+
.k-invoice__cur { color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-regular); }
|
|
51
|
+
.k-invoice__words { max-inline-size: 36rem; margin: 0; padding: var(--k-space-2) var(--k-space-3); border-radius: var(--k-radius-md); background: var(--k-bg-brand-subtle); color: var(--k-text-brand); font-weight: var(--k-weight-medium); text-align: end; }
|
|
52
|
+
.k-invoice__notes { color: var(--k-text-secondary); }
|
|
53
|
+
.k-invoice__signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--k-space-6); padding-block-start: var(--k-space-6); }
|
|
54
|
+
.k-invoice__sign { display: grid; align-items: end; min-block-size: 5.5rem; padding-block-start: var(--k-space-2); border-block-start: 1px dashed var(--k-border-primary); color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: center; align-content: start; }
|
|
55
|
+
.k-invoice__print { justify-self: end; gap: var(--k-space-1_5); }
|
|
56
|
+
@media (max-width: 40rem) {
|
|
57
|
+
.k-invoice { padding: var(--k-space-5); }
|
|
58
|
+
.k-invoice__print { justify-self: stretch; }
|
|
59
|
+
.k-invoice__dl { grid-template-columns: 1fr; }
|
|
60
|
+
}
|
|
61
|
+
@media print {
|
|
62
|
+
.k-invoice { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
|
|
63
|
+
.k-invoice__print { display: none; }
|
|
64
|
+
.k-invoice__party, .k-invoice__table thead th { background: none; }
|
|
65
|
+
.k-invoice__words { background: none; color: #000; border: 1px solid #999; }
|
|
66
|
+
.k-invoice__table tr, .k-invoice__signs, .k-invoice__summary { break-inside: avoid; }
|
|
67
|
+
.k-invoice__table tbody tr:hover { background: none; }
|
|
68
|
+
}
|
|
69
|
+
@media (forced-colors: active) { .k-invoice, .k-invoice__party, .k-invoice__table-wrap { border-color: CanvasText; } }
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* کادر امضا
|
|
2
|
+
* <div class="k-field k-signature"><div class="k-signature__pad"><canvas class="k-signature__canvas"></canvas><span class="k-signature__line">×</span><div class="k-signature__tools">…</div></div></div>
|
|
3
|
+
* متغیرها: --k-signature-height ارتفاع کادر --k-signature-ink رنگ جوهر روی صفحه */
|
|
4
|
+
.k-signature__modes { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border-radius: var(--k-radius-md); background: var(--k-bg-muted); }
|
|
5
|
+
.k-signature__mode { padding: var(--k-space-1) var(--k-space-3); border: 0; border-radius: calc(var(--k-radius-md) - 2px); background: none; color: var(--k-text-tertiary); font: inherit; font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); cursor: pointer; transition: background-color var(--k-duration-fast), color var(--k-duration-fast); }
|
|
6
|
+
.k-signature__mode:hover { color: var(--k-text-primary); }
|
|
7
|
+
.k-signature__mode[aria-checked="true"] { background: var(--k-bg-elevated); color: var(--k-text-primary); box-shadow: var(--k-shadow-xs); }
|
|
8
|
+
.k-signature__mode:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
9
|
+
.k-signature__pad {
|
|
10
|
+
position: relative;
|
|
11
|
+
block-size: var(--k-signature-height, var(--k-signature-height-default));
|
|
12
|
+
border: 1px dashed var(--k-border-primary);
|
|
13
|
+
border-radius: var(--k-radius-lg);
|
|
14
|
+
background: var(--k-bg-elevated);
|
|
15
|
+
transition: border-color var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
16
|
+
}
|
|
17
|
+
.k-signature__pad:hover { border-color: var(--k-text-quaternary); }
|
|
18
|
+
.k-signature__pad:has(:focus-visible) { border-style: solid; border-color: var(--k-border-brand); box-shadow: var(--k-ring-brand); }
|
|
19
|
+
.k-signature[data-invalid] .k-signature__pad { border-color: var(--k-border-error); }
|
|
20
|
+
.k-signature[data-disabled] .k-signature__pad { opacity: 0.6; }
|
|
21
|
+
.k-signature__canvas { display: block; inline-size: 100%; block-size: 100%; color: var(--k-signature-ink, var(--k-text-primary)); touch-action: none; cursor: crosshair; border-radius: inherit; }
|
|
22
|
+
.k-signature__canvas:focus-visible { outline: none; }
|
|
23
|
+
/* خط امضا با «×» در گوشه */
|
|
24
|
+
.k-signature__line { position: absolute; inset-inline: var(--k-space-6); inset-block-end: 28%; padding-block-end: 2px; border-block-end: 1px solid var(--k-border-secondary); color: var(--k-text-quaternary); font-size: var(--k-text-sm); line-height: 1; pointer-events: none; transition: opacity var(--k-duration-normal) var(--k-ease-standard); }
|
|
25
|
+
.k-signature:not([data-empty]) .k-signature__line { opacity: 0.45; }
|
|
26
|
+
.k-signature__typed { position: absolute; inset: 0; display: grid; place-items: center; padding-inline: var(--k-space-6); }
|
|
27
|
+
.k-signature__typed-input {
|
|
28
|
+
inline-size: 100%;
|
|
29
|
+
padding: 0;
|
|
30
|
+
border: 0;
|
|
31
|
+
background: none;
|
|
32
|
+
color: var(--k-text-primary);
|
|
33
|
+
font-family: var(--k-font-display);
|
|
34
|
+
font-size: 2.25rem;
|
|
35
|
+
font-weight: var(--k-weight-bold);
|
|
36
|
+
text-align: center;
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
.k-signature__typed-input::placeholder { color: var(--k-text-quaternary); font-family: var(--k-font-sans); font-size: var(--k-text-md); font-weight: var(--k-weight-regular); }
|
|
40
|
+
.k-signature__tools { position: absolute; inset-block-start: var(--k-space-2); inset-inline-end: var(--k-space-2); display: flex; gap: var(--k-space-1); opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
41
|
+
.k-signature:not([data-empty]) .k-signature__tools, .k-signature__pad:hover .k-signature__tools, .k-signature__pad:focus-within .k-signature__tools { opacity: 1; }
|
|
42
|
+
.k-signature__tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--k-space-1); min-inline-size: 2rem; block-size: 2rem; padding-inline: var(--k-space-2); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); font: inherit; font-size: var(--k-text-sm); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
43
|
+
.k-signature__tool svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
44
|
+
.k-signature__tool:dir(rtl) svg { scale: -1 1; }
|
|
45
|
+
.k-signature__tool:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
46
|
+
.k-signature__tool:active:not(:disabled) { scale: 0.92; }
|
|
47
|
+
.k-signature__tool:disabled { opacity: 0.4; cursor: default; }
|
|
48
|
+
.k-signature__tool:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
49
|
+
@media (prefers-reduced-motion: reduce) { .k-signature__tools, .k-signature__line, .k-signature__tool { transition: none; } }
|
|
50
|
+
@media (forced-colors: active) { .k-signature__pad { border-color: CanvasText; } .k-signature__canvas { color: CanvasText; } .k-signature__tools { opacity: 1; } }
|
|
51
|
+
@media print { .k-signature__tools, .k-signature__modes { display: none; } .k-signature__pad { border-style: solid; } }
|
|
@@ -81,3 +81,24 @@
|
|
|
81
81
|
.k-table-wrap--virtual .k-table--striped tbody tr.k-table__row--odd { background: var(--k-table-stripe, var(--k-bg-secondary)); }
|
|
82
82
|
.k-table__spacer, .k-table__spacer:hover { background: none !important; }
|
|
83
83
|
.k-table__spacer td { border: 0; }
|
|
84
|
+
|
|
85
|
+
/* ستون ثابت، ویرایش داخل خانه و خروجی اکسل */
|
|
86
|
+
.k-table caption:has(.k-table__export) { display: table-caption; }
|
|
87
|
+
.k-table__export { float: inline-end; gap: var(--k-space-1_5); margin-block-start: calc(var(--k-space-1) * -1); margin-inline-start: var(--k-space-3); }
|
|
88
|
+
.k-table--pinned { border-collapse: separate; border-spacing: 0; }
|
|
89
|
+
.k-table .k-table__pin { position: sticky; z-index: 1; background: var(--k-bg-elevated); }
|
|
90
|
+
.k-table thead .k-table__pin { z-index: calc(var(--k-z-raised) + 1); background: var(--k-table-header-bg, var(--k-bg-muted)); }
|
|
91
|
+
.k-table tbody tr:hover .k-table__pin { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 4%); }
|
|
92
|
+
.k-table tbody tr[aria-selected="true"] .k-table__pin { background: var(--k-bg-brand-subtle); }
|
|
93
|
+
.k-table .k-table__pin--edge-start { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
94
|
+
.k-table .k-table__pin--edge-start:dir(rtl) { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
95
|
+
.k-table .k-table__pin--edge-end { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
96
|
+
.k-table .k-table__pin--edge-end:dir(rtl) { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
97
|
+
.k-table td.k-table__cell--editable { padding-block: var(--k-space-1); }
|
|
98
|
+
.k-table__editable { margin-inline: calc(var(--k-space-2) * -1); padding: var(--k-space-2); border-radius: var(--k-radius-md); cursor: text; transition: background-color var(--k-duration-fast), box-shadow var(--k-duration-fast); }
|
|
99
|
+
.k-table__editable:hover { background: var(--k-bg-hover); box-shadow: inset 0 0 0 1px var(--k-border-secondary); }
|
|
100
|
+
.k-table__editable:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
101
|
+
.k-table__editor { block-size: 2.25rem; margin-inline: calc(var(--k-space-2) * -1); inline-size: calc(100% + var(--k-space-2) * 2); min-inline-size: 6rem; animation: k-table-edit var(--k-duration-fast) var(--k-ease-emphasized); }
|
|
102
|
+
@keyframes k-table-edit { from { opacity: 0.4; scale: 0.98; } }
|
|
103
|
+
@media (prefers-reduced-motion: reduce) { .k-table__editor { animation: none; } }
|
|
104
|
+
@media print { .k-table__export { display: none; } }
|
package/dist/kashi.css
CHANGED
|
@@ -285,9 +285,13 @@
|
|
|
285
285
|
--k-checkbox-size-lg: 1.25rem;
|
|
286
286
|
--k-checkbox-radius-default: calc(0.3125rem * var(--k-radius-factor));
|
|
287
287
|
--k-clock-size-default: 16rem;
|
|
288
|
+
--k-cropper-height-default: 20rem;
|
|
288
289
|
--k-dialog-width-md: 30rem;
|
|
289
290
|
--k-dialog-width-lg: 40rem;
|
|
290
291
|
--k-drawer-width-default: 26rem;
|
|
292
|
+
--k-gantt-day-default: 2.5rem;
|
|
293
|
+
--k-gantt-row-default: 2.75rem;
|
|
294
|
+
--k-gantt-label-width-default: 11rem;
|
|
291
295
|
--k-heatmap-cell-default: 0.75rem;
|
|
292
296
|
--k-listbox-max-height-default: 18rem;
|
|
293
297
|
--k-menu-min-width-default: 12rem;
|
|
@@ -313,6 +317,7 @@
|
|
|
313
317
|
--k-rte-max-height-default: 28rem;
|
|
314
318
|
--k-sched-height-default: 36rem;
|
|
315
319
|
--k-sheet-height-default: 50dvh;
|
|
320
|
+
--k-signature-height-default: 11rem;
|
|
316
321
|
--k-sidenav-width-default: 17rem;
|
|
317
322
|
--k-sidenav-item-height-default: 2.5rem;
|
|
318
323
|
--k-step-size-default: 2rem;
|
|
@@ -331,6 +336,7 @@
|
|
|
331
336
|
--k-tooltip-max-width-default: 16rem;
|
|
332
337
|
--k-tree-indent-default: 1.25rem;
|
|
333
338
|
--k-tree-row-height-default: 2.25rem;
|
|
339
|
+
--k-vlist-height-default: 24rem;
|
|
334
340
|
}
|
|
335
341
|
|
|
336
342
|
:root, [data-theme="dark"] {
|
|
@@ -1206,6 +1212,20 @@
|
|
|
1206
1212
|
.k-banner__actions { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
1207
1213
|
.k-banner__close { margin-inline-start: auto; }
|
|
1208
1214
|
|
|
1215
|
+
/* شناسهٔ قبض و پرداخت: نوع قبض و مبلغ کنار فیلد با نقطهٔ رنگی نوع خدمت */
|
|
1216
|
+
.k-bill__service { display: inline-flex; align-items: center; gap: var(--k-space-1_5); animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1217
|
+
.k-bill__service::before { content: ""; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bill-color, var(--k-text-tertiary)); }
|
|
1218
|
+
.k-bill__service[data-service="water"] { --k-bill-color: var(--k-lajvard-500); }
|
|
1219
|
+
.k-bill__service[data-service="electricity"] { --k-bill-color: var(--k-zafaran-500); }
|
|
1220
|
+
.k-bill__service[data-service="gas"] { --k-bill-color: var(--k-anar-500); }
|
|
1221
|
+
.k-bill__service[data-service="landline"], .k-bill__service[data-service="mobile"] { --k-bill-color: var(--k-firoozeh-500); }
|
|
1222
|
+
.k-bill__service[data-service="municipality"], .k-bill__service[data-service="tax"] { --k-bill-color: var(--k-pesteh-500); }
|
|
1223
|
+
.k-bill__service[data-service="fine"] { --k-bill-color: var(--k-anar-600); }
|
|
1224
|
+
.k-bill__amount { color: var(--k-text-primary); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1225
|
+
@keyframes k-bill-in { from { opacity: 0; translate: 0 3px; } }
|
|
1226
|
+
@media (prefers-reduced-motion: reduce) { .k-bill__service, .k-bill__amount { animation: none; } }
|
|
1227
|
+
@media (forced-colors: active) { .k-bill__service::before { background: CanvasText; } }
|
|
1228
|
+
|
|
1209
1229
|
/* مسیر صفحه (Breadcrumb)
|
|
1210
1230
|
* <nav class="k-breadcrumb" aria-label="مسیر"><ol>
|
|
1211
1231
|
* <li><a class="k-breadcrumb__link" href="/">خانه</a></li>
|
|
@@ -2604,6 +2624,53 @@ a.k-barlist__label:focus-visible { outline: 2px solid transparent; border-radius
|
|
|
2604
2624
|
.k-countdown__sep { align-self: center; color: var(--k-text-quaternary); }
|
|
2605
2625
|
.k-countdown[data-done] { color: var(--k-text-tertiary); }
|
|
2606
2626
|
|
|
2627
|
+
/* برش تصویر
|
|
2628
|
+
* <div class="k-cropper"><div class="k-cropper__stage"><img class="k-cropper__img"><div class="k-cropper__frame"></div></div><div class="k-cropper__controls">…</div></div>
|
|
2629
|
+
* متغیر: --k-cropper-height ارتفاع صحنه */
|
|
2630
|
+
.k-cropper { display: grid; gap: var(--k-space-3); }
|
|
2631
|
+
.k-cropper__stage {
|
|
2632
|
+
position: relative;
|
|
2633
|
+
block-size: var(--k-cropper-height, var(--k-cropper-height-default));
|
|
2634
|
+
overflow: hidden;
|
|
2635
|
+
border-radius: var(--k-radius-lg);
|
|
2636
|
+
background: repeating-conic-gradient(var(--k-bg-muted) 0 25%, var(--k-bg-secondary) 0 50%) 0 0 / 1rem 1rem;
|
|
2637
|
+
touch-action: none;
|
|
2638
|
+
user-select: none;
|
|
2639
|
+
cursor: grab;
|
|
2640
|
+
}
|
|
2641
|
+
.k-cropper__stage:active { cursor: grabbing; }
|
|
2642
|
+
.k-cropper__stage:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
2643
|
+
.k-cropper__img { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-inline-size: none; pointer-events: none; transform-origin: 50% 50%; transition: opacity var(--k-duration-normal); }
|
|
2644
|
+
/* کادر وسط با تاریکی بیرونش (سایهٔ بزرگ) */
|
|
2645
|
+
.k-cropper__frame {
|
|
2646
|
+
position: absolute;
|
|
2647
|
+
inset-block-start: 50%;
|
|
2648
|
+
inset-inline-start: 50%;
|
|
2649
|
+
translate: -50% -50%;
|
|
2650
|
+
border: 2px solid rgb(255 255 255 / 0.95);
|
|
2651
|
+
border-radius: var(--k-radius-sm);
|
|
2652
|
+
box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55);
|
|
2653
|
+
pointer-events: none;
|
|
2654
|
+
transition: border-radius var(--k-duration-normal) var(--k-ease-emphasized);
|
|
2655
|
+
}
|
|
2656
|
+
.k-cropper[data-shape="circle"] .k-cropper__frame { border-radius: 50%; }
|
|
2657
|
+
/* خطوط یکسوم، فقط هنگام کشیدن */
|
|
2658
|
+
.k-cropper__grid { position: absolute; inset: 0; border-radius: inherit; opacity: 0; background:
|
|
2659
|
+
linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0),
|
|
2660
|
+
linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0);
|
|
2661
|
+
transition: opacity var(--k-duration-normal); }
|
|
2662
|
+
.k-cropper__stage:active .k-cropper__grid, .k-cropper__stage:focus-visible .k-cropper__grid { opacity: 1; }
|
|
2663
|
+
.k-cropper__controls { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
2664
|
+
.k-cropper__zoom { flex: 1; min-inline-size: 0; }
|
|
2665
|
+
.k-cropper__btn { display: grid; place-items: center; flex-shrink: 0; inline-size: 2.25rem; block-size: 2.25rem; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
2666
|
+
.k-cropper__btn svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
2667
|
+
.k-cropper__btn:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
2668
|
+
.k-cropper__btn:active:not(:disabled) { scale: 0.92; }
|
|
2669
|
+
.k-cropper__btn:disabled { opacity: 0.4; cursor: default; }
|
|
2670
|
+
.k-cropper__btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
2671
|
+
@media (prefers-reduced-motion: reduce) { .k-cropper__frame, .k-cropper__grid, .k-cropper__btn, .k-cropper__img { transition: none; } }
|
|
2672
|
+
@media (forced-colors: active) { .k-cropper__frame { border-color: Highlight; } }
|
|
2673
|
+
|
|
2607
2674
|
/* پنجرهٔ گفتگو — روی <dialog> بومی: تلهٔ فوکوس، Esc و غیرفعال شدن پسزمینه رایگان
|
|
2608
2675
|
* اندازهها: k-dialog--sm | k-dialog--md (پیشفرض) | k-dialog--lg
|
|
2609
2676
|
*
|
|
@@ -2952,6 +3019,107 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
2952
3019
|
.k-file__remove { grid-row: span 2; }
|
|
2953
3020
|
.k-file .k-progress { grid-column: 2 / -1; }
|
|
2954
3021
|
|
|
3022
|
+
/* نمودار گانت با تقویم شمسی
|
|
3023
|
+
* <div class="k-gantt"><div class="k-gantt__scroll"><div class="k-gantt__grid">…<div class="k-gantt__row"><div class="k-gantt__name">…</div><div class="k-gantt__track"><button class="k-gantt__bar">…</button></div></div></div></div></div>
|
|
3024
|
+
* متغیرها: --k-gantt-day پهنای هر روز --k-gantt-row ارتفاع ردیف --k-gantt-label-width ستون نام کارها --k-gantt-color رنگ نوار --k-gantt-height ارتفاع بیشینه */
|
|
3025
|
+
.k-gantt {
|
|
3026
|
+
--_day: var(--k-gantt-day, var(--k-gantt-day-default));
|
|
3027
|
+
--_row: var(--k-gantt-row, var(--k-gantt-row-default));
|
|
3028
|
+
--_label: var(--k-gantt-label-width, var(--k-gantt-label-width-default));
|
|
3029
|
+
min-inline-size: 0;
|
|
3030
|
+
}
|
|
3031
|
+
.k-gantt__scroll { max-block-size: var(--k-gantt-height, none); overflow: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-surface); background: var(--k-bg-elevated); box-shadow: var(--k-shadow-xs), var(--k-highlight); overscroll-behavior-inline: contain; }
|
|
3032
|
+
.k-gantt__scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3033
|
+
.k-gantt__grid { position: relative; display: grid; grid-template-columns: var(--_label) calc(var(--_day) * var(--k-gantt-days)); inline-size: max-content; min-inline-size: 100%; }
|
|
3034
|
+
.k-gantt__head, .k-gantt__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
3035
|
+
.k-gantt__head { position: sticky; inset-block-start: 0; z-index: calc(var(--k-z-sticky) + 1); background: var(--k-bg-elevated); box-shadow: 0 1px 0 var(--k-border-secondary); }
|
|
3036
|
+
.k-gantt__corner, .k-gantt__name { position: sticky; inset-inline-start: 0; z-index: var(--k-z-sticky); background: var(--k-bg-elevated); border-inline-end: 1px solid var(--k-border-secondary); }
|
|
3037
|
+
.k-gantt__corner { display: flex; align-items: end; padding: var(--k-space-2) var(--k-space-4); color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); }
|
|
3038
|
+
.k-gantt__months, .k-gantt__days { display: grid; grid-template-columns: repeat(var(--k-gantt-days), var(--_day)); }
|
|
3039
|
+
.k-gantt__month { overflow: hidden; padding: var(--k-space-2) var(--k-space-2) var(--k-space-1); border-inline-start: 1px solid var(--k-border-secondary); color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; }
|
|
3040
|
+
.k-gantt__day { display: grid; place-items: center; block-size: 1.75rem; color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-variant-numeric: tabular-nums; }
|
|
3041
|
+
.k-gantt__day[data-first] { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
3042
|
+
.k-gantt__day[data-off] { color: var(--k-text-error); }
|
|
3043
|
+
.k-gantt__day[data-today] { margin: 2px; border-radius: var(--k-radius-full); background: var(--k-bg-brand); color: var(--k-text-on-brand); font-weight: var(--k-weight-semibold); }
|
|
3044
|
+
.k-gantt__row { transition: background-color var(--k-duration-fast); }
|
|
3045
|
+
.k-gantt__row:hover, .k-gantt__row:hover .k-gantt__name { background: var(--k-bg-hover); }
|
|
3046
|
+
.k-gantt__row:hover .k-gantt__name { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 3%); }
|
|
3047
|
+
.k-gantt__name { display: flex; align-items: center; gap: var(--k-space-2); min-inline-size: 0; block-size: var(--_row); padding-inline: var(--k-space-4); border-block-start: 1px solid var(--k-border-secondary); }
|
|
3048
|
+
.k-gantt__dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bg-brand); }
|
|
3049
|
+
.k-gantt__label { flex: 1; min-inline-size: 0; overflow: hidden; color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); white-space: nowrap; text-overflow: ellipsis; }
|
|
3050
|
+
.k-gantt__len { flex-shrink: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3051
|
+
.k-gantt__track {
|
|
3052
|
+
position: relative;
|
|
3053
|
+
display: grid;
|
|
3054
|
+
grid-template-columns: repeat(var(--k-gantt-days), var(--_day));
|
|
3055
|
+
block-size: var(--_row);
|
|
3056
|
+
border-block-start: 1px solid var(--k-border-secondary);
|
|
3057
|
+
background-image: linear-gradient(to right, color-mix(in srgb, var(--k-border-secondary) 60%, transparent) 1px, transparent 1px);
|
|
3058
|
+
background-size: var(--_day) 100%;
|
|
3059
|
+
}
|
|
3060
|
+
.k-gantt__off { grid-row: 1; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--k-text-error) 6%, transparent) 6px 7px); }
|
|
3061
|
+
.k-gantt__bar {
|
|
3062
|
+
--_c: var(--k-gantt-color, var(--k-brand-500));
|
|
3063
|
+
position: absolute;
|
|
3064
|
+
inset-block: 0.5rem;
|
|
3065
|
+
inset-inline-start: calc(var(--start) * var(--_day) + 2px);
|
|
3066
|
+
z-index: var(--k-z-raised);
|
|
3067
|
+
display: flex;
|
|
3068
|
+
align-items: center;
|
|
3069
|
+
inline-size: calc(var(--len) * var(--_day) - 4px);
|
|
3070
|
+
min-inline-size: 0.75rem;
|
|
3071
|
+
overflow: hidden;
|
|
3072
|
+
padding: 0;
|
|
3073
|
+
border: 0;
|
|
3074
|
+
border-radius: var(--k-radius-sm);
|
|
3075
|
+
background: color-mix(in srgb, var(--_c) 22%, var(--k-bg-elevated));
|
|
3076
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_c) 45%, transparent);
|
|
3077
|
+
color: var(--k-text-primary);
|
|
3078
|
+
font: inherit;
|
|
3079
|
+
text-align: start;
|
|
3080
|
+
cursor: pointer;
|
|
3081
|
+
transition: inset-inline-start var(--k-duration-normal) var(--k-ease-emphasized), inline-size var(--k-duration-normal) var(--k-ease-emphasized), translate var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
3082
|
+
animation: k-gantt-grow var(--k-duration-slow) var(--k-ease-emphasized) both;
|
|
3083
|
+
transform-origin: 100% 50%;
|
|
3084
|
+
}
|
|
3085
|
+
.k-gantt__bar:dir(ltr) { transform-origin: 0 50%; }
|
|
3086
|
+
.k-gantt__bar:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-sm); }
|
|
3087
|
+
.k-gantt__bar:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--_c), var(--k-ring-brand); }
|
|
3088
|
+
.k-gantt__bar[data-dragging] { z-index: calc(var(--k-z-raised) + 1); box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-lg); cursor: grabbing; transition: none; }
|
|
3089
|
+
.k-gantt__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--progress); background: color-mix(in srgb, var(--_c) 50%, var(--k-bg-elevated)); transition: inline-size var(--k-duration-slow) var(--k-ease-emphasized); }
|
|
3090
|
+
.k-gantt__bar[data-done] .k-gantt__fill { inline-size: 100%; }
|
|
3091
|
+
.k-gantt__text { position: relative; overflow: hidden; padding-inline: var(--k-space-2); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; mix-blend-mode: normal; }
|
|
3092
|
+
.k-gantt__grip { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 8px; cursor: ew-resize; }
|
|
3093
|
+
.k-gantt__grip::after { content: ""; position: absolute; inset-block: 30%; inset-inline-end: 3px; inline-size: 2px; border-radius: 1px; background: currentColor; opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
3094
|
+
.k-gantt__bar:hover .k-gantt__grip::after { opacity: 0.45; }
|
|
3095
|
+
.k-gantt__bar[data-milestone] { inset-block: auto; inset-block-start: 50%; inline-size: calc(var(--_day) * 0.55); min-inline-size: 0; aspect-ratio: 1; translate: calc(var(--_day) * 0.2) -50%; rotate: 45deg; border-radius: 3px; background: var(--_c); animation: k-gantt-pop var(--k-duration-slow) var(--k-ease-spring) both; }
|
|
3096
|
+
.k-gantt__bar[data-milestone]:hover { translate: calc(var(--_day) * 0.2) calc(-50% - 1px); }
|
|
3097
|
+
.k-gantt__bar[data-milestone]:dir(rtl) { translate: calc(var(--_day) * -0.2) -50%; }
|
|
3098
|
+
/* وابستگی: از پایان کار قبلی تا شروع این کار */
|
|
3099
|
+
.k-gantt__dep {
|
|
3100
|
+
position: absolute;
|
|
3101
|
+
inset-inline-start: calc(var(--from) * var(--_day) - 2px);
|
|
3102
|
+
inline-size: max(0.5rem, calc((var(--to) - var(--from)) * var(--_day) - 0.25rem));
|
|
3103
|
+
inset-block-end: 50%;
|
|
3104
|
+
block-size: calc(var(--rows) * var(--_row));
|
|
3105
|
+
border-block-start: 1.5px solid var(--k-text-quaternary);
|
|
3106
|
+
border-inline-end: 1.5px solid var(--k-text-quaternary);
|
|
3107
|
+
border-start-end-radius: 6px;
|
|
3108
|
+
pointer-events: none;
|
|
3109
|
+
}
|
|
3110
|
+
.k-gantt__dep::after { content: ""; position: absolute; inset-block-end: -3px; inset-inline-end: -4.5px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--k-text-quaternary); }
|
|
3111
|
+
.k-gantt__dep[data-below] { inset-block-end: auto; inset-block-start: 50%; border-block-start: 0; border-block-end: 1.5px solid var(--k-text-quaternary); border-start-end-radius: 0; border-end-end-radius: 6px; }
|
|
3112
|
+
.k-gantt__dep[data-below]::after { inset-block-end: auto; inset-block-start: -3px; }
|
|
3113
|
+
.k-gantt__dep[data-backward] { display: none; }
|
|
3114
|
+
/* خط امروز */
|
|
3115
|
+
.k-gantt__now { position: absolute; inset-block: 0; inset-inline-start: calc(var(--_label) + (var(--today) + 0.5) * var(--_day) - 1px); z-index: var(--k-z-raised); inline-size: 2px; background: var(--k-bg-brand); pointer-events: none; }
|
|
3116
|
+
/* متن «امروز» فقط برای خواندن کد است؛ روز امروز در سرستون با دایرهٔ برند مشخص است */
|
|
3117
|
+
.k-gantt__now span { display: none; }
|
|
3118
|
+
@keyframes k-gantt-grow { from { scale: 0.2 1; opacity: 0; } }
|
|
3119
|
+
@keyframes k-gantt-pop { from { scale: 0; } }
|
|
3120
|
+
@media (prefers-reduced-motion: reduce) { .k-gantt__bar, .k-gantt__fill { animation: none; transition: none; } }
|
|
3121
|
+
@media (forced-colors: active) { .k-gantt__bar { border: 1px solid CanvasText; } .k-gantt__fill, .k-gantt__now, .k-gantt__bar[data-milestone] { background: Highlight; forced-color-adjust: none; } }
|
|
3122
|
+
|
|
2955
3123
|
/* نقشهٔ فعالیت سالانه با ماههای شمسی — طیف تکرنگ برند از کمرنگ به پررنگ */
|
|
2956
3124
|
.k-heatmap { --_cell: var(--k-heatmap-cell, var(--k-heatmap-cell-default)); position: relative; display: grid; gap: var(--k-space-2); font-size: var(--k-text-xs); }
|
|
2957
3125
|
.k-heatmap__scroll { overflow-x: auto; padding-block-end: var(--k-space-1); border-radius: var(--k-radius-sm); scrollbar-width: thin; }
|
|
@@ -3086,6 +3254,32 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3086
3254
|
.k-hours__days { border-color: CanvasText; }
|
|
3087
3255
|
}
|
|
3088
3256
|
|
|
3257
|
+
/* بارگذاری پیوسته و فهرست مجازی
|
|
3258
|
+
* <div class="k-infinite"><div class="k-infinite__items">…</div><div class="k-infinite__loader">…</div><p class="k-infinite__end">…</p></div>
|
|
3259
|
+
* <div class="k-vlist" role="list"><div class="k-vlist__space"><div class="k-vlist__item" role="listitem">…</div></div></div>
|
|
3260
|
+
* متغیر: --k-vlist-height ارتفاع فهرست مجازی */
|
|
3261
|
+
.k-infinite { display: grid; gap: var(--k-space-3); min-inline-size: 0; }
|
|
3262
|
+
.k-infinite--scroll { overflow-y: auto; overscroll-behavior: contain; }
|
|
3263
|
+
.k-infinite--scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3264
|
+
.k-infinite__items { display: grid; gap: inherit; }
|
|
3265
|
+
.k-infinite__items > * { animation: k-infinite-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
3266
|
+
.k-infinite__loader { display: grid; gap: var(--k-space-3); }
|
|
3267
|
+
.k-infinite__sk { display: block; block-size: 3.5rem; border-radius: var(--k-radius-lg); }
|
|
3268
|
+
.k-infinite__sk:nth-child(2) { opacity: 0.7; }
|
|
3269
|
+
.k-infinite__sk:nth-child(3) { opacity: 0.4; }
|
|
3270
|
+
.k-infinite__error { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--k-space-3); padding: var(--k-space-4); border-radius: var(--k-radius-lg); background: var(--k-bg-error-subtle); color: var(--k-text-error); font-size: var(--k-text-sm); }
|
|
3271
|
+
.k-infinite__more { display: flex; justify-content: center; }
|
|
3272
|
+
.k-infinite__end { display: flex; align-items: center; gap: var(--k-space-3); margin: 0; padding-block: var(--k-space-2); color: var(--k-text-tertiary); font-size: var(--k-text-sm); text-align: center; }
|
|
3273
|
+
.k-infinite__end::before, .k-infinite__end::after { content: ""; flex: 1; border-block-start: 1px solid var(--k-border-secondary); }
|
|
3274
|
+
.k-infinite__sentinel { block-size: 1px; margin-block-start: -1px; }
|
|
3275
|
+
.k-vlist { position: relative; block-size: var(--k-vlist-height, var(--k-vlist-height-default)); overflow-y: auto; overscroll-behavior: contain; contain: strict; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-elevated); }
|
|
3276
|
+
.k-vlist:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3277
|
+
.k-vlist__space { position: relative; inline-size: 100%; }
|
|
3278
|
+
.k-vlist__item { position: absolute; inset-block-start: 0; inset-inline: 0; }
|
|
3279
|
+
@keyframes k-infinite-in { from { opacity: 0; translate: 0 6px; } }
|
|
3280
|
+
@media (prefers-reduced-motion: reduce) { .k-infinite__items > * { animation: none; } }
|
|
3281
|
+
@media (forced-colors: active) { .k-vlist { border-color: CanvasText; } }
|
|
3282
|
+
|
|
3089
3283
|
/* ویرایش درجا: متن معمولی که با کلیک یا Enter به فیلد تبدیل میشود */
|
|
3090
3284
|
.k-inline-edit { display: inline-flex; align-items: center; gap: var(--k-space-1); max-inline-size: 100%; }
|
|
3091
3285
|
.k-inline-edit__view {
|
|
@@ -3286,6 +3480,76 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3286
3480
|
/* ارتفاع خودکار textarea */
|
|
3287
3481
|
.k-input--autoresize .k-input__control { resize: none; overflow-y: auto; min-block-size: 3lh; field-sizing: content; }
|
|
3288
3482
|
|
|
3483
|
+
/* صورتحساب رسمی و پیشفاکتور؛ آمادهٔ چاپ و PDF
|
|
3484
|
+
* <article class="k-invoice" data-variant="official|proforma"><header class="k-invoice__head">…</header><div class="k-invoice__parties">…</div><table class="k-invoice__table">…</table>…</article> */
|
|
3485
|
+
.k-invoice {
|
|
3486
|
+
position: relative;
|
|
3487
|
+
display: grid;
|
|
3488
|
+
gap: var(--k-space-5);
|
|
3489
|
+
padding: var(--k-space-8);
|
|
3490
|
+
border: 1px solid var(--k-border-secondary);
|
|
3491
|
+
border-radius: var(--k-radius-surface);
|
|
3492
|
+
background: var(--k-bg-elevated);
|
|
3493
|
+
box-shadow: var(--k-shadow-xs), var(--k-highlight);
|
|
3494
|
+
color: var(--k-text-primary);
|
|
3495
|
+
font-size: var(--k-text-sm);
|
|
3496
|
+
}
|
|
3497
|
+
.k-invoice__head { display: flex; flex-wrap: wrap; align-items: start; gap: var(--k-space-4) var(--k-space-6); padding-block-end: var(--k-space-5); border-block-end: 2px solid var(--k-text-primary); }
|
|
3498
|
+
.k-invoice__logo { flex-shrink: 0; }
|
|
3499
|
+
.k-invoice__title { flex: 1; min-inline-size: 12rem; margin: 0; font-size: var(--k-type-title-size); font-weight: var(--k-weight-bold); line-height: var(--k-type-title-leading); }
|
|
3500
|
+
.k-invoice[data-variant="proforma"] .k-invoice__title::after { content: ""; display: inline-block; inline-size: 0.5rem; block-size: 0.5rem; margin-inline-start: var(--k-space-2); border-radius: 50%; background: var(--k-zafaran-500); vertical-align: middle; }
|
|
3501
|
+
.k-invoice__meta { display: grid; grid-template-columns: auto auto; gap: var(--k-space-1) var(--k-space-4); margin: 0; }
|
|
3502
|
+
.k-invoice__meta div, .k-invoice__totals div { display: contents; }
|
|
3503
|
+
.k-invoice__meta dt { color: var(--k-text-tertiary); }
|
|
3504
|
+
.k-invoice__meta dd { margin: 0; font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
|
|
3505
|
+
.k-invoice__mono { font-family: var(--k-font-mono); font-size: var(--k-text-xs); letter-spacing: 0.02em; }
|
|
3506
|
+
.k-invoice__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--k-space-4); }
|
|
3507
|
+
.k-invoice__party { padding: var(--k-space-4); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-secondary); }
|
|
3508
|
+
.k-invoice__party-title { margin: 0 0 var(--k-space-3); color: var(--k-text-secondary); font-size: var(--k-type-label-size); font-weight: var(--k-weight-semibold); line-height: var(--k-type-label-leading); }
|
|
3509
|
+
.k-invoice__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-2) var(--k-space-4); margin: 0; }
|
|
3510
|
+
.k-invoice__dl div { display: grid; gap: 2px; min-inline-size: 0; }
|
|
3511
|
+
.k-invoice__dl dt { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3512
|
+
.k-invoice__dl dd { margin: 0; overflow-wrap: anywhere; font-weight: var(--k-weight-medium); }
|
|
3513
|
+
.k-invoice__dl .k-invoice__num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
|
|
3514
|
+
.k-invoice__wide { grid-column: 1 / -1; }
|
|
3515
|
+
.k-invoice__table-wrap { overflow-x: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); }
|
|
3516
|
+
.k-invoice__table-wrap:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3517
|
+
.k-invoice__table { inline-size: 100%; border-collapse: collapse; }
|
|
3518
|
+
.k-invoice__table th, .k-invoice__table td { padding: var(--k-space-2_5) var(--k-space-3); border-block-end: 1px solid var(--k-border-secondary); text-align: start; vertical-align: top; }
|
|
3519
|
+
.k-invoice__table thead th { background: var(--k-bg-muted); color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; }
|
|
3520
|
+
.k-invoice__table tbody tr:last-child td { border-block-end: 0; }
|
|
3521
|
+
.k-invoice__table tbody tr { transition: background-color var(--k-duration-fast); }
|
|
3522
|
+
.k-invoice__table tbody tr:hover { background: var(--k-bg-hover); }
|
|
3523
|
+
.k-invoice__table .k-invoice__n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
3524
|
+
.k-invoice__table .k-invoice__num-col { inline-size: 3rem; color: var(--k-text-tertiary); text-align: center; }
|
|
3525
|
+
.k-invoice__code { display: block; margin-block-start: 2px; color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: start; }
|
|
3526
|
+
.k-invoice__unit { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3527
|
+
.k-invoice__summary { display: grid; justify-items: end; gap: var(--k-space-3); }
|
|
3528
|
+
.k-invoice__totals { display: grid; grid-template-columns: auto minmax(9rem, auto); gap: var(--k-space-2) var(--k-space-6); margin: 0; }
|
|
3529
|
+
.k-invoice__totals dt { color: var(--k-text-tertiary); }
|
|
3530
|
+
.k-invoice__totals dd { margin: 0; text-align: end; font-weight: var(--k-weight-medium); font-variant-numeric: tabular-nums; }
|
|
3531
|
+
.k-invoice__payable dt, .k-invoice__payable dd { padding-block-start: var(--k-space-3); border-block-start: 1px solid var(--k-border-primary); color: var(--k-text-primary); font-size: var(--k-text-md); font-weight: var(--k-weight-bold); }
|
|
3532
|
+
.k-invoice__cur { color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-regular); }
|
|
3533
|
+
.k-invoice__words { max-inline-size: 36rem; margin: 0; padding: var(--k-space-2) var(--k-space-3); border-radius: var(--k-radius-md); background: var(--k-bg-brand-subtle); color: var(--k-text-brand); font-weight: var(--k-weight-medium); text-align: end; }
|
|
3534
|
+
.k-invoice__notes { color: var(--k-text-secondary); }
|
|
3535
|
+
.k-invoice__signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--k-space-6); padding-block-start: var(--k-space-6); }
|
|
3536
|
+
.k-invoice__sign { display: grid; align-items: end; min-block-size: 5.5rem; padding-block-start: var(--k-space-2); border-block-start: 1px dashed var(--k-border-primary); color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: center; align-content: start; }
|
|
3537
|
+
.k-invoice__print { justify-self: end; gap: var(--k-space-1_5); }
|
|
3538
|
+
@media (max-width: 40rem) {
|
|
3539
|
+
.k-invoice { padding: var(--k-space-5); }
|
|
3540
|
+
.k-invoice__print { justify-self: stretch; }
|
|
3541
|
+
.k-invoice__dl { grid-template-columns: 1fr; }
|
|
3542
|
+
}
|
|
3543
|
+
@media print {
|
|
3544
|
+
.k-invoice { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
|
|
3545
|
+
.k-invoice__print { display: none; }
|
|
3546
|
+
.k-invoice__party, .k-invoice__table thead th { background: none; }
|
|
3547
|
+
.k-invoice__words { background: none; color: #000; border: 1px solid #999; }
|
|
3548
|
+
.k-invoice__table tr, .k-invoice__signs, .k-invoice__summary { break-inside: avoid; }
|
|
3549
|
+
.k-invoice__table tbody tr:hover { background: none; }
|
|
3550
|
+
}
|
|
3551
|
+
@media (forced-colors: active) { .k-invoice, .k-invoice__party, .k-invoice__table-wrap { border-color: CanvasText; } }
|
|
3552
|
+
|
|
3289
3553
|
/* نقشهٔ استانهای ایران — نقشهٔ رنگی با طیف برند و انتخاب استان */
|
|
3290
3554
|
.k-iran-map { position: relative; display: grid; gap: var(--k-space-3); margin: 0; inline-size: 100%; font-size: var(--k-text-xs); }
|
|
3291
3555
|
.k-iran-map__canvas { position: relative; block-size: 0; }
|
|
@@ -5019,6 +5283,58 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
5019
5283
|
.k-sidenav__item[aria-current="page"] svg { color: HighlightText; }
|
|
5020
5284
|
}
|
|
5021
5285
|
|
|
5286
|
+
/* کادر امضا
|
|
5287
|
+
* <div class="k-field k-signature"><div class="k-signature__pad"><canvas class="k-signature__canvas"></canvas><span class="k-signature__line">×</span><div class="k-signature__tools">…</div></div></div>
|
|
5288
|
+
* متغیرها: --k-signature-height ارتفاع کادر --k-signature-ink رنگ جوهر روی صفحه */
|
|
5289
|
+
.k-signature__modes { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border-radius: var(--k-radius-md); background: var(--k-bg-muted); }
|
|
5290
|
+
.k-signature__mode { padding: var(--k-space-1) var(--k-space-3); border: 0; border-radius: calc(var(--k-radius-md) - 2px); background: none; color: var(--k-text-tertiary); font: inherit; font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); cursor: pointer; transition: background-color var(--k-duration-fast), color var(--k-duration-fast); }
|
|
5291
|
+
.k-signature__mode:hover { color: var(--k-text-primary); }
|
|
5292
|
+
.k-signature__mode[aria-checked="true"] { background: var(--k-bg-elevated); color: var(--k-text-primary); box-shadow: var(--k-shadow-xs); }
|
|
5293
|
+
.k-signature__mode:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5294
|
+
.k-signature__pad {
|
|
5295
|
+
position: relative;
|
|
5296
|
+
block-size: var(--k-signature-height, var(--k-signature-height-default));
|
|
5297
|
+
border: 1px dashed var(--k-border-primary);
|
|
5298
|
+
border-radius: var(--k-radius-lg);
|
|
5299
|
+
background: var(--k-bg-elevated);
|
|
5300
|
+
transition: border-color var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
5301
|
+
}
|
|
5302
|
+
.k-signature__pad:hover { border-color: var(--k-text-quaternary); }
|
|
5303
|
+
.k-signature__pad:has(:focus-visible) { border-style: solid; border-color: var(--k-border-brand); box-shadow: var(--k-ring-brand); }
|
|
5304
|
+
.k-signature[data-invalid] .k-signature__pad { border-color: var(--k-border-error); }
|
|
5305
|
+
.k-signature[data-disabled] .k-signature__pad { opacity: 0.6; }
|
|
5306
|
+
.k-signature__canvas { display: block; inline-size: 100%; block-size: 100%; color: var(--k-signature-ink, var(--k-text-primary)); touch-action: none; cursor: crosshair; border-radius: inherit; }
|
|
5307
|
+
.k-signature__canvas:focus-visible { outline: none; }
|
|
5308
|
+
/* خط امضا با «×» در گوشه */
|
|
5309
|
+
.k-signature__line { position: absolute; inset-inline: var(--k-space-6); inset-block-end: 28%; padding-block-end: 2px; border-block-end: 1px solid var(--k-border-secondary); color: var(--k-text-quaternary); font-size: var(--k-text-sm); line-height: 1; pointer-events: none; transition: opacity var(--k-duration-normal) var(--k-ease-standard); }
|
|
5310
|
+
.k-signature:not([data-empty]) .k-signature__line { opacity: 0.45; }
|
|
5311
|
+
.k-signature__typed { position: absolute; inset: 0; display: grid; place-items: center; padding-inline: var(--k-space-6); }
|
|
5312
|
+
.k-signature__typed-input {
|
|
5313
|
+
inline-size: 100%;
|
|
5314
|
+
padding: 0;
|
|
5315
|
+
border: 0;
|
|
5316
|
+
background: none;
|
|
5317
|
+
color: var(--k-text-primary);
|
|
5318
|
+
font-family: var(--k-font-display);
|
|
5319
|
+
font-size: 2.25rem;
|
|
5320
|
+
font-weight: var(--k-weight-bold);
|
|
5321
|
+
text-align: center;
|
|
5322
|
+
outline: none;
|
|
5323
|
+
}
|
|
5324
|
+
.k-signature__typed-input::placeholder { color: var(--k-text-quaternary); font-family: var(--k-font-sans); font-size: var(--k-text-md); font-weight: var(--k-weight-regular); }
|
|
5325
|
+
.k-signature__tools { position: absolute; inset-block-start: var(--k-space-2); inset-inline-end: var(--k-space-2); display: flex; gap: var(--k-space-1); opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
5326
|
+
.k-signature:not([data-empty]) .k-signature__tools, .k-signature__pad:hover .k-signature__tools, .k-signature__pad:focus-within .k-signature__tools { opacity: 1; }
|
|
5327
|
+
.k-signature__tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--k-space-1); min-inline-size: 2rem; block-size: 2rem; padding-inline: var(--k-space-2); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); font: inherit; font-size: var(--k-text-sm); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
5328
|
+
.k-signature__tool svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
5329
|
+
.k-signature__tool:dir(rtl) svg { scale: -1 1; }
|
|
5330
|
+
.k-signature__tool:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
5331
|
+
.k-signature__tool:active:not(:disabled) { scale: 0.92; }
|
|
5332
|
+
.k-signature__tool:disabled { opacity: 0.4; cursor: default; }
|
|
5333
|
+
.k-signature__tool:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5334
|
+
@media (prefers-reduced-motion: reduce) { .k-signature__tools, .k-signature__line, .k-signature__tool { transition: none; } }
|
|
5335
|
+
@media (forced-colors: active) { .k-signature__pad { border-color: CanvasText; } .k-signature__canvas { color: CanvasText; } .k-signature__tools { opacity: 1; } }
|
|
5336
|
+
@media print { .k-signature__tools, .k-signature__modes { display: none; } .k-signature__pad { border-style: solid; } }
|
|
5337
|
+
|
|
5022
5338
|
/* اسکلت بارگذاری — تزئینی است؛ روی ظرف والد aria-busy="true" بگذارید */
|
|
5023
5339
|
.k-skeleton {
|
|
5024
5340
|
display: block;
|
|
@@ -5665,6 +5981,27 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
5665
5981
|
.k-table__spacer, .k-table__spacer:hover { background: none !important; }
|
|
5666
5982
|
.k-table__spacer td { border: 0; }
|
|
5667
5983
|
|
|
5984
|
+
/* ستون ثابت، ویرایش داخل خانه و خروجی اکسل */
|
|
5985
|
+
.k-table caption:has(.k-table__export) { display: table-caption; }
|
|
5986
|
+
.k-table__export { float: inline-end; gap: var(--k-space-1_5); margin-block-start: calc(var(--k-space-1) * -1); margin-inline-start: var(--k-space-3); }
|
|
5987
|
+
.k-table--pinned { border-collapse: separate; border-spacing: 0; }
|
|
5988
|
+
.k-table .k-table__pin { position: sticky; z-index: 1; background: var(--k-bg-elevated); }
|
|
5989
|
+
.k-table thead .k-table__pin { z-index: calc(var(--k-z-raised) + 1); background: var(--k-table-header-bg, var(--k-bg-muted)); }
|
|
5990
|
+
.k-table tbody tr:hover .k-table__pin { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 4%); }
|
|
5991
|
+
.k-table tbody tr[aria-selected="true"] .k-table__pin { background: var(--k-bg-brand-subtle); }
|
|
5992
|
+
.k-table .k-table__pin--edge-start { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5993
|
+
.k-table .k-table__pin--edge-start:dir(rtl) { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5994
|
+
.k-table .k-table__pin--edge-end { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5995
|
+
.k-table .k-table__pin--edge-end:dir(rtl) { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5996
|
+
.k-table td.k-table__cell--editable { padding-block: var(--k-space-1); }
|
|
5997
|
+
.k-table__editable { margin-inline: calc(var(--k-space-2) * -1); padding: var(--k-space-2); border-radius: var(--k-radius-md); cursor: text; transition: background-color var(--k-duration-fast), box-shadow var(--k-duration-fast); }
|
|
5998
|
+
.k-table__editable:hover { background: var(--k-bg-hover); box-shadow: inset 0 0 0 1px var(--k-border-secondary); }
|
|
5999
|
+
.k-table__editable:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
6000
|
+
.k-table__editor { block-size: 2.25rem; margin-inline: calc(var(--k-space-2) * -1); inline-size: calc(100% + var(--k-space-2) * 2); min-inline-size: 6rem; animation: k-table-edit var(--k-duration-fast) var(--k-ease-emphasized); }
|
|
6001
|
+
@keyframes k-table-edit { from { opacity: 0.4; scale: 0.98; } }
|
|
6002
|
+
@media (prefers-reduced-motion: reduce) { .k-table__editor { animation: none; } }
|
|
6003
|
+
@media print { .k-table__export { display: none; } }
|
|
6004
|
+
|
|
5668
6005
|
/* زبانهها (Tabs) — ساختار ARIA را کامپوننت React میسازد
|
|
5669
6006
|
* گونهها: k-tabs--line (پیشفرض) | k-tabs--pill | k-tabs--segmented — تمامعرض: k-tabs--block
|
|
5670
6007
|
* عمودی: k-tabs--vertical — فشرده: k-tabs--sm
|
package/dist/kashi.nofont.css
CHANGED
|
@@ -265,9 +265,13 @@
|
|
|
265
265
|
--k-checkbox-size-lg: 1.25rem;
|
|
266
266
|
--k-checkbox-radius-default: calc(0.3125rem * var(--k-radius-factor));
|
|
267
267
|
--k-clock-size-default: 16rem;
|
|
268
|
+
--k-cropper-height-default: 20rem;
|
|
268
269
|
--k-dialog-width-md: 30rem;
|
|
269
270
|
--k-dialog-width-lg: 40rem;
|
|
270
271
|
--k-drawer-width-default: 26rem;
|
|
272
|
+
--k-gantt-day-default: 2.5rem;
|
|
273
|
+
--k-gantt-row-default: 2.75rem;
|
|
274
|
+
--k-gantt-label-width-default: 11rem;
|
|
271
275
|
--k-heatmap-cell-default: 0.75rem;
|
|
272
276
|
--k-listbox-max-height-default: 18rem;
|
|
273
277
|
--k-menu-min-width-default: 12rem;
|
|
@@ -293,6 +297,7 @@
|
|
|
293
297
|
--k-rte-max-height-default: 28rem;
|
|
294
298
|
--k-sched-height-default: 36rem;
|
|
295
299
|
--k-sheet-height-default: 50dvh;
|
|
300
|
+
--k-signature-height-default: 11rem;
|
|
296
301
|
--k-sidenav-width-default: 17rem;
|
|
297
302
|
--k-sidenav-item-height-default: 2.5rem;
|
|
298
303
|
--k-step-size-default: 2rem;
|
|
@@ -311,6 +316,7 @@
|
|
|
311
316
|
--k-tooltip-max-width-default: 16rem;
|
|
312
317
|
--k-tree-indent-default: 1.25rem;
|
|
313
318
|
--k-tree-row-height-default: 2.25rem;
|
|
319
|
+
--k-vlist-height-default: 24rem;
|
|
314
320
|
}
|
|
315
321
|
|
|
316
322
|
:root, [data-theme="dark"] {
|
|
@@ -1186,6 +1192,20 @@
|
|
|
1186
1192
|
.k-banner__actions { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
1187
1193
|
.k-banner__close { margin-inline-start: auto; }
|
|
1188
1194
|
|
|
1195
|
+
/* شناسهٔ قبض و پرداخت: نوع قبض و مبلغ کنار فیلد با نقطهٔ رنگی نوع خدمت */
|
|
1196
|
+
.k-bill__service { display: inline-flex; align-items: center; gap: var(--k-space-1_5); animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1197
|
+
.k-bill__service::before { content: ""; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bill-color, var(--k-text-tertiary)); }
|
|
1198
|
+
.k-bill__service[data-service="water"] { --k-bill-color: var(--k-lajvard-500); }
|
|
1199
|
+
.k-bill__service[data-service="electricity"] { --k-bill-color: var(--k-zafaran-500); }
|
|
1200
|
+
.k-bill__service[data-service="gas"] { --k-bill-color: var(--k-anar-500); }
|
|
1201
|
+
.k-bill__service[data-service="landline"], .k-bill__service[data-service="mobile"] { --k-bill-color: var(--k-firoozeh-500); }
|
|
1202
|
+
.k-bill__service[data-service="municipality"], .k-bill__service[data-service="tax"] { --k-bill-color: var(--k-pesteh-500); }
|
|
1203
|
+
.k-bill__service[data-service="fine"] { --k-bill-color: var(--k-anar-600); }
|
|
1204
|
+
.k-bill__amount { color: var(--k-text-primary); font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; animation: k-bill-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
1205
|
+
@keyframes k-bill-in { from { opacity: 0; translate: 0 3px; } }
|
|
1206
|
+
@media (prefers-reduced-motion: reduce) { .k-bill__service, .k-bill__amount { animation: none; } }
|
|
1207
|
+
@media (forced-colors: active) { .k-bill__service::before { background: CanvasText; } }
|
|
1208
|
+
|
|
1189
1209
|
/* مسیر صفحه (Breadcrumb)
|
|
1190
1210
|
* <nav class="k-breadcrumb" aria-label="مسیر"><ol>
|
|
1191
1211
|
* <li><a class="k-breadcrumb__link" href="/">خانه</a></li>
|
|
@@ -2584,6 +2604,53 @@ a.k-barlist__label:focus-visible { outline: 2px solid transparent; border-radius
|
|
|
2584
2604
|
.k-countdown__sep { align-self: center; color: var(--k-text-quaternary); }
|
|
2585
2605
|
.k-countdown[data-done] { color: var(--k-text-tertiary); }
|
|
2586
2606
|
|
|
2607
|
+
/* برش تصویر
|
|
2608
|
+
* <div class="k-cropper"><div class="k-cropper__stage"><img class="k-cropper__img"><div class="k-cropper__frame"></div></div><div class="k-cropper__controls">…</div></div>
|
|
2609
|
+
* متغیر: --k-cropper-height ارتفاع صحنه */
|
|
2610
|
+
.k-cropper { display: grid; gap: var(--k-space-3); }
|
|
2611
|
+
.k-cropper__stage {
|
|
2612
|
+
position: relative;
|
|
2613
|
+
block-size: var(--k-cropper-height, var(--k-cropper-height-default));
|
|
2614
|
+
overflow: hidden;
|
|
2615
|
+
border-radius: var(--k-radius-lg);
|
|
2616
|
+
background: repeating-conic-gradient(var(--k-bg-muted) 0 25%, var(--k-bg-secondary) 0 50%) 0 0 / 1rem 1rem;
|
|
2617
|
+
touch-action: none;
|
|
2618
|
+
user-select: none;
|
|
2619
|
+
cursor: grab;
|
|
2620
|
+
}
|
|
2621
|
+
.k-cropper__stage:active { cursor: grabbing; }
|
|
2622
|
+
.k-cropper__stage:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
2623
|
+
.k-cropper__img { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-inline-size: none; pointer-events: none; transform-origin: 50% 50%; transition: opacity var(--k-duration-normal); }
|
|
2624
|
+
/* کادر وسط با تاریکی بیرونش (سایهٔ بزرگ) */
|
|
2625
|
+
.k-cropper__frame {
|
|
2626
|
+
position: absolute;
|
|
2627
|
+
inset-block-start: 50%;
|
|
2628
|
+
inset-inline-start: 50%;
|
|
2629
|
+
translate: -50% -50%;
|
|
2630
|
+
border: 2px solid rgb(255 255 255 / 0.95);
|
|
2631
|
+
border-radius: var(--k-radius-sm);
|
|
2632
|
+
box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.55);
|
|
2633
|
+
pointer-events: none;
|
|
2634
|
+
transition: border-radius var(--k-duration-normal) var(--k-ease-emphasized);
|
|
2635
|
+
}
|
|
2636
|
+
.k-cropper[data-shape="circle"] .k-cropper__frame { border-radius: 50%; }
|
|
2637
|
+
/* خطوط یکسوم، فقط هنگام کشیدن */
|
|
2638
|
+
.k-cropper__grid { position: absolute; inset: 0; border-radius: inherit; opacity: 0; background:
|
|
2639
|
+
linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0),
|
|
2640
|
+
linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.5) 0 calc(66.66% + 0.5px), transparent 0);
|
|
2641
|
+
transition: opacity var(--k-duration-normal); }
|
|
2642
|
+
.k-cropper__stage:active .k-cropper__grid, .k-cropper__stage:focus-visible .k-cropper__grid { opacity: 1; }
|
|
2643
|
+
.k-cropper__controls { display: flex; align-items: center; gap: var(--k-space-2); }
|
|
2644
|
+
.k-cropper__zoom { flex: 1; min-inline-size: 0; }
|
|
2645
|
+
.k-cropper__btn { display: grid; place-items: center; flex-shrink: 0; inline-size: 2.25rem; block-size: 2.25rem; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
2646
|
+
.k-cropper__btn svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
2647
|
+
.k-cropper__btn:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
2648
|
+
.k-cropper__btn:active:not(:disabled) { scale: 0.92; }
|
|
2649
|
+
.k-cropper__btn:disabled { opacity: 0.4; cursor: default; }
|
|
2650
|
+
.k-cropper__btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
2651
|
+
@media (prefers-reduced-motion: reduce) { .k-cropper__frame, .k-cropper__grid, .k-cropper__btn, .k-cropper__img { transition: none; } }
|
|
2652
|
+
@media (forced-colors: active) { .k-cropper__frame { border-color: Highlight; } }
|
|
2653
|
+
|
|
2587
2654
|
/* پنجرهٔ گفتگو — روی <dialog> بومی: تلهٔ فوکوس، Esc و غیرفعال شدن پسزمینه رایگان
|
|
2588
2655
|
* اندازهها: k-dialog--sm | k-dialog--md (پیشفرض) | k-dialog--lg
|
|
2589
2656
|
*
|
|
@@ -2932,6 +2999,107 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
2932
2999
|
.k-file__remove { grid-row: span 2; }
|
|
2933
3000
|
.k-file .k-progress { grid-column: 2 / -1; }
|
|
2934
3001
|
|
|
3002
|
+
/* نمودار گانت با تقویم شمسی
|
|
3003
|
+
* <div class="k-gantt"><div class="k-gantt__scroll"><div class="k-gantt__grid">…<div class="k-gantt__row"><div class="k-gantt__name">…</div><div class="k-gantt__track"><button class="k-gantt__bar">…</button></div></div></div></div></div>
|
|
3004
|
+
* متغیرها: --k-gantt-day پهنای هر روز --k-gantt-row ارتفاع ردیف --k-gantt-label-width ستون نام کارها --k-gantt-color رنگ نوار --k-gantt-height ارتفاع بیشینه */
|
|
3005
|
+
.k-gantt {
|
|
3006
|
+
--_day: var(--k-gantt-day, var(--k-gantt-day-default));
|
|
3007
|
+
--_row: var(--k-gantt-row, var(--k-gantt-row-default));
|
|
3008
|
+
--_label: var(--k-gantt-label-width, var(--k-gantt-label-width-default));
|
|
3009
|
+
min-inline-size: 0;
|
|
3010
|
+
}
|
|
3011
|
+
.k-gantt__scroll { max-block-size: var(--k-gantt-height, none); overflow: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-surface); background: var(--k-bg-elevated); box-shadow: var(--k-shadow-xs), var(--k-highlight); overscroll-behavior-inline: contain; }
|
|
3012
|
+
.k-gantt__scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3013
|
+
.k-gantt__grid { position: relative; display: grid; grid-template-columns: var(--_label) calc(var(--_day) * var(--k-gantt-days)); inline-size: max-content; min-inline-size: 100%; }
|
|
3014
|
+
.k-gantt__head, .k-gantt__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
|
|
3015
|
+
.k-gantt__head { position: sticky; inset-block-start: 0; z-index: calc(var(--k-z-sticky) + 1); background: var(--k-bg-elevated); box-shadow: 0 1px 0 var(--k-border-secondary); }
|
|
3016
|
+
.k-gantt__corner, .k-gantt__name { position: sticky; inset-inline-start: 0; z-index: var(--k-z-sticky); background: var(--k-bg-elevated); border-inline-end: 1px solid var(--k-border-secondary); }
|
|
3017
|
+
.k-gantt__corner { display: flex; align-items: end; padding: var(--k-space-2) var(--k-space-4); color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); }
|
|
3018
|
+
.k-gantt__months, .k-gantt__days { display: grid; grid-template-columns: repeat(var(--k-gantt-days), var(--_day)); }
|
|
3019
|
+
.k-gantt__month { overflow: hidden; padding: var(--k-space-2) var(--k-space-2) var(--k-space-1); border-inline-start: 1px solid var(--k-border-secondary); color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; }
|
|
3020
|
+
.k-gantt__day { display: grid; place-items: center; block-size: 1.75rem; color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-variant-numeric: tabular-nums; }
|
|
3021
|
+
.k-gantt__day[data-first] { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
3022
|
+
.k-gantt__day[data-off] { color: var(--k-text-error); }
|
|
3023
|
+
.k-gantt__day[data-today] { margin: 2px; border-radius: var(--k-radius-full); background: var(--k-bg-brand); color: var(--k-text-on-brand); font-weight: var(--k-weight-semibold); }
|
|
3024
|
+
.k-gantt__row { transition: background-color var(--k-duration-fast); }
|
|
3025
|
+
.k-gantt__row:hover, .k-gantt__row:hover .k-gantt__name { background: var(--k-bg-hover); }
|
|
3026
|
+
.k-gantt__row:hover .k-gantt__name { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 3%); }
|
|
3027
|
+
.k-gantt__name { display: flex; align-items: center; gap: var(--k-space-2); min-inline-size: 0; block-size: var(--_row); padding-inline: var(--k-space-4); border-block-start: 1px solid var(--k-border-secondary); }
|
|
3028
|
+
.k-gantt__dot { flex-shrink: 0; inline-size: 0.5rem; block-size: 0.5rem; border-radius: 50%; background: var(--k-bg-brand); }
|
|
3029
|
+
.k-gantt__label { flex: 1; min-inline-size: 0; overflow: hidden; color: var(--k-text-primary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); white-space: nowrap; text-overflow: ellipsis; }
|
|
3030
|
+
.k-gantt__len { flex-shrink: 0; color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3031
|
+
.k-gantt__track {
|
|
3032
|
+
position: relative;
|
|
3033
|
+
display: grid;
|
|
3034
|
+
grid-template-columns: repeat(var(--k-gantt-days), var(--_day));
|
|
3035
|
+
block-size: var(--_row);
|
|
3036
|
+
border-block-start: 1px solid var(--k-border-secondary);
|
|
3037
|
+
background-image: linear-gradient(to right, color-mix(in srgb, var(--k-border-secondary) 60%, transparent) 1px, transparent 1px);
|
|
3038
|
+
background-size: var(--_day) 100%;
|
|
3039
|
+
}
|
|
3040
|
+
.k-gantt__off { grid-row: 1; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--k-text-error) 6%, transparent) 6px 7px); }
|
|
3041
|
+
.k-gantt__bar {
|
|
3042
|
+
--_c: var(--k-gantt-color, var(--k-brand-500));
|
|
3043
|
+
position: absolute;
|
|
3044
|
+
inset-block: 0.5rem;
|
|
3045
|
+
inset-inline-start: calc(var(--start) * var(--_day) + 2px);
|
|
3046
|
+
z-index: var(--k-z-raised);
|
|
3047
|
+
display: flex;
|
|
3048
|
+
align-items: center;
|
|
3049
|
+
inline-size: calc(var(--len) * var(--_day) - 4px);
|
|
3050
|
+
min-inline-size: 0.75rem;
|
|
3051
|
+
overflow: hidden;
|
|
3052
|
+
padding: 0;
|
|
3053
|
+
border: 0;
|
|
3054
|
+
border-radius: var(--k-radius-sm);
|
|
3055
|
+
background: color-mix(in srgb, var(--_c) 22%, var(--k-bg-elevated));
|
|
3056
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--_c) 45%, transparent);
|
|
3057
|
+
color: var(--k-text-primary);
|
|
3058
|
+
font: inherit;
|
|
3059
|
+
text-align: start;
|
|
3060
|
+
cursor: pointer;
|
|
3061
|
+
transition: inset-inline-start var(--k-duration-normal) var(--k-ease-emphasized), inline-size var(--k-duration-normal) var(--k-ease-emphasized), translate var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
3062
|
+
animation: k-gantt-grow var(--k-duration-slow) var(--k-ease-emphasized) both;
|
|
3063
|
+
transform-origin: 100% 50%;
|
|
3064
|
+
}
|
|
3065
|
+
.k-gantt__bar:dir(ltr) { transform-origin: 0 50%; }
|
|
3066
|
+
.k-gantt__bar:hover { translate: 0 -1px; box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-sm); }
|
|
3067
|
+
.k-gantt__bar:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--_c), var(--k-ring-brand); }
|
|
3068
|
+
.k-gantt__bar[data-dragging] { z-index: calc(var(--k-z-raised) + 1); box-shadow: inset 0 0 0 1px var(--_c), var(--k-shadow-lg); cursor: grabbing; transition: none; }
|
|
3069
|
+
.k-gantt__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--progress); background: color-mix(in srgb, var(--_c) 50%, var(--k-bg-elevated)); transition: inline-size var(--k-duration-slow) var(--k-ease-emphasized); }
|
|
3070
|
+
.k-gantt__bar[data-done] .k-gantt__fill { inline-size: 100%; }
|
|
3071
|
+
.k-gantt__text { position: relative; overflow: hidden; padding-inline: var(--k-space-2); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; text-overflow: ellipsis; mix-blend-mode: normal; }
|
|
3072
|
+
.k-gantt__grip { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 8px; cursor: ew-resize; }
|
|
3073
|
+
.k-gantt__grip::after { content: ""; position: absolute; inset-block: 30%; inset-inline-end: 3px; inline-size: 2px; border-radius: 1px; background: currentColor; opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
3074
|
+
.k-gantt__bar:hover .k-gantt__grip::after { opacity: 0.45; }
|
|
3075
|
+
.k-gantt__bar[data-milestone] { inset-block: auto; inset-block-start: 50%; inline-size: calc(var(--_day) * 0.55); min-inline-size: 0; aspect-ratio: 1; translate: calc(var(--_day) * 0.2) -50%; rotate: 45deg; border-radius: 3px; background: var(--_c); animation: k-gantt-pop var(--k-duration-slow) var(--k-ease-spring) both; }
|
|
3076
|
+
.k-gantt__bar[data-milestone]:hover { translate: calc(var(--_day) * 0.2) calc(-50% - 1px); }
|
|
3077
|
+
.k-gantt__bar[data-milestone]:dir(rtl) { translate: calc(var(--_day) * -0.2) -50%; }
|
|
3078
|
+
/* وابستگی: از پایان کار قبلی تا شروع این کار */
|
|
3079
|
+
.k-gantt__dep {
|
|
3080
|
+
position: absolute;
|
|
3081
|
+
inset-inline-start: calc(var(--from) * var(--_day) - 2px);
|
|
3082
|
+
inline-size: max(0.5rem, calc((var(--to) - var(--from)) * var(--_day) - 0.25rem));
|
|
3083
|
+
inset-block-end: 50%;
|
|
3084
|
+
block-size: calc(var(--rows) * var(--_row));
|
|
3085
|
+
border-block-start: 1.5px solid var(--k-text-quaternary);
|
|
3086
|
+
border-inline-end: 1.5px solid var(--k-text-quaternary);
|
|
3087
|
+
border-start-end-radius: 6px;
|
|
3088
|
+
pointer-events: none;
|
|
3089
|
+
}
|
|
3090
|
+
.k-gantt__dep::after { content: ""; position: absolute; inset-block-end: -3px; inset-inline-end: -4.5px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--k-text-quaternary); }
|
|
3091
|
+
.k-gantt__dep[data-below] { inset-block-end: auto; inset-block-start: 50%; border-block-start: 0; border-block-end: 1.5px solid var(--k-text-quaternary); border-start-end-radius: 0; border-end-end-radius: 6px; }
|
|
3092
|
+
.k-gantt__dep[data-below]::after { inset-block-end: auto; inset-block-start: -3px; }
|
|
3093
|
+
.k-gantt__dep[data-backward] { display: none; }
|
|
3094
|
+
/* خط امروز */
|
|
3095
|
+
.k-gantt__now { position: absolute; inset-block: 0; inset-inline-start: calc(var(--_label) + (var(--today) + 0.5) * var(--_day) - 1px); z-index: var(--k-z-raised); inline-size: 2px; background: var(--k-bg-brand); pointer-events: none; }
|
|
3096
|
+
/* متن «امروز» فقط برای خواندن کد است؛ روز امروز در سرستون با دایرهٔ برند مشخص است */
|
|
3097
|
+
.k-gantt__now span { display: none; }
|
|
3098
|
+
@keyframes k-gantt-grow { from { scale: 0.2 1; opacity: 0; } }
|
|
3099
|
+
@keyframes k-gantt-pop { from { scale: 0; } }
|
|
3100
|
+
@media (prefers-reduced-motion: reduce) { .k-gantt__bar, .k-gantt__fill { animation: none; transition: none; } }
|
|
3101
|
+
@media (forced-colors: active) { .k-gantt__bar { border: 1px solid CanvasText; } .k-gantt__fill, .k-gantt__now, .k-gantt__bar[data-milestone] { background: Highlight; forced-color-adjust: none; } }
|
|
3102
|
+
|
|
2935
3103
|
/* نقشهٔ فعالیت سالانه با ماههای شمسی — طیف تکرنگ برند از کمرنگ به پررنگ */
|
|
2936
3104
|
.k-heatmap { --_cell: var(--k-heatmap-cell, var(--k-heatmap-cell-default)); position: relative; display: grid; gap: var(--k-space-2); font-size: var(--k-text-xs); }
|
|
2937
3105
|
.k-heatmap__scroll { overflow-x: auto; padding-block-end: var(--k-space-1); border-radius: var(--k-radius-sm); scrollbar-width: thin; }
|
|
@@ -3066,6 +3234,32 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3066
3234
|
.k-hours__days { border-color: CanvasText; }
|
|
3067
3235
|
}
|
|
3068
3236
|
|
|
3237
|
+
/* بارگذاری پیوسته و فهرست مجازی
|
|
3238
|
+
* <div class="k-infinite"><div class="k-infinite__items">…</div><div class="k-infinite__loader">…</div><p class="k-infinite__end">…</p></div>
|
|
3239
|
+
* <div class="k-vlist" role="list"><div class="k-vlist__space"><div class="k-vlist__item" role="listitem">…</div></div></div>
|
|
3240
|
+
* متغیر: --k-vlist-height ارتفاع فهرست مجازی */
|
|
3241
|
+
.k-infinite { display: grid; gap: var(--k-space-3); min-inline-size: 0; }
|
|
3242
|
+
.k-infinite--scroll { overflow-y: auto; overscroll-behavior: contain; }
|
|
3243
|
+
.k-infinite--scroll:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3244
|
+
.k-infinite__items { display: grid; gap: inherit; }
|
|
3245
|
+
.k-infinite__items > * { animation: k-infinite-in var(--k-duration-normal) var(--k-ease-emphasized) both; }
|
|
3246
|
+
.k-infinite__loader { display: grid; gap: var(--k-space-3); }
|
|
3247
|
+
.k-infinite__sk { display: block; block-size: 3.5rem; border-radius: var(--k-radius-lg); }
|
|
3248
|
+
.k-infinite__sk:nth-child(2) { opacity: 0.7; }
|
|
3249
|
+
.k-infinite__sk:nth-child(3) { opacity: 0.4; }
|
|
3250
|
+
.k-infinite__error { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--k-space-3); padding: var(--k-space-4); border-radius: var(--k-radius-lg); background: var(--k-bg-error-subtle); color: var(--k-text-error); font-size: var(--k-text-sm); }
|
|
3251
|
+
.k-infinite__more { display: flex; justify-content: center; }
|
|
3252
|
+
.k-infinite__end { display: flex; align-items: center; gap: var(--k-space-3); margin: 0; padding-block: var(--k-space-2); color: var(--k-text-tertiary); font-size: var(--k-text-sm); text-align: center; }
|
|
3253
|
+
.k-infinite__end::before, .k-infinite__end::after { content: ""; flex: 1; border-block-start: 1px solid var(--k-border-secondary); }
|
|
3254
|
+
.k-infinite__sentinel { block-size: 1px; margin-block-start: -1px; }
|
|
3255
|
+
.k-vlist { position: relative; block-size: var(--k-vlist-height, var(--k-vlist-height-default)); overflow-y: auto; overscroll-behavior: contain; contain: strict; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-elevated); }
|
|
3256
|
+
.k-vlist:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3257
|
+
.k-vlist__space { position: relative; inline-size: 100%; }
|
|
3258
|
+
.k-vlist__item { position: absolute; inset-block-start: 0; inset-inline: 0; }
|
|
3259
|
+
@keyframes k-infinite-in { from { opacity: 0; translate: 0 6px; } }
|
|
3260
|
+
@media (prefers-reduced-motion: reduce) { .k-infinite__items > * { animation: none; } }
|
|
3261
|
+
@media (forced-colors: active) { .k-vlist { border-color: CanvasText; } }
|
|
3262
|
+
|
|
3069
3263
|
/* ویرایش درجا: متن معمولی که با کلیک یا Enter به فیلد تبدیل میشود */
|
|
3070
3264
|
.k-inline-edit { display: inline-flex; align-items: center; gap: var(--k-space-1); max-inline-size: 100%; }
|
|
3071
3265
|
.k-inline-edit__view {
|
|
@@ -3266,6 +3460,76 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
3266
3460
|
/* ارتفاع خودکار textarea */
|
|
3267
3461
|
.k-input--autoresize .k-input__control { resize: none; overflow-y: auto; min-block-size: 3lh; field-sizing: content; }
|
|
3268
3462
|
|
|
3463
|
+
/* صورتحساب رسمی و پیشفاکتور؛ آمادهٔ چاپ و PDF
|
|
3464
|
+
* <article class="k-invoice" data-variant="official|proforma"><header class="k-invoice__head">…</header><div class="k-invoice__parties">…</div><table class="k-invoice__table">…</table>…</article> */
|
|
3465
|
+
.k-invoice {
|
|
3466
|
+
position: relative;
|
|
3467
|
+
display: grid;
|
|
3468
|
+
gap: var(--k-space-5);
|
|
3469
|
+
padding: var(--k-space-8);
|
|
3470
|
+
border: 1px solid var(--k-border-secondary);
|
|
3471
|
+
border-radius: var(--k-radius-surface);
|
|
3472
|
+
background: var(--k-bg-elevated);
|
|
3473
|
+
box-shadow: var(--k-shadow-xs), var(--k-highlight);
|
|
3474
|
+
color: var(--k-text-primary);
|
|
3475
|
+
font-size: var(--k-text-sm);
|
|
3476
|
+
}
|
|
3477
|
+
.k-invoice__head { display: flex; flex-wrap: wrap; align-items: start; gap: var(--k-space-4) var(--k-space-6); padding-block-end: var(--k-space-5); border-block-end: 2px solid var(--k-text-primary); }
|
|
3478
|
+
.k-invoice__logo { flex-shrink: 0; }
|
|
3479
|
+
.k-invoice__title { flex: 1; min-inline-size: 12rem; margin: 0; font-size: var(--k-type-title-size); font-weight: var(--k-weight-bold); line-height: var(--k-type-title-leading); }
|
|
3480
|
+
.k-invoice[data-variant="proforma"] .k-invoice__title::after { content: ""; display: inline-block; inline-size: 0.5rem; block-size: 0.5rem; margin-inline-start: var(--k-space-2); border-radius: 50%; background: var(--k-zafaran-500); vertical-align: middle; }
|
|
3481
|
+
.k-invoice__meta { display: grid; grid-template-columns: auto auto; gap: var(--k-space-1) var(--k-space-4); margin: 0; }
|
|
3482
|
+
.k-invoice__meta div, .k-invoice__totals div { display: contents; }
|
|
3483
|
+
.k-invoice__meta dt { color: var(--k-text-tertiary); }
|
|
3484
|
+
.k-invoice__meta dd { margin: 0; font-weight: var(--k-weight-semibold); font-variant-numeric: tabular-nums; }
|
|
3485
|
+
.k-invoice__mono { font-family: var(--k-font-mono); font-size: var(--k-text-xs); letter-spacing: 0.02em; }
|
|
3486
|
+
.k-invoice__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--k-space-4); }
|
|
3487
|
+
.k-invoice__party { padding: var(--k-space-4); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); background: var(--k-bg-secondary); }
|
|
3488
|
+
.k-invoice__party-title { margin: 0 0 var(--k-space-3); color: var(--k-text-secondary); font-size: var(--k-type-label-size); font-weight: var(--k-weight-semibold); line-height: var(--k-type-label-leading); }
|
|
3489
|
+
.k-invoice__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-space-2) var(--k-space-4); margin: 0; }
|
|
3490
|
+
.k-invoice__dl div { display: grid; gap: 2px; min-inline-size: 0; }
|
|
3491
|
+
.k-invoice__dl dt { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3492
|
+
.k-invoice__dl dd { margin: 0; overflow-wrap: anywhere; font-weight: var(--k-weight-medium); }
|
|
3493
|
+
.k-invoice__dl .k-invoice__num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
|
|
3494
|
+
.k-invoice__wide { grid-column: 1 / -1; }
|
|
3495
|
+
.k-invoice__table-wrap { overflow-x: auto; border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-lg); }
|
|
3496
|
+
.k-invoice__table-wrap:focus-visible { outline: 2px solid var(--k-border-brand); outline-offset: 2px; }
|
|
3497
|
+
.k-invoice__table { inline-size: 100%; border-collapse: collapse; }
|
|
3498
|
+
.k-invoice__table th, .k-invoice__table td { padding: var(--k-space-2_5) var(--k-space-3); border-block-end: 1px solid var(--k-border-secondary); text-align: start; vertical-align: top; }
|
|
3499
|
+
.k-invoice__table thead th { background: var(--k-bg-muted); color: var(--k-text-tertiary); font-size: var(--k-text-xs); font-weight: var(--k-weight-semibold); white-space: nowrap; }
|
|
3500
|
+
.k-invoice__table tbody tr:last-child td { border-block-end: 0; }
|
|
3501
|
+
.k-invoice__table tbody tr { transition: background-color var(--k-duration-fast); }
|
|
3502
|
+
.k-invoice__table tbody tr:hover { background: var(--k-bg-hover); }
|
|
3503
|
+
.k-invoice__table .k-invoice__n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
3504
|
+
.k-invoice__table .k-invoice__num-col { inline-size: 3rem; color: var(--k-text-tertiary); text-align: center; }
|
|
3505
|
+
.k-invoice__code { display: block; margin-block-start: 2px; color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: start; }
|
|
3506
|
+
.k-invoice__unit { color: var(--k-text-tertiary); font-size: var(--k-text-xs); }
|
|
3507
|
+
.k-invoice__summary { display: grid; justify-items: end; gap: var(--k-space-3); }
|
|
3508
|
+
.k-invoice__totals { display: grid; grid-template-columns: auto minmax(9rem, auto); gap: var(--k-space-2) var(--k-space-6); margin: 0; }
|
|
3509
|
+
.k-invoice__totals dt { color: var(--k-text-tertiary); }
|
|
3510
|
+
.k-invoice__totals dd { margin: 0; text-align: end; font-weight: var(--k-weight-medium); font-variant-numeric: tabular-nums; }
|
|
3511
|
+
.k-invoice__payable dt, .k-invoice__payable dd { padding-block-start: var(--k-space-3); border-block-start: 1px solid var(--k-border-primary); color: var(--k-text-primary); font-size: var(--k-text-md); font-weight: var(--k-weight-bold); }
|
|
3512
|
+
.k-invoice__cur { color: var(--k-text-tertiary); font-size: var(--k-text-sm); font-weight: var(--k-weight-regular); }
|
|
3513
|
+
.k-invoice__words { max-inline-size: 36rem; margin: 0; padding: var(--k-space-2) var(--k-space-3); border-radius: var(--k-radius-md); background: var(--k-bg-brand-subtle); color: var(--k-text-brand); font-weight: var(--k-weight-medium); text-align: end; }
|
|
3514
|
+
.k-invoice__notes { color: var(--k-text-secondary); }
|
|
3515
|
+
.k-invoice__signs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--k-space-6); padding-block-start: var(--k-space-6); }
|
|
3516
|
+
.k-invoice__sign { display: grid; align-items: end; min-block-size: 5.5rem; padding-block-start: var(--k-space-2); border-block-start: 1px dashed var(--k-border-primary); color: var(--k-text-tertiary); font-size: var(--k-text-xs); text-align: center; align-content: start; }
|
|
3517
|
+
.k-invoice__print { justify-self: end; gap: var(--k-space-1_5); }
|
|
3518
|
+
@media (max-width: 40rem) {
|
|
3519
|
+
.k-invoice { padding: var(--k-space-5); }
|
|
3520
|
+
.k-invoice__print { justify-self: stretch; }
|
|
3521
|
+
.k-invoice__dl { grid-template-columns: 1fr; }
|
|
3522
|
+
}
|
|
3523
|
+
@media print {
|
|
3524
|
+
.k-invoice { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
|
|
3525
|
+
.k-invoice__print { display: none; }
|
|
3526
|
+
.k-invoice__party, .k-invoice__table thead th { background: none; }
|
|
3527
|
+
.k-invoice__words { background: none; color: #000; border: 1px solid #999; }
|
|
3528
|
+
.k-invoice__table tr, .k-invoice__signs, .k-invoice__summary { break-inside: avoid; }
|
|
3529
|
+
.k-invoice__table tbody tr:hover { background: none; }
|
|
3530
|
+
}
|
|
3531
|
+
@media (forced-colors: active) { .k-invoice, .k-invoice__party, .k-invoice__table-wrap { border-color: CanvasText; } }
|
|
3532
|
+
|
|
3269
3533
|
/* نقشهٔ استانهای ایران — نقشهٔ رنگی با طیف برند و انتخاب استان */
|
|
3270
3534
|
.k-iran-map { position: relative; display: grid; gap: var(--k-space-3); margin: 0; inline-size: 100%; font-size: var(--k-text-xs); }
|
|
3271
3535
|
.k-iran-map__canvas { position: relative; block-size: 0; }
|
|
@@ -4999,6 +5263,58 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
4999
5263
|
.k-sidenav__item[aria-current="page"] svg { color: HighlightText; }
|
|
5000
5264
|
}
|
|
5001
5265
|
|
|
5266
|
+
/* کادر امضا
|
|
5267
|
+
* <div class="k-field k-signature"><div class="k-signature__pad"><canvas class="k-signature__canvas"></canvas><span class="k-signature__line">×</span><div class="k-signature__tools">…</div></div></div>
|
|
5268
|
+
* متغیرها: --k-signature-height ارتفاع کادر --k-signature-ink رنگ جوهر روی صفحه */
|
|
5269
|
+
.k-signature__modes { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; border-radius: var(--k-radius-md); background: var(--k-bg-muted); }
|
|
5270
|
+
.k-signature__mode { padding: var(--k-space-1) var(--k-space-3); border: 0; border-radius: calc(var(--k-radius-md) - 2px); background: none; color: var(--k-text-tertiary); font: inherit; font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); cursor: pointer; transition: background-color var(--k-duration-fast), color var(--k-duration-fast); }
|
|
5271
|
+
.k-signature__mode:hover { color: var(--k-text-primary); }
|
|
5272
|
+
.k-signature__mode[aria-checked="true"] { background: var(--k-bg-elevated); color: var(--k-text-primary); box-shadow: var(--k-shadow-xs); }
|
|
5273
|
+
.k-signature__mode:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5274
|
+
.k-signature__pad {
|
|
5275
|
+
position: relative;
|
|
5276
|
+
block-size: var(--k-signature-height, var(--k-signature-height-default));
|
|
5277
|
+
border: 1px dashed var(--k-border-primary);
|
|
5278
|
+
border-radius: var(--k-radius-lg);
|
|
5279
|
+
background: var(--k-bg-elevated);
|
|
5280
|
+
transition: border-color var(--k-duration-fast), box-shadow var(--k-duration-fast);
|
|
5281
|
+
}
|
|
5282
|
+
.k-signature__pad:hover { border-color: var(--k-text-quaternary); }
|
|
5283
|
+
.k-signature__pad:has(:focus-visible) { border-style: solid; border-color: var(--k-border-brand); box-shadow: var(--k-ring-brand); }
|
|
5284
|
+
.k-signature[data-invalid] .k-signature__pad { border-color: var(--k-border-error); }
|
|
5285
|
+
.k-signature[data-disabled] .k-signature__pad { opacity: 0.6; }
|
|
5286
|
+
.k-signature__canvas { display: block; inline-size: 100%; block-size: 100%; color: var(--k-signature-ink, var(--k-text-primary)); touch-action: none; cursor: crosshair; border-radius: inherit; }
|
|
5287
|
+
.k-signature__canvas:focus-visible { outline: none; }
|
|
5288
|
+
/* خط امضا با «×» در گوشه */
|
|
5289
|
+
.k-signature__line { position: absolute; inset-inline: var(--k-space-6); inset-block-end: 28%; padding-block-end: 2px; border-block-end: 1px solid var(--k-border-secondary); color: var(--k-text-quaternary); font-size: var(--k-text-sm); line-height: 1; pointer-events: none; transition: opacity var(--k-duration-normal) var(--k-ease-standard); }
|
|
5290
|
+
.k-signature:not([data-empty]) .k-signature__line { opacity: 0.45; }
|
|
5291
|
+
.k-signature__typed { position: absolute; inset: 0; display: grid; place-items: center; padding-inline: var(--k-space-6); }
|
|
5292
|
+
.k-signature__typed-input {
|
|
5293
|
+
inline-size: 100%;
|
|
5294
|
+
padding: 0;
|
|
5295
|
+
border: 0;
|
|
5296
|
+
background: none;
|
|
5297
|
+
color: var(--k-text-primary);
|
|
5298
|
+
font-family: var(--k-font-display);
|
|
5299
|
+
font-size: 2.25rem;
|
|
5300
|
+
font-weight: var(--k-weight-bold);
|
|
5301
|
+
text-align: center;
|
|
5302
|
+
outline: none;
|
|
5303
|
+
}
|
|
5304
|
+
.k-signature__typed-input::placeholder { color: var(--k-text-quaternary); font-family: var(--k-font-sans); font-size: var(--k-text-md); font-weight: var(--k-weight-regular); }
|
|
5305
|
+
.k-signature__tools { position: absolute; inset-block-start: var(--k-space-2); inset-inline-end: var(--k-space-2); display: flex; gap: var(--k-space-1); opacity: 0; transition: opacity var(--k-duration-fast); }
|
|
5306
|
+
.k-signature:not([data-empty]) .k-signature__tools, .k-signature__pad:hover .k-signature__tools, .k-signature__pad:focus-within .k-signature__tools { opacity: 1; }
|
|
5307
|
+
.k-signature__tool { display: inline-flex; align-items: center; justify-content: center; gap: var(--k-space-1); min-inline-size: 2rem; block-size: 2rem; padding-inline: var(--k-space-2); border: 1px solid var(--k-border-secondary); border-radius: var(--k-radius-md); background: var(--k-bg-elevated); color: var(--k-text-secondary); font: inherit; font-size: var(--k-text-sm); cursor: pointer; transition: background-color var(--k-duration-fast), scale var(--k-duration-fast) var(--k-ease-spring); }
|
|
5308
|
+
.k-signature__tool svg { inline-size: 1.125rem; block-size: 1.125rem; }
|
|
5309
|
+
.k-signature__tool:dir(rtl) svg { scale: -1 1; }
|
|
5310
|
+
.k-signature__tool:hover:not(:disabled) { background: var(--k-bg-hover); color: var(--k-text-primary); }
|
|
5311
|
+
.k-signature__tool:active:not(:disabled) { scale: 0.92; }
|
|
5312
|
+
.k-signature__tool:disabled { opacity: 0.4; cursor: default; }
|
|
5313
|
+
.k-signature__tool:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5314
|
+
@media (prefers-reduced-motion: reduce) { .k-signature__tools, .k-signature__line, .k-signature__tool { transition: none; } }
|
|
5315
|
+
@media (forced-colors: active) { .k-signature__pad { border-color: CanvasText; } .k-signature__canvas { color: CanvasText; } .k-signature__tools { opacity: 1; } }
|
|
5316
|
+
@media print { .k-signature__tools, .k-signature__modes { display: none; } .k-signature__pad { border-style: solid; } }
|
|
5317
|
+
|
|
5002
5318
|
/* اسکلت بارگذاری — تزئینی است؛ روی ظرف والد aria-busy="true" بگذارید */
|
|
5003
5319
|
.k-skeleton {
|
|
5004
5320
|
display: block;
|
|
@@ -5645,6 +5961,27 @@ html:has(.k-dialog[open]) { overflow: hidden; }
|
|
|
5645
5961
|
.k-table__spacer, .k-table__spacer:hover { background: none !important; }
|
|
5646
5962
|
.k-table__spacer td { border: 0; }
|
|
5647
5963
|
|
|
5964
|
+
/* ستون ثابت، ویرایش داخل خانه و خروجی اکسل */
|
|
5965
|
+
.k-table caption:has(.k-table__export) { display: table-caption; }
|
|
5966
|
+
.k-table__export { float: inline-end; gap: var(--k-space-1_5); margin-block-start: calc(var(--k-space-1) * -1); margin-inline-start: var(--k-space-3); }
|
|
5967
|
+
.k-table--pinned { border-collapse: separate; border-spacing: 0; }
|
|
5968
|
+
.k-table .k-table__pin { position: sticky; z-index: 1; background: var(--k-bg-elevated); }
|
|
5969
|
+
.k-table thead .k-table__pin { z-index: calc(var(--k-z-raised) + 1); background: var(--k-table-header-bg, var(--k-bg-muted)); }
|
|
5970
|
+
.k-table tbody tr:hover .k-table__pin { background: color-mix(in srgb, var(--k-bg-elevated), var(--k-text-primary) 4%); }
|
|
5971
|
+
.k-table tbody tr[aria-selected="true"] .k-table__pin { background: var(--k-bg-brand-subtle); }
|
|
5972
|
+
.k-table .k-table__pin--edge-start { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5973
|
+
.k-table .k-table__pin--edge-start:dir(rtl) { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5974
|
+
.k-table .k-table__pin--edge-end { box-shadow: inset 1px 0 0 var(--k-border-secondary); }
|
|
5975
|
+
.k-table .k-table__pin--edge-end:dir(rtl) { box-shadow: inset -1px 0 0 var(--k-border-secondary); }
|
|
5976
|
+
.k-table td.k-table__cell--editable { padding-block: var(--k-space-1); }
|
|
5977
|
+
.k-table__editable { margin-inline: calc(var(--k-space-2) * -1); padding: var(--k-space-2); border-radius: var(--k-radius-md); cursor: text; transition: background-color var(--k-duration-fast), box-shadow var(--k-duration-fast); }
|
|
5978
|
+
.k-table__editable:hover { background: var(--k-bg-hover); box-shadow: inset 0 0 0 1px var(--k-border-secondary); }
|
|
5979
|
+
.k-table__editable:focus-visible { outline: 2px solid transparent; box-shadow: var(--k-ring-brand); }
|
|
5980
|
+
.k-table__editor { block-size: 2.25rem; margin-inline: calc(var(--k-space-2) * -1); inline-size: calc(100% + var(--k-space-2) * 2); min-inline-size: 6rem; animation: k-table-edit var(--k-duration-fast) var(--k-ease-emphasized); }
|
|
5981
|
+
@keyframes k-table-edit { from { opacity: 0.4; scale: 0.98; } }
|
|
5982
|
+
@media (prefers-reduced-motion: reduce) { .k-table__editor { animation: none; } }
|
|
5983
|
+
@media print { .k-table__export { display: none; } }
|
|
5984
|
+
|
|
5648
5985
|
/* زبانهها (Tabs) — ساختار ARIA را کامپوننت React میسازد
|
|
5649
5986
|
* گونهها: k-tabs--line (پیشفرض) | k-tabs--pill | k-tabs--segmented — تمامعرض: k-tabs--block
|
|
5650
5987
|
* عمودی: k-tabs--vertical — فشرده: k-tabs--sm
|
package/dist/tokens.css
CHANGED
|
@@ -260,9 +260,13 @@
|
|
|
260
260
|
--k-checkbox-size-lg: 1.25rem;
|
|
261
261
|
--k-checkbox-radius-default: calc(0.3125rem * var(--k-radius-factor));
|
|
262
262
|
--k-clock-size-default: 16rem;
|
|
263
|
+
--k-cropper-height-default: 20rem;
|
|
263
264
|
--k-dialog-width-md: 30rem;
|
|
264
265
|
--k-dialog-width-lg: 40rem;
|
|
265
266
|
--k-drawer-width-default: 26rem;
|
|
267
|
+
--k-gantt-day-default: 2.5rem;
|
|
268
|
+
--k-gantt-row-default: 2.75rem;
|
|
269
|
+
--k-gantt-label-width-default: 11rem;
|
|
266
270
|
--k-heatmap-cell-default: 0.75rem;
|
|
267
271
|
--k-listbox-max-height-default: 18rem;
|
|
268
272
|
--k-menu-min-width-default: 12rem;
|
|
@@ -288,6 +292,7 @@
|
|
|
288
292
|
--k-rte-max-height-default: 28rem;
|
|
289
293
|
--k-sched-height-default: 36rem;
|
|
290
294
|
--k-sheet-height-default: 50dvh;
|
|
295
|
+
--k-signature-height-default: 11rem;
|
|
291
296
|
--k-sidenav-width-default: 17rem;
|
|
292
297
|
--k-sidenav-item-height-default: 2.5rem;
|
|
293
298
|
--k-step-size-default: 2rem;
|
|
@@ -306,6 +311,7 @@
|
|
|
306
311
|
--k-tooltip-max-width-default: 16rem;
|
|
307
312
|
--k-tree-indent-default: 1.25rem;
|
|
308
313
|
--k-tree-row-height-default: 2.25rem;
|
|
314
|
+
--k-vlist-height-default: 24rem;
|
|
309
315
|
}
|
|
310
316
|
|
|
311
317
|
:root, [data-theme="dark"] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kashi-ui/css",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "استایل کامپوننتهای کاشی با CSS خالص — برای هر فریمورکی",
|
|
5
5
|
"main": "./dist/kashi.css",
|
|
6
6
|
"style": "./dist/kashi.css",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build": "node build.mjs"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kashi-ui/tokens": "^2.
|
|
24
|
+
"@kashi-ui/tokens": "^2.26.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"vazirmatn": "^33.0.3",
|