fix: some style fixes
This commit is contained in:
parent
ff3d1fabb8
commit
d9bd474762
4 changed files with 26 additions and 19 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.datatable-top,
|
||||
.datatable-bottom {
|
||||
padding: 8px 10px;
|
||||
padding: 8px 0px;
|
||||
}
|
||||
|
||||
.datatable-top>nav:first-child,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue