File tree Expand file tree Collapse file tree 6 files changed +282
-284
lines changed Expand file tree Collapse file tree 6 files changed +282
-284
lines changed Original file line number Diff line number Diff line change 7
7
"devDependencies" : {
8
8
"@vue/theme" : " ^0.1.5" ,
9
9
"cheap-watch" : " ^1.0.3" ,
10
- "vitepress" : " ^0.17.0 "
10
+ "vitepress" : " ^0.17.1 "
11
11
}
12
12
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,5 +41,97 @@ function slugify(text) {
41
41
</div >
42
42
43
43
<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
+ }
45
137
</style >
You can’t perform that action at this time.
0 commit comments