fix(youtube): checkboxes (#492)

* fix(youtube): checkboxes

* chore(youtube): bump version from 3.3.5 to 3.3.6
This commit is contained in:
uncenter authored and GitHub committed 2024-02-02 17:40:16 +00:00
1 parent dc96616025
commit 25d45fecdb
1 file changed
+15 -6
+15 -6
View File
@@ -2,7 +2,7 @@
@name YouTube Catppuccin
@namespace github.com/catppuccin/userstyles/styles/youtube
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/youtube
@version 3.3.5
@version 3.3.6
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/youtube/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Ayoutube
@description Soothing pastel theme for YouTube
@@ -480,12 +480,21 @@
/* menu items */
/* checkbox subitem */
.ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" version="1.1"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" fill="@{accent-color}"/></svg>'
);
background: url("data:image/svg+xml,@{svg}");
.ytp-menuitem-toggle-checkbox {
background-color: @overlay1;
&::after {
background-color: @subtext0;
}
}
.ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
background-color: @accent-color;
&::after {
background-color: @text;
}
}
.ytp-menuitem:not([aria-disabled="true"]):hover {
background: @surface1 !important;
}