Skip to content

Commit ccecb47

Browse files
committed
bump vite/vitepress
1 parent 5103194 commit ccecb47

File tree

6 files changed

+282
-284
lines changed

6 files changed

+282
-284
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"devDependencies": {
88
"@vue/theme": "^0.1.5",
99
"cheap-watch": "^1.0.3",
10-
"vitepress": "^0.17.0"
10+
"vitepress": "^0.17.1"
1111
}
1212
}

src/.vitepress/theme/styles/api-index.css

Lines changed: 0 additions & 93 deletions
This file was deleted.

src/.vitepress/theme/styles/home.css

Lines changed: 0 additions & 175 deletions
This file was deleted.

src/api/index.md

Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,97 @@ function slugify(text) {
4141
</div>
4242

4343
<style scoped>
44-
@import '../.vitepress/theme/styles/api-index.css'
44+
#api-index {
45+
max-width: 1024px;
46+
margin: 0px auto;
47+
padding: 64px 32px;
48+
}
49+
50+
h1,
51+
h2,
52+
h3 {
53+
font-weight: 600;
54+
line-height: 1;
55+
}
56+
57+
h1,
58+
h2 {
59+
letter-spacing: -0.02em;
60+
}
61+
62+
h1 {
63+
font-size: 38px;
64+
}
65+
66+
h2 {
67+
font-size: 24px;
68+
color: var(--vt-c-text-1);
69+
margin: 64px 0 36px;
70+
transition: color 0.5s;
71+
padding-top: 36px;
72+
border-top: 1px solid var(--vt-c-divider-light);
73+
}
74+
75+
h3 {
76+
letter-spacing: -0.01em;
77+
color: var(--vt-c-green);
78+
font-size: 18px;
79+
margin-bottom: 1em;
80+
transition: color 0.5s;
81+
}
82+
83+
.api-groups a {
84+
font-size: 15px;
85+
font-weight: 500;
86+
line-height: 2;
87+
color: var(--vt-c-text-code);
88+
transition: color 0.5s;
89+
}
90+
91+
.dark api-groups a {
92+
font-weight: 400;
93+
}
94+
95+
.api-groups a:hover {
96+
color: var(--vt-c-green);
97+
transition: none;
98+
}
99+
100+
.api-group {
101+
break-inside: avoid;
102+
margin-bottom: 20px;
103+
background-color: var(--vt-c-bg-soft);
104+
border-radius: 8px;
105+
padding: 28px 32px;
106+
transition: background-color 0.5s;
107+
}
108+
109+
@media (max-width: 768px) {
110+
#api-index {
111+
padding: 42px 24px;
112+
}
113+
h1 {
114+
font-size: 32px;
115+
}
116+
h2 {
117+
font-size: 22px;
118+
margin: 42px 0 32px;
119+
padding-top: 32px;
120+
}
121+
.api-groups a {
122+
font-size: 14px;
123+
}
124+
}
125+
126+
@media (min-width: 768px) {
127+
.api-groups {
128+
columns: 2;
129+
}
130+
}
131+
132+
@media (min-width: 1024px) {
133+
.api-groups {
134+
columns: 3;
135+
}
136+
}
45137
</style>

0 commit comments

Comments
 (0)