mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-14 05:10:16 +00:00
91 lines
No EOL
4.3 KiB
CSS
91 lines
No EOL
4.3 KiB
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/minimal_toolbarbuttons_v2.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
/* Create a circular placeholder for toolbarbutton and downscale to hide them */
|
|
|
|
/*
|
|
Difference to minimal_toolbarbuttons.css:
|
|
Applies some restrictions on what conditions the real icon is shown,
|
|
such as, nav-bar buttons are not shown when urlbar is hovered
|
|
*/
|
|
/* Create a placeholder for buttons */
|
|
#urlbar-container:hover ~ .toolbarbutton-1:not([open]),
|
|
#urlbar-container:hover ~ #stop-reload-button > .toolbarbutton-1,
|
|
#nav-bar > #nav-bar-customization-target:hover ~ toolbarbutton:not([open]),
|
|
#nav-bar > #nav-bar-customization-target:hover ~ toolbaritem:not([open]),
|
|
toolbar .toolbarbutton-1:not([open]),
|
|
.titlebar-button,
|
|
#tabbrowser-tabs toolbarbutton,
|
|
toolbarbutton.scrollbutton-up[orient="horizontal"],
|
|
toolbarbutton.scrollbutton-down[orient="horizontal"],
|
|
toolbarbutton#scrollbutton-up[orient="horizontal"],
|
|
toolbarbutton#scrollbutton-down[orient="horizontal"]{
|
|
background-image: radial-gradient(circle at center, var(--lwt-toolbarbutton-icon-fill,currentColor) 0,var(--lwt-toolbarbutton-icon-fill,currentColor) 10%,transparent 15% );
|
|
}
|
|
/* Hide placeholder on hover */
|
|
toolbar:hover .toolbarbutton-1,
|
|
.titlebar-buttonbox:hover > .titlebar-button,
|
|
#tabbrowser-tabs:hover toolbarbutton,
|
|
toolbarbutton.scrollbutton-up[orient="horizontal"]:hover,
|
|
toolbarbutton.scrollbutton-down[orient="horizontal"]:hover{ background-image: none }
|
|
|
|
#urlbar-container:hover ~ .toolbarbutton-1:not([open]) > *,
|
|
#urlbar-container:hover ~ #stop-reload-button > .toolbarbutton-1 > *,
|
|
#nav-bar > #nav-bar-customization-target:hover ~ toolbarbutton:not([open]) > *,
|
|
#nav-bar > #nav-bar-customization-target:hover ~ toolbaritem:not([open]) > *,
|
|
#titlebar:hover ~ toolbar .toolbarbutton-1 > *,
|
|
toolbar .toolbarbutton-1 > *,
|
|
#tabbrowser-tabs toolbarbutton > *,
|
|
toolbarbutton.scrollbutton-up[orient="horizontal"] > .toolbarbutton-icon,
|
|
toolbarbutton.scrollbutton-down[orient="horizontal"] > .toolbarbutton-icon,
|
|
.titlebar-button > *{
|
|
transform: scale(0);
|
|
transition: transform 82ms linear !important;
|
|
}
|
|
|
|
toolbar:hover .toolbarbutton-1:not(#PanelUI-menu-button) > *,
|
|
#nav-bar-overflow-button:hover + #PanelUI-button > .toolbarbutton-1 > stack,
|
|
#PanelUI-menu-button:hover > stack,
|
|
#tabbrowser-tabs:hover toolbarbutton > *,
|
|
toolbarbutton.scrollbutton-up[orient="horizontal"]:hover > .toolbarbutton-icon,
|
|
toolbarbutton.scrollbutton-down[orient="horizontal"]:hover > .toolbarbutton-icon,
|
|
.toolbarbutton-1[open] > *,
|
|
.titlebar-buttonbox:hover > .titlebar-button > *{
|
|
transform: scale(1)
|
|
}
|
|
|
|
/* Extra rules for reworked tab overflow scrollbuttons */
|
|
|
|
toolbarbutton#scrollbutton-up[orient="horizontal"] > .toolbarbutton-icon,
|
|
toolbarbutton#scrollbutton-down[orient="horizontal"] > .toolbarbutton-icon{
|
|
transform: scale(0) !important;
|
|
transition: transform 82ms linear !important;
|
|
}
|
|
|
|
toolbarbutton#scrollbutton-up[orient="horizontal"]:hover > .toolbarbutton-icon{
|
|
transform: scale(1) !important;
|
|
}
|
|
toolbarbutton#scrollbutton-down[orient="horizontal"]:hover > .toolbarbutton-icon{
|
|
transform: scale(-1, 1) !important;
|
|
}
|
|
|
|
toolbarbutton#scrollbutton-up[orient="horizontal"]:hover,
|
|
toolbarbutton#scrollbutton-down[orient="horizontal"]:hover{ background: none !important; }
|
|
|
|
/* Urlbar icons, this way they show colors is applicable */
|
|
.urlbar-icon{ transition: transform 82ms linear !important; }
|
|
#urlbar:not(:hover) .urlbar-icon:not([open]){ transform: scale(0.3) }
|
|
|
|
/* The menu button has some margin on non-compact density which creates annnoying transitions */
|
|
/* Lets remove that as well as border since this is minimal style anyway */
|
|
#PanelUI-button{ border-left: 0px !important; margin-left: 0px !important; }
|
|
|
|
/* Add a glow-effect to some buttons when it has some "alert" */
|
|
#nav-bar:not(:hover) > #PanelUI-button > #PanelUI-menu-button[badge-status],
|
|
#navigator-toolbox:not(:hover) #downloads-button[attention]{
|
|
filter: brightness(2) drop-shadow(0 0 3px orange) drop-shadow(0 0 1px orange);
|
|
}
|
|
#nav-bar:not(:hover) > #PanelUI-button > #PanelUI-menu-button[badge-status^="update"],
|
|
#navigator-toolbox:not(:hover) #downloads-button[attention="success"]{
|
|
filter: brightness(2) drop-shadow(0 0 2px cyan) drop-shadow(0 0 1px cyan);
|
|
} |