Skip to content

Commit

Permalink
css: fix nested admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 2, 2024
1 parent c27f4bd commit 1a78563
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,31 +341,31 @@ pluto-output div.admonition.hint {
background: var(--jl-info-color);
border: 5px solid var(--jl-info-accent-color);
}
pluto-output div.admonition.note .admonition-title,
pluto-output div.admonition.info .admonition-title,
pluto-output div.admonition.hint .admonition-title {
pluto-output div.admonition.note > .admonition-title,
pluto-output div.admonition.info > .admonition-title,
pluto-output div.admonition.hint > .admonition-title {
background: var(--jl-info-accent-color);
}
pluto-output div.admonition.warning {
background: var(--jl-warn-color);
border: 5px solid var(--jl-warn-accent-color);
}
pluto-output div.admonition.warning .admonition-title {
pluto-output div.admonition.warning > .admonition-title {
background: var(--jl-warn-accent-color);
}
pluto-output div.admonition.danger {
background: var(--jl-danger-color);
border: 5px solid var(--jl-danger-accent-color);
}
pluto-output div.admonition.danger .admonition-title {
pluto-output div.admonition.danger > .admonition-title {
background: var(--jl-danger-accent-color);
}

pluto-output div.admonition.hint .admonition-title ~ * {
pluto-output div.admonition.hint > .admonition-title ~ * {
filter: blur(0.25em);
}
pluto-output div.admonition.hint:hover .admonition-title ~ *,
pluto-output div.admonition.hint:focus-within .admonition-title ~ * {
pluto-output div.admonition.hint:hover > .admonition-title ~ *,
pluto-output div.admonition.hint:focus-within > .admonition-title ~ * {
filter: blur(0em);
}

Expand Down

0 comments on commit 1a78563

Please sign in to comment.