Skip to content

Commit

Permalink
docs: fix up sphinx tabs 馃寶 (#2045)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgriffs committed Mar 23, 2022
1 parent 294d434 commit 0f7be6e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
34 changes: 19 additions & 15 deletions docs/_static/custom.css
Expand Up @@ -302,32 +302,36 @@ div.contents.local.topic > ul > li > ul {
margin-top: 0;
}

.sphinx-tabs .sphinx-menu a.item {
color: #c77c11 !important;
[role="tablist"] {
border-color: #eee;
}

.sphinx-tabs .sphinx-menu a.item:hover{
color: #f0ad4e !important;
.sphinx-tabs-panel {
border-color: #eee;
padding: 4px 1rem;
}

.sphinx-tabs .sphinx-menu {
border-bottom-color: #eee !important;
.sphinx-tabs-tab {
top: 2px;
border-color: #eee;
color: #c77c11;
}

.sphinx-tabs .sphinx-menu a.active.item {
border-color: #eee !important;
.sphinx-tabs-tab[aria-selected="true"] {
border-color: #eee;
}

.sphinx-tab {
border-color: #eee !important;
.sphinx-tabs-tab[aria-selected="false"]:hover {
color: #f0ad4e;
text-decoration: underline;
}

.sphinx-tab.tab.active {
background-color: rgb(245,245,245);
.sphinx-tabs-tab:focus {
z-index: 0;
}

.sphinx-tabs .sphinx-menu a.active.item {
background-color: rgb(245,245,245) !important;
.sphinx-tabs-panel .highlight-python {
margin: 4px 0;
}

div.note, pre {
Expand Down Expand Up @@ -363,4 +367,4 @@ div.highlight > pre {
/* TODO: remove once alabaster is updated */
span.descname, span.descclassname {
font-size: 0.95em;
}
}
3 changes: 1 addition & 2 deletions requirements/docs
Expand Up @@ -6,5 +6,4 @@ pygments
pygments-style-github
sphinx
sphinx_rtd_theme
# NOTE(vytas): pin until we figure out how to deal with the dark mode.
sphinx-tabs < 3.3.0
sphinx-tabs
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -400,7 +400,7 @@ commands =
basepython = python3.8
deps = -r{toxinidir}/requirements/docs
commands =
sphinx-build -W -E -b html docs docs/_build/html []
sphinx-build -j auto -W -E -b html docs docs/_build/html []

[testenv:towncrier]
deps = -r{toxinidir}/requirements/docs
Expand Down

0 comments on commit 0f7be6e

Please sign in to comment.