Skip to content

Commit

Permalink
updated for new youtube design
Browse files Browse the repository at this point in the history
  • Loading branch information
peabrainiac committed Nov 15, 2019
1 parent 09d2f6a commit 10797a5
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions source/startpage.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
/* For videos on new Frontpage Design */
ytd-rich-grid-video-renderer:not(:hover) ytd-channel-name, ytd-rich-grid-video-renderer:not(:hover) ytd-thumbnail, ytd-rich-grid-video-renderer:not(:hover) a#video-title, ytd-rich-grid-video-renderer:not(:hover) #metadata-line > span, ytd-rich-grid-video-renderer:not(:hover) ytd-badge-supported-renderer > div.badge {
background: #efefef !important;
border-radius: 3px;
pointer-events: none;
border-color: #efefef !important;
}
ytd-rich-grid-video-renderer:not(:hover) #avatar {
background: #efefef !important;
}
ytd-rich-grid-video-renderer:not(:hover) a#video-title, ytd-rich-grid-video-renderer:not(:hover) #metadata-line > span {
color: transparent !important;
}
ytd-rich-grid-video-renderer:not(:hover) ytd-channel-name > *, ytd-rich-grid-video-renderer:not(:hover) ytd-thumbnail > *, ytd-rich-grid-video-renderer:not(:hover) ytd-badge-supported-renderer > div.badge > *, ytd-rich-grid-video-renderer:not(:hover) #avatar > * {
opacity: 0;
}
ytd-rich-grid-video-renderer:hover ytd-channel-name, ytd-rich-grid-video-renderer:hover ytd-thumbnail, ytd-rich-grid-video-renderer:hover a#video-title, ytd-rich-grid-video-renderer:hover #metadata-line > span, ytd-rich-grid-video-renderer:hover ytd-badge-supported-renderer > div.badge, ytd-rich-grid-video-renderer:hover #avatar, ytd-rich-grid-video-renderer:hover ytd-thumbnail::before, ytd-rich-grid-video-renderer:hover ytd-channel-name > *, ytd-rich-grid-video-renderer:hover ytd-thumbnail > *, ytd-rich-grid-video-renderer:hover ytd-badge-supported-renderer > div.badge > *, ytd-rich-grid-video-renderer:hover #avatar > * {
transition: all 0.5s ease 1.5s;
}
ytd-rich-grid-video-renderer ytd-channel-name, ytd-rich-grid-video-renderer ytd-thumbnail, ytd-rich-grid-video-renderer a#video-title, ytd-rich-grid-video-renderer #metadata-line > span, ytd-rich-grid-video-renderer ytd-badge-supported-renderer > div.badge, ytd-rich-grid-video-renderer #avatar, ytd-rich-grid-video-renderer ytd-thumbnail::before, ytd-rich-grid-video-renderer ytd-channel-name > *, ytd-rich-grid-video-renderer ytd-thumbnail > *, ytd-rich-grid-video-renderer ytd-badge-supported-renderer > div.badge > *, ytd-rich-grid-video-renderer #avatar > * {
transition: all 0.5s ease 1s;
}
ytd-rich-grid-video-renderer:not(:hover) ytd-thumbnail::before {
background-color: transparent;
}
ytd-rich-grid-video-renderer {
position: relative;
}
ytd-rich-grid-video-renderer::after {
content: " ";
display: block;
position: absolute;
width: 100%;
height: 100%;
transition: all 0.5s ease 1s;
background: transparent;
top: 0;
left: 0;
}
ytd-rich-grid-video-renderer:hover::after {
transition: all 0.5s ease 1.5s;
height: 0;
background: #efefef80;
}



/**
* for old Frontpage Design
* (left in for backwards compatibility)
*/
ytd-grid-video-renderer:not(:hover) ytd-channel-name, ytd-grid-video-renderer:not(:hover) ytd-thumbnail, ytd-grid-video-renderer:not(:hover) a#video-title, ytd-grid-video-renderer:not(:hover) #metadata-line > span, ytd-grid-video-renderer:not(:hover) ytd-badge-supported-renderer > div.badge {
background: #efefef !important;
border-radius: 3px;
Expand Down

0 comments on commit 10797a5

Please sign in to comment.