fix(codeberg): navbar regression (#2215)

* Quick fix to navbar logo. Till it gets changed to smth omre readable, let's use this, to follow our upstream style.

Signed-off-by: Toria <[email protected]>

* Commit actual fix, reordering things to be correctly nested.

Signed-off-by: Toria <[email protected]>

---------

Signed-off-by: Toria <[email protected]>
This commit is contained in:
Toria authored and GitHub committed 2026-04-16 11:04:45 +01:00
1 parent c54bb14ee3
commit c720f219eb
1 file changed
+8 -13
+8 -13
View File
@@ -59,7 +59,6 @@
}
}
// LOGOS
#codeberg-logo(@color) {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><defs><linearGradient id="b" x1="42519.285" x2="42575.336" y1="-7078.7891" y2="-6966.9312" gradientUnits="userSpaceOnUse" href="#a"/><linearGradient id="a"><stop color="@{color}" offset="0" stop-opacity="0"/><stop offset=".495" stop-color="@{color}" stop-opacity=".3"/><stop offset="1" stop-color="@{color}" stop-opacity=".3"/></linearGradient></defs><path fill="url(#b)" d="M42519.285-7078.79a.76.568 0 0 0-.738.675l33.586 125.888a87.2 87.2 0 0 0 39.381-33.763l-71.565-92.52a.76.568 0 0 0-.664-.28" transform="translate(-5840.572 980.524)scale(.13766)"/><path fill="@{color}" d="M12.003.525A12.003 12.003 0 0 0 0 12.533 11.9 11.9 0 0 0 1.826 18.9L11.838 5.956c.068-.09.25-.09.324 0l10.007 12.939A11.9 11.9 0 0 0 24 12.522 12.003 12.003 0 0 0 12.003.525"/></svg>'
@@ -67,22 +66,18 @@
content: url("data:image/svg+xml,@{svg}");
}
#navbar {
a#navbar-logo {
img {
#codeberg-logo(@accent);
}
&:hover img {
#codeberg-logo(@base);
}
}
}
.branding {
img[src^="https://design.codeberg.org/logo-kit/"] {
#codeberg-logo(@text);
}
}
#navbar {
a#navbar-logo {
img {
#codeberg-logo(@base);
}
}
.menu {
> a, button, details > summary {