diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-20 19:50:03 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-20 19:50:03 +0100 |
commit | 26106a315f04ca082152b474e6604cded843d08b (patch) | |
tree | f1c0869e1839e57e3cac9f63c926beafe4c6ce88 /sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss | |
parent | 07a7c72b4bb6c8d585908b71c63d661880f1f61d (diff) | |
download | brdo-26106a315f04ca082152b474e6604cded843d08b.tar.gz brdo-26106a315f04ca082152b474e6604cded843d08b.tar.bz2 |
Added theme for Máme rádi přírodu.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss')
-rw-r--r-- | sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss new file mode 100644 index 000000000..b9cb09aee --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/sass/_mixins.scss @@ -0,0 +1,37 @@ +// @file +// Custom sass mixins +// +// Define the custom mixins for your project here. +// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#defining_a_mixin + +// Makes an element visually hidden, but accessible. +// @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility +@mixin element-invisible { + position: absolute !important; + height: 1px; + width: 1px; + overflow: hidden; + @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { + clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax. + } + clip: rect(1px, 1px, 1px, 1px); +} + +// Turns off the element-invisible effect. +@mixin element-invisible-off { + position: static !important; + clip: auto; + height: auto; + width: auto; + overflow: auto; +} + +// Makes an element visually hidden by default, but visible when focused. +@mixin element-focusable { + @include element-invisible; + + &:active, + &:focus { + @include element-invisible-off; + } +} |