File tree 3 files changed +73
-17
lines changed
3 files changed +73
-17
lines changed Original file line number Diff line number Diff line change 6
6
flex-flow : column;
7
7
max-width : 100% ;
8
8
min-height : 100vh ;
9
+ line-height : 1.7 ;
9
10
}
10
11
11
12
/* HEADER */
12
13
.site-header {
13
- padding : 20px ;
14
+ padding : 20px 10 px ;
14
15
border-bottom : 1px solid;
15
16
border-bottom-color : var (--border );
16
17
@@ -50,22 +51,16 @@ main {
50
51
51
52
@media (max-width : 800px ) {
52
53
main {
53
- width : 96 % ;
54
+ width : 100 % ;
54
55
}
55
56
}
56
57
57
- .page -title {
58
+ .category -title {
58
59
margin : 10px ;
59
60
font-size : 1.5em ;
60
61
color : var (--text-main );
61
62
}
62
63
63
- @media (prefers-color-scheme : dark) {
64
- .page-title {
65
- color : var (--text-main );
66
- }
67
- }
68
-
69
64
.card {
70
65
border : 1px solid;
71
66
margin : 10px ;
82
77
}
83
78
84
79
.card-title {
85
- padding : 10px 30 px ;
80
+ padding : 10px ;
86
81
font-size : 1.3em ;
87
- font-weight : 900 ;
82
+ font-weight : 600 ;
88
83
color : var (--text-main );
89
84
}
90
85
@@ -109,6 +104,53 @@ main {
109
104
color : var (--text-main );
110
105
}
111
106
107
+ .entry {
108
+ }
109
+
110
+ .entry-title {
111
+ font-size : 1.4em ;
112
+ padding : 20px 10px ;
113
+ color : var (--text-bright );
114
+ line-height : 1.4 ;
115
+ background : var (--background-alt );
116
+ margin : 0 0 5px ;
117
+ }
118
+
119
+ .entry-tags {
120
+ margin : 0 10px ;
121
+ }
122
+
123
+ .entry-tag {
124
+ display : inline-block;
125
+ background : # 9e9e9e ;
126
+ padding : 2px 5px ;
127
+ color : # fff ;
128
+ border-radius : 5px ;
129
+ margin-right : 2px ;
130
+ font-size : 0.8em ;
131
+ }
132
+
133
+ .entry-author {
134
+ margin-right : 10px ;
135
+ text-align : right;
136
+ font-weight : 700 ;
137
+ line-height : 1.3 ;
138
+ color : var (--text-main );
139
+ }
140
+
141
+ .entry-date {
142
+ margin-right : 10px ;
143
+ text-align : right;
144
+ font-size : 0.8em ;
145
+ font-weight : 700 ;
146
+ line-height : 1.3 ;
147
+ color : var (--text-muted );
148
+ }
149
+
150
+ .entry-text {
151
+ margin : 10px ;
152
+ }
153
+
112
154
/* FOOTER */
113
155
.site-footer {
114
156
max-width : 100% ;
Original file line number Diff line number Diff line change 13
13
< body >
14
14
< ?= $include-> ('./include/header.html') ?>
15
15
< main >
16
- < h1 class ="page -title "> < ?= $vars-> {category} ?> </ h1 >
16
+ < h1 class ="category -title "> < ?= $vars-> {category} ?> </ h1 >
17
17
? for (@{$vars-> {files}}) {
18
18
< div class ="card ">
19
19
? if ($_-> {matter}-> exists && $_-> {matter}-> date ) {
Original file line number Diff line number Diff line change 23
23
24
24
< link rel ="icon " href ="/img/favicon.ico ">
25
25
< link rel ="canonical " href ="<?= $vars->{url} ?> ">
26
- < link href ="TODO " rel ="stylesheet ">
26
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css ">
27
+ < link rel ="stylesheet " href ="/css/main.css ">
27
28
</ head >
28
29
< body >
29
- < h1 > < ?= $vars-> {title} ?> </ h1 >
30
- tag
30
+ < ?= $include-> ('./include/header.html') ?>
31
+ < main class ="entry ">
32
+ < h1 class ="entry-title "> < ?= $vars-> {title} ?> </ h1 >
33
+ < div class ="entry-tags ">
31
34
? for my $tag ($vars-> {matter}-> tags-> @*) {
32
- < a href ='<?= "/tag/$tag" ?> '> < ?= $tag ?> </ a >
35
+ < a class ="entry-tag " href ='<?= "/tag/$tag" ?> '> #< ?= $tag ?> </ a >
36
+ ? }
37
+ </ div >
38
+ ? if ($vars-> {matter}-> author) {
39
+ < div class ="entry-author "> < ?= $vars-> {matter}-> author ?> </ div >
40
+ ? }
41
+ ? if ($vars-> {matter}-> date ) {
42
+ < div class ="entry-date "> < ?= $vars-> {matter}-> date ?> </ div >
33
43
? }
34
44
35
- < ?= $vars-> {text} ?>
45
+ < div class ="entry-text ">
46
+ < ?= $vars-> {text} ?>
47
+ </ div >
48
+ </ main >
49
+ < ?= $include-> ('./include/footer.html') ?>
36
50
< script src ="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js?lang=css&skin=sunburst "> </ script >
37
51
</ body >
38
52
</ html >
You can’t perform that action at this time.
0 commit comments