Advertisement
Guest User

Twily Mod Black

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