Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Improved Sphinx Tabs in dark mode #1463

Merged
merged 5 commits into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions doc/rst/_static/css/tabs-3.4.5-ecaladdon.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
.sphinx-tabs-tab {
position: relative;
font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
color: #6b6b6b;;
color: var(--pst-color-muted);
line-height: 24px;
margin: 0;
font-size: 16px;
font-weight: 400;
background-color: rgba(255, 255, 255, 0);
background-color: var(--pst-color-background);
border-radius: 5px 5px 0 0;
border: 0;
padding: 1rem 1.5rem;
Expand All @@ -24,11 +24,11 @@
.sphinx-tabs-tab[aria-selected="true"] {
font-weight: 700;
border: 1px solid #a0a0a0;
border-bottom: 1px solid white;
border-bottom: 1px solid var(--pst-color-background);
margin: -1px;
background-color: white;
background-color: var(--pst-color-background);

box-shadow: 0 9px 0px -1px rgb(255, 255, 255, 255), 0 3px 3px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 9px 0px -1px var(--pst-color-background), 0 3px 3px 0 var(--pst-color-shadow);
}

.sphinx-tabs-tab:focus {
Expand All @@ -39,13 +39,13 @@
.sphinx-tabs-panel {
position: relative;
padding: 1rem;
border: 1px solid #a0b3bf;
border: 1px solid #a0a0a0;
margin: 0px -1px -1px -1px;
border-radius: 0 0 5px 5px;
border-top: 0;
background: white;
background: var(--pst-color-background);

box-shadow: 0 3px 3px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0 3px 3px 0px var(--pst-color-shadow);
}

.sphinx-tabs-panel.code-tab {
Expand Down
Loading