From a9b7b921ff2d39354bb49549ee0aad56043b8ca5 Mon Sep 17 00:00:00 2001 From: RyzenFromFire Date: Fri, 5 Jan 2024 07:33:19 -0500 Subject: [PATCH] add fix for embed block hover excess padding --- manifest.json | 2 +- theme.css | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 767fc5f..d049f23 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Phoenix", - "version": "2.1.12", + "version": "2.1.13", "minAppVersion": "1.0.0", "author": "RyzenFromFire", "authorUrl": "https://github.com/RyzenFromFire" diff --git a/theme.css b/theme.css index f7cb0e8..73fc7e1 100644 --- a/theme.css +++ b/theme.css @@ -944,6 +944,24 @@ but that doesn't seem to be necessary now, so I'm disabling it but keeping it he padding-bottom: 0.5em; } +/* fix for embed block hover excess padding */ +/* remove existing hover box shadow around top level of callout */ +.markdown-source-view.mod-cm6 .cm-embed-block:not(.cm-table-widget):hover { + box-shadow: none; + border-radius: 0; + overflow: hidden; + cursor: unset; +} + +/* add same hover box shadow to sub-level of callout (below the padding added ~10 lines above) */ +.markdown-source-view.mod-cm6 .cm-embed-block:not(.cm-table-widget) > .markdown-rendered:hover { + box-shadow: var(--embed-block-shadow-hover); + border-radius: var(--radius-s); + overflow: hidden; + cursor: text; +} +/* end fix for embed block hover excess padding */ + /* fixes for admonition codeblocks */ .markdown-source-view.mod-cm6 .cm-embed-block pre { margin-top: 0.5em;