-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.css
319 lines (283 loc) · 14.1 KB
/
custom.css
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
/**
* Vivaldi developer tools: vivaldi.exe --debug-packed-apps, or go to start page and Quick Command: Toggle Developer Tools (Ctrl+Shift+I)
*/
/*
* Hide the bookmark, reader mode, blocked content, blocked motion sensors, and address dropdown buttons in the address bar
* Leave the QR code, translate, and RSS buttons visible
*/
.UrlBar-AddressField .toolbar.toolbar-small button[title="Reader View"], /* Reader View */
.UrlBar-AddressField .BookmarkButton, /* Bookmark */
.UrlBar-AddressField .toolbar.toolbar-small button[title="Show typed history"], /* Address dropdown */
.UrlBar-AddressField .toolbar.toolbar-small button[title="Content has been blocked."], /* Cookies or other contents were blocked */
.button-addressfield.permission-popup:has(> .ToolbarButton-Button[title $= ' motion sensors.']) /* Motion sensors were blocked */
{
display: none;
}
.UrlBar-AddressField .pageload .pageload-ticker:last-child {
margin-right: 0;
border-right: none;
}
/* Hide extensions overflow menu next to the address bar.
* You can show and hide extension buttons using Ctrl+E or Settings > Address Bar > Extension Visibility.
* - When set to "Toggle Only Hidden Extensions", any extension buttons that have been marked as Show Button (from the button context menu) will be visible.
* - When set to "Toggle All Extensions", all extension buttons will be hidden.
*/
.toolbar-extensions > .ExtensionToggleIcon {
display: none;
}
.toolbar-extensions {
min-width: initial !important;
}
/* Hide new tab button */
.button-toolbar.newtab {
display: none;
}
/* Make tabs fill in remaining empty horizontal space */
#tabs-container.top > .resize {
margin-right: 5px;
}
.win.maximized #tabs-container.top > .resize {
margin-right: 2px;
}
/* Hide Vivaldi menu button */
#titlebar .vivaldi {
display: none;
}
.win #tabs-container:not(.none).top {
padding-left: 0;
}
/* Hide Extended Validation certificate organization name */
.UrlBar-AddressField .SiteInfoButton.certified .siteinfo-text {
display: none;
}
#browser:not(.private) .SiteInfoButton,
#browser:not(.private) .SiteInfoButton-SecurityBadge {
border-top-left-radius: var(--radiusRoundedLess);
border-bottom-left-radius: var(--radiusRoundedLess);
}
/* Make the Extended Validation lock icon be the same color as the normal one */
.UrlBar-AddressField .SiteInfoButton.certified {
fill: var(--colorFgFadedMore);
}
/* Reduce rounded corners of progress bar peeking through */
.UrlBar-AddressField .pageload .pageload-indicator::-webkit-progress-value {
border-radius: 0 !important;
}
/* Fix URL text in address bar being too low by 1px, should be vertically centered */
.UrlBar-UrlFieldWrapper {
margin-top: -1px;
}
/* Hide focus border on address field */
.UrlBar-AddressField:focus-within,
.SearchField:focus-within,
.MailSearchField-Inner:focus-within {
outline: none !important;
}
/* Remove extra space above tabs */
#browser.tabs-top.address-top.win:not(.fullscreen, .disable-titlebar) #header {
min-height: calc(28px / var(--uiZoomLevel));
}
#browser.tabs-top.stacks-substrip #header:has(#tabs-subcontainer) {
height: calc(65px / var(--uiZoomLevel));
}
.win.normal #tabs-tabbar-container.top {
padding-top: 0;
}
/* Make title bar buttons (minimize, maximize/restore, close) the correct height for our thinner tab bar */
#tabs-container {
min-height: 28px;
}
.tabs-top.address-top#browser.win:not(.fullscreen, .disable-titlebar) #tabs-tabbar-container,
#titlebar .window-buttongroup button:not(.vivaldi),
#titlebar .window-buttongroup button:not(.vivaldi) {
height: 28px !important;
}
.tab-position .tab .tab-header {
flex-basis: 28px;
padding-top: 6px;
padding-bottom: 4px;
}
.toolbar-tabbar > .button-toolbar > button {
height: 28px;
width: 28px;
min-height: auto;
min-width: auto;
}
/* Make close button red colors the same as Windows 10 Explorer in dark mode */
#browser.win #header #titlebar .window-buttongroup button.window-close:hover:active {
background-color: #8b0a14;
}
#browser.win #header #titlebar .window-buttongroup button.window-close:hover {
background-color: #e81123;
}
/* Hide content blocker button in URL bar */
.ContentBlocker-Control {
display: none;
}
/* Get rid of Start Page background fading every single time you load it */
.startpage {
transition: none;
}
/*
* Hide the back and forward buttons.
* I'm not removing them using Customize › Remove From Toolbar because I still want to trigger synthetic right-clicks on them to show their context menus using custom.js.
*/
.toolbar-mainbar .button-toolbar:has(> button[aria-label = "Previous Page"]),
.toolbar-mainbar .button-toolbar:has(> button[aria-label = "Next Page"]) {
display: none !important;
}
.UrlBar {
height: 34px;
}
/* Clickable URL subdomain segments */
.UrlFragment-LinkWrapper:hover .UrlFragment--Highlight {
text-decoration: underline;
}
.UrlFragment-LinkWrapper:hover > .UrlFragment-Link:nth-child(1):hover {
text-decoration: unset;
}
.UrlFragment-LinkWrapper:hover > .UrlFragment-Link:nth-child(1):hover > span > span:hover,
.UrlFragment-LinkWrapper:hover > .UrlFragment-Link:nth-child(1):hover > span > span:hover ~ span {
text-decoration: underline;
}
/* Prevent modal dialogs (like Translate Page) from being positioned so they're cut off by the edge of the window when their opening button is hidden or very close to the window edge. */
.button-popup > #modal-bg {
left: unset;
right: 0;
transform: unset;
}
/* Give address bar some margins */
.UrlBar-AddressField {
margin: 0 5px;
}
/* Hide the Customize gear icon on the Speed Dial page */
.SpeedDialView-Settings-Button {
display: none;
}
/* Revert the address bar progress bar background color to the non-ugly 6.5 color, and make it more opaque */
.theme-dark.acc-dark .UrlBar-AddressField .pageload .pageload-indicator {
background-color: var(--colorAccentBg) !important;
opacity: 0.67;
}
/* Disable ugly Katie-style button gradients */
.toolbar-default .button-toolbar > button:enabled,
select:enabled:not([multiple], [size]),
.VivaldiSelector:not(:focus-within) .Inner__control,
.calendar-add-event-button,
#calendar_panel .PeriodPicker.PeriodPicker,
input[type=button]:not(.circular),
input[type=submit],
input[type=color],
.FormButton {
background-image: none;
}
/* Hide mail list filter view dropdown button, because the row of buttons is better */
.toolbar + .MailListButtons-FilterIcon {
display: none;
}
/* Get rid of ugly brown background on mail header hover */
.button-with-dropdown-container:hover,
.button-with-dropdown-container:focus-within,
.button-with-dropdown-container > button:hover,
.button-with-dropdown-container > button:focus-visible,
.button-with-dropdown-container:hover button:last-of-type:after,
.button-with-dropdown-container:focus-visible button:last-of-type:after,
.button-with-dropdown-container:focus-within button:last-of-type:after,
.button-with-dropdown-container:hover button:last-of-type:before,
.button-with-dropdown-container:focus-visible button:last-of-type:before,
.button-with-dropdown-container:focus-within button:last-of-type:before {
background-color: transparent;
}
/* On Windows 11, unmaximized windows remove the top 1px of the window client area, so restore it to make thindicators always the same height. Requires custom.js to let us detect Windows 11. */
body.win11 #browser.normal.tabs-top #header {
margin-top: 1px;
}
/**
* Skinny theme
*/
/* Active tab thindicator */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .tab-position .tab.active {
color: var(--colorHighlightBg) !important;
}
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f.hasfocus .tab-position .tab.active {
box-shadow: inset 0 2px 0 var(--colorHighlightBg);
border-top-left-radius: 0;
border-top-right-radius: 0;
}
/* No glow on active tab favicon */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .tab-position .tab.active .tab-header .favicon {
filter: none;
}
/* Only use thindicators to show active panel tab, not background color */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch .addwebpanel-wrapper > button.active,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch > .button-toolbar.active,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch > * > .button-toolbar.active,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch > button.active {
background-color: transparent;
color: var(--colorHighlightBg);
/*box-shadow: inset 1px 0 0 var(--colorHighlightBg);*/
}
/* Button hover */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .button-toolbar:not(.toolbar-spacer, .toolbar-spacer-flexible, .toolbar-divider):hover > button:not(:disabled) {
background-color: var(--colorHighlightBg);
background-image: none;
color: var(--colorFg);
fill: var(--colorFg);
}
/* Button hover: white icon on yellow button background drop shadow for increased contrast */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .button-toolbar:hover :is(svg, .button-title) {
/* If you update this style, be sure to update the embedded SVG image for the Google Messages icon below as well */
filter: drop-shadow(0 0 2px hsl(0deg 0% 0% / 58%));
}
/* Panel button hover */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch .button-toolbar:not(.toolbar-spacer, .toolbar-spacer-flexible, .toolbar-divider):hover > button {
margin-left: 3px;
padding-left: 3px;
}
/* Top toolbar hover and active states */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f :is(.mainbar, .MailListButtons) .button-toolbar:not(.toolbar-spacer, .toolbar-spacer-flexible, .toolbar-divider):hover > button {
border-radius: var(--radius);
}
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .MailListButtons .button-toolbar button {
border-width: 0;
}
/* Active mail folder */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected],
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] :is(.mail-parent, .mail-child) {
color: var(--colorHighlightBg);
fill: var(--colorHighlightBg);
background-color: transparent !important;
box-shadow: none;
}
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] .mail_entry .maildate,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] .mail_entry .status-indicators,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] .mail_entry .body_preview,
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] .mail_entry .mail-queued svg {
color: var(--colorHighlightBg);
}
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .vivaldi-tree .tree-row[data-selected] .unread svg {
fill: var(--colorHighlightBg);
}
/* Default mail flag color (even though semantically it's supposed to be red) */
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f .flag-color.flag-red svg {
fill: #ffaa00 !important;
}
/*
* Google Messages web panel icon
* Web panel icons can't be set to a custom icon by a theme
*/
#switch .button-toolbar-webpanel button[title *= "https://messages.google.com/web"],
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch .button-toolbar-webpanel.active:hover button[title *= "https://messages.google.com/web"] {
background-origin: content-box;
background-clip: border-box;
background-repeat: no-repeat;
background-position: center;
background-size: 28px;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI4IDI4IiBzdHlsZT0iZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMnB4IGhzbCgwZGVnIDAlIDAlIC8gNTglKSkiPjxwYXRoIGQ9Ik0xOC4zNiw5LjVjMS4xNjIsMCwyLjE1Mi45OSwyLjE0LDIuMTY0djQuNjgzYzAsMS4xNjItLjk5LDIuMTUyLTIuMTUyLDIuMTUyaC03LjgzYy0xLjE2MiwwLTIuMDE4LS45NzgtMi4wMTgtMi4xNTJ2LTMuNDczbC0xLjQ4LTIuNTY4Yy0uMzA2LS40MTYtLjA0OS0uODA3LjQwMy0uODA3aDEwLjkzNk0xOC4zNiw4SDcuNDI0Yy0uNzkyLDAtMS40OTMuNDE1LTEuODMxLDEuMDgzLS4zMjYuNjQ0LS4yNjUsMS4zOTUuMTYsMi4wMjhsMS4yNDgsMi4xNjV2My4wNzJjMCwyLjA0OCwxLjU0NSwzLjY1MiwzLjUxOCwzLjY1Mmg3LjgzYzEuOTgsMCwzLjY1Mi0xLjY3MiwzLjY1Mi0zLjY1MnYtNC42ODNjLjAxLS45NTMtLjM2Ny0xLjg3NC0xLjA2MS0yLjU3NS0uNjg1LS42OTItMS42MjUtMS4wODktMi41NzgtMS4wODloMFoiIGZpbGw9IiNlMGUwZTAiLz48cGF0aCBkPSJNMTksMTMuNWMwLC4yNzUtLjIyNS41LS41LjVoLThjLS4yNzUsMC0uNS0uMjI1LS41LS41cy4yMjUtLjUuNS0uNWg4Yy4yNzUsMCwuNS4yMjUuNS41Wk0xNi41LDE1aC02Yy0uMjc1LDAtLjUuMjI1LS41LjVzLjIyNS41LjUuNWg2Yy4yNzUsMCwuNS0uMjI1LjUtLjVzLS4yMjUtLjUtLjUtLjVaTTEwLjUsMTJoOGMuMjc1LDAsLjUtLjIyNS41LS41cy0uMjI1LS41LS41LS41aC04Yy0uMjc1LDAtLjUuMjI1LS41LjVzLjIyNS41LjUuNVoiIGZpbGw9IiNlMGUwZTAiIGZpbGwtb3BhY2l0eT0iLjM1Ii8+PC9zdmc+) !important;
}
#browser.theme-id-4be75c70-9226-49b8-8410-eb67529ab81f #switch .button-toolbar-webpanel.active button[title *= "https://messages.google.com/web"] {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDI4IDI4Ij48cGF0aCBkPSJNMTguMzYsOS41YzEuMTYyLDAsMi4xNTIuOTksMi4xNCwyLjE2NHY0LjY4M2MwLDEuMTYyLS45OSwyLjE1Mi0yLjE1MiwyLjE1MmgtNy44M2MtMS4xNjIsMC0yLjAxOC0uOTc4LTIuMDE4LTIuMTUydi0zLjQ3M2wtMS40OC0yLjU2OGMtLjMwNi0uNDE2LS4wNDktLjgwNy40MDMtLjgwN2gxMC45MzZNMTguMzYsOEg3LjQyNGMtLjc5MiwwLTEuNDkzLjQxNS0xLjgzMSwxLjA4My0uMzI2LjY0NC0uMjY1LDEuMzk1LjE2LDIuMDI4bDEuMjQ4LDIuMTY1djMuMDcyYzAsMi4wNDgsMS41NDUsMy42NTIsMy41MTgsMy42NTJoNy44M2MxLjk4LDAsMy42NTItMS42NzIsMy42NTItMy42NTJ2LTQuNjgzYy4wMS0uOTUzLS4zNjctMS44NzQtMS4wNjEtMi41NzUtLjY4NS0uNjkyLTEuNjI1LTEuMDg5LTIuNTc4LTEuMDg5aDBaIiBmaWxsPSIjZmZhYTAwIi8+PHBhdGggZD0iTTE5LDEzLjVjMCwuMjc1LS4yMjUuNS0uNS41aC04Yy0uMjc1LDAtLjUtLjIyNS0uNS0uNXMuMjI1LS41LjUtLjVoOGMuMjc1LDAsLjUuMjI1LjUuNVpNMTYuNSwxNWgtNmMtLjI3NSwwLS41LjIyNS0uNS41cy4yMjUuNS41LjVoNmMuMjc1LDAsLjUtLjIyNS41LS41cy0uMjI1LS41LS41LS41Wk0xMC41LDEyaDhjLjI3NSwwLC41LS4yMjUuNS0uNXMtLjIyNS0uNS0uNS0uNWgtOGMtLjI3NSwwLS41LjIyNS0uNS41cy4yMjUuNS41LjVaIiBmaWxsPSIjZmZhYTAwIiBmaWxsLW9wYWNpdHk9Ii4zNSIvPjwvc3ZnPg==) !important;
}
#switch .button-toolbar-webpanel button[title *= "https://messages.google.com/web"] .button-icon.favicon {
display: none;
}