Skip to content

Commit

Permalink
feat: select-style & target-anchor-offset able to set own content
Browse files Browse the repository at this point in the history
select-style no longer has default values
  • Loading branch information
felix-berlin committed Aug 7, 2022
1 parent bcbcb96 commit 9a7c6d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mixins/_basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand All @@ -19,6 +19,7 @@
&::selection {
background: $bg-color;
color: $color;
@content;
}
}
}
Expand All @@ -35,6 +36,7 @@
display: block;
height: $offset;
margin-top: number-invert($offset);
@content;
}
}
}

0 comments on commit 9a7c6d2

Please sign in to comment.