hugo-book-theme/assets/_markdown.scss

54 lines
851 B
SCSS
Raw Normal View History

2018-09-05 16:22:04 +02:00
@import 'variables';
$block-border-radius: 0.15rem;
.markdown {
2018-09-24 17:03:23 +02:00
line-height: 1.5;
2018-09-17 15:09:51 +02:00
h1, h2, h3, h4, h5 {
font-weight: 400;
2018-09-24 17:03:23 +02:00
line-height: 1.25;
2018-09-17 15:09:51 +02:00
}
2018-09-18 01:35:54 +02:00
b, optgroup, strong {
font-weight: 400;
}
2018-09-17 15:09:51 +02:00
2018-09-05 16:22:04 +02:00
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
code {
font-family: 'Roboto Mono', monospace;
}
p code {
2018-09-13 14:54:04 +02:00
padding: 0 $padding-4;
2018-09-05 16:22:04 +02:00
background: $gray-100;
border-radius: $block-border-radius;
}
pre {
padding: $padding-16;
background: $gray-100;
border-radius: $block-border-radius;
font-size: $font-size-14;
}
blockquote {
border-left: $padding-1*2 solid $gray-300;
margin: 0;
padding: $padding-1 $padding-16;
:first-child { margin-top: 0; }
:last-child { margin-bottom: 0; }
}
2018-09-24 17:03:23 +02:00
table tr td {
padding: $padding-8;
}
2018-09-05 16:22:04 +02:00
}