Gertjaars

firefox.css

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