1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/* Style our version picker
The version picker is defined in `_templates/versioning.html` and uses the same classes
and ids as the one provided by the theme for use with readthedocs.io
This allows us to load the styles by readthedocs as a basis
and adjust them to our likings.
*/
/* Import RTD styles */
@import url("https://assets.readthedocs.org/static/css/readthedocs-doc-embed.css");
@import url("https://assets.readthedocs.org/static/css/badge_only.css");
/* remove border around version picker */
#furo-readthedocs-versions:focus-within,
#furo-readthedocs-versions:hover {
box-shadow: none;
}
/* adjust the element showing the selected version */
.rst-versions .rst-current-version {
padding: var(--sidebar-item-spacing-vertical)
var(--sidebar-item-spacing-horizontal);
border-top: 1px solid var(--color-sidebar-search-border);
color: var(--color-foreground-primary);
}
/* .rst-versions .rst-current-version.rst-out-of-date {
color: #c64334;
}
.rst-versions .rst-current-version.rst-active-old-version {
color: #634f00;
} */
/* adjust the element listing all available versions */
#furo-readthedocs-versions > .rst-other-versions {
padding: var(--sidebar-item-spacing-vertical)
var(--sidebar-item-spacing-horizontal);
border-style: none;
border-top: 1px solid var(--color-sidebar-search-border);
}
/* adjust list headings */
.rst-versions .rst-other-versions dt {
color: var(--color-foreground-secondary);
}
/* adjust selectable version items */
.rst-versions .rst-other-versions dd a {
color: var(--color-sidebar-link-text--top-level);
padding-left: 0px;
padding-right: 12px;
}
/* adjust icons for the list headings */
.bi.version-header {
margin-right: 1ch;
}
/* adjust icon for the version picker */
.rst-current-version .bi-git {
float: left;
color: var(--color-foreground-primary);
left: var(--sidebar-item-spacing-horizontal);
}
|