sempli-website-lib 5.3.2 → 5.3.3-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sempli-website-lib",
3
- "version": "5.3.2",
3
+ "version": "5.3.3-beta",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~13.3.4",
6
6
  "@angular/core": "~13.3.4",
@@ -4761,15 +4761,15 @@ $min-line-padding: 2px !default;
4761
4761
  $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
4762
4762
 
4763
4763
  // The basic unit of font rhythm.
4764
- $base-rhythm-unit: $base-line-height / $base-font-size * $font-unit;
4764
+ $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
4765
4765
 
4766
4766
  // The leader is the amount of whitespace in a line.
4767
4767
  // It might be useful in your calculations.
4768
- $base-leader: ($base-line-height - $base-font-size) * $font-unit / $base-font-size;
4768
+ $base-leader: calc(($base-line-height - $base-font-size) * $font-unit / $base-font-size);
4769
4769
 
4770
4770
  // The half-leader is the amount of whitespace above and below a line.
4771
4771
  // It might be useful in your calculations.
4772
- $base-half-leader: $base-leader / 2;
4772
+ $base-half-leader: calc($base-leader / 2);
4773
4773
 
4774
4774
  // True if a number has a relative unit.
4775
4775
  @function relative-unit($number) {
@@ -4791,7 +4791,7 @@ $base-half-leader: $base-leader / 2;
4791
4791
  // whose root is set in ems. So we set the root font size in percentages of
4792
4792
  // the default font size.
4793
4793
  * html {
4794
- font-size: 100% * ($font-size / $browser-default-font-size);
4794
+ font-size: 100% * calc($font-size / $browser-default-font-size);
4795
4795
  }
4796
4796
  html {
4797
4797
  font-size: $font-size;
@@ -4828,7 +4828,7 @@ $base-half-leader: $base-leader / 2;
4828
4828
  @if not($relative-font-sizing) and $from-size != $base-font-size {
4829
4829
  @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
4830
4830
  }
4831
- font-size: $font-unit * $to-size / $from-size;
4831
+ font-size: calc($font-unit * $to-size / $from-size);
4832
4832
  @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
4833
4833
  }
4834
4834
 
@@ -4849,7 +4849,7 @@ $base-half-leader: $base-leader / 2;
4849
4849
  @if not($relative-font-sizing) and $font-size != $base-font-size {
4850
4850
  @warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
4851
4851
  }
4852
- $rhythm: $font-unit * ($lines * $base-line-height - $offset) / $font-size;
4852
+ $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
4853
4853
  // Round the pixels down to nearest integer.
4854
4854
  @if unit($rhythm) == px {
4855
4855
  $rhythm: floor($rhythm);
@@ -4913,7 +4913,7 @@ $base-half-leader: $base-leader / 2;
4913
4913
  @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
4914
4914
  }
4915
4915
  border-#{$side}-style: $border-style;
4916
- border-#{$side}-width: $font-unit * $width / $font-size;
4916
+ border-#{$side}-width: calc($font-unit * $width / $font-size);
4917
4917
  padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
4918
4918
  }
4919
4919
 
@@ -4924,7 +4924,7 @@ $base-half-leader: $base-leader / 2;
4924
4924
  }
4925
4925
  border: {
4926
4926
  style: $border-style;
4927
- width: $font-unit * $width / $font-size;
4927
+ width: calc($font-unit * $width / $font-size);
4928
4928
  };
4929
4929
  padding: rhythm($lines, $font-size, $offset: $width);
4930
4930
  }
@@ -4761,15 +4761,15 @@ $min-line-padding: 2px !default;
4761
4761
  $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
4762
4762
 
4763
4763
  // The basic unit of font rhythm.
4764
- $base-rhythm-unit: $base-line-height / $base-font-size * $font-unit;
4764
+ $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
4765
4765
 
4766
4766
  // The leader is the amount of whitespace in a line.
4767
4767
  // It might be useful in your calculations.
4768
- $base-leader: ($base-line-height - $base-font-size) * $font-unit / $base-font-size;
4768
+ $base-leader: calc(($base-line-height - $base-font-size) * $font-unit / $base-font-size);
4769
4769
 
4770
4770
  // The half-leader is the amount of whitespace above and below a line.
4771
4771
  // It might be useful in your calculations.
4772
- $base-half-leader: $base-leader / 2;
4772
+ $base-half-leader: calc($base-leader / 2);
4773
4773
 
4774
4774
  // True if a number has a relative unit.
