From c6068d0fee1a129b6c5b7cf98dcf71ea99aa52e6 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 2 Apr 2023 14:50:51 -0400 Subject: [PATCH] fix: Styling inconsistency on anchors in headings, closes #5126 --- shared/editor/components/Styles.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 9f91264db..63e083187 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -688,20 +688,21 @@ strong { p { margin: 0; min-height: 1.6em; +} - a { - color: ${props.theme.text}; +.heading-content a, +p a { + color: ${props.theme.text}; + text-decoration: underline; + text-decoration-color: ${lighten(0.5, props.theme.text)}; + text-decoration-thickness: 1px; + text-underline-offset: .15em; + font-weight: 500; + + &:hover { text-decoration: underline; - text-decoration-color: ${lighten(0.5, props.theme.text)}; + text-decoration-color: ${props.theme.text}; text-decoration-thickness: 1px; - text-underline-offset: .15em; - font-weight: 500; - - &:hover { - text-decoration: underline; - text-decoration-color: ${props.theme.text}; - text-decoration-thickness: 1px; - } } }