Skip to content

Commit 98db366

Browse files
committed
Improve rendering of table of contents for TMiR
1 parent 3c3ee65 commit 98db366

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

src/components/Layout/LayoutStyles.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,9 @@ const standardLayout = css`
5757
}
5858
5959
details {
60-
margin-bottom: 1rem;
61-
6260
& summary {
6361
cursor: pointer;
6462
}
65-
66-
&:last-of-type {
67-
margin-bottom: 2rem;
68-
}
6963
}
7064
7165
blockquote {

src/components/Layout/MainStyles.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,11 @@ html body {
6262
}
6363
6464
ul, ol {
65-
padding-left: 3rem;
66-
65+
padding-left: 1.5rem;
66+
padding-top: 0.5rem;
6767
li {
6868
margin-bottom: 0.5rem;
6969
}
70-
li:first-of-type {
71-
margin-top: 0.5rem;
72-
}
7370
}
7471
7572
h1, h2, h3, h4, h5, h6 {
@@ -136,5 +133,9 @@ html body {
136133
text-decoration: underline;
137134
}
138135
}
136+
137+
summary::before {
138+
margin-right: 0.5rem;
139+
}
139140
}
140141
`;

src/components/Layout/MarkdownStyles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export const MarkdownStyles = createGlobalStyle`
2929
text-decoration: underline;
3030
}
3131
}
32+
code {
33+
font-size: 80%;
34+
}
3235
a, code, strong {
3336
white-space: pre-wrap;
3437
word-break: break-word;
@@ -58,8 +61,5 @@ export const MarkdownStyles = createGlobalStyle`
5861
details[open] > summary::before {
5962
transform: rotate(90deg);
6063
}
61-
details > ul {
62-
margin-top: 0.5rem;
63-
}
6464
}
6565
`;

0 commit comments

Comments
 (0)