fenix-fox/chrome/page_action_buttons_on_hover.css

17 lines
833 B
CSS
Raw Normal View History

2020-05-22 07:13:58 +02:00
/* 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 */
2018-11-07 20:05:02 +01:00
#page-action-buttons > *[class^=urlbar-icon]{
margin-inline-end: -26px;
opacity: 0;
2020-02-07 12:37:42 +01:00
transition: margin-inline-end 100ms linear, opacity 200ms linear;
2018-11-07 20:05:02 +01:00
}
:root[uidensity="compact"] #page-action-buttons > *[class^=urlbar-icon]{ margin-inline-end: -22px; }
2018-11-07 20:05:02 +01:00
#page-action-buttons:hover > *[class^=urlbar-icon],
#page-action-buttons > *[class^=urlbar-icon][open],
#page-action-buttons > *[class^=urlbar-icon][open] ~ *[class^=urlbar-icon]{
opacity: 1;
margin-inline-end: 0px !important;
2018-11-07 20:05:02 +01:00
}