modify hr's css
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-09 02:19:47 +09:00
commit 583bf73c4d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 14 additions and 3 deletions

View file

@ -227,7 +227,7 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int spec, int
strcmp(element->name, "br") == 0) {
accept_attr(top, text, 0, element, "id", "class", NULL);
sprintf(tag, "<%s%text>", element->name, text);
sprintf(tag, "<%s%s>", element->name, text);
}
if(tag[0] != 0) print(out, tag, indent);

View file

@ -118,8 +118,14 @@ int action_seed(int argc, char** argv) {
fprintf(f, " Please read this!\n");
fprintf(f, " </note>\n");
fprintf(f, " <table>\n");
fprintf(f, " <tr><th>Test</th><th>Test</th></tr>\n");
fprintf(f, " <tr><td>Test</td><td>Test</td></tr>\n");
fprintf(f, " <tr>\n");
fprintf(f, " <th>Test</th>\n");
fprintf(f, " <th>Test</th>\n");
fprintf(f, " </tr>\n");
fprintf(f, " <tr>\n");
fprintf(f, " <td>Test</td>\n");
fprintf(f, " <td>Test</td>\n");
fprintf(f, " </tr>\n");
fprintf(f, " </table>\n");
fprintf(f, " <section title=\"Congratulations\">\n");
fprintf(f, " <p>\n");

View file

@ -163,6 +163,11 @@ void simple_stylesheet(FILE* out, const char* top) {
fprintf(out, " font-family: Arial, Helvetica, sans-serif;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
fprintf(out, "hr {\n");
fprintf(out, " border: none;\n");
fprintf(out, " border-bottom: solid 1px #808080;\n");
fprintf(out, "}\n");
fprintf(out, "\n");
for(i = 0; i < sizeof(messages) / sizeof(messages[0]); i++) {
fprintf(out, ".%s-message {\n", messages[i]);