2015-06-04 15:57:36 -04:00
|
|
|
// ==========================================================================
|
|
|
|
|
// Helpers
|
|
|
|
|
// ==========================================================================
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-vertical-center {
|
2016-08-22 10:30:46 -04:00
|
|
|
@include vertical-center;
|
2015-02-15 15:44:11 -05:00
|
|
|
}
|
|
|
|
|
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-clearfix {
|
2016-08-22 10:30:46 -04:00
|
|
|
@include clearfix;
|
2015-09-30 14:39:40 -04:00
|
|
|
}
|
|
|
|
|
|
2015-02-15 15:44:11 -05:00
|
|
|
/*
|
|
|
|
|
* Hide visually and from screen readers:
|
|
|
|
|
* http://juicystudio.com/article/screen-readers-display-none.php
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-hidden {
|
2016-08-22 10:30:46 -04:00
|
|
|
display: none !important;
|
|
|
|
|
visibility: hidden;
|
2015-02-15 15:44:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Hide only visually, but have it available for screen readers:
|
|
|
|
|
* http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-visuallyhidden {
|
2016-08-22 10:30:46 -04:00
|
|
|
position: absolute;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
|
margin: -1px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
border: 0;
|
2015-02-15 15:44:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Extends the .visuallyhidden class to allow the element
|
|
|
|
|
* to be focusable when navigated to via the keyboard:
|
|
|
|
|
* https://www.drupal.org/node/897638
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-visuallyhidden.focusable:active,
|
|
|
|
|
.u-visuallyhidden.focusable:focus {
|
2016-08-22 10:30:46 -04:00
|
|
|
position: static;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
clip: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto;
|
2015-02-15 15:44:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Hide visually and from screen readers, but maintain layout
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-16 17:28:51 -05:00
|
|
|
.u-invisible {
|
2016-08-22 10:30:46 -04:00
|
|
|
visibility: hidden;
|
2015-02-15 15:44:11 -05:00
|
|
|
}
|