anchor css improvement

- separated anchor CSS
- added proper footer link styling
- increased space from navbar
This commit is contained in:
Kim, Jimin 2022-01-15 13:21:09 +09:00
parent 85e433aa5d
commit 5c0365e0f3

View file

@ -7,6 +7,24 @@ import "katex/dist/katex.min.css"
import theming from "./theming" import theming from "./theming"
const anchorCSS = css`
a {
text-decoration: none;
color: ${theming.color.linkColor};
}
// header anchor offset to compensate for navbar
a.header-anchor {
display: inline-block;
margin-top: 4.5rem;
}
a[id^="fnref"] {
display: inline;
padding-top: 4.5rem;
}
`
const scrollbarCSS = css` const scrollbarCSS = css`
body::-webkit-scrollbar { body::-webkit-scrollbar {
width: ${theming.size.x_small}; width: ${theming.size.x_small};
@ -205,6 +223,7 @@ const katexCSS = css`
* https://github.com/styled-components/vscode-styled-components/issues/175 * https://github.com/styled-components/vscode-styled-components/issues/175
*/ */
const globalStyle = css` const globalStyle = css`
${anchorCSS}
${scrollbarCSS} ${scrollbarCSS}
${codeCSS} ${codeCSS}
${kbdCSS} ${kbdCSS}
@ -243,17 +262,6 @@ const globalStyle = css`
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
a {
text-decoration: none;
color: ${theming.color.linkColor};
}
// header anchor offset to compensate for navbar
a.header-anchor {
display: inline-block;
margin-top: 4.2rem;
}
hr { hr {
border: 0; border: 0;
border-bottom: 1px solid; border-bottom: 1px solid;