Files
OfficialSite/assets/styles/tools/_mixins.scss

45 lines
921 B
SCSS
Raw Normal View History

// ==========================================================================
// Mixins
// ==========================================================================
2015-07-02 15:12:13 -04:00
@mixin vertical-center {
font-size: 0;
2015-07-02 15:12:13 -04:00
&:before {
display: inline-block;
height: 100%;
content: "";
vertical-align: middle;
}
2015-07-02 15:12:13 -04:00
> * {
display: inline-block;
vertical-align: middle;
font-size: 1rem;
}
2015-07-02 15:12:13 -04:00
}
2015-10-01 09:49:08 -04:00
// Micro clearfix, as per {@link css-101.org/articles/clearfix/latest-new-clearfix-so-far.php CSS Mojo}
//
// @see inuitcss/generic.clearfix
@mixin clearfix {
&:after {
display: table;
clear: both;
content: "";
}
}
@mixin list-reset {
margin: 0;
padding: 0;
list-style: none;
}
@mixin tap-highlight-color {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@mixin overflow-scrolling {
-webkit-overflow-scrolling: touch;
}