diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-07 11:07:49 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-07 11:07:49 +0800 |
| commit | 9edceb5c32e98e11115d088fa7944984475a957b (patch) | |
| tree | fa57453420817ff95b9b0e16a8dfd0092bd3af64 /assets | |
| parent | ab2f3cf465ec5d2c3688e3355c0c1f095fd23e83 (diff) | |
style: hr style and highlight style
Former-commit-id: 50988d73d534590bdc7766349a09c605b47a1d9e
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/components/_markdown.scss | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/assets/css/components/_markdown.scss b/assets/css/components/_markdown.scss index 83c34fec..0476ea90 100644 --- a/assets/css/components/_markdown.scss +++ b/assets/css/components/_markdown.scss @@ -76,7 +76,7 @@ $em-text-color: #889E73; hr { margin: 2.5rem auto; - border: 0.1rem dashed var(--border-color); + border: 0.05rem solid var(--border-color); } img { @@ -102,7 +102,29 @@ $em-text-color: #889E73; } mark { - background-color: rgba(255, 235, 0, .5) + border-radius: 1em 0 1em 0; + background-image: linear-gradient( + -100deg, + rgba(255, 224, 0, 0.1), + rgba(255, 224, 0, 0.4) 95%, + rgba(255, 224, 0, 0.05) + ); + @media (prefers-color-scheme: dark) { + background-image: linear-gradient( + -100deg, + rgba(0, 255, 20, 0.1), + rgba(0, 255, 20, 0.4) 95%, + rgba(0, 255, 20, 0.05) + ); + } + &.dark { + background-image: linear-gradient( + -100deg, + rgba(0, 255, 20, 0.2), + rgba(0, 255, 20, 0.7) 95%, + rgba(0, 255, 20, 0.1) + ); + } } table { |
