Advertisement
geraldandy

Untitled

Oct 14th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. @-moz-document domain("youtube.com") {
  2. /* Prevent the search bar from expanding */
  3. ytd-searchbox {
  4. width: 100% !important;
  5. max-width: none !important;
  6. transition: none !important;
  7. }
  8.  
  9. /* Remove the search icon inside the search bar */
  10. #search-icon-legacy {
  11. display: none !important;
  12. }
  13.  
  14. /* Make sure search box stays aligned and visible */
  15. ytd-searchbox input {
  16. padding-left: 10px !important;
  17. }
  18.  
  19. /* Optional: Remove focus animation */
  20. ytd-searchbox:focus-within {
  21. outline: none !important;
  22. box-shadow: none !important;
  23. }
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. @-moz-document domain("youtube.com") {
  33. /* Hide the search icon inside the search bar when it's focused (expands) */
  34. ytd-searchbox:focus-within #search-icon-legacy {
  35. display: none !important;
  36. }
  37.  
  38. /* Disable search bar expansion behavior */
  39. ytd-searchbox {
  40. width: auto !important;
  41. max-width: 400px !important; /* Set a reasonable max-width */
  42. transition: none !important;
  43. }
  44.  
  45. /* Ensure input alignment stays neat */
  46. ytd-searchbox input {
  47. padding-left: 8px !important;
  48. }
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement