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 %}
|
||||
<dl>
|
||||
<dt>Last change</dt>
|
||||
<dt>Last updated on</dt>
|
||||
<dd><time datetime="{{page.date}}">{{page.date | toISODate}}</time></dd>
|
||||
</dl>
|
||||
<a href="{{ "/" | url }}">← Home</a>
|
||||
|
|
|
|||
|
|
@ -51,24 +51,18 @@ p {
|
|||
|
||||
a {
|
||||
color: $highlight;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: -.3em;
|
||||
right: -.3em;
|
||||
position: relative;
|
||||
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;
|
||||
box-shadow: .3em 0 0 $highlight-2,
|
||||
-.3em 0 0 $highlight-2;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -144,15 +138,21 @@ aside {
|
|||
|
||||
dl {
|
||||
margin: 0;
|
||||
padding-bottom: 22px;
|
||||
|
||||
dt, dd {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-left: .3em;
|
||||
}
|
||||
}
|
||||
|
||||
article {
|
||||
|
|
@ -170,7 +170,7 @@ article {
|
|||
|
||||
// special page styling
|
||||
|
||||
.home { // == main
|
||||
.home {
|
||||
grid-template-areas:
|
||||
"header header header header"
|
||||
"aside aside aside aside";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue