Skip to content

Commit 9654d94

Browse files
committed
update home
1 parent c73f8c7 commit 9654d94

3 files changed

Lines changed: 49 additions & 0 deletions

File tree

docs/.vitepress/theme/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Theme from 'vitepress/theme'
2+
import './styles.css'
3+
4+
export default Theme

docs/.vitepress/theme/styles.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
:root:where(:lang(fa)) {
2+
--vp-font-family-base:
3+
'Vazirmatn', 'Inter', ui-sans-serif, system-ui, sans-serif,
4+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
5+
}
6+
7+
:root {
8+
9+
--vp-button-brand-bg: #1d6586;
10+
--vp-home-hero-name-color: transparent;
11+
--vp-home-hero-name-background: -webkit-linear-gradient(
12+
120deg,
13+
#1d6586 30%,
14+
#41d1ff
15+
);
16+
--vp-home-hero-image-background-image: linear-gradient(
17+
-45deg,
18+
#1d6586 50%,
19+
#47caff 50%
20+
);
21+
--vp-home-hero-image-filter: blur(44px);
22+
}
23+
24+
@media (min-width: 640px) {
25+
:root {
26+
--vp-home-hero-image-filter: blur(56px);
27+
}
28+
}
29+
30+
@media (min-width: 960px) {
31+
:root {
32+
--vp-home-hero-image-filter: blur(68px);
33+
}
34+
}
35+
36+
.VPHero .VPImage {
37+
filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2));
38+
padding: 18px;
39+
}
40+
41+
/* used in reference/default-theme-search */
42+
img[src='/search.png'] {
43+
width: 100%;
44+
aspect-ratio: 1 / 1;
45+
}
-14.2 KB
Loading

0 commit comments

Comments
 (0)