-
Notifications
You must be signed in to change notification settings - Fork 1
/
overtab.html
216 lines (185 loc) · 4.65 KB
/
overtab.html
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>OverTab</title>
<link rel="icon" type="image/png" href="icon.png" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
</style>
<style id="style">
:root {
--brand-color: #9234df;
--bg-color: #fff;
--text-color: rgb(1, 9, 17);
--window-border-color: #ecedee;
--tab-bg-hover: #0000000a;
}
@media (prefers-color-scheme: dark) {
:root {
--brand-color: #b75cff;
--bg-color: rgb(37, 36, 51);
--text-color: rgb(221, 235, 251);
--window-border-color: rgb(26, 20, 34);
--tab-bg-hover: #ffffff0a;
}
}
.flex { display: flex; }
html, body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
::placeholder {
color: var(--text-color);
}
#windows {
display: flex;
flex-direction: column;
}
.window {
padding-bottom: 25px;
margin-bottom: 25px;
border-bottom: 8px solid var(--window-border-color);
}
.subgroup {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 2fr));
border-bottom: 3px solid var(--window-border-color);
margin-bottom: 10px;
padding-bottom: 10px;
contain: content;
}
.subgroup:last-child {
border-bottom: none;
}
.tabIcon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: sub;
margin-right: 0.3em;
}
.tabTitle {
height: 1em;
}
.tab {
cursor: pointer;
padding: 5px 10px;
white-space: nowrap;
overflow: hidden;
font-size: 0.9em;
contain: content;
}
.tab:hover {
background-color: var(--tab-bg-hover);
}
.tabHighlighted {
box-shadow: 0px 0px 6px rgba(147, 138, 255, 0.5);
}
.tabActive {
box-shadow: 0px 0px 6px rgba(147, 138, 255, 1.0);
}
.tabPopover {
min-height: 20px;
max-width: 512px;
background: var(--bg-color);
padding: 8px;
border: 2px solid var(--brand-color);
word-wrap: anywhere;
overflow: auto;
font-size: 1.05em;
}
.tabPopoverTitle {
padding-bottom: 1em;
}
form {
display: flex;
gap: 10px;
}
#queryInput, #queryNegativeInput {
flex: 1;
padding: 5px;
font-size: 1.1em;
}
input, select {
background-color: var(--window-border-color);
border: 1.5px solid var(--brand-color);
border-radius: 5px;
color: var(--text-color);
}
.header {
display: flex;
flex-direction: column;
gap: 5px;
border-bottom: 2px solid var(--window-border-color);
margin: 10px;
}
.separator {
color: var(--brand-color);
font-size: 1.1em;
font-weight: bolder;
font-family: monospace;
padding: 0 10px 0 10px;
}
.extra-scroll {
height: 50vh
}
.viewSettings {
display: flex;
gap: 12px;
font-family: monospace;
margin: 2px 0;
}
.viewSettings > div {
display: flex;
align-items: center;
}
.close-tab-on-click .tab:hover { color: #ff4c4c; }
.discard-tab-on-click .tab:hover { color: #4f6aff; }
#filterByContainer {
padding: 2px;
font-size: 0.8em;
}
</style>
</head>
<body>
<div class="header">
<div>
<form>
<input
id='queryInput'
autocomplete="off"
type='text' value=''
placeholder='Search...'
autofocus
/>
<input
id='queryNegativeInput'
autocomplete="off"
type='text' value=''
placeholder='Exclude tabs... (regex)'
autofocus
/>
</form>
</div>
<div class="viewSettings">
<div><input id="queryIsRegex" type="checkbox"/> <div>Regex</div></div>
<div><input id="sortByUrl" type="checkbox"/> <div>Sort by URL</div></div>
<div><input id="splitByTime" type="checkbox"/> <div>Split by time</div></div>
<div><input id="showOnlyInRam" type="checkbox"/> <div>Only in RAM</div></div>
<div id="filterByContainerEl" style="display: none;">
<select id="filterByContainer">
<option value="">All containers</option>
</select>
</div>
</div>
</div>
<div id="root"></div>
<script src="./page.js" e="text/javascript"></script>
</body>
</html>