Improve spacing in the sidebar of posts' pages
This commit is contained in:
parent
0b1e6a0e7f
commit
4188845bda
2 changed files with 18 additions and 18 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -51,24 +51,18 @@ p {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $highlight;
|
color: $highlight;
|
||||||
display: inline-block;
|
|
||||||
position: relative;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
position: relative;
|
||||||
|
background: $highlight-1;
|
||||||
|
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;
|
||||||
|
|
||||||
&:before {
|
&:hover {
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
z-index: -1;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: -.3em;
|
|
||||||
right: -.3em;
|
|
||||||
background: $highlight-1;
|
|
||||||
transition: .2s background ease-in;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover:before {
|
|
||||||
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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue