Advertisement
Guest User

Untitled

a guest
May 1st, 2020
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. /* Hide the whole toolbar area unless urlbar is focused or cursor is over the toolbar */
  2. /* Dimensions on non-Win10 OS probably needs to be adjusted */
  3.  
  4.  
  5. @media (-moz-os-version: windows-win10){
  6.  
  7. :root[titlepreface="www.twitch.tv"][sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 10px !important; }
  8. :root[titlepreface="www.twitch.tv"][sizemode="maximized"] #navigator-toolbox{ margin-top: -2px }
  9.  
  10. @media screen and (min-resolution: 1.25dppx){
  11. :root[titlepreface="www.twitch.tv"][sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 9px !important; }
  12. }
  13. @media screen and (min-resolution: 1.5dppx){
  14. :root[titlepreface="www.twitch.tv"][sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 8px !important; }
  15. :root[titlepreface="www.twitch.tv"][sizemode="maximized"] #navigator-toolbox{ margin-top: -1px }
  16. }
  17. @media screen and (min-resolution: 2dppx){
  18. :root[titlepreface="www.twitch.tv"][sizemode="maximized"]:not([inDOMFullscreen]){ margin-top: 7px !important; }
  19. }
  20. }
  21.  
  22. :root[titlepreface="www.twitch.tv"][sizemode="fullscreen"]{ margin-top: 0px !important; }
  23.  
  24. :root[titlepreface="www.twitch.tv"] #navigator-toolbox{
  25. position: fixed !important;
  26. display: block;
  27. background-color: var(--lwt-accent-color,black) !important;
  28. transition: transform 82ms 33ms linear, opacity 82ms 33ms linear !important;
  29. transform-origin: top;
  30. line-height: 0;
  31. z-index: 1;
  32. }
  33.  
  34. :root[titlepreface="www.twitch.tv"] #navigator-toolbox > *{ line-height: normal }
  35.  
  36. :root[titlepreface="www.twitch.tv"] #navigator-toolbox,
  37. :root[titlepreface="www.twitch.tv"] #navigator-toolbox > *{
  38. width: 100vw;
  39. -moz-appearance: none !important;
  40. }
  41.  
  42. :root[titlepreface="www.twitch.tv"] #navigator-toolbox:not(:focus-within):not(:hover){
  43. transform: rotateX(70deg);
  44. opacity: 0;
  45. }
  46.  
  47. :root[titlepreface="www.twitch.tv"][sizemode="maximized"] #navigator-toolbox:not(:focus-within):not(:hover){ transform: rotateX(82deg) }
  48.  
  49. /* Don't apply transform before window has been fully created */
  50. :root[titlepreface="www.twitch.tv"]:not([sessionrestored]) #navigator-toolbox{ transform:none !important }
  51.  
  52. :root[titlepreface="www.twitch.tv"][customizing] #navigator-toolbox{
  53. position: relative !important;
  54. transform: none !important;
  55. opacity: 1 !important;
  56. }
  57.  
  58. :root[titlepreface="www.twitch.tv"] #navigator-toolbox[inFullscreen] > #PersonalToolbar,
  59. :root[titlepreface="www.twitch.tv"] #PersonalToolbar[collapsed="true"]{ display: none }
  60.  
  61. :root[titlepreface="www.twitch.tv"] #navigator-toolbox { pointer-events: none }
  62. :root[titlepreface="www.twitch.tv"] #navigator-toolbox > *{ pointer-events: auto }
  63.  
  64. /* Uncomment this if tabs toolbar is hidden with hide_tabs_toolbar.css */
  65. /*#titlebar{ margin-bottom: -9px }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement