-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
132 lines (113 loc) · 1.9 KB
/
styles.css
File metadata and controls
132 lines (113 loc) · 1.9 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
/* 基础样式 */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f0f8ff;
}
/* 头部样式 */
header {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 2rem 0;
position: relative;
}
/* 网站图标样式 */
.site-logo {
font-family: 'Arial', sans-serif;
font-size: 24px;
font-weight: bold;
color: white;
text-decoration: none;
position: absolute;
left: 20px;
top: 20px;
}
.site-logo .domain {
color: #17b978;
}
.site-logo .uk {
background: #ff6b6b;
color: white;
padding: 2px 5px;
border-radius: 4px;
margin-left: 2px;
}
/* 容器样式 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* 导航样式 */
nav {
margin: 15px 0;
}
nav a {
color: white;
text-decoration: none;
margin: 0 10px;
padding: 5px;
transition: color 0.3s ease;
}
nav a:hover {
color: #17b978;
}
/* 标题样式 */
h1 {
margin-top: 40px;
}
h2 {
color: #2c3e50;
margin: 1.5rem 0;
}
h3 {
color: #2c3e50;
margin: 20px 0 10px 0;
}
/* 页脚样式 */
footer {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
}
footer nav a {
color: white;
margin: 0 10px;
text-decoration: none;
}
/* 响应式设计 */
@media (max-width: 768px) {
.site-logo {
position: relative;
left: 0;
top: 0;
margin-bottom: 20px;
display: inline-block;
}
header h1 {
margin-top: 10px;
}
.container {
padding: 1rem;
}
}
/* 通用卡片样式 */
.card {
background: white;
padding: 1.5rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
}
/* 列表样式 */
ul, ol {
padding-left: 20px;
}
li {
margin-bottom: 0.5rem;
}