Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#2633)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeremias Peier <[email protected]>
  • Loading branch information
renovate[bot] and jeripeierSBB authored May 6, 2024
1 parent 47db1a1 commit 491de63
Show file tree
Hide file tree
Showing 2 changed files with 360 additions and 430 deletions.
10 changes: 6 additions & 4 deletions src/components/core/styles/core/mediaqueries.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Inspired by: https://github.com/sass-mq/sass-mq

@use 'sass:map';
@use 'sass:math';
@use 'sass:meta';
@use 'sass:string';
@use 'node_modules/@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables.scss' as sbb-tokens;

Expand Down Expand Up @@ -31,8 +33,8 @@ $mq-media-type: all !default;
}

@function mq-get-breakpoint-width($name, $breakpoints: $mq-breakpoints) {
@if map-has-key($breakpoints, $name) {
@return map-get($breakpoints, $name);
@if map.has-key($breakpoints, $name) {
@return map.get($breakpoints, $name);
} @else {
@warn "Breakpoint #{$name} wasn't found in $breakpoints.";
}
Expand All @@ -51,7 +53,7 @@ $mq-media-type: all !default;

// From: this breakpoint (inclusive)
@if $from {
@if type-of($from) == number {
@if meta.type-of($from) == number {
$min-width: mq-px2rem($from);
} @else {
$min-width: mq-px2rem(mq-get-breakpoint-width($from, $breakpoints), 0);
Expand All @@ -60,7 +62,7 @@ $mq-media-type: all !default;

// Until: that breakpoint (exclusive)
@if $to {
@if type-of($to) == number {
@if meta.type-of($to) == number {
$max-width: mq-px2rem($to);
} @else {
$max-width: mq-px2rem(mq-get-breakpoint-width($to, $breakpoints), -1);
Expand Down
Loading

0 comments on commit 491de63

Please sign in to comment.