Advertisement
DrPantsu

twilycss

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