Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

style: download video more intuitive

Christian Fei6eea3f349667
diff --git a/client/main.css b/client/main.css
index d38354d..e76b778 100644
--- a/client/main.css
+++ b/client/main.css
@@ -223,6 +223,7 @@ video-element, video-element video {
display: flex;
align-items: center;
justify-content: center;
+ cursor: pointer;
}
.play-icon {
position: relative;
@@ -267,6 +268,16 @@ video-element, video-element video {
border-right: 20px solid transparent;
border-top: 30px solid rgb(255, 255, 255);
}
+.download-icon::before {
+ z-index: 98;
+ position: absolute;
+ top: -49px;
+ left: -12px;
+ content: "";
+ width: 12px;
+ height: 32px;
+ background-color: rgb(255, 255, 255);
+}
.downloading .download-icon {
/*wiggle up and down animation*/