From 3acdd2d70fd49d5b083a76fabe5f2d442096cc0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20G=C3=B6tz?= Date: Wed, 24 Oct 2018 14:00:01 +0200 Subject: [PATCH] Implement new style --- src/static/style.css | 73 +++++++++++++++++++++++++++++++++++++++- src/templates/index.html | 34 ++++++++++--------- 2 files changed, 91 insertions(+), 16 deletions(-) diff --git a/src/static/style.css b/src/static/style.css index ce507f3..f0a0bb1 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -1,3 +1,74 @@ body { - background-color: aqua; + background-color: white; + margin: 0; + font-family: Arial; +} +h1 { + text-align: center; + font-weight: 300; +} + +#content { + border: 1px solid #80808033; + border-radius: 3px; + padding: 10px; + background: aliceblue; + position: relative; +} + +@media screen and (max-width: 480px) { + #content { + margin: 5px; + } +} + +@media screen and (min-width: 481px) { + #content { + margin: auto; + width: 50%; + } +} + + +#content select { + width: 100%; +} + +#content .textarea { + padding-right: 5px; +} +#content textarea { + height: 100px; + width: 100%; + resize: vertical; +} + +input[type=text]:focus { + border: 3px solid #555; +} + +#content label { + display: inline-block; + width: 40%; +} + +#content input { + display: inline-block; + width: 50%; + position: absolute; + right: 10px; +} + +#content input[hidden=true]{ + display: none +} + +#content input[type=submit]{ + width: 100%; + position: relative; + right: 0; +} + +p label { + text-transform: uppercase; } diff --git a/src/templates/index.html b/src/templates/index.html index 5649ff4..6f7fc5f 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,24 +1,28 @@ {% extends "base.html" %} {% block body %}

Welcome

+

choose an issue, fill the placeholders, enter your uni-mail, then hit send

-

- + - {% for issue in issues %} - - {% endfor %} - -

-

-

- - -

-
- + {% for issue in issues %} + + {% endfor %} + +

+

+ +

+

+ + +

+
+

+
{% endblock %}