~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
0ea8e8df
—
pyrossh 2 months ago
fix css
src/components/Commit.astro
CHANGED
|
@@ -25,8 +25,8 @@ const { title, author_name, hash, date, message, branches, tags } = Astro.props;
|
|
|
25
25
|
|
|
26
26
|
<style>
|
|
27
27
|
.event {
|
|
28
|
-
background:
|
|
28
|
+
background-color: var(--color-box-bg);
|
|
29
|
-
color:
|
|
29
|
+
color: var(--color-text);
|
|
30
30
|
text-overflow: ellipsis;
|
|
31
31
|
overflow: hidden;
|
|
32
32
|
padding: 0.5rem;
|
|
@@ -34,7 +34,7 @@ const { title, author_name, hash, date, message, branches, tags } = Astro.props;
|
|
|
34
34
|
font-size: 11pt;
|
|
35
35
|
|
|
36
36
|
a {
|
|
37
|
-
color:
|
|
37
|
+
color: var(--color-link);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
small {
|
src/layouts/Base.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--color-text: light-dark(hsl(0, 0%, 13%), hsl(210, 17%, 98%));
|
|
7
7
|
--color-card-link: light-dark(hsl(241, 100%, 40%), hsl(211, 100%, 60%));
|
|
8
8
|
--color-box-bg: light-dark(hsl(210, 40%, 96%), hsl(210, 13%, 9%));
|
|
9
|
-
--color-link: light-dark(hsl(
|
|
9
|
+
--color-link: light-dark(hsl(211, 100%, 60%), hsl(211, 100%, 60%));
|
|
10
10
|
--color-post-link: light-dark(hsl(0, 0%, 0%), hsl(211, 100%, 60%));
|
|
11
11
|
--color-highlight-bg: light-dark(hsl(184, 73%, 76%), hsl(260, 70%, 56%));
|
|
12
12
|
--color-code-fg: light-dark(hsl(348, 86%, 43%), hsl(0, 71%, 82%));
|
src/pages/repos/[...slug]/index.astro
CHANGED
|
@@ -57,186 +57,7 @@ const { Content } = await render(Astro.props);
|
|
|
57
57
|
<div class={styles.summary}>
|
|
58
58
|
{latestCommits.map((commit) => <Commit {...commit} />)}
|
|
59
59
|
</div>
|
|
60
|
-
<div class=
|
|
60
|
+
<div class={styles.markdown}>
|
|
61
61
|
<Content />
|
|
62
62
|
</div>
|
|
63
63
|
</Layout>
|
|
64
|
-
<style>
|
|
65
|
-
h1,
|
|
66
|
-
h2 {
|
|
67
|
-
margin-top: 0;
|
|
68
|
-
|
|
69
|
-
small {
|
|
70
|
-
font-size: 12px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/* h3 {
|
|
75
|
-
font-size: 1.3rem;
|
|
76
|
-
border-bottom: 1px solid var(--color-gray-200);
|
|
77
|
-
padding-bottom: 0.25rem;
|
|
78
|
-
|
|
79
|
-
small {
|
|
80
|
-
font-size: 1rem;
|
|
81
|
-
margin-left: 1rem;
|
|
82
|
-
}
|
|
83
|
-
} */
|
|
84
|
-
|
|
85
|
-
h4 {
|
|
86
|
-
font-size: 1.1rem;
|
|
87
|
-
border-bottom: 1px solid var(--color-gray-200);
|
|
88
|
-
padding-bottom: 0.25rem;
|
|
89
|
-
|
|
90
|
-
small {
|
|
91
|
-
font-size: 0.8rem;
|
|
92
|
-
margin-left: 1rem;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
h5 {
|
|
97
|
-
font-size: 1rem;
|
|
98
|
-
font-weight: bold;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.markdown {
|
|
102
|
-
font-size: 12pt;
|
|
103
|
-
|
|
104
|
-
h1 {
|
|
105
|
-
text-align: left;
|
|
106
|
-
font-size: 24pt;
|
|
107
|
-
/* font-weight: 500; */
|
|
108
|
-
line-height: 1;
|
|
109
|
-
margin-top: 0.5rem;
|
|
110
|
-
margin-bottom: 0.1rem;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
table {
|
|
114
|
-
width: 100%;
|
|
115
|
-
max-width: 100%;
|
|
116
|
-
margin-bottom: 1rem;
|
|
117
|
-
border-collapse: collapse;
|
|
118
|
-
text-indent: initial;
|
|
119
|
-
unicode-bidi: isolate;
|
|
120
|
-
border-spacing: 2px;
|
|
121
|
-
border-color: gray;
|
|
122
|
-
color: white;
|
|
123
|
-
font-size: 1rem;
|
|
124
|
-
|
|
125
|
-
thead {
|
|
126
|
-
th {
|
|
127
|
-
padding: 0.1rem 0.75rem;
|
|
128
|
-
border: none;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
tbody {
|
|
133
|
-
td {
|
|
134
|
-
position: relative;
|
|
135
|
-
background-clip: padding-box;
|
|
136
|
-
vertical-align: middle;
|
|
137
|
-
padding: 0.1rem 0.75rem;
|
|
138
|
-
border: 1px solid var(--color-gray-400);
|
|
139
|
-
background-color: white;
|
|
140
|
-
|
|
141
|
-
label {
|
|
142
|
-
margin-bottom: 0;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
table,
|
|
149
|
-
table tbody tr,
|
|
150
|
-
table tbody td,
|
|
151
|
-
table thead th {
|
|
152
|
-
/* background: var(--color-gray-800); */
|
|
153
|
-
background: #343a40;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
table tbody td {
|
|
157
|
-
/* border: 1px solid var(--color-gray-900); */
|
|
158
|
-
border: 1px solid #212529;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
h1,
|
|
162
|
-
h2,
|
|
163
|
-
h3,
|
|
164
|
-
h4,
|
|
165
|
-
h5,
|
|
166
|
-
h6 {
|
|
167
|
-
position: relative;
|
|
168
|
-
margin-top: 1em;
|
|
169
|
-
|
|
170
|
-
&:first-child {
|
|
171
|
-
margin-top: 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
& > a:first-child {
|
|
175
|
-
transition: opacity 0.15s linear;
|
|
176
|
-
opacity: 0;
|
|
177
|
-
position: absolute;
|
|
178
|
-
font-size: inherit;
|
|
179
|
-
left: -0.7em;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@media (prefers-reduced-motion) {
|
|
183
|
-
& > a:first-child {
|
|
184
|
-
transition: none;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&:hover > a:first-child {
|
|
189
|
-
opacity: 1;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
img {
|
|
193
|
-
margin: 0 0.2rem;
|
|
194
|
-
max-width: 100%;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
blockquote {
|
|
199
|
-
padding-left: 0.5rem;
|
|
200
|
-
border-left: 3px solid #aaa;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
pre {
|
|
204
|
-
background: $pre-background;
|
|
205
|
-
padding: 0.25rem;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
code {
|
|
209
|
-
margin: 0;
|
|
210
|
-
background: transparent;
|
|
211
|
-
color: white;
|
|
212
|
-
font-size: 87.5%;
|
|
213
|
-
/* color: #e83e8c; */
|
|
214
|
-
word-break: break-word;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.alert {
|
|
218
|
-
padding: 0.5rem;
|
|
219
|
-
border-radius: 0;
|
|
220
|
-
|
|
221
|
-
.form-group & {
|
|
222
|
-
margin-top: 1rem;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.text-centered {
|
|
227
|
-
text-align: center;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.text-right {
|
|
231
|
-
text-align: right;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.pull-left {
|
|
235
|
-
float: left;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.pull-right {
|
|
239
|
-
float: right;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
</style>
|
src/pages/repos/[...slug]/index.module.css
CHANGED
|
@@ -1,3 +1,181 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2 {
|
|
3
|
+
margin-top: 0;
|
|
4
|
+
|
|
5
|
+
small {
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* h3 {
|
|
11
|
+
font-size: 1.3rem;
|
|
12
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
13
|
+
padding-bottom: 0.25rem;
|
|
14
|
+
|
|
15
|
+
small {
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
margin-left: 1rem;
|
|
18
|
+
}
|
|
19
|
+
} */
|
|
20
|
+
|
|
21
|
+
h4 {
|
|
22
|
+
font-size: 1.1rem;
|
|
23
|
+
border-bottom: 1px solid var(--color-gray-200);
|
|
24
|
+
padding-bottom: 0.25rem;
|
|
25
|
+
|
|
26
|
+
small {
|
|
27
|
+
font-size: 0.8rem;
|
|
28
|
+
margin-left: 1rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h5 {
|
|
33
|
+
font-size: 1rem;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.markdown {
|
|
38
|
+
font-size: 12pt;
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
text-align: left;
|
|
42
|
+
font-size: 24pt;
|
|
43
|
+
/* font-weight: 500; */
|
|
44
|
+
line-height: 1;
|
|
45
|
+
margin-top: 0.5rem;
|
|
46
|
+
margin-bottom: 0.1rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
table {
|
|
50
|
+
width: 100%;
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
margin-bottom: 1rem;
|
|
53
|
+
border-collapse: collapse;
|
|
54
|
+
text-indent: initial;
|
|
55
|
+
unicode-bidi: isolate;
|
|
56
|
+
border-spacing: 2px;
|
|
57
|
+
border-color: gray;
|
|
58
|
+
color: white;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
|
|
61
|
+
thead {
|
|
62
|
+
th {
|
|
63
|
+
padding: 0.1rem 0.75rem;
|
|
64
|
+
border: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
tbody {
|
|
69
|
+
td {
|
|
70
|
+
position: relative;
|
|
71
|
+
background-clip: padding-box;
|
|
72
|
+
vertical-align: middle;
|
|
73
|
+
padding: 0.1rem 0.75rem;
|
|
74
|
+
border: 1px solid var(--color-gray-400);
|
|
75
|
+
background-color: white;
|
|
76
|
+
|
|
77
|
+
label {
|
|
78
|
+
margin-bottom: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
table,
|
|
85
|
+
table tbody tr,
|
|
86
|
+
table tbody td,
|
|
87
|
+
table thead th {
|
|
88
|
+
/* background: var(--color-gray-800); */
|
|
89
|
+
background: #343a40;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
table tbody td {
|
|
93
|
+
/* border: 1px solid var(--color-gray-900); */
|
|
94
|
+
border: 1px solid #212529;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h1,
|
|
98
|
+
h2,
|
|
99
|
+
h3,
|
|
100
|
+
h4,
|
|
101
|
+
h5,
|
|
102
|
+
h6 {
|
|
103
|
+
position: relative;
|
|
104
|
+
margin-top: 1em;
|
|
105
|
+
|
|
106
|
+
&:first-child {
|
|
107
|
+
margin-top: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&>a:first-child {
|
|
111
|
+
transition: opacity 0.15s linear;
|
|
112
|
+
opacity: 0;
|
|
113
|
+
position: absolute;
|
|
114
|
+
font-size: inherit;
|
|
115
|
+
left: -0.7em;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion) {
|
|
119
|
+
&>a:first-child {
|
|
120
|
+
transition: none;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:hover>a:first-child {
|
|
125
|
+
opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
img {
|
|
129
|
+
margin: 0 0.2rem;
|
|
130
|
+
max-width: 100%;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
blockquote {
|
|
135
|
+
padding-left: 0.5rem;
|
|
136
|
+
border-left: 3px solid #aaa;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
pre {
|
|
140
|
+
/* background: $pre-background; */
|
|
141
|
+
padding: 0.25rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
code {
|
|
145
|
+
margin: 0;
|
|
146
|
+
background: transparent;
|
|
147
|
+
color: white;
|
|
148
|
+
font-size: 87.5%;
|
|
149
|
+
/* color: #e83e8c; */
|
|
150
|
+
word-break: break-word;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.alert {
|
|
154
|
+
padding: 0.5rem;
|
|
155
|
+
border-radius: 0;
|
|
156
|
+
|
|
157
|
+
.form-group & {
|
|
158
|
+
margin-top: 1rem;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.text-centered {
|
|
163
|
+
text-align: center;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.text-right {
|
|
167
|
+
text-align: right;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.pull-left {
|
|
171
|
+
float: left;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.pull-right {
|
|
175
|
+
float: right;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
1
179
|
.header {
|
|
2
180
|
display: flex;
|
|
3
181
|
flex: 1;
|
|
@@ -26,7 +204,6 @@
|
|
|
26
204
|
.headerExtension {
|
|
27
205
|
display: flex;
|
|
28
206
|
flex: 1;
|
|
29
|
-
background: #131618;
|
|
30
207
|
/* margin-bottom: 1rem; */
|
|
31
208
|
padding-top: 0.3rem;
|
|
32
209
|
padding-left: 0.3rem;
|
|
@@ -83,7 +260,7 @@ time {
|
|
|
83
260
|
flex-direction: row;
|
|
84
261
|
flex: 1;
|
|
85
262
|
align-items: baseline;
|
|
86
|
-
background-color:
|
|
263
|
+
background-color: var(--color-box-bg);
|
|
87
264
|
padding: 0.5rem;
|
|
88
265
|
font-size: 12pt;
|
|
89
266
|
font-weight: 400;
|