fix: some style fixes

This commit is contained in:
Kazhnuz Klappsthul 2023-05-30 22:36:10 +02:00
parent ff3d1fabb8
commit d9bd474762
4 changed files with 26 additions and 19 deletions

View File

@ -2,13 +2,6 @@
layout: layouts/parent.njk
---
<div id="core">
{%- if parent -%}
<div class="parent">
{%- for post in collections.all -%}
{%- if post.data.title == parent -%}<a href="{{ post.url }}">{{ post.data.title }}</a>{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
<main id="skip">
<div>
{{ content | safe }}
@ -17,6 +10,14 @@ layout: layouts/parent.njk
</div>
<aside id="more-info">
{%- if parent -%}
<div class="parent">
{%- for post in collections.all -%}
{%- if post.data.title == parent -%}<a href="{{ post.url }}"> ← {{ post.data.title }}</a>{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
<div class="card">
<h2>Sommaire</h2>
{{ content | toc | safe }}

View File

@ -2,13 +2,6 @@
layout: layouts/parent.njk
---
<div id="core">
{%- if parent -%}
<div class="parent">
{%- for post in collections.all -%}
{%- if post.data.title == parent -%}<a href="{{ post.url }}">{{ post.data.title }}</a>{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
<main id="skip">
<div>
{{ content | safe }}
@ -17,6 +10,14 @@ layout: layouts/parent.njk
</div>
<aside id="more-info">
{%- if parent -%}
<div class="parent">
{%- for post in collections.all -%}
{%- if post.data.title == parent -%}<a href="{{ post.url }}">{{ post.data.title }}</a>{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
<div class="card">
<h2>Sommaire</h2>
{{ content | toc | safe }}

View File

@ -1,6 +1,6 @@
.datatable-top,
.datatable-bottom {
padding: 8px 10px;
padding: 8px 0px;
}
.datatable-top>nav:first-child,

View File

@ -130,12 +130,17 @@ header nav .nav-item a {
display: block;
}
div.parent {
padding-top: 0.66rem;
padding-bottom: 0.66rem;
div.parent a {
display:block;
}
header nav .nav-item a:hover {
div.parent {
padding: 8px;
padding-bottom: 0px;
}
header nav .nav-item a:hover,
div.parent a:hover {
box-shadow: 0px 0px 3px 2px rgba(255,255,255,0.3);
}