mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-18 14:25:32 -04:00
okay preact is actually pretty cool tbh. (now using it for copy to clipboard buttons)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user