-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnavigation.css
More file actions
64 lines (58 loc) · 1.98 KB
/
navigation.css
File metadata and controls
64 lines (58 loc) · 1.98 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
/* navigation.css */
#slide-navigation-controls {
position: fixed;
bottom: 30px; /* 稍微调高一点,避免与页脚重叠太多 */
left: 50%;
transform: translateX(-50%);
z-index: 1000; /*确保在最上层*/
background-color: rgba(40, 40, 40, 0.7); /* 更深一点的背景,增加对比度 */
padding: 12px 25px;
border-radius: 30px;
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
display: flex;
gap: 20px; /* 按钮之间的间距 */
transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
opacity: 0.8; /* 默认稍微透明 */
}
#slide-navigation-controls:hover {
opacity: 1; /* 悬停时不透明 */
}
#slide-navigation-controls button {
background-color: #FF6B00; /* 主题橙色 */
color: white;
border: none;
padding: 12px 22px;
border-radius: 25px;
font-size: 1rem; /* 16px */
font-family: 'Open Sans', 'Noto Sans SC', sans-serif;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
display: inline-flex; /* 使图标和文字在同一行并居中 */
align-items: center;
gap: 8px; /* 图标和文字的间距 */
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
#slide-navigation-controls button:hover:not(:disabled) {
background-color: #E65C00; /* 深一点的橙色 */
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#slide-navigation-controls button:active:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
#slide-navigation-controls button:disabled,
#slide-navigation-controls button.disabled {
background-color: #757575; /* 更柔和的禁用灰色 */
color: #c0c0c0;
opacity: 0.6;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
/* 确保 FontAwesome 图标正确显示 */
#slide-navigation-controls button .fas {
font-size: 0.9em; /* 调整图标大小 */
line-height: 1; /* 确保图标垂直居中 */
}