Skip to content

Commit c360bf3

Browse files
authored
Merge pull request #622 from joaoseckler/css-vars
Use CSS variables for colors
2 parents 87061aa + cb626e7 commit c360bf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

polymorphic/static/polymorphic/css/polymorphic_inlines.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
position: absolute;
1212
top: 2.2em;
1313
left: 0.5em;
14-
border: 1px solid #ccc;
14+
border: 1px solid var(--border-color, #ccc);
1515
border-radius: 4px;
1616
padding: 2px;
17-
background-color: #fff;
17+
background-color: var(--body-bg, #fff);
1818
z-index: 1000;
1919
}
2020

@@ -35,7 +35,7 @@
3535

3636
@media (prefers-color-scheme: dark) {
3737
.polymorphic-type-menu {
38-
border: 1px solid #121212;
39-
background-color: #212121;
38+
border: 1px solid var(--border-color, #121212);
39+
background-color: var(--body-bg, #212121);
4040
}
4141
}

0 commit comments

Comments
 (0)