Guest User

Firefox CSS UserContent

a guest
Jun 18th, 2026
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. /*These two symbols allow comments.*/
  2.  
  3. /*This removes the Firefox logo on the new tabs page.*/
  4. @-moz-document url("about:newtab"), url("about:home") {
  5. .logo-and-wordmark {
  6. display:none !important;
  7. }
  8.  
  9. /*This changes the scale of the pinned/recent websites icons on the new tabs page.*/
  10. .top-sites-list .top-site-outer .top-site-button {
  11. transform: scale(1.2,1.2) !important;
  12. }
  13. }
  14.  
  15. /*This governs the space between the pinned/recent websites icons on the new tabs page. Unforntunately, altering this alone uncenters the buttons and can make the "..." button overlap.*/
  16. .top-site-outer {
  17. width: 100px !important; /* 120 is default value */
  18. }
  19.  
  20. /*This changes the length and width of the inner colorful portion of the pinned/recent websites icons.*/
  21. .top-site-outer .tile .icon-wrapper {
  22. width: 30px !important; /* 40 is default value */
  23. height: 30px !important; /* 40 is default value */
  24. }
  25.  
  26. /*Makes the rounding of the pinned websites tiles on the new tabs page less ugly.*/
  27. @-moz-document url(chrome://browser/content/browser.xul), url(about:newtab), url(about:home) {
  28. .top-site-outer .tile {
  29. border-radius: 10px !important;
  30. }
  31. }
  32.  
  33. /*Vertically centers the favorite websites icons.*/
  34. @-moz-document url(about:newtab), url(about:home) {
  35. main {
  36. margin-top: var(--newtab-pinnedsites-position-top, 6%) !important;
  37. }
  38. }
  39.  
  40. /*Removes customise buttons purple border and light purple background color.*/
  41. @-moz-document url(about:newtab), url(about:home) {
  42. .button-background {
  43. border: none !important;
  44. border-radius: 4px !important;
  45. button:hover > & {
  46. background-color: transparent !important;
  47. }
  48. }
  49. }
  50.  
  51. @-moz-document url(about:newtab), url(about:home) {
  52.  
  53. /* Removes Nova tile mouseover enlarge animation */
  54. .nova-enabled .top-site-outer:is(:hover, :focus-within, .active) .tile {
  55. width: 64px !important;
  56. height: 64px !important;
  57. }
  58.  
  59. /* Removes Nova animation for pin and ... icons */
  60. .nova-enabled .top-site-outer:is(:hover, :focus-within, .active) .icon-pin-small,
  61. .nova-enabled .top-site-outer:is(:hover, :focus-within, .active) .context-menu-button {
  62. transition: none !important;
  63. }
  64.  
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment