mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
feat: migrate to new plugin api
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
#main-panel.ytmusic-player-page {
|
||||
.video-toggle-custom-mode #main-panel.ytmusic-player-page {
|
||||
align-items: unset !important;
|
||||
}
|
||||
|
||||
#main-panel {
|
||||
.video-toggle-custom-mode #main-panel {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.video-switch-button {
|
||||
.video-toggle-custom-mode .video-switch-button {
|
||||
z-index: 999;
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
@ -24,7 +24,7 @@
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.video-switch-button:before {
|
||||
.video-toggle-custom-mode .video-switch-button:before {
|
||||
content: "Video";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@ -38,7 +38,7 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.video-switch-button-checkbox {
|
||||
.video-toggle-custom-mode .video-switch-button-checkbox {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@ -50,16 +50,16 @@
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.video-switch-button-label-span {
|
||||
.video-toggle-custom-mode .video-switch-button-label-span {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.video-switch-button-checkbox:checked + .video-switch-button-label:before {
|
||||
.video-toggle-custom-mode .video-switch-button-checkbox:checked + .video-switch-button-label:before {
|
||||
transform: translateX(10rem);
|
||||
transition: transform 300ms linear;
|
||||
}
|
||||
|
||||
.video-switch-button-checkbox + .video-switch-button-label {
|
||||
.video-toggle-custom-mode .video-switch-button-checkbox + .video-switch-button-label {
|
||||
position: relative;
|
||||
padding: 15px 0;
|
||||
display: block;
|
||||
@ -67,7 +67,7 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.video-switch-button-checkbox + .video-switch-button-label:before {
|
||||
.video-toggle-custom-mode .video-switch-button-checkbox + .video-switch-button-label:before {
|
||||
content: "";
|
||||
background: rgba(60, 60, 60, 0.4);
|
||||
height: 100%;
|
||||
@ -81,6 +81,6 @@
|
||||
}
|
||||
|
||||
/* disable the native toggler */
|
||||
#av-id {
|
||||
.video-toggle-custom-mode #av-id {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user