Advertisement
Guest User

cant get it to work

a guest
Apr 25th, 2025
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.91 KB | None | 0 0
  1.  
  2. /* reload button in search bar */
  3. #searchbar {
  4.     position: relative;
  5.     z-index: 1; /* Keep search bar in the background */
  6.     padding-right: 40px; /* Make space for the reload button */
  7. }
  8.  
  9. /* Move reload button into the searchbar and in front */
  10. #reload-button {
  11.   position: absolute !important; /* Positioning inside the search bar */
  12.   right: 320px !important; /* Adjust this to move it left or right */
  13.   top: 65% !important; /* Adjust this to move it up or down */
  14.   transform: translateY(-50%) !important; /* Vertically center the button */
  15.   background: none !important; /* Remove background */
  16.   border: none !important; /* Remove border */
  17.   width: 30px !important; /* Fixed width for the button hitbox */
  18.   height: 30px !important; /* Fixed height for the button hitbox */
  19.   padding: 0 !important; /* Remove padding */
  20.   box-shadow: none !important; /* Remove box shadow */
  21.   z-index: 9999 !important; /* Ensure it's on top of the search bar */
  22.   pointer-events: auto !important; /* Ensure it's clickable */
  23.   cursor: pointer !important; /* Make the cursor indicate it's clickable */
  24. }
  25.  
  26. /* vertical line */
  27. #reload-button::before {
  28.   content: ""; /* Create a pseudo-element */
  29.   position: absolute;
  30.   left: -10px; /* Adjust this to position the line closer to the button */
  31.   top: 50%;
  32.   transform: translateY(-50%);
  33.   width: 1px; /* Line thickness */
  34.   height: 20px; /* Length of the line */
  35.   background-color: #a0a0a0; /* Line color */
  36.   z-index: 9998; /* Ensure the line stays behind the button */
  37. }
  38.  
  39. /* triangle (⏷) */
  40. #reload-button::after {
  41.   content: "⏷"; /* Insert the triangle character */
  42.   position: absolute;
  43.   left: -20px; /* Position the triangle next to the line */
  44.   top: 50%;
  45.   transform: translateY(-50%);
  46.   font-size: 12px; /* Adjust font size of the triangle */
  47.   color: #a0a0a0; /* Triangle color */
  48.   z-index: 9997; /* Ensure the triangle stays behind the button */
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement