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