From b0a1a2a88f49e705edbfd8b51718067155674847 Mon Sep 17 00:00:00 2001 From: Jianan Sun Date: Fri, 1 Mar 2024 01:56:19 +0800 Subject: [PATCH] ui: tweak --- sass/main.scss | 17 ++++++++++++----- templates/_custom_css.html | 2 ++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index 4c7d350..11ade4b 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -97,6 +97,11 @@ body::-webkit-scrollbar { border-bottom: 1.5px solid var(--primary-color); color: var(--primary-color); text-decoration: none; + overflow-wrap: anywhere; + + &:hover { + opacity: 0.85; + } } img { @@ -119,7 +124,7 @@ body::-webkit-scrollbar { blockquote { border-left: 2px var(--text-pale-color) solid; padding-left: 16px; - margin: 0 0 24px 0; + margin: 1em 0; color: var(--text-pale-color); } @@ -333,11 +338,13 @@ body::-webkit-scrollbar { .callout { line-height: inherit; - margin-bottom: 20px; + margin: 1.25em 0; border: 1.5px solid var(--primary-color); + border-radius: var(--callout-border-radius); padding: 6px 12px; display: flex; gap: 12px; + overflow: auto; .icon { height: 1.75em; @@ -390,14 +397,13 @@ body::-webkit-scrollbar { border: none; position: relative; margin: 2em 0; - padding: 1em 0 0 1em; + padding: 1em 0 0 1.25em; .icon { display: block !important; position: absolute; left: 0; top: 0; - transform: scale(1.75); } .content > p:first-of-type { @@ -420,6 +426,7 @@ body::-webkit-scrollbar { details { border: 1.5px solid var(--detail-border-color); + border-radius: var(--detail-border-radius); margin: 1em 0; padding: 0.5em 1em; @@ -490,7 +497,7 @@ body.prose-page { display: flex; justify-content: space-between; align-items: flex-end; - gap: 5px; + gap: 0.5em; padding: 4px 0px; margin: 8px 0; font-size: 1em; diff --git a/templates/_custom_css.html b/templates/_custom_css.html index 249a0fa..51d5983 100644 --- a/templates/_custom_css.html +++ b/templates/_custom_css.html @@ -48,6 +48,8 @@ --paragraph-line-height: 1.75; --aside-font-size: 15px; --img-border-radius: 0px; + --callout-border-radius: 0px; + --detail-border-radius: 0px; --dark-mode-img-brightness: 0.75; --dark-mode-chart-brightness: 0.75; --inline-code-border-radius: 2px;