mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
In adduser(), don't copy the system-wide css.
This commit is contained in:
parent
b2598ca307
commit
baf557ba75
2 changed files with 4 additions and 22 deletions
|
@ -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; }
|
||||
|
|
23
utils.c
23
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 =
|
||||
"<!DOCTYPE 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) {
|
||||
|
|
Loading…
Reference in a new issue