Skip to content

Commit

Permalink
feat(logo): switch to official youtube logo (#82)
Browse files Browse the repository at this point in the history
* add youtube logo styling
* remove unused styles
* remove unused styles
  • Loading branch information
neilitalia authored Feb 2, 2023
1 parent 8f7aeba commit 68acaf8
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions lite-youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ export class LiteYTEmbed extends HTMLElement {
position: relative;
width: 100%;
padding-bottom: calc(100% / (16 / 9));
--lyt-animation: all 0.2s cubic-bezier(0, 0, 0.2, 1);
--lyt-play-btn-default: #212121;
--lyt-play-btn-hover: #f00;
}
@media (max-width: 40em) {
Expand Down Expand Up @@ -157,24 +154,17 @@ export class LiteYTEmbed extends HTMLElement {
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
height: 60px;
width: 100%;
transition: var(--lyt-animation);
z-index: 1;
}
#playButton {
width: 70px;
height: 46px;
background-color: var(--lyt-play-btn-hover);
width: 68px;
height: 48px;
background-color: transparent;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
z-index: 1;
opacity: 0.8;
border-radius: 14%;
transition: var(--lyt-animation);
border: 0;
}
#frame:hover > #playButton {
background-color: var(--lyt-play-btn-hover);
opacity: 1;
border-radius: inherit;
}
#playButton:before {
Expand Down

0 comments on commit 68acaf8

Please sign in to comment.