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

tiny CSS change #1769

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/user_guide/light-dark.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ For example to define a different background color for both the light and dark t
html[data-theme="light"] {

/* whatever you want to change */
background: white;
background-color: white;
}

/* anything related to the dark theme */
html[data-theme="dark"] {

/* whatever you want to change */
background: black;
background-color: black;
}

A complete list of the colors used in this theme can be found in the :doc:`CSS style section <styling>`.
Expand Down
2 changes: 1 addition & 1 deletion src/pydata_sphinx_theme/assets/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body {

// hack to avoid the black background on some browser including Safari
&::-webkit-scrollbar-track {
background: var(--pst-color-background);
background-color: var(--pst-color-background);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ html[data-theme="dark"] .bd-content {
}

.output_area.stderr {
background: var(--pst-color-danger);
background-color: var(--pst-color-danger);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
z-index: $zindex-fixed;

// Overrides bootstrap
background: var(--pst-color-on-background) !important;
background-color: var(--pst-color-on-background) !important;
box-shadow: 0 0.125rem 0.25rem 0 var(--pst-color-shadow);

width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
align-items: center;

&:hover {
background: var(--pst-color-surface);
background-color: var(--pst-color-surface);
}

i {
Expand All @@ -158,7 +158,7 @@
width: 100%;
height: 100%;
&:hover {
background: none;
background-color: none;
}
i {
width: 30px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ $pst-semantic-colors: (
* which case assume they're already optimized for dark mode).
*/
.bd-content img:not(.only-dark):not(.dark-light) {
background: rgb(255, 255, 255);
background-color: rgb(255, 255, 255);
border-radius: 0.25rem;
}
// MathJax SVG outputs should be filled to same color as text.
Expand Down
Loading