File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed
Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 2929 margin-top : 1rem ;
3030 margin-bottom : 1rem ;
3131 }
32+
33+ .markdown ul {
34+ list-style-type : disc;
35+ padding-left : 1.25rem ;
36+ }
37+
38+ .markdown ol {
39+ list-style-type : decimal;
40+ padding-left : 1.25rem ;
41+ }
42+
43+ .markdown li {
44+ margin-top : 0.25rem ;
45+ margin-bottom : 0.25rem ;
46+ }
3247}
3348
3449/* Desktop styles */
4762 margin-bottom : 1.5rem ;
4863}
4964
65+ /* List styles */
66+ .markdown ul {
67+ list-style-type : disc;
68+ padding-left : 1.5rem ;
69+ }
70+
71+ .markdown ol {
72+ list-style-type : decimal;
73+ padding-left : 1.5rem ;
74+ }
75+
76+ .markdown li {
77+ margin-top : 0.5rem ;
78+ margin-bottom : 0.5rem ;
79+ }
80+
81+ .markdown ul ul ,
82+ .markdown ol ol ,
83+ .markdown ul ol ,
84+ .markdown ol ul {
85+ margin-top : 0.5rem ;
86+ margin-bottom : 0.5rem ;
87+ padding-left : 1.5rem ;
88+ }
89+
5090.markdown h2 {
5191 font-size : 1.875rem ;
5292 margin-top : 3rem ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export function PostBody({ content }: Props) {
88 return (
99 < div className = "max-w-3xl mx-auto mt-6 sm:mt-10 px-2 sm:px-4 md:px-0" >
1010 < div
11- className = { `${ markdownStyles [ "markdown" ] } prose prose-sm sm:prose-base lg:prose-lg dark:prose-invert prose-headings:font-display prose-headings:font-bold prose-a:text-accent hover:prose-a:text-accent-light dark:prose-a:text-accent dark:hover:prose-a:text-accent-light prose-img:rounded-lg prose-img:shadow-md mx-auto prose-pre:bg-mono-100 dark:prose-pre:bg-mono-800 prose-code:text-accent-dark dark:prose-code:text-accent-light prose-table:table-auto prose-table:w-full prose-thead:bg-mono-100 dark:prose-thead:bg-mono-800 prose-th:p-2 prose-td:p-2 prose-tr:border-b prose-tr:border-mono-200 dark:prose-tr:border-mono-700` }
11+ className = { `${ markdownStyles [ "markdown" ] } prose prose-sm sm:prose-base lg:prose-lg dark:prose-invert prose-headings:font-display prose-headings:font-bold prose-a:text-accent hover:prose-a:text-accent-light dark:prose-a:text-accent dark:hover:prose-a:text-accent-light prose-img:rounded-lg prose-img:shadow-md mx-auto prose-pre:bg-mono-100 dark:prose-pre:bg-mono-800 prose-code:text-accent-dark dark:prose-code:text-accent-light prose-table:table-auto prose-table:w-full prose-thead:bg-mono-100 dark:prose-thead:bg-mono-800 prose-th:p-2 prose-td:p-2 prose-tr:border-b prose-tr:border-mono-200 dark:prose-tr:border-mono-700 prose-ul:list-disc prose-ol:list-decimal prose-li:marker:text-slate-400 ` }
1212 dangerouslySetInnerHTML = { { __html : content } }
1313 />
1414 </ div >
You can’t perform that action at this time.
0 commit comments