Skip to content

Commit d0501a0

Browse files
committed
udpate: styles of single and article, rename some classes
1 parent f08b17e commit d0501a0

File tree

7 files changed

+22
-18
lines changed

7 files changed

+22
-18
lines changed

assets/css/partials/article.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.article {
2-
margin: 0 2rem;
1+
section.article {
2+
padding: 0 20vw;
33

44
display: flex;
55
flex-direction: column;
@@ -23,17 +23,14 @@
2323
}
2424
}
2525
}
26-
2726
.article.content {
28-
29-
> * {
30-
margin: 1rem 0 1rem 1rem;
31-
}
27+
flex-wrap: wrap;
3228

3329
span {
3430
white-space: pre-wrap;
3531
}
3632

33+
/* headings */
3734
h2, h3, h4, h5, h6 {
3835
color: light-dark(var(--light-minor), var(--dark-minor));
3936
margin: 1rem 0 0 0;
@@ -48,21 +45,29 @@
4845
}
4946
}
5047

48+
/* normal text */
49+
> p {
50+
margin: 1rem 0;
51+
}
52+
53+
/* divider */
5154
hr {
5255
margin: 2rem 8rem;
5356
}
5457

5558
blockquote {
56-
margin: 1rem 0 1rem 1rem;
59+
margin: 1rem 0;
5760
background: linear-gradient(to right, var(--dark-minor), var(--dark-bg) 60%);
5861
}
5962

63+
/* inline code */
6064
code{
6165
background-color: rgb(35, 102, 102);
6266
}
6367

64-
/* override the default pre styles that generated probably by markup engine */
68+
/* override the default style of per that might be generated by markup renderer */
6569
pre {
70+
overflow-x: auto;
6671
background-color: rgb(51, 60, 60) !important;
6772
* {
6873
font-family: var(--font-mono);

content/about/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ thanks for visiting,
77

88
i am still working on the styles on my own,
99

10-
please forgive me these poor pages here :3
10+
please forgive me these poor styles here :3

content/posts/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
---
22
title: 'posts'
3-
weight: 2
43
---

layouts/_default/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1>~$ proxyerium</h1>
66
</div>
77

8-
<div class="home navbar">
8+
<div class="home links">
99
<nav>
1010
{{ range .Page.Params.links }}
1111
<a href="{{ .url }}">{{ .name }}</a>

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22
<main class="single">
3-
<nav class="single nav">
3+
<nav class="single breadcrumb">
44
{{/* {{ particle "back" .}} */}}
55
<a href="..">~{{ .RelPermalink }}</a>
66
</nav>

layouts/partials/article.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<article class="article">
1+
<section class="article">
22
<header class="article header">
33
<h1>{{ .Title }}</h1>
44
{{ if eq .Kind "page" }}
@@ -8,7 +8,7 @@ <h1>{{ .Title }}</h1>
88
{{ end }}
99
</header>
1010

11-
<section class="article content">
11+
<article class="article content">
1212
{{ .Content }}
13-
</section>
14-
</article>
13+
</article>
14+
</section>

layouts/partials/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="list articles">
1+
<ul class="list items">
22
{{ range .Pages.ByDate.Reverse }}
33
<li>
44
<a href="{{ .RelPermalink }}">

0 commit comments

Comments
 (0)