From aef20f9ff72962b6c9d312a9013fa3100fe28aee Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 2 Jun 2022 20:15:31 +0200 Subject: Fix CSS - All pages except home use screen.css - Fix background colors for article --- assets/scss/_gfx.scss | 5 ++--- assets/scss/_txt.scss | 3 ++- assets/scss/screen.scss | 20 ++++++-------------- 3 files changed, 10 insertions(+), 18 deletions(-) (limited to 'assets/scss') diff --git a/assets/scss/_gfx.scss b/assets/scss/_gfx.scss index e344d5a..235aaf4 100644 --- a/assets/scss/_gfx.scss +++ b/assets/scss/_gfx.scss @@ -1,7 +1,6 @@ body.gfx { - > main > article { - background: $bg-gfx-on; - } + background-color: $bg-gfx-on; + > aside { &:hover, &:focus { background-color: $bg-gfx-on; diff --git a/assets/scss/_txt.scss b/assets/scss/_txt.scss index d4cf968..de132e4 100644 --- a/assets/scss/_txt.scss +++ b/assets/scss/_txt.scss @@ -1,5 +1,6 @@ body.txt { background-color: $bg-txt-on; + > aside { &:hover, &:focus { background-color: $bg-txt-on; @@ -15,13 +16,13 @@ body.txt { h2 { position: absolute; font-size: 4.8rem; - font-weight: 100; transform-origin: top-left; width: 90rem; left: 50%; transform: rotate(90deg) translate(0, -4.5rem); text-align: left; margin-left: 39rem; + margin-top: auto; } } } diff --git a/assets/scss/screen.scss b/assets/scss/screen.scss index 0387a3a..6e6f060 100644 --- a/assets/scss/screen.scss +++ b/assets/scss/screen.scss @@ -71,29 +71,21 @@ span.ps { body { font-family: $sans-serif; font-size: 1em; /* No rem here, bug workaround */ - background: $bg-main; - /* color: $fg-main; */ - color: black; - - &.ps { - background: $bg-ps; - color: $fg-ps; - } > header, > footer { - :link, :visited { - color: $fg-header-h1; - text-decoration: none; - } + :link, :visited { + color: $fg-header-h1; + text-decoration: none; + } } :visited { - text-decoration: underline; + text-decoration: underline; } } img { - max-width: 100%; + max-width: 100%; } @keyframes fade-in { -- cgit v1.2.3