diff options
| -rw-r--r-- | src/html.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -46,6 +46,18 @@ static void emit_stylesheet(FILE *f) { "header small { color: var(--dim); font-size: 12px; font-family: var(--mono); }\n" "header a { color: var(--dim); font-size: 12px; }\n" "header a:hover { color: var(--green); }\n" + "header form { display: inline; }\n" + "button.logout {\n" + " border: none;\n" + " background: none;\n" + " color: var(--dim);\n" + " font-size: 12px;\n" + " padding: 0;\n" + " cursor: pointer;\n" + " text-transform: none;\n" + " letter-spacing: 0;\n" + "}\n" + "button.logout:hover { color: var(--green); }\n" "/* MAIN CONTENT */\n" "main { max-width: 860px; margin: 0 auto; padding: 24px 16px; }\n" "/* LOGIN */\n" @@ -345,7 +357,7 @@ char *html_render_clients_page(const char *host, const struct ListClientResult * "<body>\n" " <header>\n" " <b>BorgFlag</b>\n" - " <small><form method=\"POST\" action=\"/logout\" style=\"display:inline\"><button type=\"submit\" style=\"border:none;background:none;color:var(--dim);font-size:12px;padding:0;cursor:pointer;text-transform:none;letter-spacing:0\">Sign out</button></form></small>\n" + " <small><form method=\"POST\" action=\"/logout\"><button type=\"submit\" class=\"logout\">Sign out</button></form></small>\n" " </header>\n" " <main>\n" " <h2>\n" @@ -444,7 +456,7 @@ char *html_render_client_detail_page(const char *host, const struct GetClientOnl "<body>\n" " <header>\n" " <b>BorgFlag</b>\n" - " <small><form method=\"POST\" action=\"/logout\" style=\"display:inline\"><button type=\"submit\" style=\"border:none;background:none;color:var(--dim);font-size:12px;padding:0;cursor:pointer;text-transform:none;letter-spacing:0\">Sign out</button></form></small>\n" + " <small><form method=\"POST\" action=\"/logout\"><button type=\"submit\" class=\"logout\">Sign out</button></form></small>\n" " </header>\n" " <main>\n" " <a href=\"/clients\">← Back to clients</a>\n" |
