pattern-7-1/sass/abstracts/_mixins.sass
Andros Fenollosa 3b81bb7423 Update sass
2019-03-03 09:20:25 +01:00

28 lines
766 B
Sass

// -----------------------------------------------------------------------------
// 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