forgor
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-02 07:39:31 +09:00
commit 7353bc2b2a
Signed by: nishi
GPG key ID: 27EF69B208EB9343

83
src/classic.c Normal file
View file

@ -0,0 +1,83 @@
#include <taiga.h>
void classic_stylesheet(FILE* out){
fprintf(out, "body {\n");
fprintf(out, " padding: 0;\n");
fprintf(out, " margin: 0;\n");
fprintf(out, " font-family: Arial, sans-serif;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "#breadcrumb {\n");
fprintf(out, " background-color: #600000;\n");
fprintf(out, " font-weight: bold;\n");
fprintf(out, " color: #fff;\n");
fprintf(out, " padding-left: 8px;\n");
fprintf(out, " padding-top: 2px;\n");
fprintf(out, " padding-bottom: 2px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "#nav {\n");
fprintf(out, " background-color: #eeeeee;\n");
fprintf(out, " border-right: solid 1px #aaaaaa;\n");
fprintf(out, " border-bottom: solid 1px #aaaaaa;\n");
fprintf(out, " padding: 8px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "#content {\n");
fprintf(out, " padding: 8px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, ".section {\n");
fprintf(out, " background-color: #eeeeee;\n");
fprintf(out, " padding-left: 8px;\n");
fprintf(out, " font-weight: bold;\n");
fprintf(out, " color: #000088;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "a {\n");
fprintf(out, " text-decoration: none;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "#breadcrumb a {\n");
fprintf(out, " color: #ffff44;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "a:link {\n");
fprintf(out, " color: #003366;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "a:visited {\n");
fprintf(out, " color: blue;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "a:hover, #breadcrumb a:hover {\n");
fprintf(out, " color: #ff3300;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, ".linkgroup {\n");
fprintf(out, " padding-left: 16px;\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, "#content p {\n");
fprintf(out, " padding-left: 8px;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "tr.even {\n");
fprintf(out, " background-color: #eeeeee;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "tr.odd {\n");
fprintf(out, " background-color: #dddddd;\n");
fprintf(out, "}\n");
}
void classic_head(FILE* out, const char* top, xl_node_t* header){
fprintf(out, " <link rel=\"stylesheet\" href=\"%sstyle.css\">\n", top);
}
void classic_body(FILE* out, const char* top, const char* title, xl_node_t* body){
}