diff --git a/mixins/_basic.scss b/mixins/_basic.scss index fe64b21..c484c02 100644 --- a/mixins/_basic.scss +++ b/mixins/_basic.scss @@ -2,13 +2,13 @@ @use '../functions/numbers' as numb; /// Styles for selected elements -/// @param {Color} $bg-color [$black] Background-color -/// @param {Color} $color [$white] Text-color +/// @param {Color} $bg-color Background-color +/// @param {Color} $color Text-color /// @param {String} $selector [*] Selector /// @group Basic /// @author Felix Scholze /// @since v1.0.0 -@mixin select-style($bg-color: #000, $color: #fff, $selector: '*') { +@mixin select-style($bg-color, $color, $selector: '*') { @if meta.type-of($bg-color) != color { @error '❌ ===> #{$bg-color} is not a color'; } @@ -19,6 +19,7 @@ &::selection { background: $bg-color; color: $color; + @content; } } } @@ -35,6 +36,7 @@ display: block; height: $offset; margin-top: number-invert($offset); + @content; } } }