refactor(tree-wide): prefer simpler method for theming <img> elements (#820)

Co-authored-by: Gen <[email protected]>
This commit is contained in:
uncenterandGen authored and GitHub committed 2024-04-16 00:43:57 +01:00
1 parent 0ef96f1928
commit 1a1c19e26a
10 files changed
+29 -152

No files matched your search

+4 -28
View File
@@ -945,26 +945,14 @@
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="65.812" height="58"><g stroke="@{surface0}" stroke-width=".07269443"><path d="m18.93 18.826 9.324 3.395v10.954l-9.323-3.392zM9.473 22.27v10.957l9.459-3.445V18.826zm-.001 10.958 9.32 3.393 9.462-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 22.271 9.32 3.393 9.462-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M18.793 25.664v10.957l9.461-3.446V22.218z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 22.271 9.32 3.393v10.957L9.47 33.225z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g stroke="@{surface0}" stroke-width=".07269443"><path d="m28.294 11.165 9.323 3.395v10.954l-9.323-3.392zm-9.459 3.445v10.957l9.459-3.445V11.165z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m18.835 25.567 9.32 3.393 9.462-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m18.835 14.61 9.32 3.393 9.462-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M28.156 18.003V28.96l9.461-3.446V14.557z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m18.835 14.61 9.32 3.393V28.96l-9.323-3.396z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g stroke="@{surface0}" stroke-width=".07269443"><path d="m9.568 33.296 9.323 3.395v10.954l-9.323-3.392zM.109 36.74v10.957l9.459-3.445V33.296z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m.11 47.698 9.32 3.393 9.461-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m.11 36.741 9.32 3.393 9.461-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M9.43 40.134v10.957l9.461-3.446V36.688z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m.11 36.741 9.32 3.393v10.957L.106 47.695z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g stroke="@{surface0}" stroke-width=".07269443"><path d="m18.93 36.7 9.324 3.396V51.05l-9.323-3.392zm-9.458 3.446v10.957l9.459-3.445V36.7zm0 10.957 9.32 3.393 9.462-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 40.146 9.32 3.393 9.462-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M18.793 43.539v10.957l9.461-3.446V40.093z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 40.146 9.32 3.393v10.957L9.47 51.1z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g stroke="@{surface0}" stroke-width=".07269443"><path d="m18.93 25.635 9.324 3.395v10.954l-9.323-3.392zM9.473 29.08v10.957l9.459-3.445V25.635z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 40.037 9.32 3.393 9.462-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 29.08 9.32 3.393 9.462-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M18.793 32.473V43.43l9.461-3.446V29.027z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m9.472 29.08 9.32 3.393V43.43L9.47 40.034z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g stroke="@{surface0}" stroke-width=".07269443"><path d="m56.384 29.89 9.323 3.396V44.24l-9.323-3.392zm-9.459 3.446v10.957l9.459-3.445V29.89z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m46.925 44.293 9.32 3.393 9.462-3.446-9.323-3.392z" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m46.925 33.336 9.32 3.393 9.462-3.446-9.323-3.392z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="M56.246 36.729v10.957l9.461-3.446V33.283z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".2128005857719"/><path d="m46.925 33.336 9.32 3.393v10.957l-9.323-3.396z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".2128005857719"/></g><g transform="translate(-1683.66 -513.275)scale(.65177)"><g stroke="@{surface0}" stroke-width=".07269443"><path d="m2655.35 838.592 14.304 5.21v16.807l-14.305-5.206zm-14.512 5.287v16.81l14.511-5.286v-16.81z" stroke="@{surface0}" stroke-width=".3264961281805"/><path d="m2640.838 860.69 14.3 5.205 14.516-5.286-14.305-5.206z" stroke="@{surface0}" stroke-width=".3264961281805"/><path d="m2640.838 843.879 14.3 5.205 14.516-5.286-14.305-5.206z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".3264961281805"/><path d="M2655.138 849.084v16.811l14.516-5.286v-16.811z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".3264961281805"/><path d="m2640.838 843.879 14.3 5.205v16.811l-14.305-5.21z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".3264961281805"/></g><circle cx="2835.218" cy="1823.899" r="2.967" transform="skewY(-20)scale(.9397 1)" fill="@{surface2}"/></g><g stroke="@{surface0}" strLine truncated
);
height: 0 !important;
width: 0 !important;
padding-left: 66px !important;
padding-top: 58px !important;
background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
background-repeat: no-repeat !important;
content: url("data:image/svg+xml,@{svg}");
}
.about-pypi__logo img {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="247.808" height="185.85" viewBox="0 0 232.32 174.235"><path d="m15.801 114.615 15.556 5.662 15.785-5.745-15.555-5.662zm15.624-12.783 15.555 5.662 15.786-5.745-15.556-5.662z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m31.425 101.832 15.555 5.662v18.283l-15.555-5.662zM.178 138.76l15.555 5.662 15.786-5.745-15.555-5.662z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m.178 138.76 15.555 5.662v18.283L.178 157.043zm0-26 15.555 5.662 15.786-5.745-15.555-5.662z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M15.733 118.422v18.283l15.786-5.746v-18.282z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m.178 112.76 15.555 5.662v18.283L.178 131.043z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m15.986 97.209-.025.03a2.783 2.783 0 0 0-2.758 2.782 3 3 0 0 0 .053.531L1.51 114.937l7.646 9.363-3.869-9.363 9.984-12.228a2.8 2.8 0 0 0 .715.095 2.8 2.8 0 0 0 .715-.093l5.315 6.507 5.373 1.955-8.672-10.62a3 3 0 0 0 .05-.532 2.783 2.783 0 0 0-2.755-2.781zm2.135-7.289a2.136 2.136 0 1 0-4.271 0v3.265a2.136 2.136 0 0 0 4.271 0zm-.98-.002v3.265a1.155 1.155 0 0 1-2.31 0v-3.265a1.155 1.155 0 1 1 2.31 0m.98-11.211a2.136 2.136 0 1 0-4.271 0v3.265a2.136 2.136 0 0 0 4.271 0zm-.98-.002v3.265a1.155 1.155 0 0 1-2.31 0v-3.265a1.155 1.155 0 1 1 2.31 0" fill="@{subtext0}"/><path d="M16.506 82.697v6.498a.52.52 0 1 1-1.04 0v-6.498a.52.52 0 1 1 1.04 0m0 11.213v6.497a.52.52 0 1 1-1.04 0V93.91a.52.52 0 1 1 1.04 0m0-22.463v6.498a.52.52 0 1 1-1.04 0v-6.498a.52.52 0 1 1 1.04 0" fill="@{subtext0}"/><path d="m15.801 144.442 15.556 5.661v18.283l-15.556-5.662zm0-18.464 15.556 5.661 15.785-5.745-15.555-5.662z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m15.801 125.978 15.556 5.661v18.283l-15.556-5.661z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M93.85 138.741v18.283l15.786-5.746v-18.282z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M78.226 144.422v18.283l15.787-5.746v-18.282z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M91.152 148.88a2.617 3.737 35 0 1-3.032 4.33 2.617 3.737 35 0 1-3.032-2.123 2.617 3.737 35 0 1 3.032-4.33 2.617 3.737 35 0 1 3.032 2.123" fill="@{surface2}"/><path d="M62.604 150.104v18.282l15.785-5.745v-18.283z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M46.98 155.785v18.282l15.786-5.745v-18.283z" fill="@{surface2}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m31.425 150.123 15.555 5.662v18.282l-15.555-5.661z" fill="@{surface1}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M93.85 120.277v18.283l15.786-5.746v-18.282zM78.295 96.152l15.555 5.661 15.786-5.745-15.556-5.662z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M93.85 101.813v18.283l15.786-5.746V96.068zm-15.624 24.145v18.283l15.787-5.745v-18.284z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M78.226 107.494v18.283l15.787-5.745v-18.283zM62.671 83.369l15.556 5.661 15.785-5.745-15.555-5.662z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M78.226 89.03v18.283l15.787-5.745V83.285z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M62.604 131.64v18.282l15.785-5.745v-18.283z" fill="@{yellow}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M62.604 113.176v18.282l15.785-5.745V107.43zM46.98 137.321v18.282l15.786-5.745v-18.283z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="m31.425 131.659 15.555 5.662v18.282l-15.555-5.661zm0-18.464 15.555 5.662 15.786-5.746-15.556-5.661z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M46.98 118.857v18.282l15.786-5.745v-18.283zm-15.555-5.662 15.555 5.662v18.282l-15.555-5.661zM47.048 89.05l15.556 5.662 15.785-5.746-15.555-5.662z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M62.604 94.712v18.282l15.785-5.745V88.966zM47.048 89.05l15.556 5.662v18.282l-15.556-5.661z" fill="@{blue}" stroke="@{surface0}" stroke-width=".35507631"/><path d="M71.528 100.584a2.617 3.737 35 0 1-3.032 4.33 2.617 3.737 35 0 1-3.031-2.123 2.617 3.737 35 0 1 3.031-4.33 2.617 3.737 35 0 1 3.032 2.123" fill="@{surface2}"/><path d="M36.661 38.857c0-9.645-2.75-14.596-8.25-14.868a15.5 15.5 0 0 0-6.404 1.053c-1.66.594-2.776 1.181-3.364 1.775v23.022q5.28 3.313 9.368 3.073c5.765-.381 8.65-5.062 8.65-14.055m6.785.4c0 4.9-1.149 8.968-3.46 12.202-2.576 3.66-6.146 5.546-10.71 5.649q-5.161.163-10.633-3.228v20.923l-5.9-2.104V26.255c.968-1.187 2.214-2.207 3.725-3.073q5.268-3.07 12.801-3.15l.084.084q6.885-.085 10.614 5.649c2.317 3.505 3.48 7.998 3.48 13.492zm36.063 13.732q0 9.858-1.976 13.654c-1.323 2.53-3.84 4.552-7.56 6.056-3.014 1.188-6.275 1.833-9.774 1.943l-.974-3.719q5.336-.726 7.514-1.452c2.86-.969 4.823-2.453 5.9-4.442.866-1.62 1.292-4.713 1.29Line truncated
);
height: 0 !important;
width: 0 !important;
padding-left: 248px !important;
padding-top: 186px !important;
background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
background-repeat: no-repeat !important;
content: url("data:image/svg+xml,@{svg}");
}
.-js-white-cube,
@@ -972,27 +960,15 @@
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="33.809" height="32.025" viewBox="0 0 31.696 30.024"><g stroke="@{surface0}" stroke-linejoin="bevel" stroke-width=".355"><path fill="@{surface2}" d="m.178 5.912 15.555 5.662L31.519 5.83 15.963.167z"/><path fill="@{surface1}" d="M15.733 11.574v18.283l15.786-5.746V5.83z"/><path fill="@{surface2}" d="m.178 5.912 15.555 5.662v18.283L.178 24.195z"/></g></svg>'
);
height: 0 !important;
padding-left: 34px !important;
padding-top: 32px !important;
background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
background-repeat: no-repeat !important;
background-position: center !important;
content: url("data:image/svg+xml,@{svg}");
}
.release__node[src*="blue"] {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="33.809" height="32.025" viewBox="0 0 31.696 30.024"><g stroke="@{text}" stroke-linejoin="bevel" stroke-width=".355"><path fill="@{accent-color}" d="m.178 5.912 15.555 5.662L31.519 5.83 15.963.167z"/><path fill="@{accent-color}" d="M15.733 11.574v18.283l15.786-5.746V5.83zM.178 5.912l15.555 5.662v18.283L.178 24.195z"/></g></svg>'
);
height: 0 !important;
padding-left: 34px !important;
padding-top: 32px !important;
content: url("data:image/svg+xml,@{svg}");
background-color: @mantle !important;
background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
background-repeat: no-repeat !important;
background-position: center !important;
}
}
}