mirror of
https://github.com/Xevion/v2.xevion.dev.git
synced 2025-12-13 12:13:34 -06:00
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:
@@ -2,8 +2,8 @@
|
|||||||
layout: base
|
layout: base
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% include header.html %}
|
||||||
<div class="body-container">
|
<div class="body-container">
|
||||||
{% include header.html %}
|
|
||||||
{% if page.hide_header or layout.hide_header %}
|
{% if page.hide_header or layout.hide_header %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
.stack {
|
|
||||||
display: grid;
|
header {
|
||||||
grid-template-columns: 1fr;
|
max-width: 100vw;
|
||||||
|
.stack {
|
||||||
|
overflow: hidden;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stack span {
|
.stack span {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user