zzaaasa

userContent.css

Jul 12th, 2025
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. @-moz-document url("about:newtab"), url("about:home"), url(about:privatebrowsing) {
  2. /* Sets background image and autoscale image to browser window. */
  3. body{
  4. background-image: url("wallpaper/bg.jpg") !important;
  5. background-size: cover !important;
  6. background-repeat: no-repeat !important;
  7. background-attachment: fixed !important;
  8. background-position-x: center !important;
  9. background-position-y: bottom !important;
  10. }
  11.  
  12. /* Center and constrain the main content area */
  13. .body-wrapper {
  14. max-width: 600px !important;
  15. margin: 0 auto !important;
  16. padding: 30px 30px 40px 30px !important;
  17. }
  18.  
  19. /* Firefox logo styling - center it properly with better spacing */
  20. .logo-and-wordmark {
  21. display: flex !important;
  22. justify-content: center !important;
  23. align-items: center !important;
  24. text-align: center !important;
  25. margin-bottom: 40px !important;
  26. margin-top: 20px !important;
  27. padding: 0 20px !important;
  28. }
  29.  
  30. /* Replace Firefox logo with custom orbital SVG icon */
  31. .logo-and-wordmark .logo {
  32. /* Use your orbital(1).svg file */
  33. background: url("wallpaper/orbital(1).svg") no-repeat center center !important;
  34. background-size: contain !important;
  35. width: 60px !important;
  36. height: 60px !important;
  37.  
  38. /* Hide the original Firefox logo */
  39. color: transparent !important;
  40. fill: transparent !important;
  41.  
  42. /* Style the new logo */
  43. filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)) !important;
  44.  
  45. /* If you need to make it white/invert colors, uncomment this: */
  46. /* filter: invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)) !important; */
  47. }
  48.  
  49. /* Alternative Method 2: Embed SVG directly in CSS */
  50. /*
  51. .logo-and-wordmark .logo {
  52. background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-8C141.163 48 48 141.163 48 256s93.163 208 208 208 208-93.163 208-208S370.837 48 256 48L256 48z'/%3E%3C/svg%3E") no-repeat center center !important;
  53. background-size: contain !important;
  54. width: 96px !important;
  55. height: 96px !important;
  56. color: transparent !important;
  57. fill: transparent !important;
  58. filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3)) !important;
  59. }
  60. */
  61.  
  62. /* Hide the original SVG content */
  63. .logo-and-wordmark .logo svg,
  64. .logo-and-wordmark .logo svg * {
  65. display: none !important;
  66. }
  67.  
  68. /* If you want to also replace or hide the "Firefox" text */
  69. .logo-and-wordmark .wordmark {
  70. /* Hide Firefox text completely */
  71. /* display: none !important; */
  72.  
  73. /* Or replace with custom text */
  74. /* color: transparent !important; */
  75. /* font-size: 0 !important; */
  76. }
  77.  
  78. /* Add custom text after hiding Firefox wordmark */
  79. .logo-and-wordmark .wordmark::after {
  80. /* content: "Your Custom Text" !important; */
  81. /* color: rgba(255, 255, 255, 0.9) !important; */
  82. /* font-size: 48px !important; */
  83. /* text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important; */
  84. }
  85.  
  86. /* Style the Firefox text/wordmark separately */
  87. .logo-and-wordmark .wordmark {
  88. /* Change text color */
  89. color: rgba(255, 255, 255, 0.9) !important;
  90. text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  91.  
  92. /* Uncomment for different text effects: */
  93.  
  94. /* Change font size */
  95. /* font-size: 1.2em !important; */
  96.  
  97. /* Add letter spacing */
  98. /* letter-spacing: 2px !important; */
  99.  
  100. /* Change font weight */
  101. /* font-weight: 300 !important; */
  102. }
  103.  
  104. /* Style the entire logo container */
  105. .logo-and-wordmark {
  106. /* Add background behind logo */
  107. /* background: rgba(255, 255, 255, 0.1) !important; */
  108. /* border-radius: 15px !important; */
  109. /* padding: 15px 25px !important; */
  110.  
  111. /* Add hover effect */
  112. transition: all 0.3s ease !important;
  113. }
  114.  
  115. .logo-and-wordmark:hover {
  116. /* transform: scale(1.05) !important; */
  117. /* filter: brightness(1.1) !important; */
  118. }
  119.  
  120. /* Style the outer search container */
  121. .search-wrapper {
  122. max-width: 480px !important; /* Smaller than the body wrapper */
  123. margin: 0 auto !important;
  124. padding: 30px 40px !important; /* More padding to create space around search box */
  125. background: rgba(255, 255, 255, 0.15) !important;
  126. border: 1px solid rgba(255, 255, 255, 0.15) !important;
  127. border-radius: 25px !important;
  128. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  129. }
  130.  
  131. /* Remove background from inner wrapper to avoid double styling */
  132. .search-inner-wrapper {
  133. background: transparent !important;
  134. border: none !important;
  135. border-radius: 0 !important;
  136. box-shadow: none !important;
  137. max-width: 100% !important;
  138. margin: 0 !important;
  139. padding: 0 !important;
  140. }
  141.  
  142. /* Style the actual search button/input */
  143. .search-wrapper .search-handoff-button,
  144. .search-wrapper .search-button,
  145. .search-handoff-button,
  146. .fake-focus .search-handoff-button {
  147. background: rgba(255, 255, 255, 0.1) !important;
  148. border: 1px solid rgba(255, 255, 255, 0.2) !important;
  149. border-radius: 20px !important;
  150. box-shadow: none !important;
  151. color: rgba(255, 255, 255, 0.9) !important;
  152. margin: 0 !important;
  153. width: calc(100% - 0px) !important; /* Ensure it fits within the padded container */
  154. max-width: none !important;
  155. }
  156.  
  157. /* Hover effects */
  158. .search-wrapper:hover {
  159. background: rgba(255, 255, 255, 0.2) !important;
  160. border-color: rgba(255, 255, 255, 0.25) !important;
  161. }
  162.  
  163. .search-wrapper .search-handoff-button:hover,
  164. .search-wrapper .search-button:hover,
  165. .search-handoff-button:hover {
  166. background: rgba(255, 255, 255, 0.15) !important;
  167. border-color: rgba(255, 255, 255, 0.3) !important;
  168. }
  169.  
  170. /* Style the search icon and text */
  171. .search-wrapper .search-handoff-button .fake-caret,
  172. .search-wrapper .search-handoff-button .fake-textbox {
  173. color: rgba(255, 255, 255, 0.8) !important;
  174. }
  175.  
  176. /* Style top sites if present */
  177. .top-site-outer .tile {
  178. background: rgba(255, 255, 255, 0.1) !important;
  179. border-radius: 10px !important;
  180. border: 1px solid rgba(255, 255, 255, 0.1) !important;
  181. }
  182.  
  183. .top-site-outer:hover .tile {
  184. background: rgba(255, 255, 255, 0.15) !important;
  185. border-color: rgba(255, 255, 255, 0.2) !important;
  186. }
  187.  
  188. /* Style top site titles */
  189. .top-site-outer .title {
  190. color: rgba(255, 255, 255, 0.9) !important;
  191. text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  192. }
  193.  
  194. /* Center the top sites section */
  195. .top-sites {
  196. display: flex !important;
  197. justify-content: center !important;
  198. flex-wrap: wrap !important;
  199. }
  200. }
Advertisement
Add Comment
Please, Sign In to add comment