Advertisement
Guest User

Untitled

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