-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
89 lines (72 loc) · 1.71 KB
/
index.css
File metadata and controls
89 lines (72 loc) · 1.71 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
/* 自定義滾動條樣式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(45, 45, 45, 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(45deg, #0891b2, #06b6d4);
border-radius: 4px;
transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(45deg, #0e7490, #0891b2);
}
::-webkit-scrollbar-corner {
background: transparent;
}
/* 細版滾動條適用於聊天記錄區域 */
.chat-scroll::-webkit-scrollbar {
width: 6px;
}
.chat-scroll::-webkit-scrollbar-thumb {
background: rgba(8, 145, 178, 0.6);
border-radius: 3px;
}
.chat-scroll::-webkit-scrollbar-thumb:hover {
background: rgba(8, 145, 178, 0.8);
}
/* 針對 Firefox 的滾動條樣式 */
* {
scrollbar-width: thin;
scrollbar-color: #0891b2 rgba(45, 45, 45, 0.3);
}
/* 平滑滾動 */
html {
scroll-behavior: smooth;
}
/* 隱藏部分元素的滾動條但保持滾動功能 */
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* 確保文字換行和防止水平溢出 */
.overflow-wrap-anywhere {
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}
/* 為長網址和代碼提供額外的換行支持 */
.break-anywhere {
word-break: break-all;
overflow-wrap: anywhere;
}
.highlighted-code-line {
background-color: var(--color-highlighted-line);
border-left: 4px solid var(--color-highlighted-line-indicator);
}
.numbered-code-line::before {
content: attr(data-line-number);
margin-left: -8px;
margin-right: 16px;
width: 1rem;
color: var(--color-text-weak);
text-align: right;
display: inline-block;
}