fix font css vars

This commit is contained in:
jake committed 2025-04-10 20:23:34 -04:00
1 parent a63098b150
commit eb84ec37ee
13 files changed
+71 -82

No files matched your search

+4 -2
View File
@@ -3,8 +3,10 @@
margin-bottom: 0.5em;
line-height: 1.5;
/* offset (approximately) with sticky header so jumped-to content isn't hiding behind it.
note: use rem so it isn't based on the heading's font size. */
/*
* offset (approximately) with sticky header so jumped-to content isn't hiding behind it.
* note: use rem so it isn't based on the heading's font size.
*/
scroll-margin-top: 5.5rem;
}
@@ -1,5 +1,6 @@
/* accessible invisibility stuff pulled from @reach/skip-nav:
https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css */
/*
* Pulled from @reach/skip-nav: https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css
*/
.hidden {
border: 0;
@@ -1,8 +1,8 @@
import styles from "./SkipToContent.module.css";
import styles from "./SkipNav.module.css";
const skipNavId = "skip-nav";
export const SkipToContentLink = () => {
export const SkipNavLink = () => {
return (
<a href={`#${skipNavId}`} tabIndex={0} className={styles.hidden}>
Skip to content
@@ -10,8 +10,8 @@ export const SkipToContentLink = () => {
);
};
export const SkipToContentTarget = () => {
export const SkipNavTarget = () => {
return <div id={skipNavId} />;
};
export default SkipToContentLink;
export default SkipNavLink;
+2
View File
@@ -0,0 +1,2 @@
export * from "./SkipNav";
export { default } from "./SkipNav";
-2
View File
@@ -1,2 +0,0 @@
export * from "./SkipToContent";
export { default } from "./SkipToContent";