Advertisement
Guest User

FirefoxTheme

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