lbry-desktop/src/renderer/scss/component/_markdown-preview.scss
2018-07-26 18:24:00 -06:00

122 lines
1.6 KiB
SCSS

.markdown-preview {
margin: 0;
/* Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'metropolis-semibold';
margin: 16px 0;
}
h1 {
font-size: 1.22em;
}
h2 {
font-size: 1.14em;
}
h3 {
font-size: 1.06em;
}
h4 {
font-size: 0.92em;
}
h5 {
font-size: 0.84em;
}
h6 {
font-size: 0.84em;
color: var(--color-help);
}
/* Paragraphs */
p {
white-space: pre-line;
}
/* Strikethrough text */
del {
color: var(--color-help);
}
/* Tables */
table {
padding: 8px;
margin: 16px 0;
background-color: var(--card-bg);
tr td,
tr th,
tr td:first-of-type,
tr th:first-of-type,
tr td:last-of-type,
tr th:last-of-type {
padding: 8px;
}
}
/* Image */
img {
margin: 16px 0;
}
/* Horizontal Rule */
hr {
border: 1px solid var(--color-divider);
}
/* Code */
code {
display: block;
padding: 8px;
margin: 16px 0;
background-color: var(--color-bg-alt);
color: var(--color-help);
font-size: 1em;
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
}
a {
font-size: 1em;
color: var(--btn-external-color);
display: inline-block;
}
/* Lists */
ul,
ol {
margin-bottom: 2em;
}
ul {
list-style: initial;
}
li {
margin-left: 2em;
p {
display: inline-block;
}
}
ol > li,
ul > li {
list-style-position: outside;
}
}
blockquote {
padding: 8px;
margin: 16px 0;
color: var(--color-help);
border-left: 2px solid var(--color-help);
background-color: var(--color-bg-alt);
}