blog/themes/plain/layouts/partials/style.html

167 lines
2.6 KiB
HTML

<!-- <link rel="stylesheet" href="/css/syntax.css"> -->
<style>
@import "/css/syntax.css" not (prefers-color-scheme: dark);
@import "/css/syntax-dark.css" (prefers-color-scheme: dark);
</style>
<style>
body {
font-family: "Inter", "Pretendard", sans-serif;
/* letter-spacing: -0.2px;*/
font-size: 16px;
margin: auto;
padding: 20px;
max-width: 720px;
text-align: left;
background-color: white;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.6;
}
/* h1, h2, h3, h4, h5, h6, b, strong {
font-weight: 400;
} */
h1 { font-size: 26px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
a {
color: #3273dc;
}
.katex {
font-size: 16px !important;
padding: 0 2px;
}
.date {
font-family: monospace;
font-size: 14px;
}
.title {
color: black;
text-decoration: none;
}
ul.blog-posts {
font-size: 16px;
color: #0;
list-style-type: none;
padding: unset;
}
ul.blog-posts li a:visited {
color: #8b6fcb;
}
.post-header {
margin: 10px 0;
padding-bottom: 12px;
padding-top: 18px;
}
.post-header .post-title {
font-size: 24px;
font-weight: bold;
}
.post-header .post-author {
font-size: 14px;
color: #BB0;
}
.post-header .post-date {
font-family: monospace;
color: #444;
font-size: 14px;
}
.post-divider {
background-color: black;
height: 1px;
width: 100%;
margin-bottom: 40px;
}
table {
width: 100%;
}
img {
max-width: 100%;
}
code {
padding: 1px 4px;
margin: auto 2px;
background-color: #EDEDED;
font-size: 14px;
border-radius: 4px;
}
pre code {
background-color: unset;
display: block;
padding: 20px;
white-space: pre-wrap;
font-size: 14px;
overflow-x: auto;
}
div.highlight pre {
border-radius: 10px;
}
div.highlight code {
color: unset;
}
blockquote {
border-left: 1px solid #999;
color: #222;
padding-left: 20px;
font-style: italic;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #222;
color: white;
}
a {
color: #8cc2dd;
}
blockquote {
color: #ccc;
}
code {
background-color: #555;
}
textarea,
input {
background-color: #252525;
color: #ddd;
}
.title {
color: #FFF;
}
.post-header .post-date {
color: #AAA;
}
.post-divider {
background-color: white;
}
</style>