style: refactor layout and replace fixed spacing with font-relative units

This commit is contained in:
Erzbir
2025-08-05 14:50:52 +08:00
parent 8e3cd1ae8d
commit 6e0c6973f2
15 changed files with 287 additions and 233 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
comment-widget {
--halo-comment-widget-base-font-family: var(--font-theme-default) !important;
--halo-comment-widget-base-border-radius: 0 !important;
--halo-comment-widget-base-border-radius: var(--radius-theme-default) !important;
--halo-comment-widget-base-font-size: var(--font-theme-size) !important;
--halo-comment-widget-base-line-height: var(--line-theme-height) !important;
--halo-comment-widget-base-color: var(--color-theme-foreground) !important;
--halo-comment-widget-base-info-color: var(--color-theme-foreground) !important;
--halo-comment-widget-component-form-input-bg-color: var(--color-theme-background) !important;
@@ -30,5 +32,5 @@ comment-widget {
}
.comment {
margin-top: 40px;
margin-top: calc(var(--font-theme-size) * 2.5);
}