fix: Keeps logo size and resolves mobile menu overlap
This commit is contained in:
parent
91f48051fd
commit
401f1ce11a
1 changed files with 157 additions and 16 deletions
|
|
@ -1,6 +1,122 @@
|
|||
@import './_schedule.css';
|
||||
@import './_gallery.css';
|
||||
|
||||
.header__logo {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header__intro {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
@media (width <= 666px) {
|
||||
.header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reserve space for the mobile menu without changing the theme's colours or fonts. */
|
||||
:root {
|
||||
--mobile-bar-h: 3.25rem;
|
||||
}
|
||||
|
||||
.layout__page:has(> .mobile-nav:not([hidden])) {
|
||||
padding-block-end: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
:root:has(.mobile-nav:not([hidden])) {
|
||||
scroll-padding-block-end: calc(var(--mobile-bar-h) + 1rem);
|
||||
}
|
||||
|
||||
.mobile-nav {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.mobile-nav__cover {
|
||||
inset: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.mobile-nav__toggle.button {
|
||||
position: fixed;
|
||||
inset: auto 0 0;
|
||||
justify-content: center;
|
||||
gap: 0.6rem;
|
||||
width: auto;
|
||||
block-size: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
padding: 0 var(--gutters) env(safe-area-inset-bottom, 0px);
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: var(--color-button);
|
||||
|
||||
&:hover,
|
||||
&:focus-visible,
|
||||
&:active {
|
||||
background: var(--color-button-hover);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline-offset: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-nav__sheet {
|
||||
position: absolute;
|
||||
inset: auto 0 calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: calc(100% - var(--mobile-bar-h) - env(safe-area-inset-bottom, 0px) - var(--spacing-l));
|
||||
overflow-y: auto;
|
||||
padding: var(--spacing-m) var(--gutters);
|
||||
transform: translateY(100%);
|
||||
|
||||
[data-navopen] & {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector ul {
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.language-selector a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45em;
|
||||
}
|
||||
|
||||
.language-selector .language-icon {
|
||||
inline-size: 1.1em;
|
||||
block-size: 1.1em;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
fill: currentcolor;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector a,
|
||||
.mobile-nav__navbar a {
|
||||
padding-block: 0.5rem;
|
||||
}
|
||||
|
||||
.mobile-nav__region .language-selector a {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.mobile-nav__navbar a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.header__intro_headline {
|
||||
margin: 0;
|
||||
font: bold var(--fs-xxl) "Arial";
|
||||
|
|
@ -45,18 +161,19 @@ th, td {
|
|||
--color-mobile-menu: #141414;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.main-menu a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
/* Links in text keep their underline: the link colour alone is too close to the text colour. */
|
||||
nav a,
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.main-menu a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
/* Links in text keep their underline: the link colour alone is too close to the text colour. */
|
||||
nav a,
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h2 a {
|
||||
|
|
|
|||
Loading…
Reference in a new issue