@mixin screen-readers-only(){ border: 0; padding: 0; margin: 0; position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */ clip: rect(1px, 1px, 1px, 1px); /*maybe deprecated but we need to support legacy browsers */ clip-path: inset(50%); /*modern browsers, clip-path works inwards from each corner*/ white-space: nowrap; /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */ } @mixin input-select-toggle( $width, $height, $background ){ &:after { display: inline-flex !important; content: ''; position: absolute; border: 0 !important; background-image: $background; background-size: $width $height; height: $height; width: $width; margin-top: calc( #{$height}/2 * -1 ); right: 8px; top: 50%; } } @mixin input-icon( $bg, $size : 18px ){ background: $bg 8px 50% no-repeat !important; background-size: $size !important; padding-left: $size * 2 !important; } @mixin screen-reader-only(){ border: 0; padding: 0; margin: 0; position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */ clip: rect(1px, 1px, 1px, 1px); /*maybe deprecated but we need to support legacy browsers */ clip-path: inset(50%); /*modern browsers, clip-path works inwards from each corner*/ white-space: nowrap; /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */ }