mobile-config-firefox/chrome/page_action_buttons_on_hover.css
2021-07-14 07:04:38 +03:00

19 lines
No EOL
745 B
CSS

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/page_action_buttons_on_hover.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Page action-buttons "slide in" when cursor is on top of them and don't reserve space when not used */
#page-action-buttons{ padding-inline-start: 8px }
.urlbar-page-action{
margin-inline-end: calc(-16px - 2 * var(--urlbar-icon-padding) );
opacity: 0;
transition: margin-inline-end 100ms linear, opacity 200ms linear;
}
#page-action-buttons:hover > .urlbar-page-action,
.urlbar-page-action[open],
.urlbar-page-action[open] ~ .urlbar-page-action{
opacity: 1;
margin-inline-end: 0px !important;
}