228 lines
3.1 KiB
CSS
228 lines
3.1 KiB
CSS
|
/* Markdown */
|
||
|
html {
|
||
|
|
||
|
color: #232333;
|
||
|
font-family: 'Roboto Mono', monospace;
|
||
|
font-size: 15px;
|
||
|
line-height: 1.6em;
|
||
|
}
|
||
|
body{
|
||
|
display: block;
|
||
|
margin: 8px;
|
||
|
}
|
||
|
* {
|
||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||
|
}
|
||
|
|
||
|
::selection {
|
||
|
background: red;
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5, h6 {
|
||
|
font-size: 1.2rem;
|
||
|
margin-top: 2em;
|
||
|
}
|
||
|
|
||
|
h1::before { color: red; content: '# '; }
|
||
|
h2::before { color: red; content: '## '; }
|
||
|
h3::before { color: red; content: '### '; }
|
||
|
h4::before { color: red; content: '#### '; }
|
||
|
h5::before { color: red; content: '##### '; }
|
||
|
h6::before { color: red; content: '###### '; }
|
||
|
|
||
|
p {
|
||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||
|
line-height: 1.5;
|
||
|
}
|
||
|
|
||
|
hr {
|
||
|
border: 0;
|
||
|
border-top: 3px solid palevioletred;
|
||
|
margin: 1em 0;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: 3px solid lime;
|
||
|
color: #737373;
|
||
|
margin: 0;
|
||
|
padding-left: 1em;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
border-bottom: 3px solid red;
|
||
|
color: inherit;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
a:hover {
|
||
|
background-color: navy;
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
ul {
|
||
|
list-style: none;
|
||
|
padding-left: 2ch;
|
||
|
}
|
||
|
ul li {
|
||
|
text-indent: -2ch;
|
||
|
}
|
||
|
ul li::before {
|
||
|
content: '* ';
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
/* Images */
|
||
|
img {
|
||
|
border: 3px solid #ececec;
|
||
|
max-width: 100%;
|
||
|
}
|
||
|
|
||
|
figure {
|
||
|
box-sizing: border-box;
|
||
|
display: inline-block;
|
||
|
margin: 0;
|
||
|
max-width: 100%;
|
||
|
}
|
||
|
|
||
|
figure img {
|
||
|
max-height: 500px;
|
||
|
}
|
||
|
|
||
|
@media screen and (min-width: 600px) {
|
||
|
figure {
|
||
|
padding: 0 40px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
figure h4 {
|
||
|
font-size: 1rem;
|
||
|
margin: 0;
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
figure h4::before {
|
||
|
content: '↳ ';
|
||
|
}
|
||
|
|
||
|
/* Code blocks */
|
||
|
code {
|
||
|
background-color: #f1f1f1;
|
||
|
padding: .1em .2em;
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
background-color: #ececec;
|
||
|
line-height: 1.4;
|
||
|
overflow-x: auto;
|
||
|
padding: 1em;
|
||
|
}
|
||
|
|
||
|
.highlight pre ::selection {
|
||
|
background: rgba(255, 255, 255, 0.2);
|
||
|
color: inherit;
|
||
|
}
|
||
|
|
||
|
pre code {
|
||
|
background-color: transparent;
|
||
|
color: inherit;
|
||
|
font-size: 100%;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
/* Containers */
|
||
|
.content {
|
||
|
margin-bottom: 4em;
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
max-width: 800px;
|
||
|
padding: 0 1ch;
|
||
|
word-wrap: break-word;
|
||
|
}
|
||
|
|
||
|
/* Header */
|
||
|
header {
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
justify-content: space-between;
|
||
|
margin: 1em 0;
|
||
|
}
|
||
|
|
||
|
header .main {
|
||
|
font-size: 1.5rem;
|
||
|
}
|
||
|
|
||
|
/* Footer */
|
||
|
footer {
|
||
|
margin-top: 1em;
|
||
|
}
|
||
|
|
||
|
/* Common */
|
||
|
.title h1 {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
time {
|
||
|
color: #757575;
|
||
|
}
|
||
|
|
||
|
/* Posts */
|
||
|
article .title {
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Lists */
|
||
|
.list {
|
||
|
margin-top: 2em;
|
||
|
}
|
||
|
|
||
|
.list .title a {
|
||
|
border: none;
|
||
|
}
|
||
|
|
||
|
.list .description a {
|
||
|
border-bottom: none;
|
||
|
color: springgreen;
|
||
|
}
|
||
|
.list .description a:hover {
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
.list h1 {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
|
||
|
.list p {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.list-item {
|
||
|
margin-bottom: 2em;
|
||
|
}
|
||
|
|
||
|
/* Expander */
|
||
|
|
||
|
/* Callout */
|
||
|
.callout {
|
||
|
background-color: springgreen;
|
||
|
color: #fff;
|
||
|
padding: 1em;
|
||
|
}
|
||
|
|
||
|
.callout p {
|
||
|
font-family: 'Roboto Mono', monospace;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
.callout a {
|
||
|
border-bottom: 3px solid #fff;
|
||
|
}
|
||
|
|
||
|
.callout a:hover {
|
||
|
background-color: #fff;
|
||
|
color: springgreen;
|
||
|
}
|
||
|
|
||
|
.site-description {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
}
|