Advertisement
DrPantsu

whitefirefoxcss

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