Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*AGENT_SHEET*/
- /* Firefox 57+ userChrome.css tweaks ****************************************************/
- /* code mostly taken from 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons **/
- /* by Aris ([email protected])*********************************************************/
- /* Github: https://github.com/aris-t2/customcssforfx ************************************/
- /****************************************************************************************/
- /* tabs toolbar adjustment */
- #main-window[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
- #main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
- #main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
- #main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar,
- #TabsToolbar{
- -moz-padding-start: 2px !important;
- }
- #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #TabsToolbar {
- margin-top: 0px !important;
- }
- /* fix for application/hamburger button in titlebar */
- #main-window[tabsintitlebar][inFullscreen] #toolbar-menubar[autohide="true"][inactive="true"] ~ #nav-bar #PanelUI-button {
- visibility: collapse !important;
- }
- /* tab height */
- #tabbrowser-tabs,
- #tabbrowser-tabs > .tabbrowser-arrowscrollbox,
- .tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
- min-height: 25px !important;
- }
- /* toolbar order (start) ************************************/
- #print-preview-toolbar,
- #printedit-toolbar,
- #titlebar {
- -moz-box-ordinal-group: 0 !important;
- }
- #navigator-toolbox #toolbar-menubar {
- -moz-box-ordinal-group: 1 !important;
- }
- /* navigation toolbar */
- #navigator-toolbox #nav-bar {
- -moz-box-ordinal-group: 2 !important;
- }
- /* bookmarks toolbar */
- #navigator-toolbox #PersonalToolbar {
- -moz-box-ordinal-group: 3 !important;
- }
- /* 3rd party toolbars */
- #navigator-toolbox toolbar {
- -moz-box-ordinal-group: 10 !important;
- }
- /* tabs toolbar */
- #navigator-toolbox #TabsToolbar {
- -moz-box-ordinal-group: 100 !important;
- }
- /* toolbar order (end) **************************************/
- /* toolbar colors */
- /*Tab toolbat background color*/
- #TabsToolbar:not(:-moz-lwtheme){
- -moz-appearance: none !important;
- background-image: linear-gradient(#dbeaf9,#dbeaf9) !important;
- }
- #TabsToolbar:-moz-lwtheme{
- background: rgba(255,255,255,0.4) !important;
- }
- /*navigation toolbat background color*/
- #nav-bar:not(:-moz-lwtheme){
- -moz-appearance: none !important;
- background-image: linear-gradient(#eaf2fb,#dbeaf9) !important;
- }
- /* toolbar borders */
- #main-window #navigator-toolbox::after {
- /*border-bottom: unset !important;*/
- opacity: 0 !important;
- }
- #TabsToolbar{
- margin-bottom: 0px !important;
- border-bottom: 1px solid #5f7181 !important;
- }
- #main-window[sizemode="normal"] #TabsToolbar:not(:-moz-lwtheme){
- border-left: 1px solid #5f7181 !important;
- border-right: 1px solid #5f7181 !important;
- }
- #main-window:not([inFullscreen="true"])[tabsintitlebar] #TabsToolbar{
- -moz-margin-end: 0px !important;
- }
- #main-window[tabsintitlebar] #TabsToolbar .titlebar-placeholder{
- visibility: collapse !important;
- }
- #main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar[autohide="true"][inactive="true"],
- #main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] {
- margin-top: 21px !important;
- }
- #tabbrowser-tabs .tab-drop-indicator {
- margin-bottom: 0px !important;
- }
- #PersonalToolbar:-moz-lwtheme,
- #nav-bar:-moz-lwtheme {
- background-image: none !important;
- box-shadow: none !important;
- border-top: none !important;
- border-bottom: none !important;
- }
- /*text color for all tabs*/
- .tabbrowser-tab .tab-label {
- color: black !important;
- }
- /* selected tabs color
- #TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab .tab-content[selected="true"] {
- background-image: linear-gradient(to top,#f9f9fa,#f9f9fa,#f9f9fa) !important;
- }*/
- /* hovered tabs color
- #TabsToolbar:not(:-moz-lwtheme) .tabs-newtab-button:hover,
- #TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab:hover .tab-content:not([selected="true"]) {
- background-image: linear-gradient(to top,#cac7c1,#d5d2cc,#e8e6e2) !important;
- }*/
- /*tab border*/
- #TabsToolbar:not(:-moz-lwtheme) .tabs-newtab-button,
- #TabsToolbar:not(:-moz-lwtheme) .tabbrowser-tab .tab-content {
- border-top: 1px solid #919ba4 !important;
- border-left: 1px solid #919ba4 !important;
- /*border-right: 1px solid #919ba4 !important;*/
- }
- #TabsToolbar:not(:-moz-lwtheme) .tabs-newtab-button{
- border-right: 1px solid #919ba4 !important;
- }
- /*new tab button*/
- .tabs-newtab-button,
- #new-tab-button
- { filter: invert(100%) !important; }
- /* remove tab fog */
- #TabsToolbar:not(:-moz-lwtheme),
- #TabsToolbar:not(:-moz-lwtheme)::before,
- #TabsToolbar:not(:-moz-lwtheme)::after {
- box-shadow: unset !important;
- }
- /* remove 'dragging tab' margin/padding nonsense */
- #TabsToolbar[movingtab] {
- padding-bottom: unset !important;
- }
- #TabsToolbar[movingtab] > .tabbrowser-tabs {
- padding-bottom: unset !important;
- margin-bottom: unset !important;
- }
- #TabsToolbar[movingtab] + #nav-bar {
- margin-top: unset !important;
- }
- /* scroll buttons */
- #TabsToolbar:not(:-moz-lwtheme) #alltabs-button,
- #TabsToolbar:not(:-moz-lwtheme) .tabbrowser-arrowscrollbox > .scrollbutton-up,
- #TabsToolbar:not(:-moz-lwtheme) .tabbrowser-arrowscrollbox > .scrollbutton-down {
- fill: black !important;
- }
- /*changes color of not selected tabs close button*/
- .tab-close-button:not([selected]) {
- filter: invert(100%) !important;
- }
- /*Hide close button when only one tab*/
- .tabbrowser-tab[first-visible-tab][last-visible-tab] .tab-close-button {
- visibility: collapse !important;
- }
- /*Shrink close button, favicon*/
- .tabbrowser-tab .tab-icon-image,
- .tabbrowser-tab .close-icon {
- transform:scale(.9,.9)!important;
- }
- /*Move the tab line to bottom of a tab*/
- .tabbrowser-tab .tab-line,
- #TabsToolbar,
- .tabbrowser-tab .tab-bottom-line {
- -moz-box-ordinal-group: 2;
- }
- /*makes tab line less bright*/
- .tab-line {
- /*display: none !important;*/
- opacity: 0.6 !important;
- }
- /*--AwesomeBar--*/
- /*
- Hello! If you want to change your options, try updating from
- https://userstyles.org/styles/122394/url-bar-tweaks-remove-visit-search-limit-width
- Reload the page to get a green button, then select your drop-down style and
- other features and click Update with Stylish.
- */
- /* Remove " - Visit" or " - Search with" bar in the drop-down */
- #PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
- #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
- #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
- #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"] {
- display:none !important;
- }
- #PopupAutoCompleteRichResult .autocomplete-richlistbox {
- padding-top: 0 !important;
- padding-bottom: 0 !important;
- }
- /* Set max-height for items visible without scrolling */
- #PopupAutoCompleteRichResult .autocomplete-richlistbox {
- height: calc(30px * 10) !important;
- max-height: calc(45.5px * 90) !important;
- }
- /* Set drop-down width */
- /*Change the number to get the width you want*/
- #PopupAutoCompleteRichResult {
- width: 1285px !important;
- max-width: 1285px !important;
- margin-left: 0 !important;
- }
- /* Use default text matching style */
- /* remove unneeded padding around results */
- #PopupAutoCompleteRichResult .autocomplete-richlistbox {
- padding: 0 !important;
- }
- /* make sure there is not unneded space before results (Fx58+) */
- #PopupAutoCompleteRichResult .autocomplete-richlistitem {
- -moz-margin-start: 0 !important;
- -moz-padding-start: 0 !important;
- }
- /* make sure there is not unneded space before results (Fx57+) */
- #PopupAutoCompleteRichResult .autocomplete-richlistitem spacer{
- display: none !important;
- }
- /* prevent url/title overlapping */
- #PopupAutoCompleteRichResult richlistitem:-moz-any([type*="heuristic"],[actiontype="searchengine"],[actiontype="visiturl"],[actiontype="keyword"],[actiontype="switchtab"]) .ac-title {
- -moz-margin-start: 0px !important;
- -moz-margin-end: 10px !important;
- }
- /*end awesome bar*/
- /*General UI*/
- /* remove search indicators '+' sign */
- .searchbar-search-button[addengines=true] > .searchbar-search-icon-overlay {
- visibility: hidden !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment