mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-04-27 12:03:13 +08:00
fix: widen centered homepage container
Keep the homepage frontpage wrapper centered while ensuring it uses at least 80% of the available content area, without changing normal body page layout.
This commit is contained in:
@@ -25,8 +25,7 @@ FRONTPAGE_SWITCH_PLACEHOLDER = "<!-- OPENMLSYS_LANGUAGE_SWITCH -->"
|
||||
FRONTPAGE_LAYOUT_CSS = """
|
||||
<style>
|
||||
.openmlsys-frontpage {
|
||||
width: 100%;
|
||||
max-width: var(--content-max-width);
|
||||
width: min(100%, max(80%, var(--content-max-width)));
|
||||
margin: 0 auto 3rem;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user