Guest User

Untitled

a guest
Jun 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 16.11 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.     Description: A mediocre fork of Twily's firefox css.
  5.        Credit where credit is due: http://twily.info/
  6.     Compatibility: -- Firefox 43.0.4 --
  7.  
  8.  
  9.     Useful search tags within this css:
  10.     "url-bar visible", "bottom margin", "attach url-bar", "newtab button", "back/forward", "enable scrollbar"
  11.  
  12.  
  13.     To enable bitmap fonts in Firefox 44+; open "about:config" and set the following preference to "false":
  14.     "gfx.font_rendering.fontconfig.fontlist.enabled"
  15.    
  16.     I take NO credit for the creation of this CSS
  17. */
  18.  
  19.  
  20. :root {
  21.     /* TAB VARIABLES */
  22.     --bg-light: #753232; --bg-dark: #753232;
  23.     --fg-light: #FFF; --fg-dark: #C59280;
  24.     --tab-triangle-correction: -1px;
  25.     --tab-height: 30px; --tab-icon-size: 12px; --tab-strip-margin: 10px; --tab-overlap: -0px;
  26.     --tab-fonts: "GohuFont",monospace,"Dejavu Sans"; --tab-font-size: 9pt;
  27.     --tab-text-align: center; /* left | center | right */
  28.     --tab-triangle: none;  /* block | none */
  29.  
  30.     /* URL VARIABLES */
  31.     --url-background: var(--bg-light); --url-color: var(--fg-light);
  32.     --url-height: 30px; --url-right-margin: 8px;
  33.     --url-fonts: "GohuFont",monospace,"Dejavu Sans"; --url-font-size: 9pt;
  34.     --url-text-align: left; /* left | center | right */
  35.     --url-position: fixed; /* absolute == top (under tabs) || fixed == bottom of browser */
  36. }
  37.  
  38.  
  39. @-moz-document url(chrome://browser/content/browser.xul) {
  40.     /* URL-BAR */
  41.     #back-button, #back-button *, #forward-button, #forward-button *, #identity-box, #urlbar-reload-button, #urlbar-stop-button, #urlbar-go-button,
  42.     #PanelUI-button, #bookmarks-menu-button, #downloads-button, #home-button, #stylish-toolbar-button, #abp-toolbarbutton,
  43.     #notification-popup-box, #new-tab-button,/* #private-browsing-indicator,*/ #search-container, #nav-bar-overflow-button,
  44.     .tabs-newtab-button, .tab-close-button, .tab-close, .tab-throbber, .tab-background-start, .tab-background-end,
  45.     #pocket-button, #loop-button, #social-share-button, #window-controls
  46.     /*#alltabs-button, #tabview-button, .tab-icon-image*/, .tab-icon-image:not([pinned]) { display: none !important; }
  47.    
  48.     * { box-sizing: border-box !important; }
  49.    
  50.     /* --- Comment out the section below to remove the newtab button --- */
  51.     .tabs-newtab-button { display: block !important; background: transparent !important; margin: 0 0 5px 0 !important; width: 30px !important; }
  52.     .tabs-newtab-button::before { content: "+" !important; }
  53.     /**/
  54.    
  55.     .tab-drop-indicator { margin-bottom: 0 !important; }
  56.    
  57.    
  58.     /*#browser { margin-bottom: var(--url-height) !important; }/**/ /* Uncomment to enable bottom margin */
  59.    
  60.     #navigator-toolbox { background: var(--url-background) !important; }
  61.     #navigator-toolbox * { clip: auto !important; clip-path: none !important; }
  62.    
  63.     #nav-bar {
  64.         position: var(--url-position) !important; bottom: 0 !important;
  65.         width: 101% !important; height: var(--url-height) !important;
  66.         margin: 0px !important; background: transparent !important;
  67.            
  68.         /* --- Uncomment section below to attach url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#TabsToolbar" below) --- */
  69.         /*
  70.         position: fixed !important; top: 0 !important; left: 0 !important;
  71.         width: 315px !important; max-width: 315px !important;
  72.         z-index: 100 !important;
  73.         /**/
  74.     }
  75.         #nav-bar-customization-target, #urlbar-container, #urlbar {
  76.             margin: 0 !important; padding: 0 !important;
  77.             width: 100% !important; height: 100% !important;
  78.             border-radius: 0 !important;
  79.         }
  80.             #nav-bar-customization-target {
  81.                 position: absolute !important; top: 1px !important; left: -5px !important; height: calc(100% - 1px) !important; /* (bottom margin - height switch +/-) */
  82.             }
  83.                 #urlbar {
  84.                     border: none !important; padding: 0 2px 0 20px !important;
  85.                     background: var(--url-background) !important; color: var(--url-color) !important;
  86.                     font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
  87.                     text-align: var(--url-text-align) !important;
  88.                     height: 100% !important;
  89.                 }
  90.                 /*#urlbar * { -moz-appearance: none !important; }*/
  91.    
  92.                 .urlbar-textbox-container .urlbar-input-box .textbox-input {
  93.                     height: var(--url-height) !important;
  94.                 }
  95.    
  96.    
  97.     /* --- Uncomment the section below to enable the back/forward buttons [EXPERIMENTAL] (Requires url-bar) --- */
  98.    
  99.        #back-button, #forward-button { display: block !important; }
  100.     #back-button::before, #forward-button::before {
  101.         display: inline-block !important; position: absolute !important;
  102.         width: var(--url-height) !important; height: var(--url-height) !important; top: 0 !important;
  103.         text-align: center !important; line-height: var(--url-height) !important;
  104.     }
  105.     #back-button::before { content: "<" !important; left: 0 !important; top: -1px !important; }
  106.     #forward-button::before { content: ">" !important; left: calc(var(--url-height) + 0px) !important; top: -1px !important; }
  107.     #urlbar { padding-left: calc((var(--url-height) * 2) + 30px) !important; }
  108.     /**/
  109.    
  110.    
  111.     /* --- Comment out the section below to make the url-bar visible --- */
  112.    
  113.    
  114.     #nav-bar {
  115.        opacity: 0 !important;
  116.     }
  117.     #nav-bar:hover {
  118.         opacity: 1 !important;
  119.     }
  120.     /**/
  121.    
  122.     /* TABS */
  123.     .tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: /*180px*/ 100% !important; }
  124.     tab {
  125.         font-family: var(--tab-fonts) !important;
  126.         height: var(--tab-height) !important; min-height: var(--tab-height) !important;
  127.         background: var(--bg-dark) !important; color: var(--fg-dark) !important;
  128.         font-size: var(--tab-font-size); text-shadow: none !important; text-align: var(--tab-text-align) !important;
  129.     }
  130.    
  131.     .tabbrowser-tab label { padding: 0 22px 0 22px !important; }
  132.    
  133.     #tabbrowser-tabs .tabbrowser-tab[pinned]            { width: 48px !important; }
  134.     #tabbrowser-tabs .tabbrowser-tab[pinned] label      { display: none !important; }
  135.    
  136.     #tabbrowser-tabs .tabbrowser-tab .tab-icon-image {
  137.         margin: 0 -10px 0 16px !important;
  138.         width: var(--tab-icon-size) !important;
  139.         height: var(--tab-icon-size) !important;
  140.     }
  141.    
  142.     .tabbrowser-tab *, .tabs-newtab-button * {
  143.         background: none !important; list-style-image: none !important;
  144.         margin: 0 0 0 0 !important; padding: 0 0 0 0 !important;
  145.         -moz-appearance: none !important;
  146.     }
  147.    
  148.     #alltabs-button { margin-left: -10px !important; }
  149.    
  150.     #tabbrowser-tabs .tabbrowser-tab[pinned] .tab-stack { height: var(--tab-height) !important; width: 100% !important; }
  151.     #tabbrowser-tabs .tabbrowser-arrowscrollbox, #tabbrowser-tabs .tabbrowser-arrowscrollbox .box-inherit.scrollbox-innerbox {
  152.         max-height: var(--tab-height) !important;
  153.     }
  154.     .scrollbutton-up, .scrollbutton-down { border: none !important; }
  155.    
  156.     #tabbrowser-tabs[overflow]:not([positionpinnedtabs]) { -moz-padding-start: 20px !important; }
  157.    
  158.     .tabbrowser-tab[selected="true"] .tab-stack {
  159.         background: var(--bg-light) !important; color: var(--fg-light) !important;
  160.         border-radius: 0px !important; position: relative !important;
  161.         border-top: 2px solid #FFF !important;/**/
  162.     }
  163.     .tabbrowser-tab[selected="true"]:before { /* Left Triangle (of selected tab) */
  164.         content: '' !important; display: var(--tab-triangle);
  165.         position: absolute !important; top: 0 !important; left: var(--tab-overlap) !important;
  166.         width: 0 !important; height: 0 !important;
  167.         border: none !important; z-index: 2 !important;
  168.        
  169.         /**/
  170.         border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  171.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  172.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  173.         /*
  174.         border-top: var(--tab-height) solid var(--bg-dark) !important;
  175.         border-right: calc(var(--tab-height)/2) solid var(--bg-light) !important;
  176.         /**/
  177.     }
  178.     .tabbrowser-tab[selected="true"]:after { /* Right Triangle (of selected tab) */
  179.         content: '' !important; display: var(--tab-triangle);
  180.         position: absolute !important; top: 0 !important; right: var(--tab-overlap) !important;
  181.         width: 0 !important; height: 0 !important;
  182.         border: none !important; z-index: 2 !important;
  183.        
  184.         /**/
  185.         border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  186.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  187.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  188.         /*
  189.         border-top: var(--tab-height) solid var(--bg-dark) !important;
  190.         border-left: calc(var(--tab-height)/2) solid var(--bg-light) !important;
  191.         /**/
  192.     }
  193.    
  194.     #TabsToolbar, #tabbrowser-tabs {
  195.         -moz-appearance: none !important;
  196.         height: var(--tab-height) !important; min-height: var(--tab-height)!important;
  197.         margin: 0 var(--tab-strip-margin) !important;
  198.         background: var(--bg-dark) !important;
  199.        
  200.         /* --- Uncomment section below to attach url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
  201.         /*margin-left: 147px !important;/**/
  202.     }
  203.     #TabsToolbar::after { display: none !important; }
  204.     .tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; opacity: 1 !important; visibility: visible !important; }
  205.    
  206.     /*browser, #navigator-toolbox { -moz-appearance: none !important; background: transparent !important; }*/
  207.    
  208.     #navigator-toolbox::after { height: 0px !important; background: var(--bg-light) !important; }
  209.     #liberator-separator { height: 0px !important; background: var(--bg-light) !important; border-top: 0 !important; }
  210.    
  211.     /* MENUS */
  212.     menuitem + menuseparator, menu + menuseparator/*, .menu-iconic-left*/ { display: none !important; }
  213.     /*menuitem > label { margin-left: var(--tab-height) !important; }*/
  214.     /*menubar, menubutton, menulist, menu, menuitem {
  215.         font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size);
  216.         height: var(--tab-height) !important;
  217.     }*/
  218.  
  219.     /* HIDE ORANGE MENU BUTTON */
  220.     #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  221.    
  222.     /* HIDE STATUS BAR */
  223.     #status-bar, #statusbar-display, statuspanel { display: none !important; }
  224.  
  225.     /* PRIVATE BROWSING ICON HIDE */
  226.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator,
  227.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator-titlebar { display: none !important; }
  228.    
  229.     /* Vimperator icon style */
  230.     #liberator-statusline:not([customizing="true"]) { margin: -2px -2px !important; padding: 0 0 !important; height: 24px !important; }
  231.     #liberator-statusline:not([customizing="true"]) :-moz-any(toolbarbutton) { height: 100% !important; }
  232.     #tabview-button {
  233.         list-style-image: url(http://twily.info/img/tabview-button.png?v=2) /* 16x16 px image */ !important;
  234.         -moz-image-region: rect(0, 0, 0, 0) !important;
  235.     }
  236.    
  237.     #liberator-completions, #liberator-bottombar-deck { background: var(--bg-dark) !important; }
  238.    
  239.     /* Tabgroup margin top fix */
  240.     #tab-view-deck #tab-view { margin: 24px 12px 12px 12px !important; }
  241.     #tab-view-deck { background: var(--bg-light) !important; }
  242.    
  243.     window[sizemode="fullscreen"] #liberator-statusline { display: none !important; }
  244.     window[sizemode="fullscreen"] #liberator-bottombar  {
  245.         margin-top: -24px !important;
  246.         transition: 1s ease !important; transition-delay: .3s !important;
  247.     }
  248.     /*window[sizemode="fullscreen"] #browser-panel        { margin-top: -1px !important; }*/
  249. }
  250.  
  251.  
  252. /* Tab Group Page Style (Ctrl+Shift+E) */
  253. @-moz-document url(chrome://browser/content/tabview.html) {
  254.     #content #bg, #actions, body { background: var(--bg-light) !important; }
  255.     body * { color: var(--fg-light) !important; }
  256.    
  257.     body .groupItem, #content #actions, body .undo {
  258.         background: var(--bg-dark) !important;
  259.         border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 0 !important;
  260.     }
  261.     #content #actions {
  262.         opacity: 0 !important; display: none !important; /* block | none */
  263.         transition: .3s ease-out !important;
  264.     }
  265.     #content #actions:hover { opacity: 1 !important; }
  266.    
  267.     body .appTabTrayContainer { border: 0 !important; }
  268.     body .tab, body .tab .thumb {
  269.         box-shadow: 0 0 0 0 !important; border: 0 !important; border-radius: 0 !important;
  270.         background: transparent !important; padding : 0 !important;
  271.     }
  272.     body .tab .favicon { display: none !important; }
  273.     body .groupItem .name { border: 0 !important; }
  274.     body .tab .tab-title { padding-top: 2px !important; }
  275. }
  276.  
  277.  
  278. /* AGENT_SHEET */
  279. @-moz-document url-prefix(http://), url-prefix(https://), url-prefix(chrome://liberator/), url-prefix(file:///) {
  280.     /* SCROLLBAR */
  281.     scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  282.     scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  283.         display: none !important; /* block | none (enable scrollbar) */
  284.     }
  285.    
  286.     /*
  287.        Uncomment section below to apply style
  288.    
  289.        (width/height is controlled by the margin)
  290.     */
  291.     /*
  292.     scrollbar > slider { -moz-appearance: none !important; }
  293.    
  294.     scrollbar[orient="vertical"] { margin: 0 -10px 0 0 !important; }
  295.     scrollbar[orient='vertical'] > slider { background: #282333 !important; max-width: 100% !important; }
  296.     scrollbar[orient='vertical'] > slider > thumb {
  297.         -moz-appearance: none !important;
  298.         background: #524C59 !important; border: 0 !important; width: 100% !important;
  299.     }
  300.    
  301.     scrollbar[orient="horizontal"] { margin: 0 0 -10px 0 !important; }
  302.     scrollbar[orient='horizontal'] > slider { background: #282333 !important; max-height: 100% !important; }
  303.     scrollbar[orient='horizontal'] > slider > thumb {
  304.         -moz-appearance: none !important;
  305.         background: #524C59 !important; border: 0 !important; height: 100% !important;
  306.     }
  307.    
  308.     scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
  309.     scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
  310.     scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
  311.     /**/
  312. }
  313.  
  314.  
  315. /* background color around/behind pictures opened in firefox (require html namespace on top) */
  316. @-moz-document regexp("(https?://|file:///)(.*)\\.(jpeg|jpg|gif|png|apng|svg|bmp|webm|webp)") {
  317.     body { background: var(--bg-light) !important; }
  318.     img.decoded { background-color: transparent !important; }
  319. }
  320.  
  321.  
  322. /* About:Blank background */
  323. @-moz-document url(about:blank) {
  324.     html,body { background: var(--bg-light) !important; }
  325. }
  326.  
  327. /* about:stylish-edit toolbar style */
  328. @-moz-document regexp("about:stylish-edit.*") {
  329.     #main-area, textbox { background: var(--bg-light) !important; }
  330.     textbox, grid, columns, rows, separator { border: 0 !important; }
  331.    
  332.     .devtools-toolbarbutton { background: var(--bg-dark) !important; color: var(--fg-light) !important; }
  333. }
  334.  
  335. /*----- Fix for white flash on new tab -----*/
  336. tabbrowser tabpanels, #appcontent > #content { background: var(--bg-light) !important; }
  337.  
  338.  
  339. /* Set dark text in light textareas */
  340. /*
  341. @-moz-document regexp("https?://(?!(localhost|twily.info|.*.4chan.org|.*.youtube.com)).*") {
  342.     input, textarea { color: #282333 !important; -moz-appearance: none !important; }
  343. }
  344. /**/
Advertisement
Add Comment
Please, Sign In to add comment