Guest User

Firefox Tiny CSS

a guest
Jan 2nd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.80 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: #212121; --bg-dark: #000000;
  18. --fg-light: #D6CCDC; --fg-dark: #AAA5AD;
  19. --tab-triangle-correction: -1px;
  20. --tab-height: 17px; --tab-icon-size: 10px; --tab-strip-margin: -11px; --tab-overlap: -5px;
  21. --tab-fonts: "Roboto",monospace,"Dejavu Sans"; --tab-font-size: 11px;
  22. --tab-triangle: block; /* block | none */
  23.  
  24. /* URL VARIABLES */
  25. --url-background: var(--bg-light); --url-color: var(--fg-light);
  26. --url-height: 15px; --url-right-margin: 5px;
  27. --url-fonts: "Roboto",monospace,"Dejavu Sans"; --url-font-size: 10px;
  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. /*, #alltabs-button, #tabview-button, .tab-icon-image*/, .tab-icon-image:not([pinned]) { display: none !important; }
  41.  
  42. .tab-drop-indicator { margin-bottom: 0 !important; }
  43.  
  44. #nav-bar {
  45. position: var(--url-position) !important; bottom: 0 !important;
  46. width: 100% !important; height: var(--url-height) !important;
  47. min-height: var(--url-height) !important; max-height: var(--url-height) !important;
  48. margin: 0 0 0 0 !important;
  49.  
  50. /* --- Uncomment the section below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#TabsToolbar" below) --- */
  51. /*
  52. position: fixed !important; top: 0 !important; left: 0 !important;
  53. width: 315px !important; max-width: 315px !important;
  54. z-index: 100 !important;
  55. /**/
  56. }
  57. #nav-bar-customization-target { width: 100% !important; }
  58. #urlbar-wrapper {
  59. width: 100% !important; margin-top: -1px !important; /* adjust margin-top to ~ -5px if you experience gap */
  60. position: absolute !important; top: 0 !important; left: 0 !important;
  61. border-bottom: 0px solid var(--bg-light) !important;
  62. }
  63. #urlbar {
  64. border: none !important; border-radius: 0 !important;
  65. margin: 0 0 0 0 !important; padding: 0 2px 0 9px !important;
  66. width: calc(100% + var(--url-right-margin)) !important;
  67. height: var(--url-height) !important; min-height: var(--url-height) !important;
  68. background: var(--url-background) !important; color: var(--url-color) !important;
  69. font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
  70. text-align: var(--url-text-align) !important;
  71. }
  72. /*#urlbar * { -moz-appearance: none !important; }*/
  73.  
  74. /* --- Comment out the section below to make the url-bar visible --- */
  75. /**/
  76. /*
  77. #nav-bar {
  78. width: 0 !important; height: 0 !important;
  79. position: fixed !important; left: -1px !important; top: -1px !important;
  80. overflow: hidden !important; visibility: hidden !important;
  81. }*/
  82. /**/
  83.  
  84.  
  85. /* TABS */
  86. .tabbrowser-tab[fadein]:not([pinned]) { min-width: 50px !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: center /* center | left */ !important;
  92. }
  93.  
  94. .tabbrowser-tab label { padding: 0 14px 0 14px !important; }
  95.  
  96. #tabbrowser-tabs .tabbrowser-tab[pinned] { width: 38px !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 14px !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. .tabbrowser-tab[selected="true"]:before { /* Left Triangle (of selected tab) */
  123. content: '' !important; display: var(--tab-triangle);
  124. position: absolute !important; top: 0 !important; left: var(--tab-overlap) !important;
  125. width: 0 !important; height: 0 !important;
  126. border: none !important; z-index: 2 !important;
  127.  
  128. border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  129. border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  130. border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  131. /*border-top: var(--tab-height) solid var(--bg-dark) !important;
  132. border-right: calc(var(--tab-height)/2) solid var(--bg-light) !important;*/
  133. }
  134. .tabbrowser-tab[selected="true"]:after { /* Right Triangle (of selected tab) */
  135. content: '' !important; display: var(--tab-triangle);
  136. position: absolute !important; top: 0 !important; right: var(--tab-overlap) !important;
  137. width: 0 !important; height: 0 !important;
  138. border: none !important; z-index: 2 !important;
  139.  
  140. border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
  141. border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
  142. border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
  143. /*border-top: var(--tab-height) solid var(--bg-dark) !important;
  144. border-left: calc(var(--tab-height)/2) solid var(--bg-light) !important;*/
  145. }
  146.  
  147. #TabsToolbar, #tabbrowser-tabs {
  148. -moz-appearance: none !important;
  149. height: var(--tab-height) !important; min-height: var(--tab-height)!important;
  150. margin: 0 var(--tab-strip-margin) !important;
  151. background: var(--bg-dark) !important;
  152.  
  153. /* --- Uncomment the line below to attach the url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
  154. /*margin-left: 150px !important;/**/
  155. }
  156. #TabsToolbar::after { display: none !important; }
  157. .tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; opacity: 1 !important; }
  158.  
  159. /*browser, #navigator-toolbox { -moz-appearance: none !important; background: transparent !important; }*/
  160.  
  161. #navigator-toolbox::after { height: 0px !important; background: var(--bg-light) !important; }
  162. #liberator-separator { height: 0px !important; background: var(--bg-light) !important; }
  163.  
  164. /* MENUS */
  165. menuitem + menuseparator, menu + menuseparator/*, .menu-iconic-left*/ { display: none !important; }
  166. /*menuitem > label { margin-left: var(--tab-height) !important; }*/
  167. menubar, menubutton, menulist, menu, menuitem {
  168. font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size);
  169. height: var(--tab-height) !important;
  170. }
  171.  
  172. /* HIDE ORANGE MENU BUTTON */
  173. #appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
  174.  
  175. /* HIDE STATUS BAR */
  176. #status-bar, #statusbar-display, statuspanel { display: none !important; }
  177.  
  178. /* PRIVATE BROWSING ICON HIDE */
  179. #main-window[privatebrowsingmode=temporary] #private-browsing-indicator,
  180. #main-window[privatebrowsingmode=temporary] #private-browsing-indicator-titlebar { display: none !important; }
  181.  
  182. /* Vimperator icon style */
  183. #liberator-statusline:not([customizing="true"]) { margin: -2px -2px !important; padding: 0 0 !important; height: 24px !important; }
  184. #liberator-statusline:not([customizing="true"]) :-moz-any(toolbarbutton) { height: 100% !important; }
  185. #tabview-button {
  186. list-style-image: url(http://twily.info/img/tabview-button.png?v=2) /* 16x16 px image */ !important;
  187. -moz-image-region: rect(0, 0, 0, 0) !important;
  188. }
  189.  
  190. #liberator-completions { background: var(--bg-dark) !important; }
  191.  
  192. /* Tabgroup margin top fix */
  193. #tab-view-deck #tab-view { margin-top: 11px !important; }
  194. #tab-view-deck { background: var(--bg-light) !important; }
  195. }
  196.  
  197.  
  198. /* Tab Group Page Style (Ctrl+Shift+E) */
  199. @-moz-document url(chrome://browser/content/tabview.html) {
  200. #content #bg, #actions, body { background: var(--bg-light) !important; }
  201. body * { color: var(--fg-light) !important; }
  202.  
  203. body .groupItem, #content #actions, body .undo {
  204. background: var(--bg-dark) !important;
  205. border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 0 !important;
  206. }
  207. #content #actions {
  208. opacity: 0 !important; display: none !important; /* block | none */
  209. transition: .3s ease-out !important;
  210. }
  211. #content #actions:hover { opacity: 1 !important; }
  212.  
  213. body .appTabTrayContainer { border: 0 !important; }
  214. body .tab, body .tab .thumb {
  215. box-shadow: 0 0 0 0 !important; border: 0 !important; border-radius: 0 !important;
  216. background: transparent !important; padding : 0 !important;
  217. }
  218. body .tab .favicon { display: none !important; }
  219. body .groupItem .name { border: 0 !important; }
  220. body .tab .tab-title { padding-top: 2px !important; }
  221. }
  222.  
  223.  
  224. /* AGENT_SHEET */
  225. @-moz-document url-prefix(http://), url-prefix(https://), url-prefix(chrome://liberator/) {
  226. /* SCROLLBAR */
  227. scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
  228. scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
  229. display: none !important; /* none = hide || block = show */
  230. }
  231.  
  232. /*
  233. scrollbar > slider { -moz-appearance: none !important; }
  234.  
  235. scrollbar[orient="vertical"] { margin: -3px -7px -3px -3px !important; }
  236. scrollbar[orient='vertical'] > slider { background: #282333 !important; max-width: 5px !important; }
  237. scrollbar[orient='vertical'] > slider > thumb {
  238. -moz-appearance: none !important;
  239. background: #524C59 !important; border: 0 !important;
  240. width: 5px !important; max-width: 5px !important;
  241. }
  242.  
  243. scrollbar[orient="horizontal"] { margin: -3px -3px -7px -3px !important; }
  244. scrollbar[orient='horizontal'] > slider { background: #282333 !important; max-height: 5px !important; }
  245. scrollbar[orient='horizontal'] > slider > thumb {
  246. -moz-appearance: none !important;
  247. background: #524C59 !important; border: 0 !important;
  248. height: 5px !important; max-height: 5px !important;
  249. }
  250.  
  251. scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
  252. scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
  253. scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
  254. /**/
  255. }
  256.  
  257.  
  258. /* background color around/behind pictures opened in firefox (require html namespace on top) */
  259. @-moz-document regexp("(https?://|file:///)(.*)\\.(jpeg|jpg|gif|png|apng|svg|bmp|webm|webp)") {
  260. body { background: var(--bg-light) !important; }
  261. img.decoded { background-color: transparent !important; }
  262. }
  263.  
  264.  
  265. /* About:Blank background */
  266. @-moz-document url(about:blank) {
  267. html,body { background: var(--bg-light) !important; }
  268. }
  269.  
  270. /* about:stylish-edit toolbar style */
  271. @-moz-document regexp("about:stylish-edit.*") {
  272. #main-area, textbox { background: var(--bg-light) !important; }
  273. textbox, grid, columns, rows, separator { border: 0 !important; }
  274.  
  275. .devtools-toolbarbutton { background: var(--bg-dark) !important; color: var(--fg-light) !important; }
  276. }
  277.  
  278. /*----- Fix for white flash on new tab -----*/
  279. tabbrowser tabpanels, #appcontent > #content { background: var(--bg-light) !important; }
  280.  
  281.  
  282. /* Set dark text in light textareas
  283. @-moz-document regexp("https?://(?!(localhost|twily.info|.*.4chan.org|.*.youtube.com)).*") {
  284. input, textarea { color: #222628 !important; -moz-appearance: none !important; }
  285. }*/
Advertisement
Add Comment
Please, Sign In to add comment