Guest User

Untitled

a guest
Jun 22nd, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.61 KB | Source Code | 0 0
  1. @-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
  2.     /* Your existing rules for text color/shadow and background image */
  3.     .click-target-container *, .top-sites-list * {
  4.         color: #fff !important;
  5.         text-shadow: 2px 2px 2px #222 !important;
  6.     }
  7.  
  8.     body::before {
  9.         content: "";
  10.         z-index: -1;
  11.         position: fixed;
  12.         top: 0;
  13.         left: 0;
  14.         background: #f9a no-repeat url(img/Black01NoShip.png) center;
  15.         background-size: cover;
  16.         width: 100vw;
  17.         height: 100vh;
  18.     }
  19.  
  20.     /* --- LOGO & WORDMARK CUSTOMIZATION --- */
  21.  
  22.     /* Hide the original Firefox wordmark */
  23.     .logo-and-wordmark-wrapper .wordmark {
  24.         display: none !important;
  25.     }
  26.  
  27.     /* Center the logo horizontally within its wrapper */
  28.     .logo-and-wordmark-wrapper {
  29.         display: flex !important;
  30.         justify-content: center !important; /* Centers children horizontally */
  31.         align-items: center !important; /* Centers children vertically if needed */
  32.         height: auto !important; /* Allow height to adjust to logo */
  33.         margin-bottom: 20px !important; /* Adjust space below logo if needed */
  34.     }
  35.  
  36.     /* Change Firefox Logo to Nightly Logo (using local file path) */
  37.     .logo-and-wordmark-wrapper .logo {
  38.         /* IMPORTANT: Ensure 'nightly-logo.svg' matches the exact filename you placed in the 'img' folder */
  39.         background-image: url("img/Firefox Nightly logo.svg") !important;
  40.        
  41.         background-size: contain !important;
  42.         background-repeat: no-repeat !important;
  43.         background-position: center !important;
  44.         width: 100px !important; /* Adjust logo width if needed */
  45.         height: 100px !important; /* Adjust logo height if needed (maintain aspect ratio) */
  46.         display: block !important;
  47.         visibility: visible !important;
  48.         opacity: 1 !important;
  49.     }
  50.  
  51.     /* --- ANIMATED TEXT CUSTOMIZATION --- */
  52.  
  53.     /* Hide any children within the search wrapper to ensure the original search input/button are gone */
  54.     .search-inner-wrapper > * {
  55.         display: none !important;
  56.     }
  57.  
  58.     /* Target the container for the animated text */
  59.     .search-inner-wrapper {
  60.         position: relative !important;
  61.         display: block !important;
  62.         height: 60px !important; /* Adjust height for your text size */
  63.         margin-top: 15px !important; /* Adjust spacing from the logo */
  64.         margin-bottom: 15px !important; /* Adjust spacing below */
  65.         overflow: hidden !important;
  66.         visibility: visible !important;
  67.         opacity: 1 !important;
  68.     }
  69.  
  70.     /* Common styles for both animated text elements */
  71.     .search-inner-wrapper::before,
  72.     .search-inner-wrapper::after {
  73.         position: absolute !important;
  74.         top: 0 !important;
  75.         left: 0 !important;
  76.         width: 100% !important;
  77.         height: 100% !important;
  78.         display: flex !important;
  79.         justify-content: center !important;
  80.         align-items: center !important;
  81.  
  82.         color: white !important;
  83.         /* Using system-ui, sans-serif. If you found a specific font from Browser Toolbox,
  84.            replace this line with your exact font-family stack. */
  85.         font-family: system-ui, sans-serif !important;
  86.         font-size: 2.2em !important;
  87.         font-weight: 500 !important;
  88.         text-align: center !important;
  89.         line-height: 1.2 !important;
  90.         box-sizing: border-box !important;
  91.         white-space: nowrap !important;
  92.     }
  93.  
  94.     /* First Text Element */
  95.     .search-inner-wrapper::before {
  96.         content: "firstPhrasePlaceholder"; /* Your first phrase */
  97.         animation: textFadeA 8s forwards; /* Increased total duration to 8s */
  98.     }
  99.  
  100.     /* Second Text Element */
  101.     .search-inner-wrapper::after {
  102.         content: "secondPhrasePlaceholder"; /* Your second phrase (ellipses removed) */
  103.         animation: textFadeB 8s forwards; /* Increased total duration to 8s */
  104.     }
  105.  
  106.     /* Keyframes for the first text (Text A) */
  107.     @keyframes textFadeA {
  108.         0% { opacity: 1; }
  109.         50% { opacity: 1; } /* Stays visible for ~4s (50% of 8s) */
  110.         75% { opacity: 0; }    /* Fades out by ~6s (1s transition) */
  111.         100% { opacity: 0; }   /* Stays hidden for the rest */
  112.     }
  113.  
  114.     /* Keyframes for the second text (Text B) */
  115.     @keyframes textFadeB {
  116.         0% { opacity: 0; }     /* Stays hidden for the first ~5s */
  117.         62.5% { opacity: 0; }
  118.         75% { opacity: 1; }    /* Fades in to visible by ~6s */
  119.         100% { opacity: 1; }   /* Stays visible for the rest of the animation */
  120.     }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment