Files
_data
_includes
_layouts
_pages
assets
_scss
vendor
_animations.scss
_archive.scss
_base.scss
_buttons.scss
_footer.scss
_forms.scss
_masthead.scss
_mixins.scss
_navigation.scss
_notices.scss
_page.scss
_print.scss
_reset.scss
_sidebar.scss
_syntax.scss
_tables.scss
_utilities.scss
_variables.scss
main.scss
css
fonts
js
images
.editorconfig
.gitattributes
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
_config.yml
index.html
package.json
website/assets/_scss/_mixins.scss
2016-03-21 16:36:24 -04:00

50 lines
1.0 KiB
SCSS

/* ==========================================================================
MIXINS
========================================================================== */
%tab-focus {
// Default
outline: thin dotted $warning-color;
// Webkit
outline: 5px auto $warning-color;
outline-offset: -2px;
}
/*
em function
========================================================================== */
@function em($target, $context: $doc-font-size) {
@return ($target / $context) * 1em;
}
/*
Bourbon clearfix
========================================================================== */
// Provides an easy way to include a clearfix for containing floats.
//
// @link http://cssmojo.com/latest_new_clearfix_so_far/
//
// @example scss - Usage
// .element {
// @include clearfix;
// }
//
// @example css - CSS Output
// .element::after {
// clear: both;
// content: "";
// display: table;
// }
@mixin clearfix {
clear: both;
&::after {
clear: both;
content: "";
display: table;
}
}