diff --git a/style.css b/style.css index 25cf355..5b8cf6f 100644 --- a/style.css +++ b/style.css @@ -25,7 +25,11 @@ * { box-sizing: border-box; margin: 0; padding: 0; } -html { scroll-behavior: smooth; } +html { + scroll-behavior: smooth; + overflow-x: hidden; + width: 100%; +} body { background: var(--bg); @@ -37,10 +41,13 @@ body { -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; + width: 100%; + max-width: 100vw; + position: relative; } img, svg { max-width: 100%; height: auto; } -code, pre { word-break: break-word; overflow-wrap: anywhere; } +code, pre { word-break: break-word; overflow-wrap: anywhere; max-width: 100%; } a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; } a:hover { opacity: 0.7; }