From 8810efb2ab4f588d29fef10d74c95fff1217ad5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 14 Nov 2018 15:10:57 -0500 Subject: [PATCH] End the padding experiment; use same values for absolute positioning --- agaric/sass/agaric/_component.navbar.scss | 1 - agaric/sass/agaric/_component.tabs.scss | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/agaric/sass/agaric/_component.navbar.scss b/agaric/sass/agaric/_component.navbar.scss index 5d64f19..a49e4af 100644 --- a/agaric/sass/agaric/_component.navbar.scss +++ b/agaric/sass/agaric/_component.navbar.scss @@ -18,7 +18,6 @@ fill: currentColor; } & + section, - & + .floating-tabs, & + .floating-tabs + #main-content + section, & + .floating-tabs + #main-content + .node > section:first-child { padding-top: 3.3125em; diff --git a/agaric/sass/agaric/_component.tabs.scss b/agaric/sass/agaric/_component.tabs.scss index 766c944..4f884ec 100644 --- a/agaric/sass/agaric/_component.tabs.scss +++ b/agaric/sass/agaric/_component.tabs.scss @@ -25,8 +25,12 @@ .floating-tabs { position: absolute; - top: 250px; left: 0.75rem; z-index: 1; - background: rgba(255, 255, 255, 0.75); + background: rgba($white, 0.75); + // Top matches .is-fixed next sibling padding from _component.navbar.scss. + top: 3.3125em; + @include desktop { + top: 5.875em; + } }