Add hidden title to home and CV pages
This commit is contained in:
parent
04d1096d2e
commit
2eec141073
6 changed files with 26 additions and 0 deletions
13
assets/css/abstracts/_a11y.scss
Normal file
13
assets/css/abstracts/_a11y.scss
Normal file
|
@ -0,0 +1,13 @@
|
|||
// --------------------------------------------------
|
||||
// A11Y
|
||||
// --------------------------------------------------
|
||||
|
||||
@mixin visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0); // Legacy declaration for Internet Explorer
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
|
@ -2,4 +2,5 @@
|
|||
// ABSTRACTS (INDEX)
|
||||
// --------------------------------------------------
|
||||
|
||||
@forward "a11y";
|
||||
@forward "variables";
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
.cv {
|
||||
|
||||
.cv__title {
|
||||
@include visually-hidden;
|
||||
}
|
||||
|
||||
.cv__content {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
.home {
|
||||
|
||||
.home__title {
|
||||
@include visually-hidden;
|
||||
}
|
||||
|
||||
.home__gallery {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue