From 98974fba7e844b63a6202a75211a222de39f6bf6 Mon Sep 17 00:00:00 2001 From: metonym Date: Sat, 6 Aug 2022 12:20:40 -0700 Subject: [PATCH] style(docs): remove UI Shell overrides (#1429) --- docs/src/global.css | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/docs/src/global.css b/docs/src/global.css index ae82aba1..425f7914 100644 --- a/docs/src/global.css +++ b/docs/src/global.css @@ -89,6 +89,18 @@ html[theme="g90"] .code-override { width: auto; } +/* + * Main content needs to supersede z-index of SideNav but not that of the Header. + * UI Shell Header shares the same z-index. + */ +[aria-label="Navigation"] { + z-index: calc(8000 + 2); +} + +[aria-label="Navigation"] ~ [data-components] { + z-index: calc(8000 + 1); +} + .prose > p > .bx--link { font-size: inherit; text-decoration: underline; @@ -239,25 +251,3 @@ html[theme="g90"] .code-override { .bx--col > p { margin-bottom: var(--cds-layout-02); } - -main.bx--content { - min-height: calc(100vh - 3rem - 3rem); -} - -@media (max-width: 1056px) { - .bx--side-nav ~ .bx--content { - padding-left: 1rem; - padding-right: 1rem; - } - - .bx--side-nav--expanded ~ .bx--content { - white-space: nowrap; - min-width: 28rem; - } -} - -@media (min-width: 1057px) { - .bx--side-nav__navigation { - z-index: 1; - } -}