From a25ab6dd697c55d816c53492dd1dcf156750867e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 25 Apr 2026 22:21:10 +0900 Subject: [PATCH] okay enough --- src/default.c | 2 +- src/skin/dark.c | 31 ++++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/default.c b/src/default.c index 094e550..f1de162 100644 --- a/src/default.c +++ b/src/default.c @@ -105,7 +105,7 @@ void default_body(FILE* out, const char* top, xl_node_t* element, const char* in if(id != NULL) { sprintf(tag, "
%s
", id, title); - sprintf(tag + strlen(tag), "
"); + sprintf(tag + strlen(tag), "
"); } } else if(strcmp(element->name, "fixme") == 0 || /**/ strcmp(element->name, "warning") == 0 || /**/ diff --git a/src/skin/dark.c b/src/skin/dark.c index 8b8e142..b724279 100644 --- a/src/skin/dark.c +++ b/src/skin/dark.c @@ -7,7 +7,7 @@ void dark_stylesheet(FILE* out, const char* top) { fprintf(out, " font-size: 9pt;\n"); fprintf(out, "}\n"); fprintf(out, "\n"); - fprintf(out, ".smalltext {\n"); + fprintf(out, ".smalltext, .linkgroup, .linkgrouptitle {\n"); fprintf(out, " font-size: 8pt;\n"); fprintf(out, "}\n"); fprintf(out, "\n"); @@ -22,6 +22,14 @@ void dark_stylesheet(FILE* out, const char* top) { fprintf(out, " background: #666666;\n"); fprintf(out, "}\n"); fprintf(out, "\n"); + fprintf(out, ".linkgroup {\n"); + fprintf(out, " padding-left: 12px;\n"); + fprintf(out, "}\n"); + fprintf(out, "\n"); + fprintf(out, ".linkgrouptitle {\n"); + fprintf(out, " font-weight: bold;\n"); + fprintf(out, "}\n"); + fprintf(out, "\n"); fprintf(out, "a {\n"); fprintf(out, " text-decoration: none;\n"); fprintf(out, " color: #cccccc;\n"); @@ -118,6 +126,27 @@ void dark_body(FILE* out, const char* top, const char* title, xl_node_t* body, c fprintf(out, "
© %s
\n", holder); fprintf(out, " \n"); fprintf(out, " \n"); + fprintf(out, " \n"); + fprintf(out, " \n"); + fprintf(out, "
"); + fprintf(out, " \n"); + fprintf(out, " \n"); + fprintf(out, " \n"); + fprintf(out, " \n"); + if((nodes = xl_get_path(skinconf->root, "nav")) != NULL) { + int i; + + child = nodes[0]->first_child; + while(child != NULL) { + default_nav(out, top, child, input, 8); + + child = child->next; + } + + free(nodes); + } + fprintf(out, " \n"); + fprintf(out, " \n"); fprintf(out, " \n"); fprintf(out, " \n"); fprintf(out, " \n");