fenix-fox/chrome/autohide_tabstoolbar.css

38 lines
1.1 KiB
CSS
Raw Normal View History

2020-05-22 07:13:58 +02:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_tabstoolbar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2019-10-29 13:15:36 +01:00
/* Hide tabs unless cursor is on top of toolbar */
2021-07-17 13:12:40 +02:00
/* Dummy variable to support both versions 89-90 */
:root{ --tab-block-margin: var(--proton-tab-block-margin) }
:root:not([customizing]) #navigator-toolbox{
position: relative;
z-index: 1;
}
#navigator-toolbox:not(:hover) > #titlebar{
-moz-window-dragging: no-drag !important;
pointer-events: none
}
2021-07-17 13:12:40 +02:00
:root:not([customizing]) #navigator-toolbox:hover,
:root:not([customizing]) #titlebar{
margin-bottom: calc(0px - 2 * var(--tab-block-margin) - var(--tab-min-height));
2019-10-29 13:15:36 +01:00
}
2021-07-17 13:12:40 +02:00
#TabsToolbar:not([customizing]){ visibility: hidden; transition: visibility 0ms linear 200ms }
#navigator-toolbox,
#titlebar{ transition: margin-bottom 48ms ease-out 200ms }
#navigator-toolbox:hover{ transition-delay: 0s }
#navigator-toolbox:hover > #titlebar{
margin-bottom: 0px;
transition-delay: 0s;
}
#navigator-toolbox:hover #TabsToolbar{
visibility: visible;
transition-delay: 18ms
}