mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-27 00:32:59 +01:00
Change :before to ::before becasue they are pseudo elements
This commit is contained in:
1 parent
16b1c2ccf0
commit
98861c18b1
1 file changed
+4
-4
@@ -68,7 +68,7 @@ button:hover {
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
.switch:before {
|
||||
.switch::before {
|
||||
content: attr(data-hover);
|
||||
visibility: hidden;
|
||||
width: 250px;
|
||||
@@ -82,7 +82,7 @@ button:hover {
|
||||
top: 160%;
|
||||
}
|
||||
|
||||
.switch:hover:before {
|
||||
.switch:hover::before {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ button:hover {
|
||||
border-radius: 34px;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
.slider::before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 13px;
|
||||
@@ -178,7 +178,7 @@ input:checked + .slider {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
input:checked + .slider:before {
|
||||
input:checked + .slider::before {
|
||||
transform: translateX(13px);
|
||||
background: var(--primary);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user