docs(css): render HTML rst-example slightly more discreet

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2019-12-28 01:26:24 +01:00
parent d1892b2112
commit b91e07bbf1

View file

@ -24,10 +24,12 @@ p.sidebar-title, .sidebar p {
margin: 6pt; margin: 6pt;
} }
.sidebar li { .sidebar li,
.hlist li {
list-style-type: disclosure-closed; list-style-type: disclosure-closed;
} }
/* admonitions /* admonitions
*/ */
@ -69,25 +71,24 @@ p.admonition-title:after {
*/ */
div.rst-example { div.rst-example {
padding-left: 12px;
padding-right: 12px;
background-color: inherit; background-color: inherit;
transform: scale(0.9); margin: 0;
transition: transform 1s; border-top: none;
border-right: 1px solid #ccc;
border-bottom: none;
border-left: none; border-left: none;
border-radius: none;
padding: 0;
} }
@media screen { div.rst-example > p.admonition-title {
div.rst-example:hover { font-family: Sans Serif;
transform: scale(1); font-style: italic;
padding-left: inherit; font-size: 0.8em;
padding-right: inherit; display: block;
border-left: inherit; border-bottom: 1px solid #ccc;
} padding: 0.5em 1em;
text-align: right;
div.rst-example:hover > .admonition-title {
display: none;
}
} }
/* code block in figures /* code block in figures