1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-23 11:26:09 -05:00

fix font css vars

This commit is contained in:
2025-04-10 20:23:34 -04:00
parent a63098b150
commit eb84ec37ee
13 changed files with 71 additions and 82 deletions

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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
export * from "./SkipNav";
export { default } from "./SkipNav";

View File

@@ -1,2 +0,0 @@
export * from "./SkipToContent";
export { default } from "./SkipToContent";