Created
December 19, 2018 04:30
-
-
Save chezbgone/61bfbaa00c046575858316f698c9290a to your computer and use it in GitHub Desktop.
firefox css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Hide main tabs toolbar */ | |
| #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| #main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
| visibility: collapse !important; | |
| } | |
| /* Hide splitter, when using Tree Style Tab. | |
| #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter { | |
| display: none !important; | |
| } | |
| */ | |
| /* Hide sidebar header, when using Tree Style Tab. */ | |
| #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { | |
| visibility: collapse; | |
| } | |
| /* Sidebar min and max width removal */ | |
| #sidebar { | |
| min-width:0px !important; | |
| max-width:none !important; | |
| } | |
| /* https://github.com/moamenk/Firefox-Minimal-Responsive-Theme/blob/master/userChrome.css */ | |
| /* Show toolbar options on hover */ | |
| :root:not([customizing]) #nav-bar toolbarbutton { | |
| margin-left: -28px !important; | |
| opacity: 0 !important; | |
| transform: scale(.85, .85) !important; | |
| pointer-events: none !important; | |
| transition: all 200ms var(--animation-easing-function) !important; | |
| } | |
| :root:not([customizing]) :hover > #nav-bar toolbarbutton, | |
| :root:not([customizing]) #navigator-toolbox:focus-within #nav-bar toolbarbutton, | |
| :root:not([customizing]) :hover > #titlebar toolbarbutton { | |
| transform: scale(1, 1) !important; | |
| opacity:1 !important; | |
| margin-left:0 !important; | |
| pointer-events: auto !important; | |
| } | |
| /* url bar text shrinks when in "stealth mode" */ | |
| #nav-bar #urlbar { | |
| font-size: 0.85em !important; | |
| transition: all 100ms var(--animation-easing-function) !important; | |
| } | |
| :root:not([customizing]) :hover > #nav-bar #urlbar, | |
| :root:not([customizing]) #navigator-toolbox:focus-within #nav-bar #urlbar { | |
| font-size: 0.95em !important; | |
| } | |
| /* Remove borders everywhere, some code copied from edge style for firefox */ | |
| :root { | |
| --tabs-border: transparent !important; | |
| } | |
| .tabbrowser-tab::after, .tabbrowser-tab::before { | |
| border-left: none !important; | |
| } | |
| #urlbar, .searchbar-textbox { | |
| border: none !important; | |
| box-shadow: none !important; | |
| } | |
| #nav-bar { | |
| margin-top: 0px !important; | |
| border-top: 0px !important; | |
| box-shadow: none !important; | |
| } | |
| /* nav bar is semi opaque when unhovered */ | |
| #nav-bar > * { | |
| opacity:0.8; | |
| transition: opacity 0.3s; | |
| } | |
| #nav-bar:hover > * { | |
| opacity:1 !important; | |
| } | |
| #urlbar { | |
| opacity:1 !important; | |
| } | |
| #urlbar .urlbar-input-box { | |
| opacity:1 !important; | |
| } | |
| #urlbar, .searchbar-textbox { | |
| border: 0px !important; | |
| height: 20px !important; | |
| } | |
| #urlbar { | |
| margin-left: 1px !important; | |
| margin-right: 1px !important; | |
| } | |
| .tab-background { | |
| border-top: none !important; | |
| } | |
| .tabs-newtab-button, #new-tab-button, #alltabs-button { | |
| color: rgba(240, 240, 240, 1); | |
| border-top: 0px !important; | |
| margin-bottom: 0px !important; | |
| } | |
| window:not([chromehidden~="toolbar"]) #urlbar-container > .toolbarbutton-1:-moz-any([disabled], :not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon[class], #main-window:not([customizing]) #back-button[disabled] > .toolbarbutton-icon[class] { | |
| box-shadow: none !important; | |
| border: 0px !important; | |
| } | |
| :root { | |
| --chrome-secondary-background-color: black !important; | |
| } | |
| /* Fix addressbar autocomplete width */ | |
| #PopupAutoCompleteRichResult{ | |
| --uc-popup-width-diff: 0px; | |
| max-width: calc(100vw - var(--uc-popup-width-diff) - var(--item-padding-end)) !important; | |
| margin-left: 0px !important; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment