aboutsummaryrefslogtreecommitdiff
path: root/sass/include
diff options
context:
space:
mode:
authorJieiku2022-06-24 23:19:47 -0700
committerJieiku2022-06-24 23:19:47 -0700
commitf29bffad278a0bc14ca9e9fd35681e98283870ec (patch)
treec843cf74d4e465cf8bdddcdae52c87f97685f814 /sass/include
parent170b36e74dc814fd112e5a6d8b5ebaadc14c7d95 (diff)
downloadabridge-f29bffad278a0bc14ca9e9fd35681e98283870ec.tar.gz
abridge-f29bffad278a0bc14ca9e9fd35681e98283870ec.tar.bz2
abridge-f29bffad278a0bc14ca9e9fd35681e98283870ec.zip
Code Block Type and Copy Button Improvements
Diffstat (limited to 'sass/include')
-rw-r--r--sass/include/_zola.scss17
1 files changed, 13 insertions, 4 deletions
diff --git a/sass/include/_zola.scss b/sass/include/_zola.scss
index cf69f46..cbf1166 100644
--- a/sass/include/_zola.scss
+++ b/sass/include/_zola.scss
@@ -11,22 +11,30 @@
font-size: 1.5em
}
pre code[data-lang]::before {
- content: ' ' attr(data-lang) ': ' "
+ color: var(--f1);
+ text-transform: uppercase;
+ content: ' [' attr(data-lang) '] ' "
+
";
- color: var(--a1);
}
// code copy wrapper
.ccw {
position: relative;
}
+.ccw:hover {
+ .cc {
+ opacity: 1;
+ }
+}
// code copy button
.cc {
+ opacity: 0;
z-index: 9;
position: absolute;
- right: 0px;
+ right: 9px;
+ top: 9px;
font-size: .8rem;
}
-
// Mark Override, this is used for Zola's linenos and hl_lines
:root:not(.light) code table {
mark {
@@ -36,6 +44,7 @@ pre code[data-lang]::before {
// Table Override, this is used for Zola's linenos and hl_lines
code table {
font-size: .8rem;
+ margin: 0;
td, th, tr {
padding: 0;
border-bottom: none;