-
Notifications
You must be signed in to change notification settings - Fork 13
/
style.css
323 lines (278 loc) · 6.35 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
* {
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
width: 100%;
height: calc(max(100vh, 400px));
color: #222;
font-family: "Plus Jakarta Sans", sans-serif;
}
body article {
width: 100%;
max-width: 1000px;
}
body article header {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100%;
min-height: 400px;
padding: 50px;
border-radius: 16px;
color: #000;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
body article header .upper-header {
display: flex;
justify-content: space-between;
padding-bottom: 20px;
}
body article header .upper-header .mini-title {
font-size: 1.125rem;
font-weight: bold;
letter-spacing: 0.4rem;
opacity: 0.9;
}
body article header .upper-header .date-since {
display: flex;
align-items: center;
opacity: 0.5;
font-size: 0.875rem;
}
body article header .upper-header .date-since .date-value {
display: inline-block;
padding-bottom: 2px;
}
body article header .upper-header .date-since svg {
width: 20px;
margin-left: 10px;
}
body article header .lower-header {
padding-top: 50px;
}
body article header .lower-header .tags-container {
display: flex;
align-items: center;
opacity: 0.75;
margin-bottom: 12px;
}
body article header .lower-header .tags-container>span:not(:nth-child(2))::before {
content: ", ";
}
body article header .lower-header .tags-container svg {
width: 20px;
margin-right: 10px;
}
body article header .lower-header .tags-container span {
font-size: 0.875rem;
}
body article header .lower-header .title {
margin: 20px 0;
font-size: 2.4rem;
font-weight: bold;
opacity: 0.9;
}
body article header .lower-header .subtitle {
width: 80%;
margin-top: 10px;
opacity: 0.75;
line-height: 1.75;
}
body .summary {
width: 100%;
display: flex;
justify-content: space-between;
margin-top: 50px;
padding: 30px 50px;
border-radius: 16px;
box-shadow: 0 0 0 1px #f2f2f2;
}
body .summary .summary-item {
width: 100%;
padding-right: 20px;
}
body .summary .summary-item .item-title {
color: #999;
}
body .summary .summary-item .item-text {
margin-top: 12px;
font-size: 1.5rem;
}
body .main-article {
width: 100%;
margin-top: 50px;
padding-bottom: 50px;
line-height: 1.75;
}
body .main-article h4 {
margin-top: 60px;
margin-bottom: 20px;
font-size: 1.25em;
}
body .main-article p {
margin-bottom: 20px;
color: #777;
font-size: 1.125em;
}
body .main-article blockquote {
position: relative;
margin: 40px 0;
padding: 40px;
background-color: #f8f8f8;
border-radius: 16px;
}
body .main-article blockquote::before {
content: url("https://icons.craftwork.design/static/media/QuotesFill.f65b03951f44e212816420b00909f4df.svg");
position: absolute;
top: -10px;
left: -10px;
transform: scale(2);
opacity: 0.1;
}
body .main-article blockquote::after {
content: url("https://icons.craftwork.design/static/media/QuotesFill.f65b03951f44e212816420b00909f4df.svg");
position: absolute;
bottom: -10px;
right: -10px;
transform: scale(2) rotate(180deg);
opacity: 0.1;
}
body .main-article .gallery {
display: grid;
gap: 20px;
grid-template-areas: "img1 img1 img2 img3" "img1 img1 img4 img5";
min-height: 400px;
margin-top: 40px;
}
body .main-article .gallery .image-item {
min-height: 200px;
background-color: #eee;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 8px;
transition: 250ms;
}
body .main-article .gallery .image-item:hover {
opacity: 0.9;
cursor: pointer;
}
body .main-article .gallery .image-1 {
grid-area: img1;
}
body .main-article .gallery .image-2 {
grid-area: img2;
}
body .main-article .gallery .image-3 {
grid-area: img3;
}
body .main-article .gallery .image-4 {
grid-area: img4;
}
body .main-article .gallery .image-5 {
grid-area: img5;
}
body .main-article .gallery .gallery-mask {
position: fixed;
top: 0;
left: 0;
z-index: 1;
width: 100vw;
height: 100vh;
padding: 40px;
background-color: #22222288;
transition: 500ms;
}
body .main-article .gallery .gallery-mask img {
width: 100%;
height: 100%;
-o-object-fit: contain;
object-fit: contain;
transition: 500ms;
}
body .main-article .gallery .mask-off {
visibility: hidden;
background-color: #22222200;
}
body .main-article .gallery .mask-off img {
visibility: hidden;
opacity: 0;
}
@media screen and (max-width: 1024px) {
body {
padding: 50px;
}
body article header .lower-header .subtitle {
width: 100%;
}
}
@media screen and (max-width: 768px) {
body article header .lower-header .title {
word-break: break-all;
}
body article .summary {
flex-direction: column;
}
body article .summary .summary-item:not(:last-child) {
padding-bottom: 30px;
}
body article .main-article .gallery {
grid-template-areas: "img1 img1" "img1 img1" "img2 img3" "img4 img5";
}
}
@media screen and (max-width: 425px) {
body {
padding: 25px;
}
body article header .upper-header .date-since {
display: none;
}
}
#myInput {
background-image: url('/css/searchicon.png');
/* 添加搜索按钮 */
background-position: 10px 12px;
/* 定位搜索按钮 */
background-repeat: no-repeat;
/* 图片不重复 */
width: 100%;
/* 全屏幕显示 */
font-size: 16px;
/* 字体大小 */
padding: 12px 20px 12px 40px;
/* 设置内边距 */
border: 1px solid #ddd;
/* 添加灰色边框 */
margin-bottom: 12px;
/* 添加顶部的外边距 */
}
#myTable {
border-collapse: collapse;
/* 折叠边框 */
width: 100%;
/* 全屏幕显示 */
border: 1px solid #ddd;
/* 设置灰色边框 */
font-size: 18px;
/* 字体大小 */
}
#myTable th,
#myTable td {
text-align: left;
/* 文本靠左对齐 */
padding: 12px;
/* 设置内边距 */
}
#myTable tr {
/* 每一行设置底部边框*/
border-bottom: 1px solid #ddd;
}
#myTable tr.header,
#myTable tr:hover {
/* 表格头部设置背景 */
background-color: #f1f1f1;
}