mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
feat(style): dynamically theme SVGs
And refactor HL shortcode to use semantic <mark>
This commit is contained in:
parent
995d2181a0
commit
3b32a8188f
3 changed files with 13 additions and 6 deletions
|
@ -255,6 +255,11 @@ figcaption.numbered {
|
||||||
counter-increment: captions;
|
counter-increment: captions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dynamically theme SVGs
|
||||||
|
svg {
|
||||||
|
fill: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
pre,
|
pre,
|
||||||
code {
|
code {
|
||||||
font-family: $sta-font-mono, monospace;
|
font-family: $sta-font-mono, monospace;
|
||||||
|
@ -302,9 +307,10 @@ blockquote p:last-child {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.markup-quote {
|
mark,
|
||||||
background-color: transparent;
|
.mark {
|
||||||
background-image: linear-gradient(to bottom, rgba(233, 231, 245, 1), rgba(233, 231, 245, 1));
|
// Inherit color for dynamic light/dark compatibility.
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.space-below {
|
.space-below {
|
||||||
|
|
|
@ -55,8 +55,9 @@ body.dark,
|
||||||
border-color: rgb(68, 71, 90);
|
border-color: rgb(68, 71, 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark .markup-quote {
|
.dark mark,
|
||||||
background-image: linear-gradient(to bottom, rgba(233, 231, 245, 0.2), rgba(233, 231, 245, 0.2));
|
.dark .mark {
|
||||||
|
background: rgba(233, 231, 245, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark #MathJax_Zoom {
|
.dark #MathJax_Zoom {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<span class="markup-quote">{{ .Inner | markdownify | emojify }}</span>
|
<mark>{{ .Inner | markdownify | emojify }}</mark>
|
Loading…
Add table
Add a link
Reference in a new issue