-
Notifications
You must be signed in to change notification settings - Fork 72
Added dark theme selectors #147
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,3 +51,50 @@ | |
| .sphinx-tab img { | ||
| margin-bottom: 24 px; | ||
| } | ||
|
|
||
| /* Dark theme preference styling */ | ||
|
|
||
| @media (prefers-color-scheme: dark) { | ||
| body:not([data-theme="light"]) .sphinx-tabs-panel { | ||
| color: white; | ||
| background-color: rgb(50, 50, 50); | ||
| } | ||
|
|
||
| body:not([data-theme="light"]) .sphinx-tabs-tab { | ||
| color: white; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
| background-color: rgba(255, 255, 255, 0.05); | ||
| } | ||
|
|
||
| body:not([data-theme="light"]) .sphinx-tabs-tab[aria-selected="true"] { | ||
| font-weight: 700; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already set in line 25 |
||
| border: 1px solid #a0b3bf; | ||
| border-bottom: 1px solid rgb(50, 50, 50); | ||
| margin: -1px; | ||
| background-color: rgb(50, 50, 50); | ||
| } | ||
| } | ||
|
|
||
| /* Explicit dark theme styling */ | ||
|
|
||
| body[data-theme="dark"] .sphinx-tabs-panel { | ||
| color: white; | ||
| background-color: rgb(50, 50, 50); | ||
| } | ||
|
|
||
| body[data-theme="dark"] .sphinx-tabs-tab { | ||
| color: white; | ||
| font-size: 16px; | ||
| font-weight: 400; | ||
|
Comment on lines
+88
to
+89
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already set in line 16-17 |
||
| border: 1px solid rgba(255, 255, 255, 0.15); | ||
| background-color: rgba(255, 255, 255, 0.05); | ||
| } | ||
|
|
||
| body[data-theme="dark"] .sphinx-tabs-tab[aria-selected="true"] { | ||
| font-weight: 700; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already set in line 25 |
||
| border: 1px solid #a0b3bf; | ||
| border-bottom: 2px solid rgb(50, 50, 50); | ||
| margin: -1px; | ||
| background-color: rgb(50, 50, 50); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already set in line 16-17