-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhide_tabs.css
81 lines (61 loc) · 2.37 KB
/
hide_tabs.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
/*
Hide the tab bar completely and display on mouseover
Authors: supra107 & R0STEFAN
Topic: https://forum.vivaldi.net/topic/46458/automate-floating-vertical-tabbar-for-mouse-keyboard/148?_=1735482155591
*/
:root {
--tabbarHoveroutTimeout: .5s
}
/*----- Scrollbar -----*/
/* Wider scrollbar */
#tabs-tabbar-container:is(.left, .right) .tab-strip::-webkit-scrollbar {
--scrollbarWidth: 10px !important;
border: 1px solid #9fb0cb !important;
border-radius: 8px !important;
padding: 0 2px !important;
}
/* No buttons */
#tabs-tabbar-container:is(.left, .right) .tab-strip::-webkit-scrollbar-button {
display: none !important;
}
/* Scrollbar rounding */
#tabs-tabbar-container:is(.left, .right) .tab-strip::-webkit-scrollbar-thumb {
border: 2px solid transparent !important;
border-radius: 8px !important;
}
/*----- Vertical Tabbar -----*/
/* Set z-index and hide when not in use */
#browser.tabs-left .tabbar-wrapper, #browser.tabs-right .tabbar-wrapper {
z-index: 1;
position: absolute;
transform: translateX(calc(-100% + 3px));
opacity: 0;
/*clip-path: inset(0 100% 0 0); */
transition: .1s ease-out .15s !important;
--HoverWidth: calc(100%);
}
/* Right side tab bar fix */
#browser.tabs-right .tabbar-wrapper {
right: 0;
}
/* Show tab bar on inactive windows when moving tabs */
#browser.tabs-left.isblurred:where(:has(div.tab-yield-space, .tab-acceptsdrop)) .tabbar-wrapper {
clip-path: initial;
}
#browser.tabs-left.isblurred:is(:active, :focus) .tabbar-wrapper:is(:active, :focus) {
clip-path: initial;
}
/* Show tab bar when hovering on left edge and prevent tab bar hiding when in use */
/*#browser:is(.tabs-left, .tabs-right):where(:has(.mainbar:is(:hover))) .tabbar-wrapper,*/ #browser:is(.tabs-left, .tabs-right) .tabbar-wrapper:is(:hover, :focus-within) {
opacity: 1;
transform: translateX(calc(0%));
/*clip-path: inset(0 100% 0 0); */
transition: .1s ease-out .15s !important;
--HoverWidth: calc(100%);
}
}
/* Don't hide tab bar when using workspace selector */
#browser.tabs-left:where(:has(div.WorkspacePopup:is(:hover, :focus-within))) .tabbar-wrapper, #browser.tabs-right:where(:has(div.WorkspacePopup:is(:hover, :focus-within))) .tabbar-wrapper {
clip-path: inset(0 -400px 0 -400px);
transition: clip-path 0s !important;
}