Skip to content

Instantly share code, notes, and snippets.

@SilverEzhik
Last active January 5, 2019 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SilverEzhik/02b0af83a5c08ae3256fe8f444709beb to your computer and use it in GitHub Desktop.
Save SilverEzhik/02b0af83a5c08ae3256fe8f444709beb to your computer and use it in GitHub Desktop.
YouTube full-height theater
:root {
--bar-height: 23px;
--bar-height-orig: 56px;
}
ytd-app[is-watch-page=""] #player-theater-container {
min-height: calc(100vh - var(--bar-height)) !important;
}
ytd-app[is-watch-page=""]:not([masthead-hidden_=""]) #page-manager {
margin-top: var(--bar-height) !important;
}
/* title bar */
ytd-app[is-watch-page=""] #masthead {
height: var(--bar-height);
overflow: hidden;
transition: all 500ms ease-in-out !important;
background-color: #000;
}
ytd-app[is-watch-page=""] #masthead:hover, ytd-app[is-watch-page=""] #masthead:focus-within {
height: var(--bar-height-orig);
}
ytd-app[is-watch-page=""] #masthead > #container {
margin-top: calc(0px - var(--bar-height));
transition: all 500ms ease-in-out !important;
opacity: 1;
}
ytd-app[is-watch-page=""] #masthead:hover > #container, ytd-app[is-watch-page=""] #masthead:focus-within > #container {
margin-top: 0px;
opacity: 1;
}
/* hide buttons */
ytd-app[is-watch-page=""] #masthead > #container > * {
opacity: 0;
transition: all 500ms ease-in-out !important;
}
ytd-app[is-watch-page=""] #masthead:hover > #container > *, ytd-app[is-watch-page=""] #masthead:focus-within > #container > * {
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment