From 88bfad10db51a1af95fb11b80358fb3ee9f79fc0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 9 Jul 2020 14:11:34 -0400 Subject: [PATCH] Add .article-content-wide helper class --- site/css/main.scss | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/site/css/main.scss b/site/css/main.scss index 70e741c..4e2981c 100644 --- a/site/css/main.scss +++ b/site/css/main.scss @@ -104,6 +104,11 @@ html { color: var(--ui-text-color); } +body { + // prevent .article-content-wide from showing scroll bar + overflow-x: hidden; +} + .container { margin: 0 auto; padding: 0 15px; @@ -244,6 +249,24 @@ article { } } + .article-content-wide { + width: 100vw; + position: relative; + left: 50%; + margin-left: -50vw; + + padding: 10px 0; + margin-top: -10px; + margin-bottom: -10px; + + p:first-child { + margin-top: 0; + } + p:last-child { + margin-bottom: 0; + } + } + .theme-dark, .theme-light, .theme-inverted { color: var(--content-text-color); background-color: var(--content-background-color);