last-7 days to homepage, using flex instead of grid for graph page for better mobile comp

This commit is contained in:
simon 2021-02-27 15:28:01 +07:00
parent c7a53f0a1a
commit f6ada0ff00
2 changed files with 8 additions and 4 deletions

View File

@ -284,9 +284,7 @@ a {
}
.graph3 {
display: grid;
grid-template-columns: 33% 33% 33%;
grid-column-gap: 10px;
display: flex;
}
.graph_item img {
@ -379,6 +377,6 @@ a {
display: block;
}
.graph3 {
grid-template-columns: 100%;
flex-direction: column-reverse;
}
}

View File

@ -107,6 +107,12 @@
<img src="/dyn/current.png" alt="current">
</a>
</div>
<div class="graph_item">
<h3>Last 7 days</h3>
<a href="/dyn/last-7.png" data-lightbox="graph">
<img src="/dyn/last-7.png" alt="last-7 days">
</a>
</div>
</div>
</div>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/incl/footer.html'); ?>