-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
189 lines (157 loc) · 3.38 KB
/
styles.css
File metadata and controls
189 lines (157 loc) · 3.38 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
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #f5f5f5;
padding: 20px;
text-align: center;
}
.course-info-container {
background-color: #fff;
border: 0.5px solid #ddd; /* 修改边框宽度为 0.5px */
border-radius: 15px; /* 圆角 */
padding: 20px;
margin: 20px auto;
max-width: 80%;
box-shadow: 0 2px 4px rgba(154, 153, 153, 0.1);
}
.course-info {
display: flex;
align-items: center;
}
.course-title-img {
width: 600px; /* 调整为与目标图片相同的宽度 */
/*height: 250px; /* 调整为与目标图片相同的高度 */
margin-right: 1%;
margin-left: 5%; /* 右侧间距 */
padding-top: 0%;
}
.course-details {
flex: 1;
padding-top: 0%;
}
.course-details h1 {
position: relative;
top: 0px;
}
.gray-rounded-box {
background-color: #cdcaca;
padding: 10%;
border-radius: 8%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.gray-rounded-box {
background-color: #f5f5f5; /* 修改背景颜色为浅灰色 */
padding: 20px; /* 调整内边距 */
border-radius: 10px; /* 调整圆角大小 */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.course-info-table {
width: 100%;
border-collapse: collapse;
}
.course-info-table caption {
font-size: 16px;
font-weight: bold;
margin-bottom: 10px;
}
.course-info-table th,
.course-info-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
white-space: nowrap; /* 新增:防止文字换行 */
font-size: 10px; /* 修改:设置文字字号为 14px(可以根据需要调整) */
}
.course-info-table th {
background-color: #f0f0f0; /* 表头背景颜色 */
}
.course-details p {
margin: 10px 0;
}
.course-details button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
}
main {
display: flex;
margin: 20px;
}
/* styles.css */
.details summary {
cursor: pointer;
font-weight: bold;
}
.section-content {
margin-left: 20px;
}
.section-content h3 {
margin-top: 10px;
}
.course-content {
flex: 3;
padding: 20px;
border-right: 1px solid #ddd;
}
.course-content h2 {
margin-top: 0;
}
.sidebar {
flex: 1;
padding: 20px;
}
.university-logo img {
width: 200px;
}
.instructors ul, .recommended-courses ul {
list-style: none;
padding: 0;
}
/* 新增链接样式 */
.instructors a {
color: #007bff; /* 链接颜色 */
text-decoration: none; /* 移除下划线 */
transition: color 0.3s; /* 颜色过渡效果 */
}
.instructors a:hover {
color: #0056b3; /* 鼠标悬停时的颜色 */
text-decoration: underline; /* 鼠标悬停时显示下划线 */
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
}
.footer-content nav ul {
list-style: none;
padding: 0;
}
.footer-content nav ul li {
display: inline;
margin: 0 10px;
}
/* 新增固定图标样式 */
.fixed-icon {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 1000; /* 确保图标在其他内容之上 */
}
.fixed-icon img {
width: 50px; /* 可根据实际图标大小调整 */
height: 50px;
}
header {
background-color: #fff;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}