Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/navbar_tabs_oneliner.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- /* Make tabs and navbar appear side-by-side tabs on right */
- /* Use page_action_buttons_on_hover.css to hide page-action-buttons to save more space for the address */
- /*
- urlbar_popup_full_width.css is VERY MUCH recommended for Firefox 71+ because of new urlbar popup
- */
- :root[uidensity="compact"]{
- --tab-block-margin: 2px !important;
- }
- /* Modify these to change relative widths or default height */
- #navigator-toolbox{
- --uc-navigationbar-width: 50vw;
- --uc-toolbar-height: 40px;
- --uc-urlbar-min-width: 30vw; /* minimum width for opened urlbar */
- }
- #scrollbutton-up,
- #scrollbutton-down{ border-block-width: 2px !important; }
- /* Override for other densities */
- :root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px; }
- :root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; }
- /* prevent urlbar overflow on narrow windows */
- /* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */
- @media screen and (max-width: 1500px){
- #urlbar-container{ min-width:unset !important }
- }
- #TabsToolbar{
- margin-left: 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;
- }
- /* This isn't useful when tabs start in the middle of the window */
- .titlebar-spacer[type="pre-tabs"]{ display: none }
- #navigator-toolbox > #nav-bar{
- margin-right:calc(100vw - var(--uc-navigationbar-width));
- margin-top: calc(0px - var(--uc-toolbar-height));
- }
- /* Window drag space */
- :root[tabsintitlebar="true"] #nav-bar{ padding-left: 24px !important }
- /* Rules specific to window controls on right layout */
- @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
- .titlebar-buttonbox-container{ position: fixed; display: block; left: 0px; z-index: 3; }
- :root[tabsintitlebar="true"] #nav-bar{ padding-left: 96px !important; padding-right: 0px !important; }
- }
- /* 1px margin on touch density causes tabs to be too high */
- .tab-close-button{ margin-top: 0 !important }
- /* Make opened urlbar overlay the toolbar */
- #urlbar[open]:focus-within{ min-width: var(--uc-urlbar-min-width,none) !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; }
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/vertical_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- /* Makes bookmarks toolbar appear vertically at the left side of the window */
- @-moz-document url(chrome://browser/content/browser.xhtml){
- :root:not([inDOMFullscreen]){
- --uc-vertical-toolbar-width: 40px;
- }
- #PersonalToolbar{
- position: fixed;
- display: flex;
- flex-direction: column;
- left: 0;
- width: var(--uc-vertical-toolbar-width,0);
- /* These create a empty area to the bottom of the toolbar, which is to mask a fact that we don't know exactly how high the toolbar should be */
- height: 100vh;
- max-height: 100vh !important;
- padding-bottom: 120px !important;
- }
- #personal-bookmarks{ overflow-y: auto; scrollbar-width: none;}
- #PersonalToolbar > #personal-bookmarks > #PlacesToolbar > hbox{ -moz-box-orient: vertical !important; }
- #PersonalToolbar #PlacesToolbarItems{
- display: flex;
- flex-direction: column;
- }
- #PersonalToolbar .toolbarbutton-1{ padding-block: 10px !important }
- #PersonalToolbar #PlacesToolbarItems > .bookmark-item{ padding-block: 4px !important; }
- body > #browser,
- body > #browser-bottombox,
- #customization-container{
- margin-left: var(--uc-vertical-toolbar-width,0);
- }
- }
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_close_button_always_on_hover.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- /* Always show tab close button on hover and never otherwise */
- .tabbrowser-tab .tab-close-button{
- display:none;
- }
- .tabbrowser-tab:not([pinned]):hover .tab-close-button{
- display:-moz-box !important;
- }
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/minimal_text_fields.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- :root:not([customizing]){
- --toolbar-field-background-color: transparent !important;
- --toolbar-field-border-color: transparent !important;
- }
- #urlbar[open]{ background-color: var(--toolbar-bgcolor) !important; }
- #urlbar,
- #searchbar,
- #search-box{
- -moz-appearance: none !important;
- background-color: var(--toolbar-field-background-color) !important;
- color: inherit !important;
- }
- #searchbar,
- #urlbar,
- .searchbar-textbox{
- box-shadow: none !important;
- }
- #tracking-protection-icon-container,
- #identity-box ~ *,
- .searchbar-textbox > *{
- opacity: 0;
- transition: opacity 150ms linear
- }
- #urlbar .urlbar-input-box,
- .searchbar-textbox > moz-input-box{ opacity: 0.6 }
- #identity-box ~ *:hover,
- #tracking-protection-icon-container:hover,
- #tracking-protection-icon-container ~ *:hover,
- #urlbar:focus-within > *,
- #urlbar-input-container:focus-within > *,
- .searchbar-textbox:hover > *,
- .searchbar-textbox:focus-within > *{ opacity: 1 }
- #identity-box{ border: none !important }
- /* #urlbar:not(:hover) #identity-box{ background-image: radial-gradient(closest-side circle at 16px, orange 10%,transparent 35% ); } */
- #urlbar:not(:hover) #identity-box.verifiedIdentity{ background-image: radial-gradient(closest-side circle at 16px, lime 10%,transparent 35% ); }
- #urlbar:not(:hover) #identity-box > *{ opacity: 0 }
- /*
- :root[title="Firefox Nightly"] #identity-box,
- :root[title="Mozilla Firefox"] #identity-box,
- */
- #urlbar[pageproxystate=invalid]:not([usertyping]) #identity-box,
- #identity-box:hover,
- #identity-box.chromeUI,
- #identity-box.verifiedDomain{
- background-image: none !important;
- }
- #identity-box > #identity-icon-labels{ transition: max-width 150ms linear !important; }
- #identity-box:not(:hover) > #identity-icon-labels{ max-width: 0px !important; }
- /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_separator_lines.css made available under Mozilla Public License v. 2.0
- See the above repository for updates as well as full license text. */
- /* Bring back tab separator lines that were removed in Proton */
- .tabbrowser-tab{
- border-inline-end: 1px solid transparent !important;
- border-image: 0 1 linear-gradient(
- transparent 20%,
- color-mix(in srgb, currentColor 20%, transparent) 20%,
- color-mix(in srgb, currentColor 20%, transparent) 80%,
- transparent 80%
- );
- }
- .tabbrowser-tab:hover,
- .tabbrowser-tab[beforehovered],
- .tabbrowser-tab[selected],
- .tabbrowser-tab[last-visible-tab],
- .tabbrowser-tab[beforeselected-visible]{ border-image: none !important; }
Advertisement
Add Comment
Please, Sign In to add comment