2019-11-04 13:09:44 +00:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// This file contains CSS helper classes.
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clear inner floats
|
|
|
|
*/
|
|
|
|
.clearfix::after {
|
|
|
|
clear: both;
|
|
|
|
content: '';
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Main content containers
|
|
|
|
* 1. Make the container full-width with a maximum width
|
|
|
|
* 2. Center it in the viewport
|
|
|
|
* 3. Leave some space on the edges, especially valuable on small screens
|
|
|
|
*/
|
|
|
|
.container {
|
2019-11-11 14:44:13 +00:00
|
|
|
max-width: 100%; /* 1 */
|
2019-11-04 13:09:44 +00:00
|
|
|
margin-left: auto; /* 2 */
|
|
|
|
margin-right: auto; /* 2 */
|
|
|
|
width: 100%; /* 1 */
|
|
|
|
min-height: 100vh;
|
|
|
|
position: relative;
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('body-background-color');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hide text while making it readable for screen readers
|
|
|
|
* 1. Needed in WebKit-based browsers because of an implementation bug;
|
|
|
|
* See: https://code.google.com/p/chromium/issues/detail?id=457146
|
|
|
|
*/
|
|
|
|
.hide-text {
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0; /* 1 */
|
|
|
|
text-indent: 101%;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Hide element while making it readable for screen readers
|
|
|
|
* Shamelessly borrowed from HTML5Boilerplate:
|
|
|
|
* https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
|
|
|
|
*/
|
|
|
|
.visually-hidden {
|
|
|
|
border: 0;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
height: 1px;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hide {
|
|
|
|
display: none;
|
2019-11-17 11:01:09 +00:00
|
|
|
}
|
2019-11-17 16:44:04 +00:00
|
|
|
|
|
|
|
.grow {
|
|
|
|
@include flex-grow(1);
|
|
|
|
}
|