Guest User

firefox css w/ stylish (experimental)

a guest
May 2nd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.21 KB | None | 0 0
  1. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  2. /*
  3.     Firefox CSS for Nightly/Australis by Twily
  4.     **  TESTED ON FIREFOX NIGHTLY v32.0a1
  5. */
  6.  
  7. :root {
  8.     /* TAB VARIABLES */
  9.     --bg-light: #49434F; --bg-dark: #24212E;
  10.     --fg-light: #d6ccdc; --fg-dark: #aaa5ad;
  11.     --tab-height: 17px; --tab-triangle-correction: -1px; --tab-strip-margin: -12px;
  12.     --tab-fonts: "Lemon",monospace,"Dejavu Sans"; --tab-font-size: 7pt;
  13.  
  14.     /* URL VARIABLES */
  15.     --url-background: #24212E; --url-color: #d6ccdc;
  16.     --url-height: 17px; --url-right-margin: 5px;
  17.     --url-fonts: "Lemon",monospace,"Dejavu Sans"; --url-font-size: 7pt;
  18.     --url-position: absolute; /* absolute == top (under tabs) || fixed == bottom of browser */
  19. }
  20.  
  21.  
  22. @-moz-document url(chrome://browser/content/browser.xul) {
  23.     /* URL-BAR */
  24.     #PanelUI-button, #bookmarks-menu-button, #downloads-button, #home-button, #stylish-toolbar-button, #abp-toolbarbutton,
  25.     #back-button, #forward-button, #identity-box, #urlbar-reload-button, #urlbar-stop-button, #urlbar-go-button { display: none !important; }
  26.    
  27.     #nav-bar {
  28.         position: var(--url-position) !important; bottom: 0 !important;
  29.         width: 100% !important; height: var(--url-height) !important; min-height: var(--url-height) !important;
  30.         margin: 0 0 0 0 !important;
  31.        
  32.         /* --- Uncomment the line below to attach the url-bar to the tab-bar (EXPERIMENTAL) --- */
  33.         position: fixed !important; top: 0 !important; left: 0 !important; width: 300px !important; max-width: 300px !important;
  34.     }
  35.        #nav-bar-customization-target { width: 100% !important; }
  36.           #urlbar-wrapper { width: 100% !important; position: absolute !important; top: 0 !important; left: 0 !important; margin-top: -1px !important; }
  37.              #urlbar {
  38.                  border: none !important; border-radius: 0 !important;
  39.                  margin: 0 0 0 0 !important; padding: 0 2px 0 9px !important;
  40.                  height: var(--url-height) !important; min-height: var(--url-height) !important;
  41.                  background: var(--url-background) !important; color: var(--url-color) !important;
  42.                  font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
  43.                  width: calc(100% + var(--url-right-margin)) !important;
  44.              }
  45.    
  46.     /* --- Comment out the line below to make the url-bar visible --- */
  47.     /*#nav-bar { width: 0 !important; height: 0 !important; overflow: hidden !important; position: fixed !important; left: -1px !important; top: -1px !important; visibility: hidden !important; }*/
  48.    
  49.    
  50.     /* TABS */
  51.     .tabbrowser-tab[fadein]:not([pinned]) { min-width: 30px !important; max-width: 100% !important; }
  52.     tab {
  53.         font-family: var(--tab-fonts) !important;
  54.         min-height: var(--tab-height) !important; height: var(--tab-height) !important;
  55.         background: var(--bg-dark) !important; color: var(--fg-dark) !important;
  56.         font-size: var(--tab-font-size); text-shadow: none !important; text-align: center !important;
  57.     }
  58.  
  59.     .tabbrowser-tab label { padding: 0 calc(var(--tab-height)/1) 0 calc(var(--tab-height)/1) !important; }
  60.     .tabs-newtab-button, .tab-close-button, .tab-close, .tab-throbber, .tab-icon-image, .tab-background-start, .tab-background-end { display: none !important; }
  61.    
  62.     .tabbrowser-tab *, .tabs-newtab-button * {
  63.         background: url(none) !important; list-style-image: none !important;
  64.         margin: 0 0 0 0 !important; padding: 0 0 0 0 !important; -moz-appearance: none !important;
  65.     }
  66.  
  67.     .tabbrowser-tab[selected="true"] .tab-stack {
  68.         background: var(--bg-light) !important; color: var(--fg-light) !important;
  69.         border-radius: 0 !important; position: relative !important;
  70.     }
  71.     .tabbrowser-tab[selected="true"]:before {    /* Left Triangle (of selected tab) */
  72.         content: '' !important; position: absolute !important; z-index: 2 !important;
  73.         top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important;
  74.        
  75.         border: none !important; border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  76.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  77.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  78.     }
  79.     .tabbrowser-tab[selected="true"]:after {    /* Right Triangle (of selected tab) */
  80.         content: '' !important; position: absolute !important; z-index: 2 !important;
  81.         top: 0 !important; right: 0 !important; width: 0 !important; height: 0 !important;
  82.        
  83.         border: none !important; border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  84.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  85.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  86.     }
  87.    
  88.     #TabsToolbar, #tabbrowser-tabs {
  89.         height: var(--tab-height) !important; min-height: var(--tab-height) !important;
  90.         -moz-appearance: none !important;
  91.         margin-left: var(--tab-strip-margin) !important; margin-right: var(--tab-strip-margin) !important;
  92.         background: var(--bg-dark) !important;
  93.        
  94.         /* --- Uncomment the line below to attach the url-bar to the tab-bar (EXPERIMENTAL) --- */
  95.         margin-left: 140px !important;
  96.     }
  97.     #TabsToolbar::after { display: none !important; }
  98.     .tabbrowser-tab::before, .tabbrowser-tab::after { background: url(none) !important; }
  99.    
  100.     #navigator-toolbox::after { height: 0px !important; }
  101.    
  102.    
  103.     /* MENUS */
  104.     menubar, menubutton, menulist, menu, menuitem { font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size); height: var(--tab-height) !important; }
  105.     menuitem + menuseparator, menu + menuseparator, .menu-iconic-left  { display: none !important; }
  106.    
  107.     menuitem > label { margin-left: var(--tab-height) !important; }
  108.    
  109.  
  110.     /* HIDE ORANGE MENU BUTTON */
  111.     #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  112.    
  113.     /* HIDE STATUS BAR */
  114.     #status-bar, #statusbar-display, statuspanel { display: none !important; }
  115.  
  116.     /* PRIVATE BROWSING ICON HIDE */
  117.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator { display: none !important; }
  118. }
  119.  
  120.  
  121. /* AGENT_SHEET */
  122. @-moz-document url-prefix(http://), url-prefix(https://) {
  123.     /* HIDE SCROLLBARD */
  124.     scrollbar * scrollbar scrollbarbutton { display: block ! important;  }
  125.     scrollbar scrollbarbutton { visibility: collapse !important; }
  126.  
  127.     scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  128.     scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  129.        display: none !important;
  130.       -moz-appearance: none !important;
  131.     }
  132.    
  133.     scrollbar[orient="vertical"] { background: transparent !important; width: 7px !important; margin-left: -7px !important; }
  134.     scrollbar thumb[orient="vertical"] { background: #858187 !important; max-width: 5px !important; border: 0 !important; }
  135.    
  136.     scrollcorner { opacity: 0 !important; }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment