mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-01-22 04:34:29 -08:00
changed some css
This commit is contained in:
parent
cd56e51ccb
commit
001114251e
@ -12,7 +12,7 @@
|
|||||||
(local html-template (with-open [html-template-file (io.open :template.html :r)]
|
(local html-template (with-open [html-template-file (io.open :template.html :r)]
|
||||||
(html-template-file:read :*a)))
|
(html-template-file:read :*a)))
|
||||||
|
|
||||||
(local html (cmark.markdown_to_html markdown (markdown:len) cmark.OPT_UNSAFE))
|
(local html (cmark.markdown_to_html markdown (markdown:len) (+ cmark.OPT_HARDBREAKS cmark.OPT_UNSAFE)))
|
||||||
|
|
||||||
(tset _G.files (file:match "(.+)%..+") (html-template:format html)))))
|
(tset _G.files (file:match "(.+)%..+") (html-template:format html)))))
|
||||||
|
|
||||||
|
14
style.css
14
style.css
@ -109,14 +109,10 @@ body>.content>main {
|
|||||||
|
|
||||||
/* paragraphs */
|
/* paragraphs */
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 1em 0;
|
||||||
color: var(--accent-50);
|
color: var(--accent-50);
|
||||||
}
|
}
|
||||||
|
|
||||||
p+p {
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* headings */
|
/* headings */
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
@ -144,7 +140,7 @@ body>.content>main {
|
|||||||
|
|
||||||
/* block qutoes */
|
/* block qutoes */
|
||||||
blockquote {
|
blockquote {
|
||||||
display: inline-block;
|
display: block;
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
border-left: 0.2em solid var(--accent-40);
|
border-left: 0.2em solid var(--accent-40);
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
@ -168,7 +164,7 @@ body>.content>main {
|
|||||||
|
|
||||||
/* horizontal rule */
|
/* horizontal rule */
|
||||||
hr {
|
hr {
|
||||||
margin: 0;
|
margin: 1em 0;
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: 0.1em solid var(--accent-50);
|
border-bottom: 0.1em solid var(--accent-50);
|
||||||
}
|
}
|
||||||
@ -186,10 +182,6 @@ body>.content>main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* code blocks */
|
/* code blocks */
|
||||||
p+pre {
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user