Skip to content

Commit 3d295e5

Browse files
committed
Simplify css
1 parent 7b35e8b commit 3d295e5

File tree

4 files changed

+19
-36
lines changed

4 files changed

+19
-36
lines changed

sass/_base.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,12 @@ a:visited {
5656

5757
main+footer {
5858
width: 100vw;
59-
padding-top: 0.5em;
60-
padding-bottom: 0.5em;
59+
padding: 0.5em;
6160
background: color.adjust($background, $lightness: 12%);
6261
}
6362

6463
footer {
65-
margin-top: 1em;
64+
font-size: 12px;
6665
.space {
6766
width: 100%;
6867
display: flex;

sass/blog.scss

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,24 @@
11
@use 'base';
22
@use 'date-headers';
33

4-
.layout-link-button {
5-
padding: 4px 4px 4px 1em;
6-
width: 90%;
7-
display: block;
8-
/* TODO */
9-
}
10-
114
.blog {
125
article {
136
margin-bottom: 2em;
14-
border-left-width: 3px;
7+
border-radius: 1px;
158
border-left-style: solid;
9+
border-left-color: #3dbeff;
10+
border-left-width: 2px;
1611
padding-left: 4px;
17-
}
1812

19-
p {
20-
margin-top: 0.2em;
21-
margin-bottom: 0.2em;
22-
}
23-
}
13+
p {
14+
margin-top: 0.2em;
15+
margin-bottom: 0.2em;
16+
}
2417

25-
.blog>article {
26-
border-left-color: #3dbeff;
27-
border-radius: 1px;
18+
a {
19+
display: block;
20+
width: 100%;
21+
padding: 6px 6px 6px 1em;
22+
}
23+
}
2824
}
29-
30-
.layout-link-button::after {
31-
content: "";
32-
display: inline-block;
33-
vertical-align: middle;
34-
width: 20px;
35-
height: 20px;
36-
background: url('/assets/btn-progress.svg') 1em 0 no-repeat;
37-
background-size: contain;
38-
}

templates/base.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@
2525
{% block content %} {% endblock %}
2626

2727
<footer>
28-
<address class="space">
29-
<a href="https://derdilla.com">Homepage</a>
30-
31-
<a href="https://github.com/derdilla">GitHub</a>
32-
</address>
3328
<div class="space">
29+
<a href="https://derdilla.com">Homepage</a>
3430
<a href="/rss.xml">RSS-feed</a>
31+
3532
<a href="/atom.xml">Atom-feed</a>
33+
<a href="https://github.com/derdilla">GitHub</a>
3634
</div>
3735
<p><i>Except where otherwise noted, content on this site is licensed under a <a
3836
href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0</a> International

templates/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2>{{ post.title }}</h2>
1818
<time datetime="{{post.date }}">{{post.date}}</time>
1919
</header>
2020
<p>{{ post.description }}</p>
21-
<a href="{{ post.permalink | safe }}" class="layout-link-button"><span style="padding-right: 8px">Open</span><img
21+
<a href="{{ post.permalink | safe }}">Open<img
2222
alt="Open post" src="/assets/btn-progress.svg" width="12px"></a>
2323
</article>
2424
{% endfor %}

0 commit comments

Comments
 (0)