1
0
Fork 0

Fix issues with links, includes and notes in Sphinx .rst preview styling

This commit is contained in:
Brecht Van Lommel 2023-03-14 00:58:31 +01:00
commit da950a93e2
3 changed files with 37 additions and 4 deletions

View file

@ -228,4 +228,31 @@
footer a {
color: var(--color-footer-links);
}
/* Manual preview tweaks. */
.restructuredtext a {
color: var(--color-accent) !important;
}
.restructuredtext :is(section, dd) > div {
background-color: var(--color-markup-code-block);
padding-bottom: 8px;
margin-bottom: 16px;
padding: 0;
border-radius: 5px;
}
.restructuredtext section div > p:first-child {
font-weight: 700;
}
.restructuredtext section div * {
margin: 0 !important;
}
.restructuredtext section div > :is(p, dl) {
padding: 8px 12px;
}
.restructuredtext section div > ul {
padding-bottom: 12px;
}
.restructuredtext section dl dt {
font-style: normal;
}
</style>