fix(theme): update the styles of the table of content
This commit is contained in:
parent
7c89719f21
commit
3b573b19e2
1 changed files with 12 additions and 3 deletions
|
@ -271,18 +271,27 @@ main {
|
||||||
section.table-of-contents {
|
section.table-of-contents {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin-block-end: 2em;
|
margin-block-end: 2em;
|
||||||
margin-inline-start: 1em;
|
|
||||||
padding-inline-start: 1em;
|
|
||||||
border-inline-start: 1px solid var(--pico-muted-color);
|
|
||||||
|
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-bottom: 0; /* reset pico styles */
|
margin-bottom: 0; /* reset pico styles */
|
||||||
margin-block-end: 0.2em;
|
margin-block-end: 0.2em;
|
||||||
|
margin-inline-start: 0.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
font-family: "remixicon";
|
||||||
|
font-weight: normal;
|
||||||
|
margin-inline-end: 0.5em;
|
||||||
|
content: "\eebb";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
margin-inline-start: 1em;
|
||||||
|
padding-inline-start: 1em;
|
||||||
|
border-inline-start: 1px solid var(--pico-muted-color);
|
||||||
|
|
||||||
ol {
|
ol {
|
||||||
&:last-of-type {
|
&:last-of-type {
|
||||||
margin-right: initial; /* reset pico styles */
|
margin-right: initial; /* reset pico styles */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue