Skip to content

Commit 523e5c5

Browse files
committed
fix: Product selector not being on top of everything
1 parent f5ea6ef commit 523e5c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

assets/css/v2/style.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ nav {
216216
.sidebar-layout {
217217
display: flex;
218218
flex-direction: column;
219+
position: relative;
220+
z-index: 9999;
219221
}
220222

221223
#searchbox {
@@ -1051,12 +1053,16 @@ li .code-block {
10511053
text-transform: uppercase;
10521054
padding: .25rem 0.25rem; /* Padding for button content */
10531055
font-size: 12px; /* Font size */
1054-
z-index: 9999;
1056+
z-index: 999;
10551057
position: absolute;
10561058
background-color: white;
10571059
margin: -12px 0 0 1rem;
10581060
}
10591061

1062+
.code-container {
1063+
position: relative;
1064+
}
1065+
10601066
.code-container:hover {
10611067
.code-copy-button {
10621068
display: block;
@@ -1073,8 +1079,8 @@ li .code-block {
10731079
color: #000;
10741080
display: none;
10751081
position: absolute;
1076-
right: calc(25% + 2rem);
10771082
margin-top: 8px;
1083+
right: 1rem;
10781084
}
10791085

10801086
.code-copy-button:hover {

0 commit comments

Comments
 (0)