DrPantsu

twily edit

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