homepage sizing fixes

This commit is contained in:
towards-a-new-leftypol 2024-03-17 17:35:25 -04:00
parent 98b038bdb8
commit 2d53302e33
2 changed files with 13 additions and 2 deletions

View File

@ -29,8 +29,9 @@
body { body {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill,minmax(200px, 1fr)); grid-template-columns: repeat(auto-fill,minmax(120px, 20%));
gap: 20px; gap: 20px;
min-height: 100vh;
} }
.modlog { .modlog {
@ -67,6 +68,16 @@
font-weight: bold; font-weight: bold;
} }
footer {
grid-column: 1 / 9;
}
div.news.ban {
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
@media (max-width:768px) { @media (max-width:768px) {
body{ body{
display: grid; display: grid;

View File

@ -25,7 +25,7 @@
</header> </header>
</div> </div>
<div class="content"> <div class="content">
<div class="ban"> <div class="ban news">
{% if not news %} {% if not news %}
<p style="text-align:center" class="unimportant">{% trans %}(No news to show.){% endtrans %}</p> <p style="text-align:center" class="unimportant">{% trans %}(No news to show.){% endtrans %}</p>
{% else %} {% else %}