hugo-book-theme/assets/_markdown.scss

80 lines
1.3 KiB
SCSS
Raw Normal View History

2018-09-05 16:22:04 +02:00
@import 'variables';
$block-border-radius: 0.15rem;
.markdown {
2018-09-28 01:12:07 +02:00
line-height: 1.7;
2018-09-24 17:03:23 +02:00
2018-09-17 15:09:51 +02:00
h1, h2, h3, h4, h5 {
2019-06-10 17:09:43 +02:00
font-weight: $body-font-weight;
2018-09-24 17:03:23 +02:00
line-height: 1.25;
}
// remove padding at the beginning of page
> :first-child {
margin-top: 0;
line-height: 1;
2018-09-17 15:09:51 +02:00
}
2018-09-18 01:35:54 +02:00
b, optgroup, strong {
2019-06-10 17:09:43 +02:00
font-weight: bolder;
2018-09-18 01:35:54 +02:00
}
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 {
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;
overflow-x: auto;
2019-05-05 02:24:25 +02:00
code {
padding: 0;
background: none;
}
2018-09-05 16:22:04 +02:00
}
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
2019-03-25 19:47:21 +01:00
table {
border-spacing: 0;
border-collapse: collapse;
tr th, tr td {
padding: $padding-8 $padding-16;
line-height: 1;
border: 1px solid $gray-200;
}
tr:nth-child(2n) {
background: $gray-100;
}
2018-09-24 17:03:23 +02:00
}
hr {
height: $padding-1;
border: none;
background: $gray-200;
}
}