fix(wiki): vertically center callout icons
The note and warning icons were pinned at a fixed top offset and drifted off the text line inside short callouts. They now center vertically in the callout box.
This commit is contained in:
parent
780d2bd8f0
commit
fdb6ee120a
1 changed files with 4 additions and 5 deletions
|
|
@ -541,17 +541,16 @@
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wiki-markdown .note .callout-icon {
|
.wiki-markdown .note .callout-icon,
|
||||||
|
.wiki-markdown .warning .callout-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0.75rem;
|
left: 0.75rem;
|
||||||
top: 1.125rem;
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wiki-markdown .warning .callout-icon {
|
.wiki-markdown .warning .callout-icon {
|
||||||
position: absolute;
|
|
||||||
left: 0.75rem;
|
|
||||||
top: 1.125rem;
|
|
||||||
color: var(--color-destructive);
|
color: var(--color-destructive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue