feat: add media max width setting

This commit is contained in:
Erzbir
2026-06-15 22:23:34 +08:00
parent 7871674582
commit cf1c3ec085
3 changed files with 14 additions and 3 deletions
+2 -3
View File
@@ -26,6 +26,7 @@
--lig-theme-font: none;
--width-theme-border: calc(var(--size-theme-font) * 0.125);
--width-theme-table-border: calc(var(--size-theme-font) * 0.0625);
--width-theme-media-max: 60%;
--style-theme-border: solid;
--style-theme-table-border: dashed;
--style-theme-title-divider: dashed;
@@ -100,8 +101,6 @@ body {
}
body[layout_mode='fullscreen'] {
--width-theme-media-max: calc(var(--size-theme-font) * 75);
.wrapper {
display: block;
}
@@ -121,7 +120,7 @@ body[layout_mode='fullscreen'] {
.content img,
.content video,
.content figure {
max-width: 60%;
max-width: var(--width-theme-media-max);
margin-left: auto;
margin-right: auto;
}