@hyvor/design 2.1.20 → 2.1.22-beta.1
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/Base/Base.svelte +192 -2
- package/dist/components/Base/Base.svelte.d.ts +0 -1
- package/dist/components/Base/fonts.css +222 -0
- package/dist/components/Dropdown/Dropdown.svelte +5 -4
- package/dist/components/Dropdown/Dropdown.svelte.d.ts +1 -0
- package/dist/components/Dropdown/DropdownContent.svelte +7 -1
- package/dist/components/Tooltip/Tooltip.svelte +4 -1
- package/dist/components/directives/clickOutside.d.ts +2 -1
- package/dist/components/directives/clickOutside.js +25 -7
- package/dist/marketing/Header/HeaderLanguageToggle.svelte +1 -1
- package/dist/marketing/Testimonials/Testimonials.svelte +3 -27
- package/dist/marketing/Testimonials/Testimonials.svelte.d.ts +0 -1
- package/package.json +4 -3
- package/dist/index.css +0 -101
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/variables.css +0 -80
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import ConfirmModalProvider from './../Modal/ConfirmModalProvider.svelte';
|
|
3
|
-
// import InternationalizationProvider from './../Internationalization/InternationalizationProvider.svelte';
|
|
4
3
|
import DarkProvider from './../Dark/DarkProvider.svelte';
|
|
5
|
-
import '../../index.js';
|
|
6
4
|
import ToastProvider from '../Toast/ToastProvider.svelte';
|
|
7
5
|
import FileUploaderProvider from '../FileUploader/FileUploaderProvider.svelte';
|
|
6
|
+
import fontsCss from './fonts.css?inline';
|
|
8
7
|
|
|
9
8
|
interface Props {
|
|
10
9
|
dark?: boolean;
|
|
@@ -14,6 +13,11 @@
|
|
|
14
13
|
let { dark = false, children }: Props = $props();
|
|
15
14
|
</script>
|
|
16
15
|
|
|
16
|
+
<svelte:head>
|
|
17
|
+
<link rel="preconnect" href="https://media.hyvor.com" />
|
|
18
|
+
{@html '<style>' + fontsCss + '</style>'}
|
|
19
|
+
</svelte:head>
|
|
20
|
+
|
|
17
21
|
<div id="hds-base">
|
|
18
22
|
{@render children?.()}
|
|
19
23
|
</div>
|
|
@@ -25,3 +29,189 @@
|
|
|
25
29
|
<ToastProvider />
|
|
26
30
|
<ConfirmModalProvider />
|
|
27
31
|
<FileUploaderProvider />
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
:global(:root) {
|
|
35
|
+
/**
|
|
36
|
+
* Each app should have its own accent colors
|
|
37
|
+
* --accent should be usable with light text
|
|
38
|
+
* --accent-light and --accent-lightest should be usable with dark text
|
|
39
|
+
*/
|
|
40
|
+
--accent: #000;
|
|
41
|
+
--accent-light: #bdbdbd;
|
|
42
|
+
--accent-lightest: #fafafa;
|
|
43
|
+
--accent-light-mid: #818181;
|
|
44
|
+
--accent-text: #fff;
|
|
45
|
+
|
|
46
|
+
--border: #e1e1e1;
|
|
47
|
+
|
|
48
|
+
--text: #000;
|
|
49
|
+
--text-light: #777;
|
|
50
|
+
--text-white: #fff;
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* Generally used colors
|
|
54
|
+
* In most cases, no need to extend these colors
|
|
55
|
+
*/
|
|
56
|
+
--green-light: #cadfca;
|
|
57
|
+
--green: #4b874b;
|
|
58
|
+
--green-dark: #335c33;
|
|
59
|
+
|
|
60
|
+
--red-dark: #ab2525;
|
|
61
|
+
--red: #c05959;
|
|
62
|
+
--red-light: #ffdfdf;
|
|
63
|
+
|
|
64
|
+
--blue-dark: #334b81;
|
|
65
|
+
--blue: #5875b9;
|
|
66
|
+
--blue-light: #dae5ff;
|
|
67
|
+
|
|
68
|
+
--orange-dark: #8b5b04;
|
|
69
|
+
--orange: #a98526;
|
|
70
|
+
--orange-light: #efe3b4;
|
|
71
|
+
|
|
72
|
+
--gray-light: #ddd;
|
|
73
|
+
--gray: #999;
|
|
74
|
+
--gray-dark: #555;
|
|
75
|
+
|
|
76
|
+
--hover: #fafafa;
|
|
77
|
+
--hover-dark: #f0f0f0;
|
|
78
|
+
|
|
79
|
+
--link: #1d85d2;
|
|
80
|
+
|
|
81
|
+
--input: #f3f3f3;
|
|
82
|
+
--input-hover: #ccc;
|
|
83
|
+
/* checkbox/radio */
|
|
84
|
+
|
|
85
|
+
--box-shadow: 0 0 30px #0000000d;
|
|
86
|
+
--box-shadow-light: 0 0 10px 6px rgba(0, 0, 0, 0.06);
|
|
87
|
+
--box-radius: 20px;
|
|
88
|
+
--box-background: #fff;
|
|
89
|
+
|
|
90
|
+
--line-height-content: 28px;
|
|
91
|
+
--header-height: 55px;
|
|
92
|
+
|
|
93
|
+
--font-sans-serif: 'Readex Pro', Avenir, Inter, Helvetica, Arial, sans-serif;
|
|
94
|
+
--font-serif: 'Source Serif 4', serif;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:global(:root.dark) {
|
|
98
|
+
--background: #000;
|
|
99
|
+
|
|
100
|
+
--text: #fff;
|
|
101
|
+
--text-light: #999;
|
|
102
|
+
--box-background: #1c1c1c;
|
|
103
|
+
|
|
104
|
+
--accent-light: #555;
|
|
105
|
+
--accent-lightest: #2d2d2d;
|
|
106
|
+
|
|
107
|
+
--border: #4a4a4a;
|
|
108
|
+
--link: #7cb6e1;
|
|
109
|
+
--hover: #232323;
|
|
110
|
+
|
|
111
|
+
--input: #333;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Global styles
|
|
116
|
+
*/
|
|
117
|
+
:global(:root) {
|
|
118
|
+
font-family: var(--font-sans-serif);
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
text-rendering: optimizeLegibility;
|
|
122
|
+
-webkit-font-smoothing: antialiased;
|
|
123
|
+
-moz-osx-font-smoothing: grayscale;
|
|
124
|
+
-webkit-text-size-adjust: 100%;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:global(body) {
|
|
128
|
+
background-color: var(--background, var(--accent-lightest));
|
|
129
|
+
color: var(--text);
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:global(button),
|
|
135
|
+
:global(a) {
|
|
136
|
+
background-color: transparent;
|
|
137
|
+
border: none;
|
|
138
|
+
color: inherit;
|
|
139
|
+
appearance: none;
|
|
140
|
+
padding: 0;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
font-family: inherit;
|
|
144
|
+
font-size: inherit;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:global(:focus-visible) {
|
|
148
|
+
outline: 2px solid var(--accent-light);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:global(*) {
|
|
152
|
+
box-sizing: border-box;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:global(.hds-box) {
|
|
156
|
+
box-shadow: var(--box-shadow);
|
|
157
|
+
border-radius: var(--box-radius);
|
|
158
|
+
background-color: var(--box-background);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:global(.hds-container) {
|
|
162
|
+
width: 1000px;
|
|
163
|
+
max-width: 100%;
|
|
164
|
+
padding: 0 15px;
|
|
165
|
+
margin: auto;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:global(.hds-container-max) {
|
|
169
|
+
width: 1400px;
|
|
170
|
+
max-width: 100%;
|
|
171
|
+
padding: 0 15px;
|
|
172
|
+
margin: auto;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:global(.hds-link) {
|
|
176
|
+
color: var(--link);
|
|
177
|
+
text-decoration: underline;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** code block styles */
|
|
181
|
+
:global(.hds-code-block pre) {
|
|
182
|
+
text-align: left;
|
|
183
|
+
white-space: pre;
|
|
184
|
+
word-spacing: normal;
|
|
185
|
+
word-break: normal;
|
|
186
|
+
word-wrap: normal;
|
|
187
|
+
overflow: auto;
|
|
188
|
+
border-radius: 20px;
|
|
189
|
+
padding: 20px;
|
|
190
|
+
line-height: 1.2;
|
|
191
|
+
background-color: #f4f2f0 !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:global(.hds-code-block pre code) {
|
|
195
|
+
all: unset;
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
line-height: 1.5 !important;
|
|
198
|
+
tab-size: 4;
|
|
199
|
+
hyphens: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:global(:root.dark .shiki) {
|
|
203
|
+
background-color: var(--shiki-dark-bg) !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:global(:root.dark .shiki),
|
|
207
|
+
:global(:root.dark .shiki span) {
|
|
208
|
+
color: var(--shiki-dark) !important;
|
|
209
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
210
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
211
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:global(::selection) {
|
|
215
|
+
background-color: var(--selection, var(--accent-light));
|
|
216
|
+
}
|
|
217
|
+
</style>
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Readex Pro;
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-display: swap;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
src:
|
|
7
|
+
url(https://media.hyvor.com/fonts/readex-pro-arabic-400-normal.BzB5iZVu.woff2) format("woff2"),
|
|
8
|
+
url(https://media.hyvor.com/fonts/readex-pro-arabic-400-normal.CRluTl2A.woff) format("woff");
|
|
9
|
+
unicode-range: U+6??, U+750-77F, U+870-88E, U+890-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F,
|
|
10
|
+
U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF,
|
|
11
|
+
U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B,
|
|
12
|
+
U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D,
|
|
13
|
+
U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E,
|
|
14
|
+
U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: Readex Pro;
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
src:
|
|
22
|
+
url(https://media.hyvor.com/fonts/readex-pro-vietnamese-400-normal.DAQS1QRE.woff2) format("woff2"),
|
|
23
|
+
url(https://media.hyvor.com/fonts/readex-pro-vietnamese-400-normal.DRTbt2AX.woff) format("woff");
|
|
24
|
+
unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309,
|
|
25
|
+
U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
26
|
+
}
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: Readex Pro;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-display: swap;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
src:
|
|
33
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-ext-400-normal.CDeDBhe3.woff2) format("woff2"),
|
|
34
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-ext-400-normal.DzeKRH4q.woff) format("woff");
|
|
35
|
+
unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F,
|
|
36
|
+
U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
37
|
+
}
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: Readex Pro;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
src:
|
|
44
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-400-normal.BZtYQVaG.woff2) format("woff2"),
|
|
45
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-400-normal.SP_jEUAw.woff) format("woff");
|
|
46
|
+
unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC,
|
|
47
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
48
|
+
}
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: Readex Pro;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-display: swap;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
src:
|
|
55
|
+
url(https://media.hyvor.com/fonts/readex-pro-arabic-600-normal.BHxn1TEo.woff2) format("woff2"),
|
|
56
|
+
url(https://media.hyvor.com/fonts/readex-pro-arabic-600-normal.9mhVJBMn.woff) format("woff");
|
|
57
|
+
unicode-range: U+6??, U+750-77F, U+870-88E, U+890-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F,
|
|
58
|
+
U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF,
|
|
59
|
+
U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B,
|
|
60
|
+
U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D,
|
|
61
|
+
U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E,
|
|
62
|
+
U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
|
|
63
|
+
}
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: Readex Pro;
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-display: swap;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
src:
|
|
70
|
+
url(https://media.hyvor.com/fonts/readex-pro-vietnamese-600-normal.CvqEbH36.woff2) format("woff2"),
|
|
71
|
+
url(https://media.hyvor.com/fonts/readex-pro-vietnamese-600-normal.BT-w1HBH.woff) format("woff");
|
|
72
|
+
unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309,
|
|
73
|
+
U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
74
|
+
}
|
|
75
|
+
@font-face {
|
|
76
|
+
font-family: Readex Pro;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
src:
|
|
81
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-ext-600-normal.DvstIQFU.woff2) format("woff2"),
|
|
82
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-ext-600-normal.DRKkFP2q.woff) format("woff");
|
|
83
|
+
unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F,
|
|
84
|
+
U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
85
|
+
}
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: Readex Pro;
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
src:
|
|
92
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-600-normal.C3IhmgOg.woff2) format("woff2"),
|
|
93
|
+
url(https://media.hyvor.com/fonts/readex-pro-latin-600-normal.CeYg1m9V.woff) format("woff");
|
|
94
|
+
unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC,
|
|
95
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
96
|
+
}
|
|
97
|
+
@font-face {
|
|
98
|
+
font-family: "Source Serif 4";
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-display: swap;
|
|
101
|
+
font-weight: 400;
|
|
102
|
+
src:
|
|
103
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-ext-400-normal.CWV284fw.woff2) format("woff2"),
|
|
104
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-ext-400-normal.DLkyKLvH.woff) format("woff");
|
|
105
|
+
unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
106
|
+
}
|
|
107
|
+
@font-face {
|
|
108
|
+
font-family: "Source Serif 4";
|
|
109
|
+
font-style: normal;
|
|
110
|
+
font-display: swap;
|
|
111
|
+
font-weight: 400;
|
|
112
|
+
src:
|
|
113
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-400-normal.C44pakCn.woff2) format("woff2"),
|
|
114
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-400-normal.B8Z6Jvzv.woff) format("woff");
|
|
115
|
+
unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
|
|
116
|
+
}
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: "Source Serif 4";
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-display: swap;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
src:
|
|
123
|
+
url(https://media.hyvor.com/fonts/source-serif-4-greek-400-normal.Cw5-AHNN.woff2) format("woff2"),
|
|
124
|
+
url(https://media.hyvor.com/fonts/source-serif-4-greek-400-normal.BccYJ-vZ.woff) format("woff");
|
|
125
|
+
unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
|
|
126
|
+
}
|
|
127
|
+
@font-face {
|
|
128
|
+
font-family: "Source Serif 4";
|
|
129
|
+
font-style: normal;
|
|
130
|
+
font-display: swap;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
src:
|
|
133
|
+
url(https://media.hyvor.com/fonts/source-serif-4-vietnamese-400-normal.BbG3LG1A.woff2) format("woff2"),
|
|
134
|
+
url(https://media.hyvor.com/fonts/source-serif-4-vietnamese-400-normal.DR1UuFon.woff) format("woff");
|
|
135
|
+
unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309,
|
|
136
|
+
U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
137
|
+
}
|
|
138
|
+
@font-face {
|
|
139
|
+
font-family: "Source Serif 4";
|
|
140
|
+
font-style: normal;
|
|
141
|
+
font-display: swap;
|
|
142
|
+
font-weight: 400;
|
|
143
|
+
src:
|
|
144
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-ext-400-normal.Cp7z-ARB.woff2) format("woff2"),
|
|
145
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-ext-400-normal.CEpydyUl.woff) format("woff");
|
|
146
|
+
unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F,
|
|
147
|
+
U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
148
|
+
}
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: "Source Serif 4";
|
|
151
|
+
font-style: normal;
|
|
152
|
+
font-display: swap;
|
|
153
|
+
font-weight: 400;
|
|
154
|
+
src:
|
|
155
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-400-normal.DJ5YJwmz.woff2) format("woff2"),
|
|
156
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-400-normal.Dn3IlU-Z.woff) format("woff");
|
|
157
|
+
unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC,
|
|
158
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
159
|
+
}
|
|
160
|
+
@font-face {
|
|
161
|
+
font-family: "Source Serif 4";
|
|
162
|
+
font-style: normal;
|
|
163
|
+
font-display: swap;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
src:
|
|
166
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-ext-600-normal.D_E8FDgP.woff2) format("woff2"),
|
|
167
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-ext-600-normal.DiT2IGQm.woff) format("woff");
|
|
168
|
+
unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
169
|
+
}
|
|
170
|
+
@font-face {
|
|
171
|
+
font-family: "Source Serif 4";
|
|
172
|
+
font-style: normal;
|
|
173
|
+
font-display: swap;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
src:
|
|
176
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-600-normal.BDP5YDHD.woff2) format("woff2"),
|
|
177
|
+
url(https://media.hyvor.com/fonts/source-serif-4-cyrillic-600-normal.DFnC3vAY.woff) format("woff");
|
|
178
|
+
unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
|
|
179
|
+
}
|
|
180
|
+
@font-face {
|
|
181
|
+
font-family: "Source Serif 4";
|
|
182
|
+
font-style: normal;
|
|
183
|
+
font-display: swap;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
src:
|
|
186
|
+
url(https://media.hyvor.com/fonts/source-serif-4-greek-600-normal.DdRkKr-1.woff2) format("woff2"),
|
|
187
|
+
url(https://media.hyvor.com/fonts/source-serif-4-greek-600-normal.DhXQw1Kl.woff) format("woff");
|
|
188
|
+
unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
|
|
189
|
+
}
|
|
190
|
+
@font-face {
|
|
191
|
+
font-family: "Source Serif 4";
|
|
192
|
+
font-style: normal;
|
|
193
|
+
font-display: swap;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
src:
|
|
196
|
+
url(https://media.hyvor.com/fonts/source-serif-4-vietnamese-600-normal.CznyfUKR.woff2) format("woff2"),
|
|
197
|
+
url(https://media.hyvor.com/fonts/source-serif-4-vietnamese-600-normal.B0WJbuqT.woff) format("woff");
|
|
198
|
+
unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309,
|
|
199
|
+
U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
200
|
+
}
|
|
201
|
+
@font-face {
|
|
202
|
+
font-family: "Source Serif 4";
|
|
203
|
+
font-style: normal;
|
|
204
|
+
font-display: swap;
|
|
205
|
+
font-weight: 600;
|
|
206
|
+
src:
|
|
207
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-ext-600-normal.0sIUyHMO.woff2) format("woff2"),
|
|
208
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-ext-600-normal.C6NNqpJh.woff) format("woff");
|
|
209
|
+
unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F,
|
|
210
|
+
U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
211
|
+
}
|
|
212
|
+
@font-face {
|
|
213
|
+
font-family: "Source Serif 4";
|
|
214
|
+
font-style: normal;
|
|
215
|
+
font-display: swap;
|
|
216
|
+
font-weight: 600;
|
|
217
|
+
src:
|
|
218
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-600-normal.DouSKlru.woff2) format("woff2"),
|
|
219
|
+
url(https://media.hyvor.com/fonts/source-serif-4-latin-600-normal.DMD1h6_f.woff) format("woff");
|
|
220
|
+
unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC,
|
|
221
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
222
|
+
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
trigger?: Snippet;
|
|
14
14
|
content?: Snippet;
|
|
15
15
|
contentPadding?: number;
|
|
16
|
+
keepInDom?: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
let {
|
|
@@ -24,18 +25,18 @@
|
|
|
24
25
|
position = 'bottom',
|
|
25
26
|
trigger,
|
|
26
27
|
content,
|
|
27
|
-
contentPadding
|
|
28
|
+
contentPadding,
|
|
29
|
+
keepInDom = false
|
|
28
30
|
}: Props = $props();
|
|
29
31
|
|
|
30
32
|
let triggerEl: HTMLElement | undefined = $state();
|
|
31
33
|
</script>
|
|
32
34
|
|
|
33
35
|
<span class="dropdown" class:relative>
|
|
36
|
+
<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->
|
|
34
37
|
<span
|
|
35
38
|
class="trigger"
|
|
36
39
|
onclick={() => (show = !show)}
|
|
37
|
-
role="listbox"
|
|
38
|
-
tabindex="0"
|
|
39
40
|
onkeyup={(e) => {
|
|
40
41
|
if (e.key === 'Escape') {
|
|
41
42
|
show = false;
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
{@render trigger?.()}
|
|
47
48
|
</span>
|
|
48
49
|
|
|
49
|
-
{#if show}
|
|
50
|
+
{#if show || keepInDom}
|
|
50
51
|
<DropdownContent
|
|
51
52
|
bind:show
|
|
52
53
|
{width}
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
$effect(() => {
|
|
102
102
|
position;
|
|
103
103
|
align;
|
|
104
|
+
show;
|
|
104
105
|
positionWrap();
|
|
105
106
|
});
|
|
106
107
|
|
|
@@ -129,8 +130,9 @@
|
|
|
129
130
|
|
|
130
131
|
<div
|
|
131
132
|
class="content-wrap {align} {position}"
|
|
133
|
+
class:visually-hidden={!show}
|
|
132
134
|
use:clickOutside={{
|
|
133
|
-
enabled: closeOnOutsideClick,
|
|
135
|
+
enabled: closeOnOutsideClick && show,
|
|
134
136
|
callback: () => (show = false)
|
|
135
137
|
}}
|
|
136
138
|
bind:this={contentWrap}
|
|
@@ -150,6 +152,10 @@
|
|
|
150
152
|
flex-direction: column;
|
|
151
153
|
}
|
|
152
154
|
|
|
155
|
+
.content-wrap.visually-hidden {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
153
159
|
.content {
|
|
154
160
|
overflow-y: auto;
|
|
155
161
|
min-height: 0;
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
let wrap: HTMLDivElement | undefined = $state();
|
|
34
34
|
let tooltipEl: HTMLDivElement | undefined = $state();
|
|
35
35
|
let showTimeout: ReturnType<typeof setTimeout>;
|
|
36
|
+
const tooltipId = $props.id();
|
|
36
37
|
|
|
37
38
|
function positionTooltip() {
|
|
38
39
|
if (wrap && tooltipEl && show) {
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
class="tooltip-wrap {color}"
|
|
102
103
|
onmouseenter={handleMouseEnter}
|
|
103
104
|
onmouseleave={handleMouseLeave}
|
|
104
|
-
|
|
105
|
+
aria-describedby={!disabled && show ? tooltipId : undefined}
|
|
105
106
|
bind:this={wrap}
|
|
106
107
|
{...wrapperProps}
|
|
107
108
|
>
|
|
@@ -109,9 +110,11 @@
|
|
|
109
110
|
|
|
110
111
|
{#if !disabled && show}
|
|
111
112
|
<div
|
|
113
|
+
id={tooltipId}
|
|
112
114
|
class="tooltip {position}"
|
|
113
115
|
style:max-width={maxWidth + 'px'}
|
|
114
116
|
bind:this={tooltipEl}
|
|
117
|
+
role="tooltip"
|
|
115
118
|
transition:fade={{ duration: 100 }}
|
|
116
119
|
>
|
|
117
120
|
{#if tooltip}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
function normalize(input) {
|
|
2
|
+
return typeof input === 'function' ? { callback: input } : input;
|
|
3
|
+
}
|
|
1
4
|
export function clickOutside(node, input) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (!enabled)
|
|
5
|
-
return;
|
|
5
|
+
let options = normalize(input);
|
|
6
|
+
let listening = false;
|
|
6
7
|
const handleClick = (event) => {
|
|
7
8
|
if (!node.contains(event.target)) {
|
|
8
9
|
if (options.stopPropagation)
|
|
@@ -10,11 +11,28 @@ export function clickOutside(node, input) {
|
|
|
10
11
|
options.callback();
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
function sync() {
|
|
15
|
+
const enabled = options.enabled === undefined ? true : options.enabled;
|
|
16
|
+
if (enabled && !listening) {
|
|
17
|
+
listening = true;
|
|
18
|
+
setTimeout(() => {
|
|
19
|
+
if (listening)
|
|
20
|
+
document.addEventListener('click', handleClick);
|
|
21
|
+
}, 0);
|
|
22
|
+
}
|
|
23
|
+
else if (!enabled && listening) {
|
|
24
|
+
listening = false;
|
|
25
|
+
document.removeEventListener('click', handleClick);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
sync();
|
|
16
29
|
return {
|
|
30
|
+
update(newInput) {
|
|
31
|
+
options = normalize(newInput);
|
|
32
|
+
sync();
|
|
33
|
+
},
|
|
17
34
|
destroy() {
|
|
35
|
+
listening = false;
|
|
18
36
|
document.removeEventListener('click', handleClick);
|
|
19
37
|
}
|
|
20
38
|
};
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
</HeaderMobileSection>
|
|
74
74
|
{:else}
|
|
75
75
|
<div class="header-language-toggle">
|
|
76
|
-
<Dropdown bind:show {align} {position} contentPadding={8}>
|
|
76
|
+
<Dropdown bind:show {align} {position} contentPadding={8} keepInDom>
|
|
77
77
|
{#snippet trigger()}
|
|
78
78
|
<HeaderNavLink aria-label={label} aria-expanded={show}>
|
|
79
79
|
<span class="flag">{currentLanguage.flag}</span>
|
|
@@ -28,15 +28,9 @@
|
|
|
28
28
|
label?: string;
|
|
29
29
|
title?: string;
|
|
30
30
|
reviews: Review[];
|
|
31
|
-
handwrittenNames?: boolean;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
let {
|
|
35
|
-
label = 'Testimonials',
|
|
36
|
-
title = 'Loved by our customers.',
|
|
37
|
-
reviews,
|
|
38
|
-
handwrittenNames = true
|
|
39
|
-
}: Props = $props();
|
|
33
|
+
let { label = 'Testimonials', title = 'Loved by our customers.', reviews }: Props = $props();
|
|
40
34
|
|
|
41
35
|
let started: boolean[] = $state(reviews.map(() => false));
|
|
42
36
|
let playing: boolean[] = $state(reviews.map(() => false));
|
|
@@ -132,12 +126,6 @@
|
|
|
132
126
|
}
|
|
133
127
|
</script>
|
|
134
128
|
|
|
135
|
-
<svelte:head>
|
|
136
|
-
{#if handwrittenNames}
|
|
137
|
-
<link href="https://fonts.bunny.net/css?family=caveat:600,700" rel="stylesheet" />
|
|
138
|
-
{/if}
|
|
139
|
-
</svelte:head>
|
|
140
|
-
|
|
141
129
|
{#snippet meta(review: Review)}
|
|
142
130
|
<div class="role">
|
|
143
131
|
{review.role}, <br />
|
|
@@ -156,7 +144,7 @@
|
|
|
156
144
|
</div>
|
|
157
145
|
{/snippet}
|
|
158
146
|
|
|
159
|
-
<section class="hds-testimonials"
|
|
147
|
+
<section class="hds-testimonials">
|
|
160
148
|
<div class="hds-container head">
|
|
161
149
|
<p class="label">{label}</p>
|
|
162
150
|
<h2>{@html title}</h2>
|
|
@@ -426,24 +414,16 @@
|
|
|
426
414
|
}
|
|
427
415
|
|
|
428
416
|
.name {
|
|
429
|
-
font-size:
|
|
417
|
+
font-size: 18px;
|
|
430
418
|
font-weight: 600;
|
|
431
419
|
color: var(--text);
|
|
432
420
|
line-height: 1.3;
|
|
433
421
|
}
|
|
434
422
|
|
|
435
|
-
.handwritten .name {
|
|
436
|
-
font-family: 'Caveat', cursive;
|
|
437
|
-
font-size: 28px;
|
|
438
|
-
font-weight: 600;
|
|
439
|
-
line-height: 1.15;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
423
|
.role {
|
|
443
424
|
font-size: 14px;
|
|
444
425
|
line-height: 1.35;
|
|
445
426
|
color: var(--text-light);
|
|
446
|
-
margin-top: 4px;
|
|
447
427
|
font-family: var(--font-serif);
|
|
448
428
|
}
|
|
449
429
|
|
|
@@ -460,10 +440,6 @@
|
|
|
460
440
|
text-decoration: underline;
|
|
461
441
|
}
|
|
462
442
|
|
|
463
|
-
.handwritten .company {
|
|
464
|
-
font-weight: 600;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
443
|
.video-card {
|
|
468
444
|
overflow: hidden;
|
|
469
445
|
padding: 0;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyvor/design",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.22-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css"
|
|
8
|
+
],
|
|
6
9
|
"repository": {
|
|
7
10
|
"url": "https://github.com/hyvor/design"
|
|
8
11
|
},
|
|
@@ -62,8 +65,6 @@
|
|
|
62
65
|
},
|
|
63
66
|
"dependencies": {
|
|
64
67
|
"@apidevtools/json-schema-ref-parser": "^16.0.2",
|
|
65
|
-
"@fontsource/readex-pro": "^5.3.0",
|
|
66
|
-
"@fontsource/source-serif-4": "^5.3.0",
|
|
67
68
|
"@hyvor/icons": "^1.1.1",
|
|
68
69
|
"deepmerge-ts": "^8.0.2",
|
|
69
70
|
"emojibase-data": "^17.0.0",
|
package/dist/index.css
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/* font */
|
|
2
|
-
:root {
|
|
3
|
-
font-family: var(--font-sans-serif);
|
|
4
|
-
font-size: 16px;
|
|
5
|
-
font-weight: 400;
|
|
6
|
-
text-rendering: optimizeLegibility;
|
|
7
|
-
-webkit-font-smoothing: antialiased;
|
|
8
|
-
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
-webkit-text-size-adjust: 100%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
background-color: var(--background, var(--accent-lightest));
|
|
14
|
-
color: var(--text);
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
button,
|
|
20
|
-
a {
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
border: none;
|
|
23
|
-
color: inherit;
|
|
24
|
-
appearance: none;
|
|
25
|
-
padding: 0;
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
font-family: inherit;
|
|
29
|
-
font-size: inherit;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:focus-visible {
|
|
33
|
-
outline: 2px solid var(--accent-light);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
* {
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.hds-box {
|
|
41
|
-
box-shadow: var(--box-shadow);
|
|
42
|
-
border-radius: var(--box-radius);
|
|
43
|
-
background-color: var(--box-background);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.hds-container {
|
|
47
|
-
width: 1000px;
|
|
48
|
-
max-width: 100%;
|
|
49
|
-
padding: 0 15px;
|
|
50
|
-
margin: auto;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.hds-container-max {
|
|
54
|
-
width: 1400px;
|
|
55
|
-
max-width: 100%;
|
|
56
|
-
padding: 0 15px;
|
|
57
|
-
margin: auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.hds-link {
|
|
61
|
-
color: var(--link);
|
|
62
|
-
text-decoration: underline;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** code block styles */
|
|
66
|
-
.hds-code-block pre {
|
|
67
|
-
text-align: left;
|
|
68
|
-
white-space: pre;
|
|
69
|
-
word-spacing: normal;
|
|
70
|
-
word-break: normal;
|
|
71
|
-
word-wrap: normal;
|
|
72
|
-
overflow: auto;
|
|
73
|
-
border-radius: 20px;
|
|
74
|
-
padding: 20px;
|
|
75
|
-
line-height: 1.2;
|
|
76
|
-
background-color: #f4f2f0 !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.hds-code-block pre code {
|
|
80
|
-
all: unset;
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
line-height: 1.5 !important;
|
|
83
|
-
tab-size: 4;
|
|
84
|
-
hyphens: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:root.dark .shiki {
|
|
88
|
-
background-color: var(--shiki-dark-bg) !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:root.dark .shiki,
|
|
92
|
-
:root.dark .shiki span {
|
|
93
|
-
color: var(--shiki-dark) !important;
|
|
94
|
-
font-style: var(--shiki-dark-font-style) !important;
|
|
95
|
-
font-weight: var(--shiki-dark-font-weight) !important;
|
|
96
|
-
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
::selection {
|
|
100
|
-
background-color: var(--selection, var(--accent-light));
|
|
101
|
-
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
package/dist/variables.css
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* variables */
|
|
2
|
-
:root {
|
|
3
|
-
/**
|
|
4
|
-
* Each app should have its own accent colors
|
|
5
|
-
* --accent should be usable with light text
|
|
6
|
-
* --accent-light and --accent-lightest should be usable with dark text
|
|
7
|
-
*/
|
|
8
|
-
--accent: #000;
|
|
9
|
-
--accent-light: #bdbdbd;
|
|
10
|
-
--accent-lightest: #fafafa;
|
|
11
|
-
--accent-light-mid: #818181;
|
|
12
|
-
--accent-text: #fff;
|
|
13
|
-
|
|
14
|
-
--border: #e1e1e1;
|
|
15
|
-
|
|
16
|
-
--text: #000;
|
|
17
|
-
--text-light: #777;
|
|
18
|
-
--text-white: #fff;
|
|
19
|
-
|
|
20
|
-
/*
|
|
21
|
-
* Generally used colors
|
|
22
|
-
* In most cases, no need to extend these colors
|
|
23
|
-
*/
|
|
24
|
-
--green-light: #cadfca;
|
|
25
|
-
--green: #4b874b;
|
|
26
|
-
--green-dark: #335c33;
|
|
27
|
-
|
|
28
|
-
--red-dark: #ab2525;
|
|
29
|
-
--red: #c05959;
|
|
30
|
-
--red-light: #ffdfdf;
|
|
31
|
-
|
|
32
|
-
--blue-dark: #334b81;
|
|
33
|
-
--blue: #5875b9;
|
|
34
|
-
--blue-light: #dae5ff;
|
|
35
|
-
|
|
36
|
-
--orange-dark: #8b5b04;
|
|
37
|
-
--orange: #a98526;
|
|
38
|
-
--orange-light: #efe3b4;
|
|
39
|
-
|
|
40
|
-
--gray-light: #ddd;
|
|
41
|
-
--gray: #999;
|
|
42
|
-
--gray-dark: #555;
|
|
43
|
-
|
|
44
|
-
--hover: #fafafa;
|
|
45
|
-
--hover-dark: #f0f0f0;
|
|
46
|
-
|
|
47
|
-
--link: #1d85d2;
|
|
48
|
-
|
|
49
|
-
--input: #f3f3f3;
|
|
50
|
-
--input-hover: #ccc;
|
|
51
|
-
/* checkbox/radio */
|
|
52
|
-
|
|
53
|
-
--box-shadow: 0 0 30px #0000000d;
|
|
54
|
-
--box-shadow-light: 0 0 10px 6px rgba(0, 0, 0, 0.06);
|
|
55
|
-
--box-radius: 20px;
|
|
56
|
-
--box-background: #fff;
|
|
57
|
-
|
|
58
|
-
--line-height-content: 28px;
|
|
59
|
-
--header-height: 55px;
|
|
60
|
-
|
|
61
|
-
--font-sans-serif: 'Readex Pro', Avenir, Inter, Helvetica, Arial, sans-serif;
|
|
62
|
-
--font-serif: 'Source Serif 4', serif;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:root.dark {
|
|
66
|
-
--background: #000;
|
|
67
|
-
|
|
68
|
-
--text: #fff;
|
|
69
|
-
--text-light: #999;
|
|
70
|
-
--box-background: #1c1c1c;
|
|
71
|
-
|
|
72
|
-
--accent-light: #555;
|
|
73
|
-
--accent-lightest: #2d2d2d;
|
|
74
|
-
|
|
75
|
-
--border: #4a4a4a;
|
|
76
|
-
--link: #7cb6e1;
|
|
77
|
-
--hover: #232323;
|
|
78
|
-
|
|
79
|
-
--input: #333;
|
|
80
|
-
}
|