From 45b6c3eefa7435e55097db789d7106ab4cb054e4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 5 Apr 2026 09:43:31 -0400 Subject: [PATCH] Styling finetuning --- shared/editor/components/Styles.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 9ab2e15ae2..298f80eac3 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -1893,27 +1893,32 @@ mark { .${EditorStyleHelper.codeBlockToggle} { display: inline-flex; + align-items: center; position: absolute; z-index: 2; left: 50%; transform: translate3d(-50%, -50px, 0); - align-items: center; - gap: 4px; - border: none; + margin: 0; + padding: 0 8px; + border: 0; border-radius: 100px; - background: rgba(0, 0, 0, 0.5); - backdrop-filter: blur(4px); - color: white; + background: ${props.theme.background}; + color: ${props.theme.buttonNeutralText}; + box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, ${props.theme.buttonNeutralBorder} 0 0 0 1px inset; font-size: 13px; font-weight: 500; - line-height: 1; - padding: 6px 12px; + height: 24px; cursor: var(--pointer); user-select: none; + appearance: none !important; opacity: 0; transition: opacity 150ms ease; pointer-events: auto; + &:hover { + background: ${props.theme.backgroundSecondary}; + } + @media print { display: none !important; }