Copy to clipboard: remove temp bits

This commit is contained in:
mDuo13
2021-09-21 15:59:46 -07:00
parent 6c5b953a4b
commit aa08c82c57
5 changed files with 43 additions and 65 deletions

View File

@@ -77,13 +77,25 @@ pre {
}
}
.code_toggler { // expand/collapse button
position: absolute;
bottom: 0;
right: 0;
.btn { // expand/collapse, copy-to-clipboard, etc.
z-index: 10;
}
.codetabs {
position: relative;
z-index: 10;
}
}
.clipboard-btn {
z-index: 10;
margin-right: 10px;
}
.js_interactive .codehilite > .btn-group {
display: none;
}
// Syntax highlighting via Codehilite ------------------------------------------
.codehilite {
@@ -208,8 +220,20 @@ pre {
}
}
.multicode .codehilite {
.codehilite {
background: transparent;
position: relative;
.btn-group {
top: 1rem;
right: 1rem;
position: absolute;
.multicode & {
top: 70px;
right: 20px;
}
}
}