Center main article and tables

This commit is contained in:
Jonas Tobias Hopusch 2021-08-17 11:07:05 +02:00
parent 67ff6ae0ec
commit ebb274853a
Failed to generate hash of commit
2 changed files with 9 additions and 10 deletions

View file

@ -52,6 +52,12 @@ article {
padding: 0.5rem;
}
#mainarticle {
width: 95vw;
max-width: 80rem;
margin: 0 auto;
}
li, ul, ol {
margin: 1rem;
}
@ -68,7 +74,7 @@ table {
border-right: none;
border-bottom: none;
border-collapse: collapse;
margin: 1rem 2.5vw;
margin: 1rem auto;
}
td, th {
@ -77,14 +83,7 @@ td, th {
border-left: none;
border-top: none;
border-collapse: collapse;
padding: 0.5rem 1rem;
}
@media (max-width: 30rem), (max-width: 1000px) {
table {
margin-right: 0;
margin-left: 0;
}
padding: 0.5rem;
}
@media (prefers-color-scheme: dark) {

View file

@ -24,7 +24,7 @@
</nav>
<hr />
<article>
<article id="mainarticle">
{% block content %} {% endblock %}
</article>