
| Current Path : /var/www/html1/testsite/web/themes/contrib/adaptivetheme/at_core/styles/sass/partials/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/testsite/web/themes/contrib/adaptivetheme/at_core/styles/sass/partials/_utility.scss |
//
// Utility mixins
//
// ---------------------------------------------------------------------------
// Markup free clearing
// http://www.stubbornella.org/content/2012/05/02/cross-browser-debugging-css/
@mixin cf {
overflow: hidden; // New formatting context in better browsers
*overflow: visible; // Protect IE7 and older from the overflow property
*zoom: 1; // Give IE hasLayout, a new formatting context equivalent
}
// Micro clearfix.
// Based on the micro clearfix hack by Nicolas Gallagher, with the :before
// pseudo selector removed to allow normal top margin collapse.
// This has the distinct advantage of allowing overflow.
// @see http://nicolasgallagher.com/micro-clearfix-hack
//
// For modern browsers
// 1. The space content is one way to avoid an Opera bug when the
// contenteditable attribute is included anywhere else in the document.
// Otherwise it causes space to appear at the top and bottom of elements
// that are clearfixed.
// 2. The use of 'table' rather than 'block' is only necessary if using
// :before' to contain the top-margins of child elements.
//
@mixin clearfix-micro {
&:before,
&:after {
content: " "; // 1
display: table; // 2
}
&:after {
clear: both;
}
}
// Image replacement
// Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
// Extended by HTML5BP http://html5boilerplate.com/docs/css/
@mixin ir {
display: block !important;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
// Hide content but maintain accessibility
@mixin visually-hidden {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
padding: 0;
word-wrap: normal;
font: 0/0 a;
}
// Turns off the element-invisible effect
@mixin visually-hidden-off {
position: static !important;
clip: auto;
overflow: visible;
height: auto;
width: auto;
font-family: inherit;
line-height: normal;
font-size: 1em;
}
// Visually hidden but focusable, e.g. skip links
@mixin visually-hidden-focusable {
@extend visually-hidden;
&.focusable {
&:active,
&:focus {
@include visually-hidden-off;
}
}
}
// Shift content offscreen, can be usefull when you reall need to do this
@mixin offscreen {
position: absolute;
top: -99999em;
width: 1px;
height: 1px;
overflow: hidden;
outline: 0;
}