Guest User

Untitled

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