Files
hwilliams-dev/styles/markdown-container.css

104 lines
1.8 KiB
CSS

.markdown-container{
p {
margin-bottom: 0.5em;
font-family: var(--sans);
font-size: 16;
line-height: 1.7;
color: var(--fg-secondary);
margin: 0 0 40px 0;
max-width: 560;
}
h1, h2, h3 {
font-family: var(--mono);
font-weight: 700;
color: var(--fg);
letter-spacing: -0.02em;
}
h1 {
margin-bottom: 1em;
margin-top: 0.5em;
}
h2 {
margin-bottom: 0.5em;
margin-top: 0.5em;
}
img {
margin: 0 0 40px 0;
}
blockquote {
width: 100%;
text-align: center;
font-family: var(--sans);
font-size: 12;
line-height: 2;
color: var(--muted);
background-color: var(--bg-raised);
padding: 0.5em;
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
display: flex;
flex-direction: column-reverse;
margin-bottom: 2em;
}
blockquote img {
border-radius: var(--radius-sm);
}
blockquote video {
align-self: center;
}
ul {
font-family: var(--sans);
list-style: inside;
margin: 0 0 40px 0;
}
ul ul {
padding-left: 1em;
margin-bottom: 0;
color: var(--muted);
}
ul > li {
font-size: 14;
margin: 0 5px 5px 0;
}
ul ul > li {
font-size: 12;
margin: 0 5px 5px 0;
}
pre {
font-family: var(--mono);
margin-bottom: 0.1em;
}
img {
max-width: 80vw;
}
video {
max-width: 90vw;
}
}
@media (max-width: 768px) {
.markdown-container {
div:last-of-type {
margin-bottom: 4em !important;
}
}
}