feat: css typography improvements

hugo
Jacky Zhao 2 years ago
parent 22c8981bb9
commit 422b6cc25b

@ -38,7 +38,7 @@ h1, h2, h3, h4, h5, h6, ol, ul, thead {
font-family: var(--font-header); font-family: var(--font-header);
color: var(--dark); color: var(--dark);
font-weight: revert; font-weight: revert;
margin: revert; margin: 2rem 0 0;
padding: revert; padding: revert;
&:hover > .hanchor { &:hover > .hanchor {
@ -54,7 +54,7 @@ h1, h2, h3, h4, h5, h6, ol, ul, thead {
color: var(--secondary); color: var(--secondary);
} }
p, ul, text, a, tr, td { p, ul, text, a, tr, td, li {
font-family: var(--font-body); font-family: var(--font-body);
color: var(--gray); color: var(--gray);
fill: var(--gray); fill: var(--gray);
@ -63,7 +63,7 @@ p, ul, text, a, tr, td {
padding: revert; padding: revert;
} }
tbody, li { tbody, li, p {
line-height: 1.5em; line-height: 1.5em;
} }
@ -192,7 +192,7 @@ article {
} }
& > .meta { & > .meta {
margin: -1.5em 0 1em 0; margin: 0 0 1em 0;
opacity: 0.7; opacity: 0.7;
} }
@ -327,7 +327,8 @@ hr {
& > .backlinks-container { & > .backlinks-container {
& > ul { & > ul {
list-style: none; list-style: none;
padding-left: 0; padding: 0;
margin: 0;
& > li { & > li {
margin: 0.5em 0; margin: 0.5em 0;
@ -343,6 +344,7 @@ hr {
border-radius: 5px; border-radius: 5px;
box-sizing: border-box; box-sizing: border-box;
min-height: 250px; min-height: 250px;
margin: 0.5em 0;
& > svg { & > svg {
margin-bottom: -5px; margin-bottom: -5px;
@ -576,7 +578,7 @@ header {
& > p, & > a { & > p, & > a {
font-size: 1rem; font-size: 1rem;
margin: 0; margin: 0.7rem 0;
font-weight: 400; font-weight: 400;
user-select: none; user-select: none;
} }

Loading…
Cancel
Save