Move main menu margins to utility class in template.

This commit is contained in:
Fredrik Jonsson 2025-03-28 23:33:07 +01:00
commit aad10abe8b
3 changed files with 2 additions and 6 deletions

View file

@ -109,10 +109,6 @@ article {
// Navigation
.main-menu {
.page > & {
margin-block: var(--spacing-xs);
}
a {
display: block;
background-color: var(--color-button);

View file

@ -6,11 +6,11 @@
display: flex;
flex-direction: column;
gap: var(--gutters);
align-items: center;
background-color: var(--color-header-bg);
@media (min-width: 666px) {
flex-direction: row;
align-items: center;
}
// Wrapping link for logo.

View file

@ -1,4 +1,4 @@
<nav class="main-menu{{ if not ($.Param "menuinheader") }} layout__navigation{{ end }}" aria-label="{{ i18n "menu_title" }}">
<nav class="main-menu{{ if not ($.Param "menuinheader") }} mx--xs layout__navigation{{ end }}" aria-label="{{ i18n "menu_title" }}">
<ul class="flex-inline mx--0">
{{ $currentPage := . -}}
{{ range site.Menus.main -}}