227 lines
3.6 KiB
SCSS
227 lines
3.6 KiB
SCSS
@import "home";
|
|
|
|
html {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
max-width: 980px;
|
|
margin: auto;
|
|
width: 100%;
|
|
height: 1px;
|
|
min-height: 100vh;
|
|
font-family: $sansfont;
|
|
font-weight: normal;
|
|
|
|
background-color: $background-color;
|
|
color: $text-color;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: $heading-color;
|
|
}
|
|
|
|
header {
|
|
margin: auto 12px;
|
|
|
|
#header {
|
|
border-bottom: 2px solid $link-color;
|
|
box-sizing: border-box;
|
|
padding: 20px;
|
|
margin-bottom: 12px;
|
|
|
|
#title {
|
|
font-size: 2.5em;
|
|
color: $heading-color;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
margin: auto 12px;
|
|
|
|
margin-top: 24px;
|
|
margin-bottom: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
small {
|
|
color: $small-text-color;
|
|
}
|
|
|
|
a {
|
|
color: $link-color;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.permalink-container {
|
|
position: relative;
|
|
vertical-align: top;
|
|
|
|
.permalink {
|
|
color: $link-color;
|
|
font-size: 0.65em;
|
|
position: absolute;
|
|
left: -25px;
|
|
}
|
|
}
|
|
|
|
blockquote {
|
|
margin-inline: 14px 14px;
|
|
color: $small-text-color;
|
|
border-left: 4px solid $small-text-color;
|
|
padding-left: 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.postlisting-row td {
|
|
padding-bottom: 20px;
|
|
|
|
.title {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.summary {
|
|
padding-top: 4px;
|
|
font-size: 0.8em;
|
|
color: $smaller-text-color;
|
|
|
|
p {
|
|
display: inline;
|
|
}
|
|
}
|
|
}
|
|
|
|
#content {
|
|
font-size: 1.05em;
|
|
line-height: 1.5em;
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
code {
|
|
// font-size: 1.2em;
|
|
font-family: $monofont;
|
|
font-size: 0.9em;
|
|
box-sizing: border-box;
|
|
padding: 1px 5px;
|
|
background-color: $faded-background-color;
|
|
color: $code-color;
|
|
}
|
|
|
|
a code {
|
|
color: $link-color;
|
|
}
|
|
|
|
pre > code {
|
|
color: $text-color;
|
|
display: block;
|
|
padding: 5px;
|
|
overflow-x: auto;
|
|
font-family: $monofont;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
table.table {
|
|
border: 1px solid $faded;
|
|
border-collapse: collapse;
|
|
|
|
thead {
|
|
background-color: $smaller-text-color;
|
|
color: $background-color;
|
|
}
|
|
|
|
tbody td, thead th {
|
|
border: 1px solid $faded;
|
|
padding: 5px;
|
|
}
|
|
}
|
|
|
|
.toc {
|
|
background-color: lighten($background-color, 10%);
|
|
padding: 20px;
|
|
|
|
ul {
|
|
margin-block: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.post-title {
|
|
font-size: 3rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.post-container {
|
|
display: flex;
|
|
|
|
@media screen and (max-width: 520px) {
|
|
flex-direction: column;
|
|
.toc-drawer { display: block; }
|
|
.toc-list { display: none; }
|
|
}
|
|
|
|
@media screen and (min-width: 520px) {
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
|
|
.toc-drawer { display: none; }
|
|
.toc-list {
|
|
top: 0;
|
|
display: block;
|
|
position: sticky;
|
|
min-width: 160px;
|
|
}
|
|
}
|
|
|
|
.post-content {
|
|
min-width: 1px;
|
|
}
|
|
|
|
.toc-draw #TableOfContents, .toc-list #TableOfContents {
|
|
ul {
|
|
list-style-type: "\22A2 ";
|
|
padding-left: 1rem;
|
|
|
|
li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
li ul {
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.division .post-content, .post-content {
|
|
.heading {
|
|
font-weight: 500;
|
|
|
|
a {
|
|
color: $heading-color;
|
|
}
|
|
}
|
|
|
|
> p {
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.footnotes {
|
|
font-size: .9em;
|
|
line-height: 1.2;
|
|
}
|
|
}
|