From f1c90014cf3f4575a34564f9c438f4873e0e375d Mon Sep 17 00:00:00 2001 From: Kira Date: Sun, 7 May 2023 01:24:56 +0100 Subject: Fix styling text --- static/style.css | 105 ++++++++++++++++++++++++++---------------------- templates/index.html.j2 | 3 +- 2 files changed, 58 insertions(+), 50 deletions(-) diff --git a/static/style.css b/static/style.css index 66e5829..4e89888 100644 --- a/static/style.css +++ b/static/style.css @@ -1,57 +1,57 @@ body { - font-family: Helvetica, sans-serif; + font-family: Helvetica, sans-serif; } header { - font-size: large; - padding-left: 1%; - /* font-weight: bold; */ + font-size: large; + padding-left: 1%; + /* font-weight: bold; */ } header p { - font-size: small; + font-size: small; } a { - color: black; - font-weight: bold; - padding-top: 1px; - text-decoration: none; + color: black; + font-weight: bold; + padding-top: 1px; + text-decoration: none; } a:hover { - text-decoration: underline; + text-decoration: underline; } aside { - width: 15%; - padding-left: 15px; - margin-left: 15px; - float: right; - /* border-left-color: rgb(189, 189, 189); + width: 15%; + padding-left: 15px; + margin-left: 15px; + float: right; + /* border-left-color: rgb(189, 189, 189); border-left-width: 2px; border-left-style: groove; */ } -input[type=search] { - padding: 3px 5px; - box-sizing: border-box; - border: 2px solid black; - width: 100%; +input[type="search"] { + padding: 3px 5px; + box-sizing: border-box; + border: 2px solid black; + width: 100%; } -aside form input[type=submit] { - margin-top: 3px; - width: 100%; - background-color: black; - color: white; - border-radius: 5px; - border: 2px solid black; +aside form input[type="submit"] { + margin-top: 3px; + width: 100%; + background-color: black; + color: white; + border-radius: 5px; + border: 2px solid black; } #main_content { - padding-left: 2.5%; - padding-right: 2.5; + padding-left: 2.5%; + padding-right: 2.5; } /* #multicharts ul { @@ -59,31 +59,38 @@ aside form input[type=submit] { } */ #multicharts ul li { - list-style-type: none; - width: 25%; - display: inline-block; - background-color: pink; - min-height: 250px; - margin-bottom: 7px; + list-style-type: none; + width: 25%; + display: inline-flex; + background-color: pink; + min-height: 250px; + margin-bottom: 7px; + overflow: hidden; + flex-direction: column; + justify-content: space-between; } .chart_container { - display: flex; - align-items: center; - justify-content: center; + display: flex; + flex-direction: row-reverse; } - - .minichart { - min-height: 220px; - width: 95%; - background-color: red; + min-height: 220px; + width: 100%; + margin: 0.5rem; + background-color: red; +} + +.bottom_text { + display: inline-flex; + margin: 0.5rem; + overflow: auto; } footer { - padding-left: 10%; - padding-right: 10%; - padding-top: 50px; - font-size: xx-small; - justify-content: center; -} \ No newline at end of file + padding-left: 10%; + padding-right: 10%; + padding-top: 50px; + font-size: xx-small; + justify-content: center; +} diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 40ff005..234759f 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -6,8 +6,9 @@
  • + {{ elem['title'] }}
  • {% endfor %} -- cgit v1.2.3