diff --git a/freepost/__init__.py b/freepost/__init__.py index 29c4da0..7995288 100644 --- a/freepost/__init__.py +++ b/freepost/__init__.py @@ -235,6 +235,8 @@ def register_new_account (): Check form for creating new account. """ + abort() + username = request.forms.getunicode ('username') password = request.forms.getunicode ('password') diff --git a/freepost/static/css/freepost.css b/freepost/static/css/freepost.css index d5b641b..a7a00bb 100644 --- a/freepost/static/css/freepost.css +++ b/freepost/static/css/freepost.css @@ -9,8 +9,10 @@ } a, a:hover, a:visited { + /* background: transparent; color: #337ab7; + */ text-decoration: none; } @@ -203,6 +205,12 @@ html, body { width: 100%; } +@media (prefers-color-scheme: dark) { + html, body { + background-color: #000; + } +} + pre { background-color: #efefef; font-family: "Courier 10 Pitch", Courier, monospace; @@ -300,6 +308,14 @@ ul, ol { width: 36px; } + @media (prefers-color-scheme: dark) { + .burger-icon > .line1, + .burger-icon > .line2, + .burger-icon > .line3 { + background-color: #fff; + } + } + .burger-icon.open > .line1 { transform: rotate(-45deg) translate(-0px, 11px); } @@ -379,6 +395,14 @@ a.logo:visited { text-decoration: none; } +@media (prefers-color-scheme: dark) { + a.logo, + a.logo:hover, + a.logo:visited { + color: #fff; + } +} + /* List of posts, for example in the homepage */ .posts {} @@ -414,6 +438,12 @@ a.logo:visited { font-size: 1.6rem; } + @media (prefers-color-scheme: dark) { + .posts > .post > .info > .title > a { + color: #fff; + } + } + /* Some post info showed below the title */ .posts > .post > .info > .about { color: #666; diff --git a/freepost/templates/register.html b/freepost/templates/register.html index 20008e0..7faf8a5 100644 --- a/freepost/templates/register.html +++ b/freepost/templates/register.html @@ -15,6 +15,11 @@