fix line height and update typography component
This commit is contained in:
parent
a1eaa93645
commit
d8e13124f8
@ -168,7 +168,7 @@ const config = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
theme: lightCodeTheme,
|
theme: darkCodeTheme,
|
||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
additionalLanguages: ["python"],
|
additionalLanguages: ["python"],
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.custom-toc-title {
|
.custom-toc-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,10 +27,10 @@
|
|||||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
@apply text-sm;
|
@apply text-base;
|
||||||
@apply antialiased;
|
@apply antialiased;
|
||||||
@apply bg-white dark:bg-black;
|
@apply bg-white dark:bg-black;
|
||||||
@apply text-gray-700 dark:text-gray-400;
|
@apply text-gray-800 dark:text-gray-300;
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|||||||
@ -92,9 +92,23 @@
|
|||||||
}
|
}
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
padding-left: 16px;
|
padding-left: 32px;
|
||||||
li {
|
li {
|
||||||
@apply leading-loose;
|
@apply leading-loose;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown h1:first-child,
|
||||||
|
.markdown > p {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-code-block {
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-of-contents {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|||||||
@ -1,38 +1,38 @@
|
|||||||
h1,
|
h1,
|
||||||
.h1 {
|
.h1 {
|
||||||
line-height: 48px;
|
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
|
line-height: 48px;
|
||||||
@apply font-bold text-black dark:text-white;
|
@apply font-bold text-black dark:text-white;
|
||||||
}
|
}
|
||||||
h2,
|
h2,
|
||||||
.h2 {
|
.h2 {
|
||||||
font-size: 32px;
|
font-size: 36px;
|
||||||
|
line-height: 42px;
|
||||||
@apply font-bold text-black dark:text-white;
|
@apply font-bold text-black dark:text-white;
|
||||||
line-height: 40px;
|
|
||||||
}
|
}
|
||||||
h3,
|
h3,
|
||||||
.h3 {
|
.h3 {
|
||||||
font-size: 28px;
|
font-size: 32px;
|
||||||
@apply font-bold text-black dark:text-white;
|
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
|
@apply font-bold text-black dark:text-white;
|
||||||
}
|
}
|
||||||
h4,
|
h4,
|
||||||
.h4 {
|
.h4 {
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
|
line-height: 40px;
|
||||||
@apply font-bold text-black dark:text-white;
|
@apply font-bold text-black dark:text-white;
|
||||||
line-height: 32px;
|
|
||||||
}
|
}
|
||||||
h5,
|
h5,
|
||||||
.h5 {
|
.h5 {
|
||||||
font-size: 20px;
|
font-size: 24px;
|
||||||
|
line-height: 32px;
|
||||||
@apply font-bold text-black dark:text-white;
|
@apply font-bold text-black dark:text-white;
|
||||||
line-height: 28px;
|
|
||||||
}
|
}
|
||||||
h6,
|
h6,
|
||||||
.h6 {
|
.h6 {
|
||||||
font-size: 16px;
|
font-size: 20px;
|
||||||
|
line-height: 28px;
|
||||||
@apply font-bold text-black dark:text-white;
|
@apply font-bold text-black dark:text-white;
|
||||||
line-height: 24px;
|
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user