commit b4f30645592194893cdd2d4da4115809689e91d0 parent 84ccfd7a16a48321628e8159540308ea79463cdd Author: Samdal <samdal@protonmail.com> Date: Thu, 20 Feb 2025 20:37:00 +0100 fix resize Diffstat:
M | _layouts/default.html | | | 22 | ++++++++++++---------- |
M | _sass/_main.scss | | | 12 | +++++++----- |
2 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/_layouts/default.html b/_layouts/default.html @@ -7,16 +7,18 @@ layout: compress {% include head.html %} <body> <main> - <a href="/" style="width: 100%; text-decoration: none;"> - <h1 style="margin-bottom: 5px;"> - N-Channel MOSFET - </h1> - <h2 style="margin-top: 0px; text-wrap: balance;"> - <i> - Metal–Oxide–Semiconductor Field-effect Transistor - </i> - </h2> - </a> + <div class="main-title"> + <a style="text-decoration: none" href="/"> + <h1 style="margin-bottom: 5px;"> + N-Channel MOSFET + </h1> + <h2 style="margin-top: 0px; text-wrap: balance;"> + <i> + Metal–Oxide–Semiconductor Field-effect Transistor + </i> + </h2> + </a> + </div> <div class="main-content"> {% include navigation.html %} diff --git a/_sass/_main.scss b/_sass/_main.scss @@ -200,12 +200,17 @@ li { main { flex: 1; padding:1rem; - max-width:60rem; background-color: transparent; - margin:2rem auto; +} + +.main-title { + max-width:60rem; + margin:0px auto; } .main-content { + max-width:60rem; + margin:2rem auto; display:flex; flex-wrap:wrap; } @@ -216,9 +221,6 @@ header li { display: inline; margin-right: 1rem; } -.logo { - padding-bottom: 1rem; -} header ul { border-bottom: 3px solid #bcd1cf; padding-bottom: 2rem;