blog/assets/sass/_content.scss

159 lines
2.4 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;
}
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;
}
.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;
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;
}
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-content {
> p {
line-height: 1.5;
}
.footnotes {
font-size: .9em;
line-height: 1.2;
}
}