aboutsummaryrefslogtreecommitdiffstats
path: root/src/static/style.css
diff options
context:
space:
mode:
authorKira <kira.eva@protonmail.com>2023-05-17 02:11:49 +0100
committerKira <kira.eva@protonmail.com>2023-05-17 02:11:49 +0100
commit4f93be86f144aca49b566791831d198e05687a37 (patch)
treeb8ca358b4c11a5938c9043a80f6d44e0971fc7bc /src/static/style.css
parent665bf3fe78aa28f91090783d35db3666e10258a8 (diff)
downloadUKGenderPayGap-4f93be86f144aca49b566791831d198e05687a37.tar.gz
UKGenderPayGap-4f93be86f144aca49b566791831d198e05687a37.zip
Make charts responsive
Charts now take the width of the whole screen when the window is below 1200px
Diffstat (limited to 'src/static/style.css')
-rw-r--r--src/static/style.css11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/static/style.css b/src/static/style.css
index c363de6..d2d46f1 100644
--- a/src/static/style.css
+++ b/src/static/style.css
@@ -108,6 +108,13 @@ 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%;
+ }
+}
+
.minichart {
min-height: 220px;
width: 100%;
@@ -125,10 +132,6 @@ aside form p {
font-size: small;
}
-.chart {
-
-}
-
.bottom_text {
display: inline-flex;
margin: 0.5rem;