diff options
Diffstat (limited to 'demo/src/sass/utilities/hidden.scss')
-rw-r--r-- | demo/src/sass/utilities/hidden.scss | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/demo/src/sass/utilities/hidden.scss b/demo/src/sass/utilities/hidden.scss new file mode 100644 index 00000000..665bfd76 --- /dev/null +++ b/demo/src/sass/utilities/hidden.scss @@ -0,0 +1,20 @@ +// ========================================================================== +// Hidden +// ========================================================================== + +[hidden] { + display: none; +} + +// Hide only visually, but have it available for screen readers: h5bp.com/v +.sr-only { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + opacity: 0.001; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} |