Skip to content

Instantly share code, notes, and snippets.

@KostiantynO
Forked from luxplanjay/visually-hidden.css
Created May 15, 2021 16:47
Show Gist options
  • Select an option

  • Save KostiantynO/a90e79619bf333447b92214162e20de3 to your computer and use it in GitHub Desktop.

Select an option

Save KostiantynO/a90e79619bf333447b92214162e20de3 to your computer and use it in GitHub Desktop.

Revisions

  1. @luxplanjay luxplanjay revised this gist Jul 13, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions visually-hidden.css
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,9 @@
    margin: -1px;
    border: 0;
    padding: 0;

    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
    }
  2. @luxplanjay luxplanjay revised this gist Feb 12, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion visually-hidden.css
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@
    .visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    }
  3. @luxplanjay luxplanjay renamed this gist Apr 8, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion visually-hidden.md → visually-hidden.css
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,4 @@
    width: 1px;
    height: 1px;
    margin: -1px;
    }
  4. @luxplanjay luxplanjay created this gist Apr 8, 2019.
    8 changes: 8 additions & 0 deletions visually-hidden.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    .visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    }