Improve nav, support .domains in workflow

This commit is contained in:
daudix
2024-02-07 17:14:31 +03:00
parent 72775cb68b
commit cd69d19ed7
4 changed files with 75 additions and 72 deletions

View File

@ -1,9 +0,0 @@
.main-content {
position: absolute;
transform: translateY(-200%);
transition: var(--transition);
&:focus {
transform: translateY(0);
}
}

View File

@ -1,21 +1,22 @@
#site-nav {
-webkit-backdrop-filter: saturate(180%) blur(10px);
align-items: center;
backdrop-filter: saturate(180%) blur(10px);
background-color: var(--nav-bg);
border-radius: 26px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
0px 12px 24px -16px rgba(0, 0, 0, 0.5);
margin: 1rem auto;
position: sticky;
top: 1rem;
max-width: min(calc(var(--content-width) + 10rem), 90%);
z-index: 999;
nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 1rem auto;
max-width: min(calc(var(--content-width) + 10rem), 90%);
align-items: center;
padding: 0.5rem;
position: sticky;
top: 1rem;
z-index: 999;
width: fit-content;
ul {
display: flex;
@ -49,6 +50,17 @@
}
}
#main-content {
background: var(--bg-color);
position: absolute;
transform: translateY(-200%);
z-index: 999;
&:focus {
transform: translateY(0);
}
}
#home {
position: relative;
margin-right: 0.625rem;
@ -85,3 +97,4 @@
}
}
}
}

View File

@ -18,7 +18,6 @@
@use "footer";
@use "johnvertisement";
@use "links";
@use "main-content";
@use "media";
@use "nav";
@use "not-found";

View File

@ -1,6 +1,6 @@
<header>
<a href="#main" class="main-content" tabindex="0">Skip to main content</a>
<nav id="site-nav">
<header id="site-nav">
<nav>
<a href="#main" id="main-content" tabindex="0">Skip to main content</a>
<ul>
<li id="home">
<a href="{{ get_url(path='') }}">{{ config.title }}</a>