Compare commits

..

No commits in common. "8153caea035469cd7fe2786b3baed6be7cc680f9" and "9aaf9c2a3dbbadbd2b60962382126b122815f32c" have entirely different histories.

3 changed files with 6 additions and 30 deletions

View file

@ -30,7 +30,7 @@ header {
margin-left: 1.9rem; margin-left: 1.9rem;
} }
.nav-item { #mainNav a {
position: relative; position: relative;
font-size: 16px; font-size: 16px;
font-family: Aileron; font-family: Aileron;
@ -41,7 +41,7 @@ header {
text-decoration: none; text-decoration: none;
} }
.nav-item::after { #mainNav a::after {
content: ""; content: "";
position: absolute; position: absolute;
background: var(--color-primary); background: var(--color-primary);
@ -53,26 +53,7 @@ header {
transition: opacity .3s ease-out; transition: opacity .3s ease-out;
} }
.nav-item:hover::after, #mainNav a:hover::after,
.nav-item.active::after { #mainNav .nav-active a::after {
opacity: 1; opacity: 1;
} }
.nav-item-stream {
padding: .75rem 1.4rem;
border: 2px solid var(--color-primary);
border-radius: 3rem;
color: var(--color-primary);
font-family: Aileron;
font-weight: 500;
letter-spacing: 2px;
text-decoration: none;
text-transform: uppercase;
transition: .2s ease-out;
transition-property: color, background-color;
}
.nav-item-stream:hover {
color: var(--color-livestream-active);
background-color: var(--color-primary);
}

View file

@ -7,14 +7,10 @@
{% set navPages = collections.mainNav | pageLang | eleventyNavigation %} {% set navPages = collections.mainNav | pageLang | eleventyNavigation %}
<ul> <ul>
{%- for entry in navPages -%} {%- for entry in navPages -%}
<li> <li{% if entry.url == page.url %} class="nav-active"{% endif %}>
<a class="nav-item {%- if entry.url == page.url %} active{% endif %}" <a href="{{ entry.url }}">{{ entry.title }}</a>
href="{{ entry.url }}">{{ entry.title }}</a>
</li> </li>
{%- endfor %} {%- endfor %}
<li>
<a class="nav-item-stream" href="https://stream.ifsr.de/" target="_blank" rel="noopener">Stream</a>
</li>
</ul> </ul>
</nav> </nav>
</div> </div>

View file

@ -66,6 +66,5 @@ p {
--page-width: 1280px; --page-width: 1280px;
--color-text: #495057; --color-text: #495057;
--color-primary: {{ eseColor }}; --color-primary: {{ eseColor }};
--color-livestream-active: #fff;
} }