@kashi-ui/css 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +26 -2
- package/dist/base.css +82 -0
- package/dist/components/alert.css +92 -0
- package/dist/components/avatar.css +77 -0
- package/dist/components/badge.css +48 -0
- package/dist/components/button.css +169 -0
- package/dist/components/calendar.css +143 -0
- package/dist/components/card.css +77 -0
- package/dist/components/checkbox.css +93 -0
- package/dist/components/field.css +29 -0
- package/dist/components/input.css +97 -0
- package/dist/components/switch.css +69 -0
- package/dist/font.css +9 -0
- package/dist/fonts/Vazirmatn-OFL.txt +93 -0
- package/dist/fonts/Vazirmatn.woff2 +0 -0
- package/dist/kashi.css +1227 -0
- package/dist/tokens.css +219 -0
- package/package.json +49 -4
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* کارت
|
|
2
|
+
* <article class="k-card">
|
|
3
|
+
* <header class="k-card__header">
|
|
4
|
+
* <h3 class="k-card__title">عنوان</h3>
|
|
5
|
+
* <p class="k-card__description">توضیح</p>
|
|
6
|
+
* </header>
|
|
7
|
+
* <div class="k-card__body">...</div>
|
|
8
|
+
* <footer class="k-card__footer">...دکمهها</footer>
|
|
9
|
+
* </article>
|
|
10
|
+
* گونهها: k-card--flat (بدون سایه) | k-card--interactive (برای کارت قابلکلیک، همراه با <a> یا <button>)
|
|
11
|
+
*
|
|
12
|
+
* متغیرها: --k-card-padding --k-card-radius --k-card-bg --k-card-border --k-card-shadow
|
|
13
|
+
*/
|
|
14
|
+
.k-card {
|
|
15
|
+
--_p: var(--k-card-padding, calc(1.5rem * var(--k-density)));
|
|
16
|
+
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
border: 1px solid var(--k-card-border, var(--k-border-secondary));
|
|
20
|
+
border-radius: var(--k-card-radius, var(--k-radius-xl));
|
|
21
|
+
background: var(--k-card-bg, var(--k-bg-elevated));
|
|
22
|
+
color: var(--k-text-primary);
|
|
23
|
+
box-shadow: var(--k-card-shadow, var(--k-shadow-xs));
|
|
24
|
+
overflow: clip;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.k-card__header,
|
|
28
|
+
.k-card__body,
|
|
29
|
+
.k-card__footer { padding: var(--_p); }
|
|
30
|
+
|
|
31
|
+
.k-card__header + .k-card__body { padding-block-start: 0; }
|
|
32
|
+
|
|
33
|
+
.k-card__header { display: grid; gap: var(--k-space-1); }
|
|
34
|
+
|
|
35
|
+
.k-card__title {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: var(--k-text-lg);
|
|
38
|
+
font-weight: var(--k-weight-semibold);
|
|
39
|
+
line-height: var(--k-leading-tight);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.k-card__description {
|
|
43
|
+
margin: 0;
|
|
44
|
+
color: var(--k-text-tertiary);
|
|
45
|
+
font-size: var(--k-text-sm);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.k-card__footer {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: var(--k-space-3);
|
|
52
|
+
justify-content: flex-end;
|
|
53
|
+
padding-block: calc(var(--_p) * 0.66);
|
|
54
|
+
border-block-start: 1px solid var(--k-border-secondary);
|
|
55
|
+
margin-block-start: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.k-card__media { display: block; inline-size: 100%; object-fit: cover; }
|
|
59
|
+
|
|
60
|
+
.k-card--flat { box-shadow: none; }
|
|
61
|
+
|
|
62
|
+
.k-card--interactive {
|
|
63
|
+
position: relative;
|
|
64
|
+
transition:
|
|
65
|
+
border-color var(--k-duration-fast) var(--k-ease-standard),
|
|
66
|
+
box-shadow var(--k-duration-normal) var(--k-ease-standard);
|
|
67
|
+
}
|
|
68
|
+
.k-card--interactive:hover { border-color: var(--k-border-primary); box-shadow: var(--k-shadow-md); }
|
|
69
|
+
.k-card--interactive:has(:focus-visible) { box-shadow: var(--k-shadow-md), var(--k-ring-brand); }
|
|
70
|
+
/* لینک اصلی کل کارت را قابلکلیک میکند ولی فقط یک توقف Tab دارد */
|
|
71
|
+
.k-card--interactive :is(a, button).k-card__link::after { content: ""; position: absolute; inset: 0; }
|
|
72
|
+
.k-card--interactive .k-card__link:focus-visible { outline: none; }
|
|
73
|
+
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
.k-card { border-color: CanvasText; }
|
|
76
|
+
.k-card--interactive:has(:focus-visible) { outline: 2px solid Highlight; }
|
|
77
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* چکباکس — روی <input type="checkbox"> بومی، پس کیبورد و صفحهخوان خودکار کار میکنند
|
|
2
|
+
* <label class="k-check">
|
|
3
|
+
* <input type="checkbox" class="k-checkbox">
|
|
4
|
+
* <span class="k-check__text">
|
|
5
|
+
* <span class="k-check__label">مرا به خاطر بسپار</span>
|
|
6
|
+
* <span class="k-check__description">توضیح اختیاری</span>
|
|
7
|
+
* </span>
|
|
8
|
+
* </label>
|
|
9
|
+
* حالت نیمه: input.indeterminate = true — خطا: aria-invalid="true" — اندازه: k-checkbox--lg
|
|
10
|
+
*
|
|
11
|
+
* متغیرها: --k-checkbox-size --k-checkbox-radius
|
|
12
|
+
*/
|
|
13
|
+
.k-checkbox {
|
|
14
|
+
--_s: var(--k-checkbox-size, 1.125rem);
|
|
15
|
+
--_border: var(--k-border-input);
|
|
16
|
+
|
|
17
|
+
appearance: none;
|
|
18
|
+
display: inline-grid;
|
|
19
|
+
place-content: center;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
inline-size: var(--_s);
|
|
22
|
+
block-size: var(--_s);
|
|
23
|
+
margin: 0;
|
|
24
|
+
border: 1px solid var(--_border);
|
|
25
|
+
border-radius: var(--k-checkbox-radius, calc(0.3125rem * var(--k-radius-factor)));
|
|
26
|
+
background: var(--k-bg-primary);
|
|
27
|
+
color: var(--k-text-on-brand);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition:
|
|
30
|
+
background-color var(--k-duration-fast) var(--k-ease-standard),
|
|
31
|
+
border-color var(--k-duration-fast) var(--k-ease-standard),
|
|
32
|
+
box-shadow var(--k-duration-fast) var(--k-ease-standard);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.k-checkbox::before {
|
|
36
|
+
content: "";
|
|
37
|
+
inline-size: calc(var(--_s) * 0.7);
|
|
38
|
+
block-size: calc(var(--_s) * 0.7);
|
|
39
|
+
background: currentColor;
|
|
40
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 3.5 5.5 10 2.5 7'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
41
|
+
scale: 0;
|
|
42
|
+
transition: scale var(--k-duration-fast) var(--k-ease-emphasized);
|
|
43
|
+
}
|
|
44
|
+
.k-checkbox:indeterminate::before {
|
|
45
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 7h8'/%3E%3C/svg%3E");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.k-checkbox:hover { --_border: var(--k-border-brand); }
|
|
49
|
+
|
|
50
|
+
.k-checkbox:is(:checked, :indeterminate) {
|
|
51
|
+
--_border: var(--k-bg-brand);
|
|
52
|
+
background: var(--k-bg-brand);
|
|
53
|
+
}
|
|
54
|
+
.k-checkbox:is(:checked, :indeterminate)::before { scale: 1; }
|
|
55
|
+
|
|
56
|
+
.k-checkbox:focus-visible {
|
|
57
|
+
outline: 2px solid transparent;
|
|
58
|
+
box-shadow: var(--k-ring-brand);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.k-checkbox[aria-invalid="true"] { --_border: var(--k-border-error); }
|
|
62
|
+
.k-checkbox[aria-invalid="true"]:focus-visible { box-shadow: var(--k-ring-error); }
|
|
63
|
+
|
|
64
|
+
.k-checkbox:disabled {
|
|
65
|
+
--_border: var(--k-border-secondary);
|
|
66
|
+
background: var(--k-bg-tertiary);
|
|
67
|
+
color: var(--k-text-quaternary);
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.k-checkbox--lg { --_s: var(--k-checkbox-size, 1.25rem); }
|
|
72
|
+
|
|
73
|
+
/* ردیف برچسب — مشترک بین چکباکس و سوییچ */
|
|
74
|
+
.k-check {
|
|
75
|
+
display: inline-flex;
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
gap: var(--k-space-2);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
/* ارتفاع خط متن با کنترل همتراز شود */
|
|
80
|
+
line-height: 1.25rem;
|
|
81
|
+
}
|
|
82
|
+
.k-check > :is(.k-checkbox, .k-switch) { margin-block-start: calc((1.25rem - var(--_h, var(--_s))) / 2); }
|
|
83
|
+
.k-check:has(:disabled) { cursor: not-allowed; }
|
|
84
|
+
.k-check__text { display: grid; gap: 0.125rem; }
|
|
85
|
+
.k-check__label { color: var(--k-text-secondary); font-size: var(--k-text-sm); font-weight: var(--k-weight-medium); }
|
|
86
|
+
.k-check__description { color: var(--k-text-tertiary); font-size: var(--k-text-sm); }
|
|
87
|
+
.k-check:has(:disabled) .k-check__label { color: var(--k-text-quaternary); }
|
|
88
|
+
|
|
89
|
+
/* حالت کنتراست بالای ویندوز: برگشت به کنترل بومی سیستم */
|
|
90
|
+
@media (forced-colors: active) {
|
|
91
|
+
.k-checkbox { appearance: auto; }
|
|
92
|
+
.k-checkbox::before { display: none; }
|
|
93
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* فیلد: برچسب + کنترل + راهنما/خطا — مشترک بین Input، Checkbox و Switch
|
|
2
|
+
* <div class="k-field">
|
|
3
|
+
* <label class="k-label" for="email">ایمیل <span class="k-label__required" aria-hidden="true">*</span></label>
|
|
4
|
+
* ...کنترل...
|
|
5
|
+
* <p class="k-hint" id="email-hint">راهنما</p>
|
|
6
|
+
* <p class="k-hint k-hint--error" id="email-error">خطا</p>
|
|
7
|
+
* </div>
|
|
8
|
+
*/
|
|
9
|
+
.k-field {
|
|
10
|
+
display: grid;
|
|
11
|
+
gap: var(--k-field-gap, var(--k-space-1_5));
|
|
12
|
+
min-inline-size: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.k-label {
|
|
16
|
+
color: var(--k-text-secondary);
|
|
17
|
+
font-size: var(--k-text-sm);
|
|
18
|
+
font-weight: var(--k-weight-medium);
|
|
19
|
+
line-height: var(--k-leading-tight);
|
|
20
|
+
}
|
|
21
|
+
.k-label__required { color: var(--k-text-error); margin-inline-start: 0.125em; }
|
|
22
|
+
|
|
23
|
+
.k-hint {
|
|
24
|
+
margin: 0;
|
|
25
|
+
color: var(--k-text-tertiary);
|
|
26
|
+
font-size: var(--k-text-sm);
|
|
27
|
+
line-height: var(--k-leading-tight);
|
|
28
|
+
}
|
|
29
|
+
.k-hint--error { color: var(--k-text-error); }
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* ورودی متن
|
|
2
|
+
* <div class="k-input">
|
|
3
|
+
* <span class="k-input__addon">svg یا متن</span>
|
|
4
|
+
* <input class="k-input__control" id="email" aria-describedby="email-hint">
|
|
5
|
+
* </div>
|
|
6
|
+
* خطا: aria-invalid="true" روی input — اندازهها: k-input--sm | k-input--lg
|
|
7
|
+
*
|
|
8
|
+
* متغیرها: --k-input-height-{sm,md,lg} --k-input-radius --k-input-bg --k-input-border
|
|
9
|
+
*/
|
|
10
|
+
.k-input {
|
|
11
|
+
--_h: var(--k-input-height-md, calc(2.75rem * var(--k-density)));
|
|
12
|
+
--_border: var(--k-input-border, var(--k-border-input));
|
|
13
|
+
--_ring: var(--k-ring-brand);
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--k-space-2);
|
|
18
|
+
min-block-size: var(--_h);
|
|
19
|
+
padding-inline: calc(0.875rem * var(--k-density));
|
|
20
|
+
border: 1px solid var(--_border);
|
|
21
|
+
border-radius: var(--k-input-radius, var(--k-radius-md));
|
|
22
|
+
background: var(--k-input-bg, var(--k-bg-primary));
|
|
23
|
+
color: var(--k-text-primary);
|
|
24
|
+
box-shadow: var(--k-shadow-xs);
|
|
25
|
+
cursor: text;
|
|
26
|
+
transition:
|
|
27
|
+
border-color var(--k-duration-fast) var(--k-ease-standard),
|
|
28
|
+
box-shadow var(--k-duration-fast) var(--k-ease-standard);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.k-input:focus-within {
|
|
32
|
+
--_border: var(--k-border-brand);
|
|
33
|
+
box-shadow: var(--k-shadow-xs), var(--_ring);
|
|
34
|
+
/* forced-colors */
|
|
35
|
+
outline: 2px solid transparent;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.k-input:has(.k-input__control[aria-invalid="true"]) {
|
|
39
|
+
--_border: var(--k-border-error);
|
|
40
|
+
--_ring: var(--k-ring-error);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.k-input:has(.k-input__control:disabled) {
|
|
44
|
+
background: var(--k-bg-secondary);
|
|
45
|
+
border-color: var(--k-border-secondary);
|
|
46
|
+
box-shadow: none;
|
|
47
|
+
cursor: not-allowed;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.k-input__control {
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-inline-size: 0;
|
|
53
|
+
align-self: stretch;
|
|
54
|
+
padding: 0;
|
|
55
|
+
border: 0;
|
|
56
|
+
outline: 0;
|
|
57
|
+
background: transparent;
|
|
58
|
+
color: inherit;
|
|
59
|
+
font: inherit;
|
|
60
|
+
font-size: var(--k-text-md);
|
|
61
|
+
}
|
|
62
|
+
.k-input__control::placeholder { color: var(--k-text-tertiary); opacity: 1; }
|
|
63
|
+
.k-input__control:disabled { color: var(--k-text-quaternary); cursor: not-allowed; }
|
|
64
|
+
|
|
65
|
+
/* ایمیل، آدرس، شماره و رمز همیشه چپبهراست تایپ میشوند */
|
|
66
|
+
.k-input__control:is([type="email"], [type="url"], [type="tel"], [type="number"], [type="password"], [dir="ltr"]) {
|
|
67
|
+
direction: ltr;
|
|
68
|
+
text-align: end;
|
|
69
|
+
}
|
|
70
|
+
.k-input__control:is([type="email"], [type="url"], [type="tel"], [type="number"], [type="password"]):placeholder-shown {
|
|
71
|
+
direction: rtl;
|
|
72
|
+
text-align: start;
|
|
73
|
+
}
|
|
74
|
+
[dir="ltr"] .k-input__control:is([type="email"], [type="url"], [type="tel"], [type="number"], [type="password"]):placeholder-shown {
|
|
75
|
+
direction: ltr;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.k-input__addon {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
color: var(--k-text-tertiary);
|
|
83
|
+
font-size: var(--k-text-md);
|
|
84
|
+
}
|
|
85
|
+
.k-input__addon svg { inline-size: 1.25rem; block-size: 1.25rem; }
|
|
86
|
+
|
|
87
|
+
/* چندخطی */
|
|
88
|
+
.k-input--textarea { align-items: stretch; padding-block: calc(0.625rem * var(--k-density)); }
|
|
89
|
+
.k-input--textarea .k-input__control { min-block-size: 5lh; resize: vertical; line-height: var(--k-leading-normal); }
|
|
90
|
+
|
|
91
|
+
.k-input--sm { --_h: var(--k-input-height-sm, calc(2.5rem * var(--k-density))); }
|
|
92
|
+
.k-input--lg { --_h: var(--k-input-height-lg, calc(3rem * var(--k-density))); }
|
|
93
|
+
|
|
94
|
+
@media (forced-colors: active) {
|
|
95
|
+
.k-input { border-color: FieldText; }
|
|
96
|
+
.k-input:focus-within { outline-color: Highlight; }
|
|
97
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* سوییچ — روی <input type="checkbox" role="switch"> بومی
|
|
2
|
+
* <label class="k-check">
|
|
3
|
+
* <input type="checkbox" role="switch" class="k-switch">
|
|
4
|
+
* <span class="k-check__text"><span class="k-check__label">اعلانها</span></span>
|
|
5
|
+
* </label>
|
|
6
|
+
* در RTL دکمهٔ سوییچ در حالت روشن به چپ میرود (خودکار با Logical Properties)
|
|
7
|
+
* اندازهها: k-switch--sm | k-switch--lg
|
|
8
|
+
*
|
|
9
|
+
* متغیرها: --k-switch-width --k-switch-height --k-switch-track-on --k-switch-track-off --k-switch-thumb
|
|
10
|
+
*/
|
|
11
|
+
.k-switch {
|
|
12
|
+
--_w: var(--k-switch-width, 2.25rem);
|
|
13
|
+
--_h: var(--k-switch-height, 1.25rem);
|
|
14
|
+
--_pad: 2px;
|
|
15
|
+
--_track: var(--k-switch-track-off, var(--k-border-input));
|
|
16
|
+
|
|
17
|
+
appearance: none;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
inline-size: var(--_w);
|
|
22
|
+
block-size: var(--_h);
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: var(--_pad);
|
|
25
|
+
border: 0;
|
|
26
|
+
border-radius: var(--k-radius-full);
|
|
27
|
+
background: var(--_track);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition:
|
|
30
|
+
background-color var(--k-duration-normal) var(--k-ease-standard),
|
|
31
|
+
box-shadow var(--k-duration-fast) var(--k-ease-standard);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.k-switch::before {
|
|
35
|
+
content: "";
|
|
36
|
+
inline-size: calc(var(--_h) - var(--_pad) * 2);
|
|
37
|
+
block-size: calc(var(--_h) - var(--_pad) * 2);
|
|
38
|
+
border-radius: var(--k-radius-full);
|
|
39
|
+
background: var(--k-switch-thumb, #fff);
|
|
40
|
+
box-shadow: var(--k-shadow-sm);
|
|
41
|
+
transition: margin-inline-start var(--k-duration-normal) var(--k-ease-emphasized);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.k-switch:hover { --_track: color-mix(in srgb, var(--k-switch-track-off, var(--k-border-input)), var(--k-text-primary) 12%); }
|
|
45
|
+
|
|
46
|
+
.k-switch:checked { --_track: var(--k-switch-track-on, var(--k-bg-brand)); }
|
|
47
|
+
.k-switch:checked:hover { --_track: var(--k-switch-track-on, var(--k-bg-brand-hover)); }
|
|
48
|
+
.k-switch:checked::before { margin-inline-start: calc(var(--_w) - var(--_h)); }
|
|
49
|
+
|
|
50
|
+
.k-switch:focus-visible {
|
|
51
|
+
outline: 2px solid transparent;
|
|
52
|
+
box-shadow: var(--k-ring-brand);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.k-switch:disabled {
|
|
56
|
+
--_track: var(--k-bg-tertiary);
|
|
57
|
+
cursor: not-allowed;
|
|
58
|
+
}
|
|
59
|
+
.k-switch:disabled::before { background: var(--k-bg-secondary); box-shadow: none; }
|
|
60
|
+
|
|
61
|
+
.k-switch--sm { --_w: var(--k-switch-width, 1.75rem); --_h: var(--k-switch-height, 1rem); }
|
|
62
|
+
.k-switch--lg { --_w: var(--k-switch-width, 2.75rem); --_h: var(--k-switch-height, 1.5rem); }
|
|
63
|
+
|
|
64
|
+
@media (forced-colors: active) {
|
|
65
|
+
.k-switch { border: 1px solid ButtonText; background: Canvas; }
|
|
66
|
+
.k-switch::before { background: ButtonText; forced-color-adjust: none; }
|
|
67
|
+
.k-switch:checked { background: Highlight; }
|
|
68
|
+
.k-switch:checked::before { background: HighlightText; }
|
|
69
|
+
}
|
package/dist/font.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* فونت وزیرمتن (Variable، وزن ۱۰۰ تا ۹۰۰) — لایسنس OFL */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "Vazirmatn";
|
|
4
|
+
src: url("./fonts/Vazirmatn.woff2") format("woff2-variations"),
|
|
5
|
+
url("./fonts/Vazirmatn.woff2") format("woff2");
|
|
6
|
+
font-weight: 100 900;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
font-display: swap;
|
|
9
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2015 The Vazirmatn Project Authors (https://github.com/rastikerdar/vazirmatn)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|