]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Use relative url in CSS
authorBram Matthys <redacted>
Wed, 11 Jan 2023 08:38:39 +0000 (09:38 +0100)
committerBram Matthys <redacted>
Wed, 11 Jan 2023 08:38:39 +0000 (09:38 +0100)
Apparently the url() in CSS is relative to the .css stylesheet itself,
great.. makes it easy so it works for both installations in /
and for installations in eg /webpanel, can just use ../img/

css/unrealircd-admin.css

index 495260ce0a68c4c5811eef136466dcfb3eb343bc..2f1400826ffa9ff77ed49152ea458d0145446667 100644 (file)
@@ -267,7 +267,7 @@ textarea {
 
 body {
        padding-top: 45px;
-       background-image: url("/img/linen.png");
+       background-image: url("../img/linen.png");
        display: flex;
        flex-direction: column;
 }