Advertisement
Twilypastes

ff-css-url-in-tab

Oct 9th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 17.81 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 "about: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: #17181A; --bg-dark: #27282B;
  22.     --fg-light: #CECFD1; --fg-dark: #AAABAD;
  23.     --tab-triangle-correction: -1px;
  24.     --tab-height: 24px; --tab-icon-size: 16px; --tab-strip-margin: -12px; --tab-overlap: -5px;
  25.     --tab-fonts: "Droid Sans","Source Sans Pro","Lemon",monospace,"Dejavu Sans"; --tab-font-size: 10pt;
  26.     --tab-text-align: left; /* left | center | right */
  27.     --tab-triangle: block;  /* block | none */
  28.  
  29.     /* URL VARIABLES */
  30.     --url-background: var(--bg-dark); --url-color: var(--fg-dark);
  31.     --url-height: 24px; --url-right-margin: 6px;
  32.     --url-fonts: "Droid Sans", "Source Sans Pro", "Lemon",monospace,"Dejavu Sans"; --url-font-size: 10pt;
  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.     #navigator-toolbox > #nav-bar {
  120.         opacity: 0 !important;  overflow: hidden !important;
  121.         height: 0 !important; min-height: 0 !important; border-top: 0 !important;
  122.         transition: .2s ease;
  123.     }
  124.     #navigator-toolbox:hover > #nav-bar {
  125.         opacity: 1 !important; overflow: auto !important;
  126.         height: var(--url-height) !important;
  127.     }
  128.     /**/
  129.    
  130.     #PopupAutoCompleteRichResult * { font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important; }
  131.     .ac-type-icon, .ac-ellipsis-after { width: 0 !important; height: 0 !important; min-width: 0 !important; }
  132.     .autocomplete-richlistitem > * { display: block !important; width: 50% !important; }
  133.     .ac-url-box { float: right !important; text-align: left !important; margin: 0 !important; }
  134.     .ac-title-box { float: left !important; text-align: right !important; }
  135.     .ac-site-icon { position: relative !important; top: 2px !important; }
  136.     .autocomplete-richlistitem {
  137.         height: var(--url-height) !important; width: 100% !important;
  138.         background-color: var(--bg-light)!important;
  139.         position: absolute !important; white-space: nowrap !important;
  140.         padding: 0 !important;
  141.     }
  142.     .autocomplete-richlistitem[selected="true"] { background-color: var(--bg-dark) !important; }
  143.     richlistbox { margin: 0 0 !important; }
  144.     #PopupAutoCompleteRichResult { margin: 0 3px !important; }
  145.  
  146.  
  147.    
  148.     /* TABS */
  149.     .tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: /*180px*/ 100% !important; }
  150.     tab {
  151.         font-family: var(--tab-fonts) !important;
  152.         height: var(--tab-height) !important; min-height: var(--tab-height) !important;
  153.         background: var(--bg-dark) !important; color: var(--fg-dark) !important;
  154.         font-size: var(--tab-font-size); text-shadow: none !important; text-align: var(--tab-text-align) !important;
  155.     }
  156.    
  157.     .tabbrowser-tab label { padding: 0 22px 0 22px !important; }
  158.    
  159.     #tabbrowser-tabs .tabbrowser-tab[pinned]            { width: 48px !important; }
  160.     #tabbrowser-tabs .tabbrowser-tab[pinned] label      { display: none !important; }
  161.    
  162.     #tabbrowser-tabs .tabbrowser-tab .tab-icon-image {
  163.         margin: 0 -10px 0 16px !important;
  164.         width: var(--tab-icon-size) !important;
  165.         height: var(--tab-icon-size) !important;
  166.     }
  167.    
  168.     .tabbrowser-tab *, .tabs-newtab-button * {
  169.         background: none !important; list-style-image: none !important;
  170.         margin: 0 0 0 0 !important; padding: 0 0 0 0 !important;
  171.         -moz-appearance: none !important;
  172.     }
  173.    
  174.     #alltabs-button { margin-left: -10px !important; }
  175.    
  176.     #tabbrowser-tabs .tabbrowser-tab[pinned] .tab-stack { height: var(--tab-height) !important; width: 100% !important; }
  177.     #tabbrowser-tabs .tabbrowser-arrowscrollbox, #tabbrowser-tabs .tabbrowser-arrowscrollbox .box-inherit.scrollbox-innerbox {
  178.         max-height: var(--tab-height) !important;
  179.     }
  180.     .scrollbutton-up, .scrollbutton-down { border: none !important; }
  181.    
  182.     #tabbrowser-tabs[overflow]:not([positionpinnedtabs]) { -moz-padding-start: 20px !important; }
  183.    
  184.     .tabbrowser-tab[selected="true"] .tab-stack {
  185.         background: var(--bg-light) !important; color: var(--fg-light) !important;
  186.         border-radius: 0px !important; position: relative !important;
  187.         /*border-top: 1px solid #dc52a5 !important;/**/
  188.     }
  189.     .tabbrowser-tab[selected="true"]:before { /* Left Triangle (of selected tab) */
  190.         content: '' !important; display: var(--tab-triangle);
  191.         position: absolute !important; top: 0 !important; left: var(--tab-overlap) !important;
  192.         width: 0 !important; height: 0 !important;
  193.         border: none !important; z-index: 2 !important;
  194.        
  195.         /**/
  196.         border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  197.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  198.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  199.         /*
  200.         border-top: var(--tab-height) solid var(--bg-dark) !important;
  201.         border-right: calc(var(--tab-height)/2) solid var(--bg-light) !important;
  202.         /**/
  203.     }
  204.     .tabbrowser-tab[selected="true"]:after { /* Right Triangle (of selected tab) */
  205.         content: '' !important; display: var(--tab-triangle);
  206.         position: absolute !important; top: 0 !important; right: var(--tab-overlap) !important;
  207.         width: 0 !important; height: 0 !important;
  208.         border: none !important; z-index: 2 !important;
  209.        
  210.         /**/
  211.         border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  212.         border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  213.         border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  214.         /*
  215.         border-top: var(--tab-height) solid var(--bg-dark) !important;
  216.         border-left: calc(var(--tab-height)/2) solid var(--bg-light) !important;
  217.         /**/
  218.     }
  219.    
  220.     #TabsToolbar, #tabbrowser-tabs {
  221.         -moz-appearance: none !important;
  222.         height: var(--tab-height) !important; min-height: var(--tab-height)!important;
  223.         margin: 0 var(--tab-strip-margin) !important;
  224.         background: var(--bg-dark) !important;
  225.        
  226.         /* --- Uncomment section below to attach url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
  227.         /**/margin-left: 153px !important;/**/
  228.     }
  229.     #TabsToolbar::after { display: none !important; }
  230.     .tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; opacity: 1 !important; visibility: visible !important; }
  231.    
  232.     /*browser, #navigator-toolbox { -moz-appearance: none !important; background: transparent !important; }*/
  233.    
  234.     #navigator-toolbox::after { height: 0px !important; background: var(--bg-light) !important; }
  235.     #liberator-separator { height: 0px !important; background: var(--bg-light) !important; border-top: 0 !important; }
  236.    
  237.     /* MENUS */
  238.     menuitem + menuseparator, menu + menuseparator/*, .menu-iconic-left*/ { display: none !important; }
  239.     /*menuitem > label { margin-left: var(--tab-height) !important; }*/
  240.     /*menubar, menubutton, menulist, menu, menuitem {
  241.         font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size);
  242.         height: var(--tab-height) !important;
  243.     }*/
  244.  
  245.     /* HIDE ORANGE MENU BUTTON */
  246.     #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  247.    
  248.     /* HIDE STATUS BAR */
  249.     #status-bar, #statusbar-display, statuspanel { display: none !important; }
  250.  
  251.     /* PRIVATE BROWSING ICON HIDE */
  252.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator,
  253.     #main-window[privatebrowsingmode=temporary] #private-browsing-indicator-titlebar { display: none !important; }
  254.    
  255.     /* Vimperator icon style */
  256.     #liberator-statusline:not([customizing="true"]) { margin: 0 2px !important; padding: 0 0 !important; height: var(--url-height) !important; }
  257.     #liberator-statusline:not([customizing="true"]) :-moz-any(toolbarbutton) { height: 100% !important; }
  258.    
  259.     /* Second below can be used to customize specific buttons/addons attached to vimperator (find ID with DOM inspector and set new image url) */
  260.     #tabview-button {
  261.         list-style-image: url(http://twily.info/img/tabview-button.png?v=2) /* 16x16 px image */ !important;
  262.         -moz-image-region: rect(0, 0, 0, 0) !important;
  263.     }
  264.    
  265.     #liberator-completions, #liberator-bottombar-deck { background: var(--bg-dark) !important; }
  266.  
  267.     /* Tabgroup margin top fix --- DEPRECATED !!!!!!  */
  268.     /*#tab-view-deck #tab-view { margin: 24px 12px 12px 12px !important; }
  269.     #tab-view-deck { background: var(--bg-light) !important; }*/
  270.    
  271.     window[sizemode="fullscreen"] #liberator-statusline { display: none !important; }
  272.     window[sizemode="fullscreen"] #liberator-bottombar  {
  273.         margin-top: -24px !important;
  274.         transition: 1s ease !important; transition-delay: .3s !important;
  275.     }
  276.     /*window[sizemode="fullscreen"] #browser-panel        { margin-top: -1px !important; }*/
  277. }
  278.  
  279.  
  280. /* Tab Group Page Style (Ctrl+Shift+E) --- DEPRECATED !!!!! */
  281. /*
  282. @-moz-document url(chrome://browser/content/tabview.html) {
  283.     #content #bg, #actions, body { background: var(--bg-light) !important; }
  284.     body * { color: var(--fg-light) !important; }
  285.    
  286.     body .groupItem, #content #actions, body .undo {
  287.         background: var(--bg-dark) !important;
  288.         border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 0 !important;
  289.     }
  290.     #content #actions {
  291.         opacity: 0 !important; display: none !important; /* block | none
  292.         transition: .3s ease-out !important;
  293.     }
  294.     #content #actions:hover { opacity: 1 !important; }
  295.    
  296.     body .appTabTrayContainer { border: 0 !important; }
  297.     body .tab, body .tab .thumb {
  298.         box-shadow: 0 0 0 0 !important; border: 0 !important; border-radius: 0 !important;
  299.         background: transparent !important; padding : 0 !important;
  300.     }
  301.     body .tab .favicon { display: none !important; }
  302.     body .groupItem .name { border: 0 !important; }
  303.     body .tab .tab-title { padding-top: 2px !important; }
  304. }
  305. */
  306.  
  307. /* AGENT_SHEET */
  308. @-moz-document url-prefix(http://), url-prefix(https://), url-prefix(chrome://liberator/), url-prefix(file:///) {
  309.     /* SCROLLBAR */
  310.     scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  311.     scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  312.         display: none !important; /* block | none (enable scrollbar) */
  313.     }
  314.    
  315.     /*
  316.        Uncomment section below to apply style
  317.    
  318.        (width/height is controlled by the margin)
  319.     */
  320.     /*
  321.     scrollbar > slider { -moz-appearance: none !important; }
  322.    
  323.     scrollbar[orient="vertical"] { margin: 0 -10px 0 0 !important; }
  324.     scrollbar[orient='vertical'] > slider { background: #27282B !important; max-width: 100% !important; }
  325.     scrollbar[orient='vertical'] > slider > thumb {
  326.         -moz-appearance: none !important;
  327.         background: #17181A !important; border: 0 !important; width: 100% !important;
  328.     }
  329.    
  330.     scrollbar[orient="horizontal"] { margin: 0 0 -10px 0 !important; }
  331.     scrollbar[orient='horizontal'] > slider { background: #27282B !important; max-height: 100% !important; }
  332.     scrollbar[orient='horizontal'] > slider > thumb {
  333.         -moz-appearance: none !important;
  334.         background: #17181A !important; border: 0 !important; height: 100% !important;
  335.     }
  336.    
  337.     scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
  338.     scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
  339.     scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
  340.     /**/
  341. }
  342.  
  343.  
  344. /* background color around/behind pictures opened in firefox (require html namespace on top) */
  345. @-moz-document regexp("(https?://|file:///)(.*)\\.(jpeg|jpg|gif|png|apng|svg|bmp|webm|webp)") {
  346.     body { background: var(--bg-light) !important; }
  347.     img.decoded { background-color: transparent !important; }
  348. }
  349.  
  350.  
  351. /* About:Blank background */
  352. @-moz-document url(about:blank) {
  353.     html,body { background: var(--bg-light) !important; }
  354. }
  355.  
  356. /* about:stylish-edit toolbar style */
  357. @-moz-document regexp("about:stylish-edit.*") {
  358.     #main-area, textbox { background: var(--bg-light) !important; }
  359.     textbox, grid, columns, rows, separator { border: 0 !important; }
  360.    
  361.     .devtools-toolbarbutton { background: var(--bg-dark) !important; color: var(--fg-light) !important; }
  362. }
  363.  
  364. /*----- Fix for white flash on new tab -----*/
  365. tabbrowser tabpanels, #appcontent > #content { background: var(--bg-light) !important; }
  366.  
  367.  
  368. /* Set dark text in light textareas */
  369. /*
  370. @-moz-document regexp("https?://(?!(localhost|twily.info|.*.4chan.org|.*.youtube.com)).*") {
  371.     input, textarea { color: #222628 !important; -moz-appearance: none !important; }
  372. }
  373. /**/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement