Skip to content

Commit

Permalink
Extract scss utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
pboivin authored and ifox committed Nov 7, 2021
1 parent f308152 commit cbe74f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
11 changes: 0 additions & 11 deletions frontend/js/components/Filter.vue
Expand Up @@ -251,17 +251,6 @@
display: none;
}
}
// ref: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
</style>

<style lang="scss">
Expand Down
4 changes: 4 additions & 0 deletions frontend/scss/_imports.scss
Expand Up @@ -88,3 +88,7 @@
@import 'state/overlay';
@import 'state/nav';
@import 'state/env';

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utilities */

@import 'utilities/utilities';
10 changes: 10 additions & 0 deletions frontend/scss/utilities/_utilities.scss
@@ -0,0 +1,10 @@
// ref: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}

0 comments on commit cbe74f8

Please sign in to comment.