diff options
author | tdro <tdro@noreply.example.com> | 2023-10-07 20:19:06 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-10-07 20:19:06 -0400 |
commit | 5730919857b1f6a31784c95a305bf924436678c2 (patch) | |
tree | f2124df2d0753be4f1f915d67346289fb3fcadec /assets | |
parent | c83c49b0e18f0593a62a8a7754d1ff49ac097289 (diff) | |
download | canory-5730919857b1f6a31784c95a305bf924436678c2.tar.gz canory-5730919857b1f6a31784c95a305bf924436678c2.tar.bz2 canory-5730919857b1f6a31784c95a305bf924436678c2.zip |
themes/default/layouts/shortcodes/mark: Support id
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/default.css | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 3d39f05..c759b46 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -253,7 +253,8 @@ dl:not(:last-child), table:not(:last-child), figure:not(:last-child), code-block:not(:last-child), -blockquote:not(:last-child) { +blockquote:not(:last-child), +article > mark[id]:not(:last-child) { margin-bottom: 0.75rem; } @@ -297,7 +298,23 @@ sub { display: inline-block; } -mark { +article > mark[id] { + display: block; +} + +mark:target a { + color: inherit; + text-decoration-thickness: 2px; +} + +mark[id] { + background: none; + color: inherit; + scroll-margin-top: 6rem; +} + +mark, +mark:target span { background: linear-gradient( to bottom, transparent 10%, @@ -312,8 +329,7 @@ mark { var(--warning-background) 90%, transparent 90% ); - color: #332600; - color: var(--warning); + color: #000; } ins { |