You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mediarepo/_sass/_components.scss

182 lines
2.9 KiB
SCSS

// Styling markdown output
// Code formatting
pre {
border-left: $spacer-1 solid $color-border;
margin: $spacer-3 0;
padding-left: 16px;
width: (9 / 12 * 100%); // matches col-9
overflow-x: auto;
}
code {
//color: $color-code;
font-size: $body-font-size;
padding: 1px 0px;
font: 'Fira Code', FiraCode, monospace;
}
.prose {
a {
text-decoration: underline dotted;
&:hover {
text-decoration: underline;
}
}
p, ol, ul {
font-size: $prose-font-size;
margin-bottom: 1em;
width: 100%;
@media (min-width: $breakpoint-lg) {
width: (10 / 12 * 100%); // matches col-10
}
}
ul, ol {
padding-left: 40px;
}
li {
margin-bottom: 0.5em;
ul li, ol li {
margin-bottom: 0;
}
}
img {
max-width: 100%;
@media (min-width: $breakpoint-lg) {
max-width: (12 / 10 * 100%); // make image fill width of container on desktop
}
}
blockquote {
line-height: 1.375;
padding-left: 20px;
margin: 40px 0 40px -16px;
border-left: $spacer-1 solid $color-border;
font-style: italic;
p {
font-size: 24px;
}
@media (min-width: $breakpoint-lg) {
padding-left: $spacer-3;
margin: $spacer-4 0 $spacer-4 -40px;
max-width: (11 / 10 * 100%);
p {
font-size: 32px;
}
}
}
hr {
color: $color-body-text;
border-style: solid;
border-width: thin;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
dt {
font-weight: bold;
font-style: italic;
line-height: 1.25;
}
dd {
font-style: italic;
margin-bottom: 0.5em;
}
// Markdown tables
table {
border-collapse: collapse;
display: block;
width: 100%;
margin-bottom: 1.5em;
overflow: auto;
// For Firefox to horizontally scroll wider tables.
word-break: normal;
word-break: keep-all;
th {
font-weight: bold;
text-align: left;
}
th,
td {
padding: $spacer-2 $spacer-3 $spacer-2 2px;
border-top: 1px solid $color-body-text;
border-bottom: 1px solid $color-body-text;
}
tr {
background-color: #fff;
border-top: 1px solid $color-body-text;
}
tr th {
border-top: 2px solid $color-body-text;
border-bottom: 2px solid $color-body-text;
}
}
}
.flex-container {
display: flex;
flex-wrap: wrap;
align-items: center;
@media (min-width: $breakpoint-lg) {
margin-bottom: 0;
}
}
.post-headline {
font-size: 3em;
line-height: 1.0125;
margin-top: 0.85em;
word-wrap: break-word;
padding-top: 0.5em;
padding-bottom: 0.5em;
@media (min-width: $breakpoint-lg) {
font-size: 5em;
}
}
.navigation {
display: none;
@media (min-width: 90em) {
display: block;
position: fixed;
word-break: break-all;
top: 50px;
left: 1em;
width: 12em;
padding-right: 1em;
border-right: $color-border 1px solid;
}
.selected {
color: $color-text-accent;
}
}