-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
186 lines (159 loc) · 3.3 KB
/
styles.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
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #27262b;
}
nav.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #27262b;
color: white;
padding: 10px 60px;
border-bottom: 1px solid #4a4a4a;
font-family: 'Microsoft YaHei', sans-serif;
font-size: 1.3em;
height: 60px;
}
nav.navbar a {
color: white;
text-decoration: none;
}
nav.navbar .right-links {
margin-left: auto;
display: flex; /* 使用flex布局 */
gap: 25px; /* 设置间隔 */
gap: 25px; /* 设置间隔 */
}
div.content {
margin: 20px auto 100px;
padding: 20px;
background-color: #27262b;
border: 1px solid #27262b;
color: white;
max-width: 1000px;
width: 50%;
box-sizing: border-box;
text-align: center;
}
.content-image {
width: 100%;
border-radius: 22px;
height: auto;
margin-bottom: 20px;
margin-top: 130px;
}
.image-container {
margin-top: 60px;
text-align: center;
}
.image-container img {
width: 90%;
border-radius: 22px;
height: auto;
}
.content-title h1 {
font-size: 2em;
font-family: 'Microsoft YaHei', Courier, monospace;
line-height: 0.5em;
}
a {
color: white;
text-decoration-line: underline;
font-size: 0.9em;
}
button.rounded-button {
background-color: #4a4a4a;
color: white;
border: none;
padding: 10px 20px;
font-size: 1em;
border-radius: 25px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
margin-bottom: 60px;
}
button.rounded-button:hover {
background-color: #666;
transform: scale(1.05);
}
footer.footer {
position: relative;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background-color: #27262b;
color: white;
display: flex;
align-items: center;
padding: 0 20px;
box-sizing: border-box;
border-top: 1px solid #4a4a4a;
justify-content: center;
font-family: 'Microsoft YaHei', Courier, monospace;
letter-spacing: 1.5px;
}
div.footer-left {
text-align: left;
margin-right: 30px;
flex: 1;
max-width: 300px;
}
div.footer-right {
display: flex;
justify-content: flex-end;
gap: 28px;
margin-left: 30px;
flex: 2;
max-width: 500px;
}
img.icon {
width: 30px;
height: 30px;
}
.link-with-margin {
margin-bottom: 190px;
}
/* 媒体查询 */
@media (max-width: 600px) {
nav.navbar {
padding: 10px 20px; /* 减小内边距 */
font-size: 1.3em; /* 减小字体 */
font-weight: 500;
letter-spacing: 0.5px; /* 设置字间距为 2 像素 */
}
nav.navbar .left-links {
margin-left: 20px; /* 增加左侧边距 */
}
nav.navbar .right-links {
margin-left: auto; /* 将中间链接推到右侧 */
display: flex; /* 使用flex布局 */
gap: 20px; /* 设置间隔 */
}
div.content {
width: 90%; /* 增加宽度以适应小屏幕 */
padding: 15px; /* 减小内边距 */
}
.content-title h1 {
font-size: 1.5em; /* 减小字体大小 */
}
.content-image {
margin-top: 30px;
}
button.rounded-button {
font-size: 0.9em; /* 减小字体 */
padding: 8px 15px; /* 减小内边距 */
}
img.icon {
width: 24px; /* 减小图标大小 */
height: 24px;
}
div.footer-left {
flex: 2; /* 增加左侧区域宽度 */
font-size: 0.8em; /* 减小字体大小 */
}
div.footer-right {
flex: 1; /* 保持右侧区域宽度 */
}
}