make like/dislike bar and tooltip exactly same as youtube

This commit is contained in:
Yash Patel committed 2021-11-23 18:22:00 +05:30
1 parent 9c3e10c657
commit 878729ee7c
4 files changed
+95 -123

No files matched your search

+14 -34
View File
@@ -1,46 +1,26 @@
#return-youtube-dislike-bar-container {
background: #c6c6c6;
background: var(--yt-spec-icon-disabled);
border-radius: 2px;
}
#return-youtube-dislike-bar {
background: #5094c8;
}
[dark] #return-youtube-dislike-bar-container {
}
[dark] #return-youtube-dislike-bar {
background: #3ea6ff;
background: var(--yt-spec-text-primary);
border-radius: 2px;
transition: all 0.15s ease-in-out;
}
.ryd-tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
cursor: pointer;
height: 10px;
margin-bottom: -5px;
display: block;
height: 2px;
top: 9px;
}
/* Tooltip text */
.ryd-tooltip .ryd-tooltiptext {
visibility: hidden;
width: 120px;
background-color: #000000c4;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
/* Position the tooltip text - see examples below! */
.ryd-tooltip-bar-container {
width: 100%;
height: 2px;
position: absolute;
z-index: 1;
bottom: 15px;
left: 10px;
font-size: 12px;
}
/* Show the tooltip text when you mouse over the tooltip container */
.ryd-tooltip:hover .ryd-tooltiptext {
visibility: visible;
padding-top: 6px;
padding-bottom: 28px;
top: -6px;
}