This commit is contained in:
Kim, Jimin 2022-01-06 15:24:35 +09:00
parent bff6e053a3
commit fe28053a18

View file

@ -170,7 +170,7 @@ const headerCSS = css`
h4, h4,
h5, h5,
h6 { h6 {
margin-top: 2.5rem; margin-top: -3rem;
} }
` `
@ -197,9 +197,11 @@ const katexCSS = css`
} }
` `
// Theme that will be used throughout the website /**
// wrapping it using css because prettier extension does not work well with styled-components * Theme that will be used throughout the website
// https://github.com/styled-components/vscode-styled-components/issues/175 * wrapping it using css because prettier extension does not work well with styled-components
* https://github.com/styled-components/vscode-styled-components/issues/175
*/
const globalStyle = css` const globalStyle = css`
${scrollbarCSS} ${scrollbarCSS}
${codeCSS} ${codeCSS}
@ -245,11 +247,9 @@ const globalStyle = css`
} }
// header anchor offset to compensate for navbar // header anchor offset to compensate for navbar
:target:before { a.header-anchor {
content: ""; display: inline-block;
display: block; margin-top: 4.2rem;
height: 4rem;
margin: 4rem 0 0;
} }
hr { hr {