Fix horizontal scroll overflow due to header animation

The header is now moved up and outside of the body container, now allowing the header to take up a max of 100% of the viewport width. With overflow set to hidden, the animation will go outside the viewport but won't create a scrollbar anymore.
This commit is contained in:
Xevion
2022-09-20 16:53:55 -05:00
parent 1dff66a5b8
commit 278bdae356
3 changed files with 10 additions and 5 deletions

View File

@@ -2,8 +2,8 @@
layout: base layout: base
--- ---
<div class="body-container">
{% include header.html %} {% include header.html %}
<div class="body-container">
{% if page.hide_header or layout.hide_header %} {% if page.hide_header or layout.hide_header %}
{% else %} {% else %}
{% if page.title %} {% if page.title %}

View File

@@ -1,7 +1,12 @@
header {
max-width: 100vw;
.stack { .stack {
overflow: hidden;
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
}
.stack span { .stack span {
font-weight: bold; font-weight: bold;

View File

@@ -34,7 +34,7 @@ html {
} }
body { body {
padding: 0 1em; padding: 0;
font-family: CMU Serif, serif; font-family: CMU Serif, serif;
line-height: 1.5; line-height: 1.5;
background: #0e0e0e; background: #0e0e0e;