-
Notifications
You must be signed in to change notification settings - Fork 15
/
function-tabs-collapse.css
55 lines (46 loc) · 1.89 KB
/
function-tabs-collapse.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
/*---------------------------------------------------------
- collapse the tabs panel - on full screen
- corrections to height depending on default browsers navigation bar animation
- including collapsing on browser width, when width falls below 850px
---------------------------------------------------------*/
#main-window[sizemode="fullscreen"]{
--uc-vertical-tabs-width: var(--uc-collapsed-tabs-width) !important;
}
#tabbrowser-tabs{
transition: width 80ms linear 70ms !important;
will-change: width !important;
}
#main-window[sizemode="fullscreen"] #browser{
transition: margin-left 80ms linear 150ms !important;
will-change: margin-left !important;}
#main-window[sizemode="fullscreen"] #tabbrowser-tabs,
#main-window[sizemode="fullscreen"] #browser{
transition-delay: 0ms !important;
}
/* full screen tabs panel height correction */
@media not all and (-moz-bool-pref: "ultima.tabs.vertical.hide") {
#main-window[sizemode="fullscreen"] #TabsToolbar-customization-target {
height: calc(100vh - var(--uc-margin-top) - var(--uc-margin-bottom));
top: 3px !important;
}
}
/* collapse tabs on small browser width support */
@media (max-width:850px){
#main-window {
--uc-vertical-tabs-width: var(--uc-collapsed-tabs-width) !important;
}
#tabbrowser-tabs {
transition: width 80ms linear 70ms !important;
will-change: width !important;
}
#main-window[sizemode="fullscreen"] #browser {
transition: margin-left 80ms linear 150ms !important;
will-change: margin-left !important;
}
#tabbrowser-tabs, #browser{
transition-delay: 0ms !important;
}
#tabbrowser-tabs .tab-close-button, #tabbrowser-tabs .close-icon{
padding: 0px !important; display: none !important; margin-inline-end: -3px !important;
}
} /*<----close media maxwidth function*/