-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
163 lines (145 loc) · 3.34 KB
/
Copy pathcontent.css
File metadata and controls
163 lines (145 loc) · 3.34 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
/* QuickTab - Tab Switcher Panel */
/* ========== 遮罩层 ========== */
.tabsnap-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 2147483646;
}
/* ========== 面板 ========== */
.tabsnap-panel {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(30, 30, 30, 0.72);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
z-index: 2147483647;
padding: 12px;
max-width: 90vw;
max-height: 80vh;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
/* ========== 卡片列表 ========== */
.tabsnap-grid {
display: flex;
flex-direction: column;
gap: 2px;
overflow-y: auto;
}
.tabsnap-grid::-webkit-scrollbar {
width: 4px;
}
.tabsnap-grid::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
/* ========== 卡片 ========== */
.tabsnap-card {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
background: transparent;
border-radius: 0;
cursor: pointer;
outline: none;
border-left: 2px solid transparent;
min-width: 300px;
max-width: 500px;
transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tabsnap-card:hover {
background: rgba(255, 255, 255, 0.08);
}
.tabsnap-card:focus {
background: rgba(59, 130, 246, 0.2);
border-left-color: rgba(59, 130, 246, 0.8);
box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}
/* 当前标签 - 右侧小标签 */
.tabsnap-card.tabsnap-current::after {
content: 'Current';
flex-shrink: 0;
font-size: 10px;
color: rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.08);
padding: 2px 6px;
border-radius: 3px;
}
/* ========== Favicon ========== */
.tabsnap-favicon {
width: 20px;
height: 20px;
flex-shrink: 0;
border-radius: 4px;
}
/* ========== 文本区域 ========== */
.tabsnap-card-text {
display: flex;
flex-direction: column;
overflow: hidden;
flex: 1;
gap: 1px;
}
.tabsnap-card-title {
color: rgba(255, 255, 255, 0.9);
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tabsnap-card-url {
color: rgba(255, 255, 255, 0.35);
font-size: 11px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ========== 快捷键提示 ========== */
.tabsnap-hints {
display: flex;
gap: 6px;
justify-content: center;
padding: 8px 12px 4px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
margin-top: 6px;
color: rgba(255, 255, 255, 0.45);
font-size: 11px;
}
.tabsnap-hints span {
display: flex;
align-items: center;
gap: 4px;
}
.tabsnap-hints span + span::before {
content: '·';
margin-right: 2px;
color: rgba(255, 255, 255, 0.25);
}
.tabsnap-hints kbd {
display: inline-block;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
padding: 1px 5px;
font-family: inherit;
font-size: 10px;
line-height: 1.4;
color: rgba(255, 255, 255, 0.6);
}
/* ========== 空状态 ========== */
.tabsnap-empty {
color: rgba(255, 255, 255, 0.5);
text-align: center;
padding: 20px;
font-size: 13px;
}