CoastalCommitsPastes/client/components/preview/preview.module.css

123 lines
2 KiB
CSS
Raw Normal View History

.markdownPreview pre {
2022-03-23 19:28:39 -04:00
border-radius: 3px;
font-family: "Courier New", Courier, monospace;
font-size: 14px;
line-height: 1.42857143;
margin: 0;
padding: 10px;
white-space: pre-wrap;
word-wrap: break-word;
}
2022-03-06 19:46:59 -05:00
.markdownPreview h1,
.markdownPreview h2,
.markdownPreview h3,
.markdownPreview h4,
.markdownPreview h5,
.markdownPreview h6 {
2022-03-23 20:01:41 -04:00
margin-top: var(--gap);
margin-bottom: var(--gap-half);
2022-03-06 19:46:59 -05:00
}
.markdownPreview h1 {
color: var(--fg);
}
.markdownPreview h2 {
color: var(--darkest-gray);
}
.markdownPreview h3,
.markdownPreview h4,
.markdownPreview h5,
.markdownPreview h6 {
color: var(--darker-gray);
}
2022-03-23 22:09:55 -04:00
.markdownPreview a {
color: #0070f3;
}
/* Auto-linked headers */
.markdownPreview h1 a,
.markdownPreview h2 a,
.markdownPreview h3 a,
.markdownPreview h4 a,
.markdownPreview h5 a,
.markdownPreview h6 a {
2022-03-23 19:28:39 -04:00
color: inherit;
}
/* Auto-linked headers */
.markdownPreview h1 a:hover::after,
.markdownPreview h2 a:hover::after,
.markdownPreview h3 a:hover::after,
.markdownPreview h4 a:hover::after,
.markdownPreview h5 a:hover::after,
.markdownPreview h6 a:hover::after {
2022-03-23 19:28:39 -04:00
content: "#";
font-size: 0.7em;
margin-left: 0.25em;
font-weight: normal;
filter: opacity(0.5);
}
2022-03-06 19:46:59 -05:00
.markdownPreview h1 {
2022-03-23 19:28:39 -04:00
font-size: 2rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview h2 {
2022-03-23 19:28:39 -04:00
font-size: 1.5rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview h3 {
2022-03-23 19:28:39 -04:00
font-size: 1.25rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview h4 {
2022-03-23 19:28:39 -04:00
font-size: 1rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview h5 {
font-size: 1rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview h6 {
font-size: 0.875rem;
2022-03-06 19:46:59 -05:00
}
.markdownPreview ul {
2022-03-23 19:28:39 -04:00
list-style: inside;
2022-03-06 19:46:59 -05:00
}
.markdownPreview ul li::before {
2022-03-23 19:28:39 -04:00
content: "";
2022-03-06 19:46:59 -05:00
}
.markdownPreview code {
2022-03-23 19:28:39 -04:00
border-radius: 3px;
white-space: pre-wrap;
word-wrap: break-word;
color: inherit !important;
}
.markdownPreview code::before,
.markdownPreview code::after {
2022-03-23 19:28:39 -04:00
content: "";
}
@media screen and (max-width: 800px) {
.markdownPreview h1 a::after,
.markdownPreview h2 a::after,
.markdownPreview h3 a::after,
.markdownPreview h4 a::after,
.markdownPreview h5 a::after,
.markdownPreview h6 a::after {
content: "#";
font-size: 0.7em;
margin-left: 0.25em;
font-weight: normal;
filter: opacity(0.5);
}
}