Repository navigation
Expand file tree
/
Copy pathstylesheet.css
More file actions
257 lines (214 loc) · 4.28 KB
/
Copy pathstylesheet.css
File metadata and controls
257 lines (214 loc) · 4.28 KB
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
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 自适应列数 */
gap: 12px; /* 照片间距 */
}
.gallery img {
width: 100%;
height: 100%;
aspect-ratio: 4 / 3; /* 固定比例,可改为 1/1 等 */
object-fit: cover; /* 居中裁剪,保持整齐 */
border-radius: 10px;
display: block;
}
.four-photos {
display: flex;
flex-wrap: wrap; /* 超过4个人自动换行 */
gap: 20px 12px; /* 行间距20px,列间距12px */
max-width: 900px;
margin: 0 auto;
}
.four-photos figure {
flex: 0 0 calc((100% - 36px) / 4); /* 每行4个人 */
margin: 0;
text-align: center;
box-sizing: border-box;
}
.four-photos img {
width: 100%;
height: 210px;
object-fit: cover;
border-radius: 8px;
}
.four-photos figcaption {
margin-top: 8px;
font-size: 14px;
}
figcaption {
text-align: center;
}
.container {
max-width: 950px; /* 和正文一样的宽度 */
margin: 0 auto; /* 居中 */
padding: 0 20px; /* 内边距,避免文字贴边 */
}
.content {
max-width: 950px; /* 最大宽度,比如 800px */
margin: 0 auto; /* 左右自动居中 */
padding: 20px; /* 内边距,避免文字贴边 */
line-height: 1.6; /* 行间距,更好阅读 */
}
html {
scroll-behavior: smooth; /* 点击锚点平滑滚动 */
font-family: Helvetica Neue, sans-serif;
}
/* 导航栏容器 */
.navbar {
position: fixed; /* 固定在顶部 */
top: 0;
left: 0;
width: 100%;
background-color: #fff;
border-bottom: 2px solid #eee;
overflow: hidden;
padding: 10px 0;
z-index: 1000; /* 确保在最上层 */
}
.navbar .container {
padding: 0;
display: flex; /* 横向排布 */
justify-content: flex-end; /* 让链接平均分布 */
gap: 20px;
}
/* 按钮风格导航 */
.nav-btn {
padding: 8px 8px;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
color: #777777;
background: #fff;
transition: all 0.2s ease;
}
/* 悬停效果 */
.nav-btn:hover {
background: #fff; /* 主色 */
color: #333;
text-decoration: underline;
}
/* 当前选中(高亮) */
.nav-btn.active {
background: #2b6aff;
color: white;
}
/* .navbar a {
color: #f2f2f2;
text-decoration: none;
padding: 14px 20px;
}
.navbar a:hover {
background-color: #ddd;
color: black;
} */
/* 给正文留出顶部空间,避免被导航栏挡住 */
section {
padding: 20px 0;
margin-top: 20px;
scroll-margin-top: 60px;
}
a {
/* color: #196CD1; */
color: #2470ce;
text-decoration: none;
}
a:focus,
a:hover,
author:focus,
author:hover {
/* color: #B908C5; */
text-decoration: underline;
}
body,
td,
th,
li,
tr{
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
color: #404040;
line-height: 1.4;
}
p{
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
color: #404040;
margin:0;
line-height: 1.4;
}
papertext,
author{
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
color: #777777;
line-height: 1.4;
}
a{
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
}
strong {
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
color: #333333;
}
heading{
font-family: "Helvetica Neue", sans-serif;
font-size: 22px;
color: #333333;
}
talktitle,
papertitle {
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
font-weight: 700;
color: #333333;
line-height: 1.4;
}
name {
font-family: "Helvetica Neue", sans-serif;
font-size: 36px;
color: #333333;
line-height: 1.8;
}
.one {
width: 160px;
height: 160px;
position: relative;
}
.two {
width: 160px;
height: 160px;
position: absolute;
transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-webkit-transition: opacity .2s ease-in-out;
}
.fade {
transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-webkit-transition: opacity .2s ease-in-out;
}
span.highlight {
background-color: #ffffd0;
}
h2{
font-family: "Helvetica Neue", sans-serif;
font-size: 20px;
margin:0;
line-height: 3;
color: #333333;
}
h3{
font-family: "Helvetica Neue", sans-serif;
font-size: 18px;
color: #333333;
}
h4{
font-family: "Helvetica Neue", sans-serif;
font-size: 16px;
margin:0;
color: #333333;
}
ul {
margin: 0;
}