notepad987

My Firefox userChrome.css file

Mar 7th, 2025 (edited)
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.01 KB | Help | 0 0
  1. /* =========================================================
  2. TAB BORDER RADIUS & GLOBAL VARIABLES
  3. ========================================================= */
  4.  
  5. :root {
  6. --tab-border-radius: 8px !important;
  7. --lwt-selected-tab-background-color: #66CDAA !important;
  8. }
  9.  
  10. #tabbrowser-tabs,
  11. .tabbrowser-tab {
  12. --tab-selected-bg-color: #66CDAA !important;
  13. --tab-background-color: #66CDAA !important;
  14. --lwt-selected-tab-background-color: #66CDAA !important;
  15. --toolbar-bgcolor: #66CDAA !important;
  16. }
  17.  
  18. /* =========================================================
  19. BOOKMARKS / LIBRARY
  20. ========================================================= */
  21.  
  22. /* Font size in Bookmarks > Manage Bookmarks > Library
  23. popup on the right-hand side */
  24. @-moz-document url(chrome://browser/content/places/places.xhtml) {
  25. #placeContent treechildren {
  26. font-size: 14px !important;
  27. font-family: 'Trebuchet MS' !important;
  28. }
  29. }
  30.  
  31. /* Font size in Bookmarks > Manage Bookmarks > Library
  32. popup on the left-hand side */
  33. @-moz-document url(chrome://browser/content/places/places.xhtml) {
  34. #placesView {
  35. font-size: 14px !important;
  36. font-family: 'Trebuchet MS' !important;
  37. }
  38. }
  39.  
  40. /* =========================================================
  41. MULTI-ROW TABS
  42. ========================================================= */
  43.  
  44. /* Allow tabs to wrap onto multiple rows and collapse vertical gaps */
  45. scrollbox[part][orient="horizontal"] > * {
  46. flex-wrap: wrap !important;
  47. align-content: flex-start !important;
  48. }
  49.  
  50. /* Remove vertical spacing between tab rows */
  51. .tabbrowser-tab {
  52. margin-top: 0px !important;
  53. margin-bottom: 0px !important;
  54. padding-top: 0px !important;
  55. padding-bottom: 0px !important;
  56. }
  57.  
  58. /* Tab height */
  59. .tabbrowser-tab,
  60. .tabbrowser-tab > .tab-stack {
  61. min-height: 39px !important;
  62. height: 39px !important;
  63. }
  64.  
  65. /* Keep tab contents flush with the tab */
  66. .tabbrowser-tab .tab-content {
  67. margin-top: 0px !important;
  68. margin-bottom: 0px !important;
  69. padding-top: 0px !important;
  70. padding-bottom: 0px !important;
  71. }
  72.  
  73. /* Remove spacing between tab rows */
  74. #tabbrowser-tabs {
  75. --tab-block-margin: 0px !important;
  76. }
  77.  
  78. /* =========================================================
  79. TOOLBAR ORDER
  80. ========================================================= */
  81.  
  82. #nav-bar {
  83. order: 1 !important;
  84. }
  85.  
  86. #PersonalToolbar {
  87. order: 2 !important;
  88. }
  89.  
  90. #TabsToolbar {
  91. order: 3 !important;
  92. }
  93.  
  94. /* =========================================================
  95. URL FIELD
  96. ========================================================= */
  97.  
  98. /* URL field text size */
  99. #nav-bar {
  100. font-size: 12px !important;
  101. }
  102.  
  103. /* =========================================================
  104. SIDEBAR
  105. ========================================================= */
  106.  
  107. /* Sidebar color / font size formatting */
  108. .sidebar-placesTree treechildren::-moz-tree-cell-text {
  109. font-size: 15px !important;
  110. color: #000000 !important;
  111. font-family: 'Trebuchet MS' !important;
  112. }
  113.  
  114. /* =========================================================
  115. BOOKMARK FOLDER ICON
  116. ========================================================= */
  117.  
  118. /* Bookmark folder code from sifferedd
  119. Folder-item.png file is from:
  120. https://github.com/Aris-t2/CustomCSSforFx/blob/4.4.8/current/image/folder-item.png
  121.  
  122. Need folder file to be in the profile/Chrome folder.
  123. */
  124.  
  125. .bookmark-item[container],
  126. treechildren::-moz-tree-image(container),
  127. .folder-icon {
  128. list-style-image: url("folder-item4.png") !important;
  129. }
  130.  
  131. /* =========================================================
  132. TITLE BAR
  133. ========================================================= */
  134.  
  135. /* Both active and inactive titlebar use the same color */
  136. .browser-titlebar {
  137. color: #000000 !important;
  138. background-color: #dfdfe2 !important;
  139. }
  140.  
  141. /* =========================================================
  142. SIDEBAR HOVER / SELECTED COLOR
  143. ========================================================= */
  144.  
  145. /* MediumAquamarine - green background on hover
  146. on sidebar or selected */
  147. .sidebar-placesTree treechildren::-moz-tree-row(hover),
  148. .sidebar-placesTree treechildren::-moz-tree-row(selected) {
  149. background-color: #66CDAA !important;
  150. }
  151.  
  152. /* =========================================================
  153. NAVIGATOR TOOLBOX
  154. ========================================================= */
  155.  
  156. /* Code from sifferedd */
  157. #navigator-toolbox {
  158. font-family: "Quicksand Medium" !important;
  159. color: #000000 !important;
  160. }
  161.  
  162. .bookmark-item > .toolbarbutton-text {
  163. font-size: 14px !important;
  164. font-family: 'Quicksand Medium' !important;
  165. }
  166.  
  167. #personal-bookmarks {
  168. font-size: 14px !important;
  169. font-family: 'Quicksand Medium' !important;
  170. }
  171.  
  172. #bookmarksMenuPopup,
  173. .bookmark-item {
  174. font-size: 14px !important;
  175. font-family: 'Quicksand Medium' !important;
  176. }
  177.  
  178. /* =========================================================
  179. MAIN MENU FONT
  180. ========================================================= */
  181.  
  182. /* File, Edit, View, etc. font size */
  183. #main-menubar {
  184. font-size: 15px !important;
  185. font-family: 'Quicksand Medium' !important;
  186. }
  187.  
  188. /* =========================================================
  189. TAB COLORS
  190. ========================================================= */
  191.  
  192. /* Strip default Firefox top line & outline variables from container */
  193. #tabbrowser-tabs,
  194. .tabbrowser-tab {
  195. --tab-line-color: transparent !important;
  196. --lwt-tab-line-color: transparent !important;
  197. --tab-outline-color: transparent !important;
  198. }
  199.  
  200. /* Normal unselected tab = WHITE */
  201. .tabbrowser-tab:not([selected]):not([multiselected]):not(:hover) .tab-background {
  202. background-color: #FFFFFF !important;
  203. background-image: none !important;
  204. border-radius: 8px 8px 0 0 !important;
  205. box-shadow: none !important;
  206. }
  207.  
  208. /* Unselected tab with mouse hover = ORANGE */
  209. .tabbrowser-tab:not([selected]):not([multiselected]):hover .tab-background {
  210. background-color: #FF7F50 !important;
  211. background-image: none !important;
  212. border-radius: 8px 8px 0 0 !important;
  213. box-shadow: none !important;
  214. }
  215.  
  216. /* Selected current tab = GREEN (without gray top border or top outline) */
  217. .tabbrowser-tab[selected] .tab-background,
  218. .tabbrowser-tab[multiselected] .tab-background {
  219. background-color: #66CDAA !important;
  220. background-image: none !important;
  221. border-radius: 8px 8px 0 0 !important;
  222. border: none !important;
  223. border-top: 0px solid transparent !important;
  224. outline: none !important;
  225. box-shadow: none !important;
  226. opacity: 1 !important;
  227. }
  228.  
  229. /* Ensure inner tab elements do not render top line shadows */
  230. .tabbrowser-tab[selected] .tab-background *,
  231. .tabbrowser-tab[multiselected] .tab-background * {
  232. background-color: #66CDAA !important;
  233. background-image: none !important;
  234. border: none !important;
  235. outline: none !important;
  236. box-shadow: none !important;
  237. }
  238.  
  239. /* Hide line overlays and pseudo-elements above the tab stack */
  240. .tab-line,
  241. .tab-background::before,
  242. .tab-background::after,
  243. .tab-context-line {
  244. display: none !important;
  245. background-color: transparent !important;
  246. border: none !important;
  247. }
  248.  
  249. /* Selected tab inner background = GREEN */
  250. .tabbrowser-tab[selected="true"] > .tab-stack > .tab-background > .tab-background-inner,
  251. .tabbrowser-tab[multiselected="true"] > .tab-stack > .tab-background > .tab-background-inner {
  252. background: #66CDAA !important;
  253. background-image: none !important;
  254. opacity: 1 !important;
  255. box-shadow: none !important;
  256. }
  257.  
  258. /* Remove default top line element inside tab stack */
  259. .tab-line,
  260. .tab-background::before,
  261. .tab-background::after {
  262. display: none !important;
  263. background-color: transparent !important;
  264. }
  265.  
  266. /* Selected tab inner background = GREEN */
  267. .tabbrowser-tab[selected="true"] > .tab-stack > .tab-background > .tab-background-inner,
  268. .tabbrowser-tab[multiselected="true"] > .tab-stack > .tab-background > .tab-background-inner {
  269. background: #66CDAA !important;
  270. background-image: none !important;
  271. opacity: 1 !important;
  272. }
  273.  
  274. /* =========================================================
  275. TAB FONT
  276. ========================================================= */
  277.  
  278. /* Font size on tabs */
  279. .tab-label {
  280. font-size: 12px !important;
  281. font-family: 'Quicksand Medium' !important;
  282. font-weight: bold;
  283. }
  284.  
  285. /* =========================================================
  286. RIGHT-CLICK MENU / CONTEXT MENU
  287. ========================================================= */
  288.  
  289. /* Font size for right-click menu */
  290. menupopup {
  291. font-size: 13px !important;
  292. }
  293.  
  294. /* Font size for dropdown menu lines before bookmarks */
  295. menubar {
  296. font-size: 14px !important;
  297. }
  298.  
  299. /* =========================================================
  300. CONTEXT MENU COLORS
  301. ========================================================= */
  302.  
  303. menupopup:not(
  304. .in-menulist,
  305. .toolbar-menupopup,
  306. .toolbar-menupopup menupopup
  307. ) {
  308. --panel-background: #f9f9fb !important;
  309. --panel-color: #000000 !important;
  310. --panel-padding: 6px !important;
  311. --panel-border-radius: 12px !important;
  312. --panel-border-color: transparent !important;
  313. }
  314.  
  315. /* =========================================================
  316. MENU HIGHLIGHT TEXT
  317. ========================================================= */
  318.  
  319. [_moz-menuactive]:not([disabled="true"]) {
  320. color: #000000 !important;
  321. font-weight: bold;
  322. }
  323.  
  324. /* Disabled highlighted menu item */
  325. [_moz-menuactive="true"][disabled="true"] {
  326. background-color: #ffffff !important;
  327. }
  328.  
  329. /* =========================================================
  330. MENU HOVER COLOR
  331. ========================================================= */
  332.  
  333. menu:where(
  334. [_moz-menuactive="true"]:not([disabled="true"])
  335. ),
  336. menuitem:where(
  337. [_moz-menuactive="true"]:not([disabled="true"])
  338. ) {
  339. background-color: #66CDAA !important;
  340. color: #000000 !important;
  341. }
  342.  
  343. /* =========================================================
  344. BOOKMARK / PLACES TREE
  345. ========================================================= */
  346.  
  347. /* Selected and Focus */
  348. #placesView treechildren::-moz-tree-row(selected),
  349. #placesView treechildren::-moz-tree-row(selected, focus) {
  350. background-color: green !important;
  351. }
  352.  
  353. /* Hovered row */
  354. #placesView treechildren::-moz-tree-row(hover) {
  355. background-color: #66CDAA !important;
  356. }
  357.  
  358. /* Hovered text */
  359. #placesView treechildren::-moz-tree-cell-text(hover) {
  360. color: black !important;
  361. }
  362.  
  363. /* =========================================================
  364. TAB CLOSE BUTTON
  365. ========================================================= */
  366.  
  367. /* Always display the close button on all tabs, regardless of size */
  368. .tab-close-button:not([pinned="true"]) {
  369. display: -moz-box !important;
  370. }
  371.  
  372. /* =========================================================
  373. TAB SPACING
  374. ========================================================= */
  375.  
  376. .tab-background {
  377. --tab-margin-block: 0 !important;
  378. }
  379. #tabbrowser-tabs[orient="horizontal"] {
  380. --tabstrip-min-height: 0 !important;
  381. padding-block-start: 5px; /* Adds space above tabs, remove if unwanted */
  382. }
  383.  
  384. slot[part="items-wrapper"] { gap: 5px 0 !important; }
Advertisement
Add Comment
Please, Sign In to add comment