mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Add: Hidden - Navbar
This commit is contained in:
parent
434c66285a
commit
b41e3c62ad
6 changed files with 237 additions and 28 deletions
|
|
@ -4389,14 +4389,45 @@
|
|||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
transition: opacity 0.25s var(--animation-easing-function) var(--uc-autohide-toolbar-delay, 600ms),
|
||||
visibility 100ms var(--animation-easing-function) 0.25s !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
transition-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
.titlebar-buttonbox-container > .titlebar-buttonbox {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -4501,14 +4532,45 @@
|
|||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
transition: opacity 0.25s var(--animation-easing-function) var(--uc-autohide-toolbar-delay, 600ms),
|
||||
visibility 100ms var(--animation-easing-function) 0.25s !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
transition-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
.titlebar-buttonbox-container > .titlebar-buttonbox {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -4613,14 +4675,50 @@
|
|||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* At Full Screen */
|
||||
|
||||
/* At Activated Menubar */
|
||||
}
|
||||
@media screen and (max-width: 1100px) and (prefers-reduced-motion: no-preference) {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
transition: opacity 0.25s var(--animation-easing-function) var(--uc-autohide-toolbar-delay, 600ms),
|
||||
visibility 100ms var(--animation-easing-function) 0.25s !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
transition-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
.titlebar-buttonbox-container > .titlebar-buttonbox {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -4629,8 +4727,8 @@
|
|||
margin-block: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* At Full Screen */
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
:root[sizemode="fullscreen"] #window-controls {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
|
|
@ -4638,16 +4736,20 @@
|
|||
right: 0;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
:root[uidensity="compact"][sizemode="fullscreen"] #window-controls {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
@supports -moz-bool-pref("browser.fullscreen.autohide") {
|
||||
:root[sizemode="fullscreen"] #navigator-toolbox:not(:hover) .titlebar-buttonbox-container {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
:root[inFullscreen]:not([macOSNativeFullscreen]) #toolbar-menubar {
|
||||
visibility: visible !important;
|
||||
|
|
@ -4658,14 +4760,16 @@
|
|||
visibility: collapse !important;
|
||||
}
|
||||
}
|
||||
/* At Activated Menubar */
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
:root:not([chromehidden~="menubar"], [sizemode="fullscreen"])
|
||||
#toolbar-menubar:not([autohide="true"])
|
||||
+ #TabsToolbar
|
||||
> .titlebar-buttonbox-container {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (max-width: 1100px) {
|
||||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
:root:not([chromehidden~="menubar"]) #toolbar-menubar:not([autohide="true"]) .titlebar-buttonbox-container {
|
||||
visibility: hidden;
|
||||
|
|
@ -4724,14 +4828,50 @@
|
|||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
@supports -moz-bool-pref("userChrome.autohide.navbar") {
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* At Full Screen */
|
||||
|
||||
/* At Activated Menubar */
|
||||
}
|
||||
@media screen and (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
transition: opacity 0.25s var(--animation-easing-function) var(--uc-autohide-toolbar-delay, 600ms),
|
||||
visibility 100ms var(--animation-easing-function) 0.25s !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:is(:hover, :focus-within)
|
||||
#toolbar-menubar[inactive]:not([customizing])
|
||||
> .titlebar-buttonbox-container {
|
||||
transition-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
.titlebar-buttonbox-container > .titlebar-buttonbox {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -4740,8 +4880,8 @@
|
|||
margin-block: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* At Full Screen */
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
:root[sizemode="fullscreen"] #window-controls {
|
||||
position: fixed;
|
||||
display: flex;
|
||||
|
|
@ -4749,16 +4889,20 @@
|
|||
right: 0;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
:root[uidensity="compact"][sizemode="fullscreen"] #window-controls {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
@supports -moz-bool-pref("browser.fullscreen.autohide") {
|
||||
:root[sizemode="fullscreen"] #navigator-toolbox:not(:hover) .titlebar-buttonbox-container {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
:root[inFullscreen]:not([macOSNativeFullscreen]) #toolbar-menubar {
|
||||
visibility: visible !important;
|
||||
|
|
@ -4769,14 +4913,16 @@
|
|||
visibility: collapse !important;
|
||||
}
|
||||
}
|
||||
/* At Activated Menubar */
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
:root:not([chromehidden~="menubar"], [sizemode="fullscreen"])
|
||||
#toolbar-menubar:not([autohide="true"])
|
||||
+ #TabsToolbar
|
||||
> .titlebar-buttonbox-container {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
}
|
||||
@media screen and (min-width: 1100px) {
|
||||
@supports not -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
:root:not([chromehidden~="menubar"]) #toolbar-menubar:not([autohide="true"]) .titlebar-buttonbox-container {
|
||||
visibility: hidden;
|
||||
|
|
@ -6553,6 +6699,11 @@
|
|||
--uc-tabbar-height: 0px;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.navbar") {
|
||||
:root {
|
||||
--uc-navbar-height: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.autohide.tabbar") or -moz-bool-pref("userChrome.autohide.navbar") or -moz-bool-pref(
|
||||
"userChrome.autohide.bookmarkbar"
|
||||
|
|
@ -7064,14 +7215,25 @@
|
|||
}
|
||||
/** Hidden ********************************************************************/
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar") {
|
||||
@supports not -moz-bool-pref("userChrome.hidden.tabbar.tabs_only") {
|
||||
#TabsToolbar {
|
||||
display: none;
|
||||
#TabsToolbar {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.navbar") {
|
||||
@supports not -moz-bool-pref("userChrome.tabbar.one_liner") {
|
||||
#nav-bar {
|
||||
visibility: collapse;
|
||||
/* display: none is not work */
|
||||
}
|
||||
}
|
||||
@supports -moz-bool-pref("userChrome.hidden.tabbar.tabs_only") {
|
||||
#tabbrowser-tabs {
|
||||
display: none;
|
||||
@supports -moz-bool-pref("userChrome.tabbar.one_liner") {
|
||||
@supports -moz-bool-pref("userChrome.tabbar.one_liner.responsive") {
|
||||
@media screen and (max-width: 1100px) {
|
||||
#nav-bar {
|
||||
visibility: collapse;
|
||||
/* display: none is not work */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
@include Option("userChrome.hidden.tabbar") {
|
||||
--uc-tabbar-height: 0px;
|
||||
}
|
||||
@include Option("userChrome.hidden.navbar") {
|
||||
--uc-navbar-height: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
13
src/hidden/_index.scss
Normal file
13
src/hidden/_index.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@include Option("userChrome.hidden.tabbar") {
|
||||
#TabsToolbar {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@include Option("userChrome.hidden.navbar") {
|
||||
@include OneLinerNabarContent() {
|
||||
#nav-bar {
|
||||
visibility: collapse; /* display: none is not work */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -43,9 +43,33 @@ See the above repository for updates as well as full license text. */
|
|||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
@include NotOption("userChrome.hidden.tabbar") {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
@include Option("userChrome.hidden.tabbar") {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
|
||||
@include Option("userChrome.autohide.navbar") {
|
||||
opacity: 0;
|
||||
visibility: collapse;
|
||||
}
|
||||
}
|
||||
}
|
||||
#navigator-toolbox:is(:hover, :focus-within) #toolbar-menubar[inactive]:not([customizing]) > .titlebar-buttonbox-container {
|
||||
@include Option("userChrome.hidden.tabbar") {
|
||||
@include Option("userChrome.autohide.navbar") {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include Animate {
|
||||
#toolbar-menubar[inactive] > .titlebar-buttonbox-container {
|
||||
transition: opacity 0.25s var(--animation-easing-function) var(--uc-autohide-toolbar-delay, 600ms),
|
||||
visibility 100ms var(--animation-easing-function) 0.25s !important;
|
||||
}
|
||||
#navigator-toolbox:is(:hover, :focus-within) #toolbar-menubar[inactive]:not([customizing]) > .titlebar-buttonbox-container {
|
||||
transition-delay: 0s !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,17 +46,23 @@
|
|||
}
|
||||
}
|
||||
|
||||
@mixin OneLinerNavbar() {
|
||||
@include Option("userChrome.autohide.navbar") {
|
||||
@include NotOption("userChrome.tabbar.one_liner") {
|
||||
@content;
|
||||
}
|
||||
@include Option("userChrome.tabbar.one_liner") {
|
||||
@include Option("userChrome.tabbar.one_liner.responsive") {
|
||||
@media screen and (max-width: 1100px) {
|
||||
@content;
|
||||
}
|
||||
@mixin OneLinerNabarContent() {
|
||||
@include NotOption("userChrome.tabbar.one_liner") {
|
||||
@content;
|
||||
}
|
||||
@include Option("userChrome.tabbar.one_liner") {
|
||||
@include Option("userChrome.tabbar.one_liner.responsive") {
|
||||
@media screen and (max-width: 1100px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin OneLinerNavbar() {
|
||||
@include Option("userChrome.autohide.navbar") {
|
||||
@include OneLinerNabarContent() {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1
user.js
1
user.js
|
|
@ -86,6 +86,7 @@ user_pref("userChrome.rounding.square_tab", false);
|
|||
// user_pref("userChrome.autohide.toolbar_overlap", true);
|
||||
|
||||
// user_pref("userChrome.hidden.tabbar", true);
|
||||
// user_pref("userChrome.hidden.navbar", true);
|
||||
|
||||
// user_pref("userChrome.rounding.square_button", true);
|
||||
// user_pref("userChrome.rounding.square_panel", true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue