refactor(treewide): url("data:image/svg+xml,@{svg}") (#311)
This commit is contained in:
1 parent
e08cfd5b64
commit
8db4b76751
4 files changed
+19
-23
No files matched your search
@@ -485,8 +485,10 @@
|
||||
/* menu items */
|
||||
/* checkbox subitem */
|
||||
.ytp-menuitem[aria-checked="true"] .ytp-menuitem-toggle-checkbox {
|
||||
@tmp: escape(@accent-color);
|
||||
background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%3E%3Cpath%20d%3D%22M9%2016.2L4.8%2012l-1.4%201.4L9%2019%2021%207l-1.4-1.4L9%2016.2z%22%20fill%3D%22@{tmp}%22/%3E%3C/svg%3E");
|
||||
@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:not([aria-disabled="true"]):hover {
|
||||
background: @surface1 !important;
|
||||
|
||||
Reference in new issue
Block a user