-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
154 lines (130 loc) · 2.71 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
/* 基本样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
img {}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
}
/* 页眉样式 */
header {
background: #35424a;
color: #ffffff;
padding: 20px 0;
}
header h1 {
text-align: center;
}
header ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
}
header li {
margin: 0 15px;
}
header a {
color: #ffffff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s; /* 添加渐变效果 */
}
header a:hover {
text-decoration: underline;
color: #ffcc00; /* 悬停时改变颜色 */
}
/* 主体样式 */
main {
padding: 20px;
}
section {
display: none; /* 初始状态下隐藏所有区域 */
background: #ffffff;
padding: 20px;
margin: 10px 0;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* 针对 #report 自定义样式 */
#report {
background: #eef5f9; /* 报告背景颜色 */
border: 2px solid #007bff; /* 边框颜色 */
border-radius: 8px; /* 圆角边框 */
padding: 20px; /* 内边距 */
margin: 10px 0; /* 外边距 */
position: relative; /* 定位 */
}
#report h2 {
color: #007bff; /* 报告标题颜色 */
margin-bottom: 15px; /* 下边距 */
}
#report p {
margin-bottom: 10px; /* 段落下边距 */
}
#report img {
max-width: 100%;
height: auto;
border-radius: 5px; /* 图片圆角 */
}
/* 清除浮动方法 */
.clearfix::after {
content: '';
display: table;
clear: both;
}
/* 返回按钮样式 */
.back-button {
display: inline-block;
margin: 10px 0;
padding: 10px 15px;
background: #35424a;
color: #ffffff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s, transform 0.2s; /* 添加渐变与缩放效果 */
}
.back-button:hover {
background-color: #ffcc00; /* 悬停时改变背景色 */
transform: scale(1.05); /* 悬停时稍微放大 */
}
/* 项目目录列表样式 */
#projects ul {
list-style-type: disc; /* 有序列表样式 */
margin-left: 20px; /* 左侧内边距 */
}
footer {
background: #35424a;
color: #ffffff;
text-align: center;
padding: 10px 0;
position: relative;
bottom: 0;
width: 100%;
}
h2 {
margin-top: 20px; /* 为标题增加上边距 */
}
#home>img{
float: left;
}
#text>.talking{
border-color: #007bff;
border-width: 1px;
border-style: dotted;
/*background-color: #285d96;*/
border-radius: 2px;
margin: 3px;
}
#text>.talking>h2{
text-decoration-line: underline;
text-align: center;
}
#text>.talking>p{
text-indent: 2em;
}