Gertjaars

firefox.css (new)

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