diff --git a/layouts/home.html b/layouts/home.html index 320159d..9ec6d1f 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -57,19 +57,35 @@ .title-wrapper { display: flex; flex-direction: row; - gap: 10px; - justify-content: space-between; + gap: 30px; + justify-content: flex-start; /* Change from space-between to flex-start */ + align-items: center; /* Ensure vertical alignment */ } .site-title { - flex-grow: 1; - margin: 0; /* Remove default margin */ - font-size: 3rem; /* Adjust font size as needed */ + flex-grow: 0; /* Prevent automatic growth */ + flex-shrink: 1; /* Allow shrinking if needed */ + margin: 0; + font-size: 2.5rem; /* Reduce from 3rem to 2.5rem */ + max-width: 75%; /* Limit the width to prevent overflow */ + word-break: normal; /* Ensure proper word breaking */ + } + .site-logo { + flex-grow: 0; /* Change from 1 to 0 */ + flex-shrink: 0; + display: flex; + justify-content: center; + margin: 0; + padding: 0; + line-height: 0; + width: 75px; + height: auto; + } + .site-logo img { + max-width: 100%; + max-height: 100%; + object-fit: contain; + } - } - .logo { - width: 50px; /* Adjust logo size */ - height: auto; /* Maintain aspect ratio */ - } .navigation { flex-grow: 3; display: flex; @@ -130,6 +146,30 @@ flex: none; /* Reset flex property */ width: 100%; /* Make them take full width */ } + + .header { + padding: 10px 0; /* Reduce padding on mobile */ + } + + .title-wrapper { + width: 100%; + justify-content: flex-start; /* Change from space-between to flex-start */ + flex-wrap: wrap; /* Allow wrapping if needed */ + } + + .site-title { + font-size: 2.5rem; /* Reduce title size on mobile */ + max-width: 65%; /* Further limit width on mobile */ + flex-grow: 0; + flex-shrink: 0; + } + + .site-logo { + width: 70px; + height: 70px; + flex-shrink: 1; + flex-grow: 1; + } } @@ -183,11 +223,18 @@