4775
4775
  @function relative-unit($number) {
@@ -4791,7 +4791,7 @@ $base-half-leader: $base-leader / 2;
4791
4791
  // whose root is set in ems. So we set the root font size in percentages of
4792
4792
  // the default font size.
4793
4793
  * html {
4794
- font-size: 100% * ($font-size / $browser-default-font-size);
4794
+ font-size: 100% * calc($font-size / $browser-default-font-size);
4795
4795
  }
4796
4796
  html {
4797
4797
  font-size: $font-size;
@@ -4828,7 +4828,7 @@ $base-half-leader: $base-leader / 2;
4828
4828
  @if not($relative-font-sizing) and $from-size != $base-font-size {
4829
4829
  @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
4830
4830
  }
4831
- font-size: $font-unit * $to-size / $from-size;
4831
+ font-size: calc($font-unit * $to-size / $from-size);
4832
4832
  @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
4833
4833
  }
4834
4834
 
@@ -4849,7 +4849,7 @@ $base-half-leader: $base-leader / 2;
4849
4849
  @if not($relative-font-sizing) and $font-size != $base-font-size {
4850
4850
  @warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
4851
4851
  }
4852
- $rhythm: $font-unit * ($lines * $base-line-height - $offset) / $font-size;
4852
+ $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
4853
4853
  // Round the pixels down to nearest integer.
4854
4854
  @if unit($rhythm) == px {
4855
4855
  $rhythm: floor($rhythm);
@@ -4913,7 +4913,7 @@ $base-half-leader: $base-leader / 2;
4913
4913
  @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
4914
4914
  }
4915
4915
  border-#{$side}-style: $border-style;
4916
- border-#{$side}-width: $font-unit * $width / $font-size;
4916
+ border-#{$side}-width: calc($font-unit * $width / $font-size);
4917
4917
  padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
4918
4918
  }
4919
4919
 
@@ -4924,7 +4924,7 @@ $base-half-leader: $base-leader / 2;
4924
4924
  }
4925
4925
  border: {
4926
4926
  style: $border-style;
4927
- width: $font-unit * $width / $font-size;
4927
+ width: calc($font-unit * $width / $font-size);
4928
4928
  };
4929
4929
  padding: rhythm($lines, $font-size, $offset: $width);
4930
4930
  }
@@ -4761,15 +4761,15 @@ $min-line-padding: 2px !default;
4761
4761
  $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
4762
4762
 
4763
4763
  // The basic unit of font rhythm.
4764
- $base-rhythm-unit: $base-line-height / $base-font-size * $font-unit;
4764
+ $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
4765
4765
 
4766
4766
  // The leader is the amount of whitespace in a line.
4767
4767
  // It might be useful in your calculations.
4768
- $base-leader: ($base-line-height - $base-font-size) * $font-unit / $base-font-size;
4768
+ $base-leader: calc(($base-line-height - $base-font-size) * $font-unit / $base-font-size);
4769
4769
 
4770
4770
  // The half-leader is the amount of whitespace above and below a line.
4771
4771
  // It might be useful in your calculations.
4772
- $base-half-leader: $base-leader / 2;
4772
+ $base-half-leader: calc($base-leader / 2);
4773
4773
 
4774
4774
  // True if a number has a relative unit.
4775
4775
  @function relative-unit($number) {
@@ -4791,7 +4791,7 @@ $base-half-leader: $base-leader / 2;
4791
4791
  // whose root is set in ems. So we set the root font size in percentages of
4792
4792
  // the default font size.
4793
4793
  * html {
4794
- font-size: 100% * ($font-size / $browser-default-font-size);
4794
+ font-size: 100% * calc($font-size / $browser-default-font-size);
4795
4795
  }
4796
4796
  html {
4797
4797
  font-size: $font-size;
@@ -4828,7 +4828,7 @@ $base-half-leader: $base-leader / 2;
4828
4828
  @if not($relative-font-sizing) and $from-size != $base-font-size {
4829
4829
  @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
4830
4830
  }
4831
- font-size: $font-unit * $to-size / $from-size;
4831
+ font-size: calc($font-unit * $to-size / $from-size);
4832
4832
  @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
4833
4833
  }
4834
4834
 
@@ -4849,7 +4849,7 @@ $base-half-leader: $base-leader / 2;
4849
4849
  @if not($relative-font-sizing) and $font-size != $base-font-size {
4850
4850
  @warn "$relative-font-sizing is false but a relative font size was passed to the rhythm function";
4851
4851
  }
4852
- $rhythm: $font-unit * ($lines * $base-line-height - $offset) / $font-size;
4852
+ $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
4853
4853
  // Round the pixels down to nearest integer.
4854
4854
  @if unit($rhythm) == px {
4855
4855
  $rhythm: floor($rhythm);
@@ -4913,7 +4913,7 @@ $base-half-leader: $base-leader / 2;
4913
4913
  @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
4914
4914
  }
4915
4915
  border-#{$side}-style: $border-style;
4916
- border-#{$side}-width: $font-unit * $width / $font-size;
4916
+ border-#{$side}-width: calc($font-unit * $width / $font-size);
4917
4917
  padding-#{$side}: rhythm($lines, $font-size, $offset: $width);
4918
4918
  }
4919
4919
 
@@ -4924,7 +4924,7 @@ $base-half-leader: $base-leader / 2;
4924
4924
  }
4925
4925
  border: {
4926
4926
  style: $border-style;
4927
- width: $font-unit * $width / $font-size;
4927
+ width: calc($font-unit * $width / $font-size);
4928
4928
  };
4929
4929
  padding: rhythm($lines, $font-size, $offset: $width);
4930
4930
  }