Skip to content

Commit 0fbe3bb

Browse files
maple3142ivan-nginx
authored andcommitted
change copy-button position to absolute (#242)
1 parent c7adeac commit 0fbe3bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layout/_third-party/copy-code.swig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
transition: opacity .3s ease-in-out;
2222
opacity: 0;
2323
padding: 2px 6px;
24-
position: fixed;
24+
position: absolute;
2525
right: 4px;
2626
top: 8px;
2727
}
@@ -32,7 +32,7 @@
3232
}
3333

3434
.highlight-wrap {
35-
transform: translateZ(0);
35+
position: relative;
3636
}
3737
</style>
3838
<script>

0 commit comments

Comments
 (0)