Skip to content

Commit 5034763

Browse files
authored
Add icons (#49)
1 parent e6cb7ab commit 5034763

File tree

8 files changed

+50
-0
lines changed

8 files changed

+50
-0
lines changed

doc/source/_static/custom.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,53 @@ body.dark div.body {
4141
body.dark div.body p {
4242
color: #f3e5ab;
4343
}
44+
45+
/* Style for the UL container */
46+
body.dark div.body ul {
47+
list-style-type: none; /* Remove any default list markers */
48+
padding-left: 20px; /* Space for the background image on the list items */
49+
background: none; /* Make sure the UL itself has no background image */
50+
margin: 0;
51+
}
52+
53+
/* Base style for all list items */
54+
body.dark div.body ul li {
55+
list-style-type: none; /* No bullet points on list items */
56+
background-repeat: no-repeat;
57+
background-position: 0 50%; /* Vertically center the image */
58+
background-size: 16px 16px;
59+
padding-left: 20px; /* Space for the image on each list item */
60+
margin-left: 0;
61+
line-height: 1.5;
62+
}
63+
64+
body.dark div.body ul li {
65+
background-image: url('images/favicon.ico');
66+
}
67+
68+
/* Unique image for the first list item */
69+
body.dark div.body ul li:nth-child(1) {
70+
background-image: url('images/favicon1.ico');
71+
}
72+
73+
/* Unique image for the second list item */
74+
body.dark div.body ul li:nth-child(2) {
75+
background-image: url('images/favicon2.ico');
76+
}
77+
78+
/* Unique image for the third list item */
79+
body.dark div.body ul li:nth-child(3) {
80+
background-image: url('images/favicon3.ico');
81+
}
82+
83+
body.dark div.body ul li:nth-child(4) {
84+
background-image: url('images/favicon4.ico');
85+
}
86+
87+
body.dark div.body ul li:nth-child(5) {
88+
background-image: url('images/favicon5.ico');
89+
}
90+
91+
body.dark div.body ul li:nth-child(6) {
92+
background-image: url('images/favicon6.ico');
93+
}
15 KB
Binary file not shown.
14.7 KB
Binary file not shown.
14.7 KB
Binary file not shown.
14.7 KB
Binary file not shown.
14.7 KB
Binary file not shown.
14.7 KB
Binary file not shown.
14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)