Skip to content

Commit

Permalink
feat: add visually hidden css class and set font for the whole project
Browse files Browse the repository at this point in the history
Co-authored-by: drey <[email protected]>
  • Loading branch information
madcampos and dreymoreau committed Jul 26, 2024
1 parent 5045880 commit 27ff2eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/layouts/Base/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import "open-props/normalize";
@import url('./variables.css');

:root {
font-family: var(--font-system-ui);
}

:not(:defined) { display: none; }

html, body {
Expand Down Expand Up @@ -64,3 +68,16 @@ a {
h1, h2, h3, h4, h5, h6, p, dt, li, dd, blockquote, td {
max-inline-size: 100%;
}

.visually-hidden {
color: transparent;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
position: absolute;
white-space: nowrap;
width: 1px;
pointer-events: none;
user-select: none;
}

0 comments on commit 27ff2eb

Please sign in to comment.