Skip to content

Commit

Permalink
tiny CSS change (pydata#1769)
Browse files Browse the repository at this point in the history
background → background-color
  • Loading branch information
drammock authored and gabalafou committed Apr 29, 2024
1 parent 22ebe26 commit d52cb12
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
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

0 comments on commit d52cb12

Please sign in to comment.