Improve spacing in the sidebar of posts' pages

This commit is contained in:
arne 2022-02-25 08:44:34 +01:00
commit 4188845bda
2 changed files with 18 additions and 18 deletions

View file

@ -2,7 +2,7 @@
{% block sidebar %} {% block sidebar %}
<dl> <dl>
<dt>Last change</dt> <dt>Last updated on</dt>
<dd><time datetime="{{page.date}}">{{page.date | toISODate}}</time></dd> <dd><time datetime="{{page.date}}">{{page.date | toISODate}}</time></dd>
</dl> </dl>
<a href="{{ "/" | url }}">← Home</a> <a href="{{ "/" | url }}">← Home</a>

View file

@ -51,24 +51,18 @@ p {
a { a {
color: $highlight; color: $highlight;
display: inline-block;
position: relative;
text-decoration: none; text-decoration: none;
position: relative;
&:before {
content: '';
position: absolute;
z-index: -1;
top: 0;
bottom: 0;
left: -.3em;
right: -.3em;
background: $highlight-1; background: $highlight-1;
transition: .2s background ease-in; box-shadow: .3em 0 0 $highlight-1,
} -.3em 0 0 $highlight-1;
padding: .1em 0;
transition: background .2s ease-in, box-shadow .2s ease-in;
&:hover:before { &:hover {
background: $highlight-2; background: $highlight-2;
box-shadow: .3em 0 0 $highlight-2,
-.3em 0 0 $highlight-2;
} }
} }
@ -144,15 +138,21 @@ aside {
dl { dl {
margin: 0; margin: 0;
padding-bottom: 22px;
dt, dd { dt, dd {
display: inline-block; display: inline-block;
} }
dd { dd {
margin: 0 margin: 0;
} }
} }
a {
display: inline-block;
margin-left: .3em;
}
} }
article { article {
@ -170,7 +170,7 @@ article {
// special page styling // special page styling
.home { // == main .home {
grid-template-areas: grid-template-areas:
"header header header header" "header header header header"
"aside aside aside aside"; "aside aside aside aside";