Skip to content

Commit

Permalink
fix: rename rem() function to px-to-rem()
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Aug 23, 2023
1 parent a10a426 commit 7328d97
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 160 deletions.
20 changes: 10 additions & 10 deletions Helium/gtk-4.0/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,22 +123,22 @@ expander-widget {
background-image:
linear-gradient(
45deg,
rgba(black, 0.05) rem(9px),
transparent rem(9px),
transparent rem(26px),
rgba(black, 0.05) rem(26px),
rgba(black, 0.05) px-to-rem(9px),
transparent px-to-rem(9px),
transparent px-to-rem(26px),
rgba(black, 0.05) px-to-rem(26px),
rgba(black, 0.05)
),
linear-gradient(
45deg,
rgba(black, 0.05) rem(9px),
transparent rem(9px),
transparent rem(26px),
rgba(black, 0.05) rem(26px),
rgba(black, 0.05) px-to-rem(9px),
transparent px-to-rem(9px),
transparent px-to-rem(26px),
rgba(black, 0.05) px-to-rem(26px),
rgba(black, 0.05)
);
background-size: rem(24px) rem(24px);
background-position: 0 0, rem(12px) rem(12px);
background-size: px-to-rem(24px) px-to-rem(24px);
background-position: 0 0, px-to-rem(12px) px-to-rem(12px);
}

/**********************
Expand Down
2 changes: 1 addition & 1 deletion Helium/gtk-4.0/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
}

@function rem($pixels, $text-size: 10pt) {
@function px-to-rem($pixels, $text-size: 10pt) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
Expand Down
Loading

0 comments on commit 7328d97

Please sign in to comment.