hugo-book-theme/assets/markdown.scss

39 lines
667 B
SCSS
Raw Normal View History

2018-09-05 16:22:04 +02:00
@import 'variables';
$block-border-radius: 0.15rem;
.markdown {
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
code {
font-family: 'Roboto Mono', monospace;
}
p code {
padding: $padding-1 $padding-4;
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; }
}
}