blog/assets/sass/_content.scss

119 lines
1.8 KiB
SCSS

body {
max-width: 980px;
margin: auto;
min-height: 100%;
padding-bottom: 20px;
font-family: $sansfont;
font-weight: normal;
background-color: $background-color;
color: $text-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: $text-color;
&:hover {
text-decoration: none;
}
}
}
}
footer {
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;
}
.postlisting-row td {
padding-bottom: 12px;
}
#content {
font-size: 1.05em;
line-height: 1.5em;
img {
max-width: 100%;
}
}
code {
// font-size: 1.2em;
padding: 3px;
background-color: #2b303b;
border-radius: 5px;
color: #cccccc;
}
a code {
color: $link-color;
}
pre > code {
display: block;
padding: 5px;
overflow-x: auto;
font-family: $monofont;
font-size: 0.9em;
}
.toc {
background-color: lighten($background-color, 10%);
padding: 20px;
ul {
margin-block: 0;
margin-bottom: 0;
}
}
.post-content {
> p {
line-height: 1.5;
}
}