diff options
author | xyz <gky44px1999@gmail.com> | 2021-09-26 22:09:17 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-09-26 22:09:17 -0700 |
commit | 3fb33ecfea0797054e8f76f27c5a0c7e2f0f2dd3 (patch) | |
tree | 3d2048ba332382b4aac78e03e928291a398b42b5 /.mozilla/firefox/xxxxxxxx.fly | |
parent | 683a73a4ac27c24c8646db3c8bfb146afe1acb7d (diff) |
userchrome, using git submodule or clone to manage instead
Diffstat (limited to '.mozilla/firefox/xxxxxxxx.fly')
-rw-r--r-- | .mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css | 106 |
1 files changed, 4 insertions, 102 deletions
diff --git a/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css b/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css index 2592f593..512fc29a 100644 --- a/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css +++ b/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css @@ -1,110 +1,12 @@ -/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/navbar_tabs_oneliner_tabs_on_left.css made available under Mozilla Public License v. 2.0 -See the above repository for updates as well as full license text. */ +@import url(firefox-csshacks/chrome/navbar_tabs_oneliner.css); +@import url(firefox-csshacks/chrome/urlbar_popup_full_width.css); -/*Make tabs and navbar appear side-by-side tabs on left */ - -/* IMPORTANT */ -/* -Get window_control_placeholder_support.css -Window controls will be all wrong without it -*/ -:root{ --tab-block-margin: var(--proton-tab-block-margin) } -:root[uidensity="compact"]{ - --tab-block-margin: 2px !important; - --proton-tab-block-margin: 2px !important; - } - -/* Modify these to change relative widths or default height */ #navigator-toolbox{ - /* need 46vw for search bookmarks urls and title shown in one line */ - --uc-navigationbar-width: 46vw; - --uc-toolbar-height: 40px; - /* minimum width for opened urlbar */ - /*--uc-urlbar-min-width: 100vw;*/ -} -@media (-moz-proton){ - #scrollbutton-up,#scrollbutton-down{ border-block-width: 2px !important; } -} -/* Override for other densities */ -:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 32px;} -:root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; } - -:root[uidensity=compact] #urlbar-container{ - --urlbar-container-height: var(--uc-toolbar-height) !important; - padding-block: 0 !important; -} -:root[uidensity=compact] #urlbar{ - --urlbar-toolbar-height: var(--uc-toolbar-height) !important; -} - -/* prevent urlbar overflow on narrow windows */ -/* Dependent on how many items are in navigation toolbar and tabs-/nav-bar ratio - ADJUST AS NEEDED */ -@media screen and (max-width: 1600px){ - #urlbar-container{ min-width:unset !important } -} - -#toolbar-menubar{ height: initial !important; } -#toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ opacity: 0; pointer-events: none; } -#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) } - -#TabsToolbar > .titlebar-buttonbox-container, -.titlebar-spacer[type="post-tabs"]{ - display: none; -} -#TabsToolbar{ - margin-right: var(--uc-navigationbar-width); - --tabs-navbar-shadow-size: 0px; -} - -#tabbrowser-tabs{ - --tab-min-height: calc(var(--uc-toolbar-height) - 2 * var(--tab-block-margin,0px)) !important; + --uc-navigationbar-width: 46vw !important; } -#toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container{ - min-height: var(--uc-toolbar-height) !important -} -#tabbrowser-tabs, -.tabbrowser-tab[pinned]{ - min-height: var(--tab-min-height) !important; -} -#nav-bar{ - margin-left: calc(100vw - var(--uc-navigationbar-width)); - margin-top: calc(0px - var(--uc-toolbar-height)); -} - -/* Override style set in window_control_placeholder_support.css */ -#nav-bar{ border-left-width: 0px !important } -#nav-bar::before{ display:none !important } - -/* Rules specific to window controls on right layout */ -@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){ - :root:not([inFullscreen]) #TabsToolbar-customization-target > .titlebar-spacer[type="pre-tabs"]{ - width: var(--uc-window-drag-space-post) !important; - display: -moz-box !important; - } - #TabsToolbar > .titlebar-buttonbox-container{ display: -moz-box; } -} - -/* 1px margin on touch density causes tabs to be too high */ -.tab-close-button{ margin-top: 0 !important } - -/* Make opened urlbar overlay all -fcitx5 input method or sxhkd caps lock will close opened bar, seems hard to fix */ -/* -#urlbar[open]:focus-within{ - min-width: var(--uc-urlbar-min-width,none) !important; - right: -78px !important; - left: auto !important; -} -*/ - -/* Hide dropdown placeholder */ -#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; } - -/* Fix customization view */ -#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; } - /* hide history back and forward-button */ #back-button, #forward-button { display: none !important; } + /* hide minimize, restore, and close button when in full screen mode */ #minimize-button, #restore-button, #close-button { display: none !important; } |