Update _mixins.sass

This commit is contained in:
Andros Fenollosa 2019-03-03 09:46:38 +01:00 committed by GitHub
parent 3519efc468
commit 86cddda967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,27 +1,3 @@
// -----------------------------------------------------------------------------
// This file contains all application-wide Sass mixins.
// -----------------------------------------------------------------------------
/// Event wrapper
/// @author Harry Roberts
/// @param {Bool} $self [false] - Whether or not to include current selector
/// @link https://twitter.com/csswizardry/status/478938530342006784 Original tweet from Harry Roberts
=on-event($self: false)
@if $self
&,
&:hover,
&:active,
&:focus
@content
@else
&:hover,
&:active,
&:focus
@content
/// Make a context based selector a little more friendly
/// @author Hugo Giraudel
/// @param {String} $context
=when-inside($context)
#{$context} &
@content