diff --git a/doc/style.css b/doc/style.css index 41f7b33..7b4839d 100644 --- a/doc/style.css +++ b/doc/style.css @@ -12,7 +12,7 @@ img { max-width: 100% } .snac-top-controls { padding-bottom: 1.5em } .snac-post { border-top: 1px solid #a0a0a0; } .snac-children { padding-left: 2em; border-left: 1px solid #a0a0a0; } -.snac-textarea { font-family: inherit; width: 95% } +.snac-textarea { font-family: inherit; width: 100% } .snac-history { border: 1px solid #606060; border-radius: 3px; margin: 2.5em 0; padding: 0 2em } .snac-btn-mute { float: right; margin-left: 0.5em } .snac-btn-unmute { float: right; margin-left: 0.5em } @@ -21,3 +21,4 @@ img { max-width: 100% } .snac-btn-hide { float: right; margin-left: 0.5em } .snac-btn-delete { float: right; margin-left: 0.5em } .snac-footer { margin-top: 2em; font-size: 75% } +.snac-poll-result { margin-left: auto; margin-right: auto; } diff --git a/utils.c b/utils.c index f5b02ae..067b041 100644 --- a/utils.c +++ b/utils.c @@ -53,7 +53,8 @@ const char *default_css = ".snac-btn-unfollow { float: right; margin-left: 0.5em }\n" ".snac-btn-hide { float: right; margin-left: 0.5em }\n" ".snac-btn-delete { float: right; margin-left: 0.5em }\n" - ".snac-footer { margin-top: 2em; font-size: 75% }\n"; + ".snac-footer { margin-top: 2em; font-size: 75% }\n" + ".snac-poll-result { margin-left: auto; margin-right: auto; }\n"; const char *greeting_html = "\n" @@ -266,26 +267,6 @@ int adduser(const char *uid) mkdirx(d); } - xs *scssfn = xs_fmt("%s/style.css", srv_basedir); - xs *ucssfn = xs_fmt("%s/static/style.css", basedir); - - if ((f = fopen(scssfn, "r")) != NULL) { - FILE *i; - - if ((i = fopen(ucssfn, "w")) == NULL) { - printf("ERROR: cannot create file '%s'\n", ucssfn); - return 1; - } - else { - xs *c = xs_readall(f); - fwrite(c, strlen(c), 1, i); - - fclose(i); - } - - fclose(f); - } - xs *cfn = xs_fmt("%s/user.json", basedir); if ((f = fopen(cfn, "w")) == NULL) {