Advertisement
xSqueal

Firefox CSS

Aug 28th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 12.72 KB | None | 0 0
  1. @namespace html url(http://www.w3.org/1999/xhtml);
  2. @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  3. /*
  4.     Author: Twily
  5.     Description: Minimal flat styled tabs for Australis
  6.     Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
  7.        CSS Variables were introduced to Firefox in v29.0a1
  8.     Website: http://twily.info/
  9.  
  10.  
  11.     Note: To enable the urlbar; search this css for:
  12.        "make the url-bar visible" and "adjust margin-top to"
  13. */
  14.  
  15. :root {
  16.     /* TAB VARIABLES */
  17.     --bg-light: #313131; --bg-dark: #22A2A1;
  18.     --fg-light: #22A2A1; --fg-dark: #313131;
  19.     /*--tab-triangle-correction: -1px;/**/
  20.     --tab-height: 20px; --tab-icon-size: 0px; --tab-strip-margin: -12px; --tab-overlap: -5px;
  21.     --tab-fonts: "Droid Sans", "Source Sans Pro", "Lemon",monospace,"Dejavu Sans"; --tab-font-size: 10pt;
  22.     --tab-triangle: block; /* block | none */
  23.  
  24.     /* URL VARIABLES */
  25.     --url-background: var(--bg-light); --url-color:#8D4368;
  26.     --url-height: 20px; --url-right-margin: 5px;
  27.     --url-fonts: "Droid Sans", "Source Sans Pro", "Lemon",monospace,"Dejavu Sans"; --url-font-size: 10pt;
  28.     --url-text-align: center; /* left | center | right */
  29.     --url-position: absolute; /* absolute == top (under tabs) || fixed == bottom of browser */
  30.    
  31.     margin-bottom: 0 /* var(--url-height) */ !important;
  32. }
  33.  
  34. @-moz-document url(chrome://browser/content/browser.xul) {
  35.     /* URL-BAR */
  36.     #PanelUI-button, #bookmarks-menu-button, #downloads-button, #home-button, #stylish-toolbar-button, #abp-toolbarbutton,
  37.     #back-button, #forward-button, #identity-box, #urlbar-reload-button, #urlbar-stop-button, #urlbar-go-button,
  38.     #notification-popup-box, #new-tab-button, #private-browsing-indicator, #search-container, #nav-bar-overflow-button,
  39.     .tabs-newtab-button, .tab-close-button, .tab-close, .tab-throbber, .tab-background-start, .tab-background-end,
  40.     #window-controls /*, #alltabs-button, #tabview-button, .tab-icon-image, .tab-icon-image:not([pinned])*/ { display: none !important; }
  41.    
  42.     /* --- Uncomment the section below to enable the New Tab Button --- */
  43.     /*
  44.     .tabs-newtab-button { display: block !important; background: transparent !important; margin: 0 8px 0 0 !important; width: 24px !important; }
  45.     .tabs-newtab-button::before { content: "+" !important; }
  46.     /**/
  47.    
  48.     .tab-drop-indicator { margin-bottom: 0 !important; }
  49.    
  50.     #nav-bar {
  51.         position: var(--url-position) !important; bottom: 0 !important;
  52.         width: 100% !important; height: var(--url-height) !important;
  53.         min-height: var(--url-height) !important; max-height: var(--url-height) !important;
  54.         margin: 0 0 0 0 !important;
  55.        
  56.         /* --- Uncomment the section below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#TabsToolbar" below) --- */
  57.         /*
  58.         position: fixed !important; top: 0 !important; left: 0 !important;
  59.         width: 315px !important; max-width: 315px !important;
  60.         z-index: 100 !important;
  61.         /**/
  62.     }
  63.        #nav-bar-customization-target { width: 100% !important; }
  64.           #urlbar-wrapper {
  65.               width: 100% !important; margin-top: -0px !important; /* adjust margin-top to ~ -5px if you experience gap */
  66.               position: absolute !important; top: 0 !important; left: 0 !important;
  67.               border-bottom: 0px solid var(--bg-light) !important;
  68.           }
  69.              #urlbar {
  70.                  border: none !important; border-radius: 0 !important;
  71.                  margin: 0 0 0 0 !important; padding: 0 2px 0 9px !important;
  72.                  width: calc(100% + var(--url-right-margin)) !important;
  73.                  height: var(--url-height) !important; min-height: var(--url-height) !important;
  74.                  background: var(--url-background) !important; color: #22A2A1 !important;
  75.                  font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
  76.                  text-align: var(--url-text-align) !important;
  77.              }
  78.              /*#urlbar * { -moz-appearance: none !important; }*/
  79.    
  80.     /* --- Comment out the section below to make the url-bar visible --- */
  81.     /**/
  82.     /**/
  83.    
  84.    
  85.     /* TABS */
  86.     .tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: /*180px*/ 100% !important; }
  87.     tab {
  88.         font-family: var(--tab-fonts) !important;
  89.         height: var(--tab-height) !important; min-height: var(--tab-height) !important;
  90.         background: var(--bg-dark) !important; color: var(--fg-dark) !important;
  91.         font-size: var(--tab-font-size); text-shadow: none !important; text-align: left /* center | left */ !important;
  92.     }
  93.    
  94.     .tabbrowser-tab label { padding: 0 22px 0 22px !important; }
  95.    
  96.     #tabbrowser-tabs .tabbrowser-tab[pinned]            { width: 48px !important; }
  97.     #tabbrowser-tabs .tabbrowser-tab[pinned] label      { display: none !important; }
  98.    
  99.     #tabbrowser-tabs .tabbrowser-tab .tab-icon-image {
  100.         margin: 0 -10px 0 16px !important;
  101.         width: var(--tab-icon-size) !important;
  102.         height: var(--tab-icon-size) !important;
  103.     }
  104.    
  105.     .tabbrowser-tab *, .tabs-newtab-button * {
  106.         background: none !important; list-style-image: none !important;
  107.         margin: 0 0 0 0 !important; padding: 0 0 0 0 !important;
  108.         -moz-appearance: none !important;
  109.     }
  110.    
  111.     #tabbrowser-tabs .tabbrowser-tab[pinned] .tab-stack { height: var(--tab-height) !important; width: 100% !important; }
  112.     #tabbrowser-tabs .tabbrowser-arrowscrollbox .box-inherit.scrollbox-innerbox { max-height: var(--tab-height) !important; }
  113.     .scrollbutton-up, .scrollbutton-down { border: none !important; }
  114.    
  115.     #tabbrowser-tabs[overflow]:not([positionpinnedtabs]) { -moz-padding-start: 20px !important; }
  116.    
  117.     .tabbrowser-tab[selected="true"] .tab-stack {
  118.         background: var(--bg-light) !important; color: var(--fg-light) !important;
  119.         border-radius: 0px !important; position: relative !important;
  120.         /*border-top: 1px solid #dc52a5 !important;/**/
  121.     }
  122.        
  123.     #TabsToolbar, #tabbrowser-tabs {
  124.         -moz-appearance: none !important;
  125.         height: var(--tab-height) !important; min-height: var(--tab-height)!important;
  126.         margin: 0 var(--tab-strip-margin) !important;
  127.         background: var(--bg-dark) !important;
  128.        
  129.         /* --- Uncomment the line below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
  130.         /*margin-left: 150px !important;/**/
  131.     }
  132.     #TabsToolbar::after { display: none !important; }
  133.     .tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; }
  134.    
  135.     /*browser, #navigator-toolbox { -moz-appearance: none !important; background: transparent !important; }*/
  136.    
  137.     /*#navigator-toolbox::after { height: 0 !important;/**/
  138.     #navigator-toolbox::after { height: 0px !important; background: var(--bg-light) !important; }
  139.     #liberator-separator { height: 0px !important; background: var(--bg-light) !important; border-top: 0 !important; }
  140.    
  141.     /* MENUS */
  142.     menuitem + menuseparator, menu + menuseparator/*, .menu-iconic-left*/ { display: none !important; }
  143.     /*menuitem > label { margin-left: var(--tab-height) !important; }*/
  144.     menubar, menubutton, menulist, menu, menuitem {
  145.         font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size);
  146.         height: var(--tab-height) !important;
  147.     }
  148.  
  149.     /* HIDE ORANGE MENU BUTTON */
  150.     #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  151.    
  152.     /* HIDE STATUS BAR */
  153.     #status-bar, #statusbar-display, statuspanel { display: none !important; }
  154.  
  155.     /* PRIVATE BROWSING ICON HIDE */
  156.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator,
  157.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator-titlebar { display: none !important; }
  158.    
  159.     /* Vimperator icon style */
  160.     #liberator-statusline:not([customizing="true"]) { margin: -2px -2px !important; padding: 0 0 !important; height: 24px !important; }
  161.     #liberator-statusline:not([customizing="true"]) :-moz-any(toolbarbutton) { height: 100% !important; }
  162.     #tabview-button {
  163.         list-style-image: url(http://twily.info/img/tabview-button.png?v=2) /* 16x16 px image */ !important;
  164.         -moz-image-region: rect(0, 0, 0, 0) !important;
  165.     }
  166.    
  167.     #liberator-completions { background: var(--bg-dark) !important; }
  168.  
  169.     /* Tabgroup margin top fix */
  170.     #tab-view-deck #tab-view { margin: 24px 12px 12px 12px !important; }
  171.     #tab-view-deck { background: var(--bg-light) !important; }
  172.    
  173.     window[sizemode="fullscreen"] #liberator-statusline { display: none !important; }
  174.     window[sizemode="fullscreen"] #liberator-bottombar  {
  175.         margin-top: -24px !important;
  176.         transition: 1s ease !important; transition-delay: .3s !important;
  177.     }
  178.     /*window[sizemode="fullscreen"] #browser-panel        { margin-top: -1px !important; }*/
  179. }
  180.  
  181.  
  182. /* Tab Group Page Style (Ctrl+Shift+E) */
  183. @-moz-document url(chrome://browser/content/tabview.html) {
  184.     #content #bg, #actions, body { background: var(--bg-light) !important; }
  185.     body * { color: var(--fg-light) !important; }
  186.    
  187.     body .groupItem, #content #actions, body .undo {
  188.         background: var(--bg-dark) !important;
  189.         border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 0 !important;
  190.     }
  191.     #content #actions {
  192.         opacity: 0 !important; display: none !important; /* block | none */
  193.         transition: .3s ease-out !important;
  194.     }
  195.     #content #actions:hover { opacity: 1 !important; }
  196.    
  197.     body .appTabTrayContainer { border: 0 !important; }
  198.     body .tab, body .tab .thumb {
  199.         box-shadow: 0 0 0 0 !important; border: 0 !important; border-radius: 0 !important;
  200.         background: transparent !important; padding : 0 !important;
  201.     }
  202.     body .tab .favicon { display: none !important; }
  203.     body .groupItem .name { border: 0 !important; }
  204.     body .tab .tab-title { padding-top: 2px !important; }
  205. }
  206.  
  207.  
  208. /* AGENT_SHEET */
  209. @-moz-document url-prefix(http://), url-prefix(https://), url-prefix(chrome://liberator/), url-prefix(file:///) {
  210.     /* SCROLLBAR */
  211.     scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  212.     scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  213.         display: none !important; /* none = hide || block = show */
  214.     }
  215.    
  216.     /*
  217.     scrollbar > slider { -moz-appearance: none !important; }
  218.    
  219.     scrollbar[orient="vertical"] { margin: -3px -7px -3px -3px !important; }
  220.     scrollbar[orient='vertical'] > slider { background: #27282B !important; max-width: 5px !important; }
  221.     scrollbar[orient='vertical'] > slider > thumb {
  222.         -moz-appearance: none !important;
  223.         background: #9b79f7 !important; border: 0 !important;
  224.         width: 5px !important; max-width: 5px !important;
  225.     }
  226.    
  227.     scrollbar[orient="horizontal"] { margin: -3px -3px -7px -3px !important; }
  228.     scrollbar[orient='horizontal'] > slider { background: #27282B !important; max-height: 5px !important; }
  229.     scrollbar[orient='horizontal'] > slider > thumb {
  230.         -moz-appearance: none !important;
  231.         background: #9b79f7 !important; border: 0 !important;
  232.         height: 5px !important; max-height: 5px !important;
  233.     }
  234.    
  235.     scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
  236.     scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
  237.     scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
  238.     /**/
  239. }
  240.  
  241.  
  242. /* background color around/behind pictures opened in firefox (require html namespace on top) */
  243. @-moz-document regexp("(https?://|file:///)(.*)\\.(jpeg|jpg|gif|png|apng|svg|bmp|webm|webp)") {
  244.     body { background: var(--bg-light) !important; }
  245.     img.decoded { background: url(none) !important; }
  246. }
  247.  
  248.  
  249. /* About:Blank background */
  250. @-moz-document url(about:blank) {
  251.     html,body { background: var(--bg-light) !important; }
  252. }
  253.  
  254. /* about:stylish-edit toolbar style */
  255. @-moz-document regexp("about:stylish-edit.*") {
  256.     #main-area, textbox { background: var(--bg-light) !important; }
  257.     textbox, grid, columns, rows, separator { border: 0 !important; }
  258.    
  259.     .devtools-toolbarbutton { background: var(--bg-dark) !important; color: var(--fg-light) !important; }
  260. }
  261.  
  262. /*----- Fix for white flash on new tab -----*/
  263. tabbrowser tabpanels, #appcontent > #content { background: var(--bg-light) !important; }
  264.  
  265.  
  266. /* Set dark text in light textareas
  267. @-moz-document regexp("https?://(?!(localhost|twily.info|.*.4chan.org|.*.youtube.com)).*") {
  268.     input, textarea { color: #222628 !important; -moz-appearance: none !important; }
  269. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement