Skip to content

Commit

Permalink
add fix for embed block hover excess padding
Browse files Browse the repository at this point in the history
  • Loading branch information
RyzenFromFire committed Jan 5, 2024
1 parent 541c60e commit a9b7b92
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
18 changes: 18 additions & 0 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a9b7b92

Please sign in to comment.