Skip to content

Commit

Permalink
Stylelint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Aug 20, 2024
1 parent bce18ff commit 7d2e27f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scss/form/_check.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@if ($has-sizes) {
#{$parent}--sm {
@include generate-variables($form-control-sm);
@include generate-variables($form-control-sm);

#{$input} {
font-size: config('font-size', $form-check-sm);
Expand Down
2 changes: 1 addition & 1 deletion scss/function/_color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
$color-brightness: math.round((color.red($color) * 299) + (color.green($color) * 587) + math.div(color.blue($color) * 114, 1000));
$light-color: math.round((color.red(#fff) * 299) + (color.green(#fff) * 587) + math.div(color.blue(#fff) * 114, 1000));

@if abs($color-brightness) < math.div($light-color, 2) {
@if math.abs($color-brightness) < math.div($light-color, 2) {
@return hsl(0 0% 100%);
} @else {
@return hsl(0 100% 0%);
Expand Down
2 changes: 1 addition & 1 deletion scss/function/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$index: string.index($string, $search);

@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
@return string.slice($string, 1, $index - 1) + $replace + str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
}

@return $string;
Expand Down
3 changes: 1 addition & 2 deletions scss/mixin/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@

@if map.has-key($colors, 'btn', $type + '-shadow') {
&-shadow {
box-shadow: 0 0.55em 1em -0.2em color($type + '-shadow', 'btn'),
0 0.15em 0.35em -0.185em color($type + '-shadow', 'btn');
box-shadow: 0 0.55em 1em -0.2em color($type + '-shadow', 'btn'), 0 0.15em 0.35em -0.185em color($type + '-shadow', 'btn');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/mixin/_generator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
}

@if map.get($generators, 'form', 'form-group-label') {
@include generate-form-group-label
@include generate-form-group-label;
}

@if map.get($generators, 'form', 'form-group') {
Expand Down

0 comments on commit 7d2e27f

Please sign in to comment.