Skip to content

Commit 1f4bed5

Browse files
authored
Fix theme switch list shift (#50)
1 parent 5034763 commit 1f4bed5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/source/_static/custom.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ body.dark div.body p {
4343
}
4444

4545
/* Style for the UL container */
46-
body.dark div.body ul {
46+
body div.body ul {
4747
list-style-type: none; /* Remove any default list markers */
4848
padding-left: 20px; /* Space for the background image on the list items */
4949
background: none; /* Make sure the UL itself has no background image */
5050
margin: 0;
5151
}
5252

5353
/* Base style for all list items */
54-
body.dark div.body ul li {
54+
body div.body ul li {
5555
list-style-type: none; /* No bullet points on list items */
5656
background-repeat: no-repeat;
5757
background-position: 0 50%; /* Vertically center the image */
@@ -61,33 +61,33 @@ body.dark div.body ul li {
6161
line-height: 1.5;
6262
}
6363

64-
body.dark div.body ul li {
64+
body div.body ul li {
6565
background-image: url('images/favicon.ico');
6666
}
6767

6868
/* Unique image for the first list item */
69-
body.dark div.body ul li:nth-child(1) {
69+
body div.body ul li:nth-child(1) {
7070
background-image: url('images/favicon1.ico');
7171
}
7272

7373
/* Unique image for the second list item */
74-
body.dark div.body ul li:nth-child(2) {
74+
body div.body ul li:nth-child(2) {
7575
background-image: url('images/favicon2.ico');
7676
}
7777

7878
/* Unique image for the third list item */
79-
body.dark div.body ul li:nth-child(3) {
79+
body div.body ul li:nth-child(3) {
8080
background-image: url('images/favicon3.ico');
8181
}
8282

83-
body.dark div.body ul li:nth-child(4) {
83+
body div.body ul li:nth-child(4) {
8484
background-image: url('images/favicon4.ico');
8585
}
8686

87-
body.dark div.body ul li:nth-child(5) {
87+
body div.body ul li:nth-child(5) {
8888
background-image: url('images/favicon5.ico');
8989
}
9090

91-
body.dark div.body ul li:nth-child(6) {
91+
body div.body ul li:nth-child(6) {
9292
background-image: url('images/favicon6.ico');
9393
}

0 commit comments

Comments
 (0)