Переглянути джерело

make greetings theme adaptive; define style in header

postscriptum 1 рік тому
батько
коміт
bf94f6af77
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      utils.c

+ 2 - 1
utils.c

@@ -101,8 +101,9 @@ static const char *greeting_html =
     "<html><head>\n"
     "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n"
     "<link rel=\"icon\" type=\"image/x-icon\" href=\"https://%host%/favicon.ico\"/>\n"
+    "<style>*{color-scheme:light dark}body{margin:auto;max-width:50em}</style>\n"
     "<title>Welcome to %host%</title>\n</head>\n"
-    "<body style=\"margin: auto; max-width: 50em\">\n"
+    "<body>\n"
     "%blurb%"
     "<p>The following users are part of this community:</p>\n"
     "\n"