Fix issues with links, includes and notes in Sphinx .rst preview styling
This commit is contained in:
parent
c676b7b76c
commit
da950a93e2
3 changed files with 37 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue