1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-18 13:05:32 -04:00

okay preact is actually pretty cool tbh. (now using it for copy to clipboard buttons)

This commit is contained in:
2021-12-07 08:11:38 -05:00
parent b4cd9eea59
commit 6d64ea647e
6 changed files with 95 additions and 83 deletions

View File

@@ -34,6 +34,7 @@ div.highlight {
overflow-x: scroll;
margin: 1em 0;
border: 1px solid;
position: relative;
pre {
padding-left: 1.5em;
@@ -44,23 +45,15 @@ div.highlight {
> pre > code {
padding-right: 1.5em;
}
}
// elements dynamically added by clipboard.js code
div.highlight-clipboard-enabled {
position: relative;
button.copy-button {
position: absolute;
top: 0;
right: 0;
width: 5.5em;
padding: 0.75em 0.25em;
border: 1px solid;
padding: 0.75em;
border-width: 0 0 1px 1px;
border-style: solid;
cursor: pointer;
font-size: 0.85em;
font-weight: 500;
line-height: 1;
&:hover {
@include themes.themed(
@@ -69,6 +62,11 @@ div.highlight-clipboard-enabled {
)
);
}
.octicon {
width: 1em;
height: 1em;
}
}
}
@@ -110,9 +108,6 @@ div.highlight-clipboard-enabled {
}
.kd,
// .nb,
// .nl,
// .nv,
.vc,
.vg,
.vi,