Change from hacky text component shadow to css text-shadow

This commit is contained in:
Misode
2025-05-17 21:10:14 +02:00
parent 161b81ffdf
commit d3f6ef313c
2 changed files with 14 additions and 28 deletions

View File

@@ -1862,14 +1862,11 @@ hr {
font-size: 20px;
position: relative;
white-space: pre;
line-height: 1.1 ;
line-height: 1.1;
}
.text-component > .text-foreground {
position: absolute;
z-index: 1;
left: -2px;
top: -2px;
.text-component span {
text-shadow: 2px 2px var(--shadow-color, transparent);
}
.text-component span:empty:before {
@@ -1888,9 +1885,8 @@ hr {
font-size: calc(var(--dialog-px) * 12);
}
.dialog-preview .text-component > .text-foreground {
left: calc(var(--dialog-px) * -1.2);
top: calc(var(--dialog-px) * -1.2);
.dialog-preview .text-component span {
text-shadow: calc(var(--dialog-px) * 1.2) calc(var(--dialog-px) * 1.2) var(--shadow-color, transparent);
}
.dialog-button,