From 2d10676bd9e7c9bb84f8d0d604739292cfa61d5a Mon Sep 17 00:00:00 2001 From: Vrifox Date: Mon, 19 Oct 2020 09:34:36 +0200 Subject: [PATCH] targets #22 and #29 --- scss/import/files.scss | 5 +++++ scss/import/main.scss | 3 +++ scss/import/nom_globaltopbar.scss | 13 +++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 scss/import/files.scss create mode 100644 scss/import/main.scss diff --git a/scss/import/files.scss b/scss/import/files.scss new file mode 100644 index 0000000..19af17b --- /dev/null +++ b/scss/import/files.scss @@ -0,0 +1,5 @@ +body { + display: flex; + flex-direction: column; + margin: 0; +} diff --git a/scss/import/main.scss b/scss/import/main.scss new file mode 100644 index 0000000..bd6fd9d --- /dev/null +++ b/scss/import/main.scss @@ -0,0 +1,3 @@ +body { + margin: 0; +} diff --git a/scss/import/nom_globaltopbar.scss b/scss/import/nom_globaltopbar.scss index f9fd9e6..169fe41 100644 --- a/scss/import/nom_globaltopbar.scss +++ b/scss/import/nom_globaltopbar.scss @@ -25,13 +25,22 @@ $ngtb_height: 32px; // ngtb == nom_globaltopbar margin: 0; overflow-x: auto; overflow-y: hidden; - position: absolute; text-align: left; - top: -$ngtb_height; vertical-align: middle; white-space: nowrap; width: 100%; z-index: 9999; + @if $type == blog { + position: absolute; + top: -$ngtb_height; + } @else if $type == wiki { + position: absolute; + top: 0; + } @else { + order: -1; + position: sticky; + top: 0; + } ul { display: flex; flex: 1;