fix: some style fixes

This commit is contained in:
Kazhnuz 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 layout: layouts/parent.njk
--- ---
<div id="core"> <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"> <main id="skip">
<div> <div>
{{ content | safe }} {{ content | safe }}
@ -17,6 +10,14 @@ layout: layouts/parent.njk
</div> </div>
<aside id="more-info"> <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"> <div class="card">
<h2>Sommaire</h2> <h2>Sommaire</h2>
{{ content | toc | safe }} {{ content | toc | safe }}

View file

@ -2,13 +2,6 @@
layout: layouts/parent.njk layout: layouts/parent.njk
--- ---
<div id="core"> <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"> <main id="skip">
<div> <div>
{{ content | safe }} {{ content | safe }}
@ -17,6 +10,14 @@ layout: layouts/parent.njk
</div> </div>
<aside id="more-info"> <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"> <div class="card">
<h2>Sommaire</h2> <h2>Sommaire</h2>
{{ content | toc | safe }} {{ content | toc | safe }}

View file

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

View file

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