diff options
| author | Eden Attenborough <eddie.atten.ea29@gmail.com> | 2023-05-17 13:06:54 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-17 13:06:54 +0100 | 
| commit | b8832094f9f9c21e13e18d679b46005716e7fb9a (patch) | |
| tree | 09bf02a2c7f9ed7b5733f39ddc37854dbba49c51 /src/static | |
| parent | 665bf3fe78aa28f91090783d35db3666e10258a8 (diff) | |
| parent | f2bd84f516654fd7d8bdd34199842abefb0e3b24 (diff) | |
| download | UKGenderPayGap-b8832094f9f9c21e13e18d679b46005716e7fb9a.tar.gz UKGenderPayGap-b8832094f9f9c21e13e18d679b46005716e7fb9a.zip | |
Merge pull request #2 from kira0x1/Feature/Responsive
Make charts responsive
Diffstat (limited to 'src/static')
| -rw-r--r-- | src/static/style.css | 48 | 
1 files changed, 44 insertions, 4 deletions
| diff --git a/src/static/style.css b/src/static/style.css index c363de6..ee35cae 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -108,6 +108,50 @@ aside form p {    flex-direction: row-reverse;  } +/* Use a media query to add a breakpoint at 800px: */ +@media screen and (max-width: 1200px) { +  #multicharts ul li { +    width: 100%; +    min-height: 500px; +    height: 100%; +  } + +  aside { +    float: none; +    margin: auto; +    width: 25%; +    display: block; +    justify-content: center; +    text-align: center; +  } + +  #searchform { +    width: 100%; +    margin: auto; +  } +   +  aside form input[type="submit"] { +    margin-top: 3px; +    margin: auto; +    background-color: black; +    color: white; +    border-radius: 5px; +    border: 2px solid black; +  } + +   +input[type="search"] { +  padding: 3px 5px; +  box-sizing: border-box; +  border: 2px solid black; +  margin: auto; +} + + + +  /* input[type="search"] {} */ +} +  .minichart {    min-height: 220px;    width: 100%; @@ -125,10 +169,6 @@ aside form p {    font-size: small;  } -.chart { -   -} -  .bottom_text {    display: inline-flex;    margin: 0.5rem; | 
