notepad987

My Firefox userChrome.css file

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