diff options
| author | Kira <kira.eva@protonmail.com> | 2023-05-07 01:24:56 +0100 | 
|---|---|---|
| committer | Kira <kira.eva@protonmail.com> | 2023-05-07 01:24:56 +0100 | 
| commit | f1c90014cf3f4575a34564f9c438f4873e0e375d (patch) | |
| tree | ba90a9854723ba7fed8226aeee85c50d818e17a1 | |
| parent | 8a058ac45e6ef5a4c7cd7141332b7951bc01f49c (diff) | |
| download | UKGenderPayGap-f1c90014cf3f4575a34564f9c438f4873e0e375d.tar.gz UKGenderPayGap-f1c90014cf3f4575a34564f9c438f4873e0e375d.zip  | |
Fix styling text
| -rw-r--r-- | static/style.css | 105 | ||||
| -rw-r--r-- | 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 @@                  <li>                      <div class="chart_container">                          <div class="minichart" id="/minichart{{ elem['url'] }}"> -                        <a href="{{ elem['url'] }}">{{ elem['title'] }}</a> +                        </div>                      </div> +                    <a class="bottom_text" href="{{ elem['url'] }}">{{ elem['title'] }}</a>                  </li>              {% endfor %}          </ul>  | 
