]> Nishi Git Mirror - keine.git/commitdiff
fix
authorNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 15:49:08 +0000 (15:49 +0000)
committerNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 15:49:08 +0000 (15:49 +0000)
git-svn-id: file:///raid/svn-personal/keine/trunk@8 a3977ea8-0dc0-2842-9144-a1a46b47fd40

CGI/cgi.c

index caab342a35918cba4fbf138e296ddeca297db72d..5bea15804a60531d9b573203a43fd6ef8c5a7c25 100644 (file)
--- a/CGI/cgi.c
+++ b/CGI/cgi.c
@@ -50,7 +50,7 @@ void manpage_scan(const char* root) {
                                        manpage_scan(path);
                                } else {
                                        char* name = kn_strdup(nl[i]->d_name);
-                                       char* desc = kn_strdup("&lt;No description detected&gt;");
+                                       char* desc = kn_strdup("<span class=\"reverse\"> &lt;No description detected&gt; </span>");
 
                                        int incr = 0;
                                        FILE* f = fopen(path, "r");
@@ -214,11 +214,18 @@ void kn_cgi(void) {
                printf("%s", kn_get_query("page"));
        }
        printf("</title>\n");
-       printf("                <style>\n");
+       printf("                <style>\n");;
        printf("html {\n");
        printf("        background-color: #222222;\n");
        printf("        color: #ffffff;\n");
        printf("}\n");
+       printf("html, input, code {\n");
+       printf("        font-size: 15px;\n");
+       printf("}\n");
+       printf(".reverse {\n");
+       printf("        color: #222222;\n");
+       printf("        background-color: #ffffff;\n");
+       printf("}\n");
        printf("body {\n");
        printf("        width: 900px;\n");
        printf("        margin: 0 auto;\n");