-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
153 lines (138 loc) · 3.77 KB
/
popup.html
File metadata and controls
153 lines (138 loc) · 3.77 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: sans-serif;
margin: 12px;
min-width: 320px;
background: #f9f9f9;
color: #333;
}
h2 {
margin-top: 0;
font-size: 16px;
color: #222;
}
button {
display: inline-block;
margin: 4px 4px 12px 0;
padding: 6px 12px;
font-size: 13px;
border: none;
border-radius: 6px;
cursor: pointer;
background: #007bff;
color: white;
transition: background 0.2s;
}
button:hover {
background: #0056b3;
}
#priority-tabs {
display: flex;
flex-direction: column;
gap: 6px;
}
.tab-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px;
background: white;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
font-size: 13px;
line-height: 1.4;
}
.tab-key {
display: inline-block;
min-width: 18px;
padding: 2px 6px;
margin-right: 6px;
background: #e0e0e0;
color: #333;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
text-align: center;
font-family: monospace;
}
.tab-title {
flex: 1;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin: 0 8px;
cursor: default;
}
.delete-btn {
background: transparent;
border: none;
color: #900;
cursor: pointer;
font-size: 14px;
padding: 2px 6px;
border-radius: 4px;
transition: all 0.2s ease;
}
.delete-btn:hover {
outline: 1px solid #900;
background: rgba(255, 0, 0, 0.05);
}
.tab-item span {
display: block;
color: #555;
font-size: 12px;
margin-top: 2px;
}
@keyframes blink-border {
0% { box-shadow: 0 0 0 0 red; }
50% { box-shadow: 0 0 6px 2px red; }
100% { box-shadow: 0 0 0 0 red; }
}
.tab-item.blink {
animation: blink-border 0.8s ease-in-out 2;
}
button svg {
vertical-align: middle;
margin-right: 4px;
}
</style>
</head>
<body>
<h2>Priority Tabs</h2>
<button id="add">
<svg width="16" height="16" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round"
style="vertical-align: middle; margin-right: 4px;">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
Add Current Tab
</button>
<button id="flush">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/>
<path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/>
</svg>
Remove all
</button>
<button id="refresh" display="none">
<svg width="14" height="14" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round"
style="vertical-align: middle; margin-right: 4px;">
<polyline points="23 4 23 10 17 10"></polyline>
<polyline points="1 20 1 14 7 14"></polyline>
<path d="M3.51 9a9 9 0 0114.13-3.36L23 10"></path>
<path d="M20.49 15a9 9 0 01-14.13 3.36L1 14"></path>
</svg>
Refresh
</button>
<div id="priority-tabs"></div>
<script src="./scripts/popup.js" type="module"></script>
</body>
</html>