118 lines
1.4 KiB
CSS
118 lines
1.4 KiB
CSS
body {
|
|
max-width: 800px;
|
|
margin: auto;
|
|
padding: 1em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* header and footer areas */
|
|
.menu {
|
|
padding: 0;
|
|
}
|
|
|
|
.menu li {
|
|
display: inline-block;
|
|
}
|
|
|
|
.article-meta, .menu a {
|
|
text-decoration: none;
|
|
background: #eee;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.menu, .article-meta, footer {
|
|
text-align: center;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
footer a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
hr {
|
|
border-style: dashed;
|
|
color: #ddd;
|
|
}
|
|
|
|
/* code */
|
|
pre {
|
|
border: 1px solid #ddd;
|
|
box-shadow: 5px 5px 5px #eee;
|
|
padding: 1em;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
code {
|
|
background: #afb8c133;
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
padding-top: 3px;
|
|
padding-bottom: 3px;
|
|
border-radius: 6px
|
|
}
|
|
|
|
pre code {
|
|
background: none;
|
|
}
|
|
|
|
/* misc elements */
|
|
img, iframe, video {
|
|
max-width: 100%;
|
|
}
|
|
|
|
main {
|
|
hyphens: auto;
|
|
}
|
|
|
|
blockquote {
|
|
background: #f9f9f9;
|
|
border-left: 5px solid #ccc;
|
|
padding: 3px 1em 3px;
|
|
}
|
|
|
|
table {
|
|
margin: auto;
|
|
}
|
|
|
|
table thead th {
|
|
border-bottom: 1px solid #666;
|
|
}
|
|
|
|
th, td {
|
|
padding: 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* tr:nth-child(even) {
|
|
background: #f0f0f0;
|
|
} */
|
|
|
|
figcaption {
|
|
font: italic smaller sans-serif;
|
|
padding: 3px;
|
|
text-align: center;
|
|
}
|
|
|
|
figure {
|
|
/* border: #666 solid; */
|
|
display: flex;
|
|
flex-flow: column;
|
|
padding: 5px;
|
|
margin: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
html, body {
|
|
scroll-padding-top: 100px;
|
|
}
|
|
|
|
code.has-jax {
|
|
font: inherit;
|
|
font-size: 100%;
|
|
background: inherit;
|
|
border: inherit;
|
|
}
|