diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 2ca5a44..2fb03f3 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -216,6 +216,8 @@ nav { .sidebar-layout { display: flex; flex-direction: column; + position: relative; + z-index: 9999; } #searchbox { @@ -874,7 +876,7 @@ blockquote { blockquote.note { position: relative; - z-index: -1; + z-index: 0; } blockquote.note:before { @@ -889,6 +891,7 @@ blockquote.note:before { padding: 0 0.25rem; display: block; background-color: var(--color-background); + z-index: 999; } blockquote p:first-child { @@ -1011,7 +1014,7 @@ blockquote.side-callout { } .code-block { - position: static; + position: relative; } .code-block .code-header:not(:has(.code-type)) { @@ -1051,12 +1054,16 @@ li .code-block { text-transform: uppercase; padding: .25rem 0.25rem; /* Padding for button content */ font-size: 12px; /* Font size */ - z-index: 9999; + z-index: 999; position: absolute; background-color: white; margin: -12px 0 0 1rem; } +.code-container { + position: relative; +} + .code-container:hover { .code-copy-button { display: block; @@ -1073,8 +1080,8 @@ li .code-block { color: #000; display: none; position: absolute; - right: calc(25% + 2rem); margin-top: 8px; + right: 1rem; } .code-copy-button:hover {