Skip to content

Commit d52cb12

Browse files
drammockgabalafou
authored andcommitted
tiny CSS change (pydata#1769)
background → background-color
1 parent 22ebe26 commit d52cb12

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/user_guide/light-dark.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ For example to define a different background color for both the light and dark t
5959
html[data-theme="light"] {
6060
6161
/* whatever you want to change */
62-
background: white;
62+
background-color: white;
6363
}
6464
6565
/* anything related to the dark theme */
6666
html[data-theme="dark"] {
6767
6868
/* whatever you want to change */
69-
background: black;
69+
background-color: black;
7070
}
7171
7272
A complete list of the colors used in this theme can be found in the :doc:`CSS style section <styling>`.

src/pydata_sphinx_theme/assets/styles/base/_base.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body {
1515

1616
// hack to avoid the black background on some browser including Safari
1717
&::-webkit-scrollbar-track {
18-
background: var(--pst-color-background);
18+
background-color: var(--pst-color-background);
1919
}
2020
}
2121

src/pydata_sphinx_theme/assets/styles/extensions/_notebooks.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ html[data-theme="dark"] .bd-content {
2525
}
2626

2727
.output_area.stderr {
28-
background: var(--pst-color-danger);
28+
background-color: var(--pst-color-danger);
2929
}
3030
}
3131
}

src/pydata_sphinx_theme/assets/styles/sections/_header.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
z-index: $zindex-fixed;
1414

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

1919
width: 100%;

src/pydata_sphinx_theme/assets/styles/sections/_sidebar-primary.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
align-items: center;
143143

144144
&:hover {
145-
background: var(--pst-color-surface);
145+
background-color: var(--pst-color-surface);
146146
}
147147

148148
i {
@@ -158,7 +158,7 @@
158158
width: 100%;
159159
height: 100%;
160160
&:hover {
161-
background: none;
161+
background-color: none;
162162
}
163163
i {
164164
width: 30px;

src/pydata_sphinx_theme/assets/styles/variables/_color.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ $pst-semantic-colors: (
289289
* which case assume they're already optimized for dark mode).
290290
*/
291291
.bd-content img:not(.only-dark):not(.dark-light) {
292-
background: rgb(255, 255, 255);
292+
background-color: rgb(255, 255, 255);
293293
border-radius: 0.25rem;
294294
}
295295
// MathJax SVG outputs should be filled to same color as text.

0 commit comments

Comments
 (0)