mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-05-12 02:56:19 +08:00
fix: widen homepage main content area
Apply a homepage-only override so mdbook-content > main uses at least 80% of the available content width while keeping normal body pages on the default layout.
This commit is contained in:
@@ -25,7 +25,7 @@ FRONTPAGE_SWITCH_PLACEHOLDER = "<!-- OPENMLSYS_LANGUAGE_SWITCH -->"
|
||||
FRONTPAGE_LAYOUT_CSS = """
|
||||
<style>
|
||||
.openmlsys-frontpage {
|
||||
width: min(100%, max(80%, var(--content-max-width)));
|
||||
width: 100%;
|
||||
margin: 0 auto 3rem;
|
||||
margin-inline: auto;
|
||||
}
|
||||
@@ -101,6 +101,9 @@ FRONTPAGE_LAYOUT_CSS = """
|
||||
max-width: 960px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
.content main {
|
||||
max-width: min(100%, max(80%, var(--content-max-width)));
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.openmlsys-frontpage .mdl-cell,
|
||||
.openmlsys-frontpage .mdl-cell--1-col,
|
||||
|
||||
Reference in New Issue
Block a user