mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
cherry pick #541 (prettify popup)
prettify popup add scrollbar add hover fade-in animation
This commit is contained in:
1 parent
17c9af130a
commit
ef8b7c0310
1 file changed
+40
@@ -71,6 +71,8 @@ button:hover {
|
|||||||
.switch:before {
|
.switch:before {
|
||||||
content: attr(data-hover);
|
content: attr(data-hover);
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
transition: visibility 0.1s linear, opacity 0.1s linear;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
background-color: var(--secondary);
|
background-color: var(--secondary);
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
@@ -84,6 +86,24 @@ button:hover {
|
|||||||
|
|
||||||
.switch:hover:before {
|
.switch:hover:before {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-in {
|
||||||
|
opacity: 1;
|
||||||
|
animation-name: fadeInOpacity;
|
||||||
|
animation-iteration-count: 1;
|
||||||
|
animation-timing-function: ease-in;
|
||||||
|
animation-duration: 2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeInOpacity {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#advancedToggle {
|
#advancedToggle {
|
||||||
@@ -123,8 +143,28 @@ button:hover {
|
|||||||
border: 2px solid var(--secondary);
|
border: 2px solid var(--secondary);
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: var(--background);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--tertiary);
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle on hover */
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--lightGrey);
|
||||||
|
}
|
||||||
#advancedLegend {
|
#advancedLegend {
|
||||||
color: var(--tertiary) !important;
|
color: var(--tertiary) !important;
|
||||||
/* margin: auto; */ /* Center the label */
|
/* margin: auto; */ /* Center the label */
|
||||||
|
|||||||
Reference in new issue
Block a user