Skip to content

Commit 10cae2e

Browse files
committed
Improve looks
1 parent 6ca44f7 commit 10cae2e

File tree

2 files changed

+69
-16
lines changed

2 files changed

+69
-16
lines changed

static/style.css

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
@import url(https://fonts.bunny.net/css?family=be-vietnam-pro:400);
2+
3+
:root {
4+
--width-card-wide: 1080px;
5+
--color-link: blue;
6+
--font-family: sans-serif;
7+
}
8+
19
body {
2-
font-family: sans-serif;
10+
/* font-size: 5vw; */
11+
}
12+
13+
main {
14+
display: flex;
15+
flex-direction: column;
16+
text-align: justify;
17+
}
18+
19+
main > img {
20+
align-self: center;
21+
}
22+
23+
main > pre {
24+
/* align-self: center; */
25+
width: 100%;
26+
}
27+
28+
main a {
29+
display: inline;
30+
}
31+
32+
main small > code,
33+
main p > code,
34+
main a > code {
35+
display: inline;
36+
padding: 0.1em 0.3em;
37+
}
38+
39+
main small {
40+
@media (min-width: 768px) {
41+
font-size: 0.7rem;
42+
}
43+
44+
@media (max-width: 768px) {
45+
font-size: 1rem;
46+
}
47+
}
48+
49+
pre > code {
50+
font-size: 1rem;
51+
}
52+
53+
code {
54+
overflow-x: scroll;
55+
text-wrap: nowrap !important;
56+
}
57+
58+
main small code {
59+
font-size: inherit;
360
}

templates/blog-page.html

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
{% extends "base.html" %}
1+
{% extends "base.html" %} {% block content %}
2+
<a href="/">micouy's blog</a>
23

3-
4-
{% block content %}
5-
<a href="/">home</a>
6-
7-
<h1 class="title">
8-
{{ page.title }}
9-
</h1>
4+
<h1 class="title">{{ page.title }}</h1>
105

116
<p class="subtitle"><strong>{{ page.date }}</strong></p>
127

138
{{ page.content | safe }}
149

15-
<script src="https://utteranc.es/client.js"
16-
repo="micouy/micouy.github.io"
17-
issue-term="pathname"
18-
theme="github-light"
19-
crossorigin="anonymous"
20-
async>
21-
</script>
10+
<script
11+
src="https://utteranc.es/client.js"
12+
repo="micouy/micouy.github.io"
13+
issue-term="pathname"
14+
theme="github-light"
15+
crossorigin="anonymous"
16+
async
17+
></script>
2218
{% endblock content %}

0 commit comments

Comments
 (0)