Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from JasonTarka-D2L/jtarka/In-place_offscreen
Browse files Browse the repository at this point in the history
Contain offscreen contents in an invisible single-pixel onscreen element
  • Loading branch information
dlockhart committed Mar 17, 2016
2 parents 4b111bd + 320e654 commit 410714e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions offscreen.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@

@mixin vui-offscreen() {

$offset: -10000px;

position: absolute !important;
left: $offset;
overflow: hidden;

width: 1px;
height: 1px;

[dir="rtl"] & {
left: auto;
right: $offset;
}
font-size: 1px;
line-height: 1px;
text-indent: 2px;
white-space: nowrap;

padding: 0;
margin: 0;
background: none;
border: none;
box-shadow: none;
outline: none !important; // important to override :focus
}

0 comments on commit 410714e

Please sign in to comment.