sempli-website-lib 8.0.0-beta.10 → 8.0.0-beta.11

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": "8.0.0-beta.10",
3
+ "version": "8.0.0-beta.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -2088,7 +2088,7 @@ span.results-table-item-value {
2088
2088
  width: 100%;
2089
2089
  padding: 20px;
2090
2090
  box-sizing: border-box;
2091
- background-image: url("/assets/swl/interface/sempli_2.0/5-seguridad-y-control.png");
2091
+ background-image: url("/assets/interface/sempli_2.0/5-seguridad-y-control.png");
2092
2092
  background-repeat: no-repeat;
2093
2093
  background-position: center;
2094
2094
  background-size: cover;
@@ -2102,7 +2102,7 @@ span.results-table-item-value {
2102
2102
  width: 100%;
2103
2103
  padding: 20px;
2104
2104
  box-sizing: border-box;
2105
- background-image: url("/assets/swl/interface/sempli_2.0/10-pago-de-facturas-y-proveedores-v2.png");
2105
+ background-image: url("/assets/interface/sempli_2.0/10-pago-de-facturas-y-proveedores-v2.png");
2106
2106
  background-repeat: no-repeat;
2107
2107
  background-size: contain;
2108
2108
  max-height: 663px;
@@ -2110,11 +2110,11 @@ span.results-table-item-value {
2110
2110
  border-radius: 50px;
2111
2111
 
2112
2112
  @media screen and (max-width: 1100px) {
2113
- background-image: url("/assets/swl/interface/sempli_2.0/10-pago-de-facturas-y-proveedores-v1.png");
2113
+ background-image: url("/assets/interface/sempli_2.0/10-pago-de-facturas-y-proveedores-v1.png");
2114
2114
  }
2115
2115
 
2116
2116
  @media screen and (max-width: 768px) {
2117
- background-image: url("/assets/swl/interface/sempli_2.0/10-pago-de-facturas-y-proveedores.png");
2117
+ background-image: url("/assets/interface/sempli_2.0/10-pago-de-facturas-y-proveedores.png");
2118
2118
  height: 60vw;
2119
2119
  min-height: 400px;
2120
2120
  background-position: center;
@@ -2608,21 +2608,21 @@ span.results-table-item-value {
2608
2608
 
2609
2609
  .webp .website-imgs {
2610
2610
  .section-lending-picture {
2611
- background-image: url("/assets/swl/interface/sempli_2.0/credito-a-termino.webp");
2611
+ background-image: url("/assets/interface/sempli_2.0/credito-a-termino.webp");
2612
2612
  }
2613
2613
 
2614
2614
  .section-flexi-picture {
2615
- background-image: url("/assets/swl/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.webp");
2615
+ background-image: url("/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.webp");
2616
2616
  }
2617
2617
  }
2618
2618
 
2619
2619
  .no-webp .website-imgs {
2620
2620
  .section-lending-picture {
2621
- background-image: url("/assets/swl/interface/sempli_2.0/credito-a-termino.jpg");
2621
+ background-image: url("/assets/interface/sempli_2.0/credito-a-termino.jpg");
2622
2622
  }
2623
2623
 
2624
2624
  .section-flexi-picture {
2625
- background-image: url("/assets/swl/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.jpg");
2625
+ background-image: url("/assets/interface/sempli_2.0/7-financia-tu-capital-de-trabajo2-01.jpg");
2626
2626
  }
2627
2627
  }
2628
2628
 
@@ -175,11 +175,11 @@ section.hero-wrapper {
175
175
  }
176
176
 
177
177
  &.sempli-connects {
178
- background: url("/assets/swl/interface/sempli-conecta-banner.webp") no-repeat 100%;
178
+ background: url("/assets/interface/sempli-conecta-banner.webp") no-repeat 100%;
179
179
  background-size: cover;
180
180
 
181
181
  @include responsive-max($breakpoint-small) {
182
- background: linear-gradient(#00000042, #00000042), url("/assets/swl/interface/sempli-conecta-banner.webp") no-repeat 100%;
182
+ background: linear-gradient(#00000042, #00000042), url("/assets/interface/sempli-conecta-banner.webp") no-repeat 100%;
183
183
  background-size: cover;
184
184
  }
185
185
  }
@@ -211,8 +211,8 @@ section.hero-wrapper {
211
211
  margin-bottom: 40px;
212
212
  }
213
213
  &.ongoing-section {
214
- background: url("/assets/swl/interface/ongoing.webp") no-repeat 110% 50%;
215
- @include background-retina("/assets/swl/interface/ongoing.webp", 400px, 370px);
214
+ background: url("/assets/interface/ongoing.webp") no-repeat 110% 50%;
215
+ @include background-retina("/assets/interface/ongoing.webp", 400px, 370px);
216
216
  background-size: auto 450px;
217
217
  margin-bottom: 40px;
218
218
  }
@@ -388,11 +388,11 @@ section.hero-wrapper {
388
388
  }
389
389
 
390
390
  &.sempli-connects {
391
- background: url("/assets/swl/interface/sempli-conecta-banner.png") no-repeat 100%;
391
+ background: url("/assets/interface/sempli-conecta-banner.png") no-repeat 100%;
392
392
  background-size: cover;
393
393
 
394
394
  @include responsive-max($breakpoint-small) {
395
- background: linear-gradient(#00000042, #00000042), url("/assets/swl/interface/sempli-conecta-banner.png") no-repeat 100%;
395
+ background: linear-gradient(#00000042, #00000042), url("/assets/interface/sempli-conecta-banner.png") no-repeat 100%;
396
396
  background-size: cover;
397
397
  }
398
398
  }
@@ -424,8 +424,8 @@ section.hero-wrapper {
424
424
  margin-bottom: 40px;
425
425
  }
426
426
  &.ongoing-section {
427
- background: url("/assets/swl/interface/ongoing.png") no-repeat 110% 50%;
428
- @include background-retina("/assets/swl/interface/ongoing.png", 400px, 370px);
427
+ background: url("/assets/interface/ongoing.png") no-repeat 110% 50%;
428
+ @include background-retina("/assets/interface/ongoing.png", 400px, 370px);
429
429
  background-size: auto 450px;
430
430
  margin-bottom: 40px;
431
431
  }
@@ -20,7 +20,7 @@ $default-background-size: 100% auto !default;
20
20
  $size-9: false,
21
21
  $size-10: false
22
22
  ) {
23
- $size-1: if(type-of($size-1) == string, unquote($size-1), $size-1);
23
+ $size-1: if(sass(type-of($size-1) == string): unquote($size-1); else: $size-1);
24
24
  $sizes: compact($size-1, $size-2, $size-3, $size-4, $size-5, $size-6, $size-7, $size-8, $size-9, $size-10);
25
25
  @include experimental(background-size, $sizes, -moz, -webkit, -o, not(-ms), not(-khtml));
26
26
  }
@@ -41,7 +41,7 @@ $default-box-shadow-inset : false !default;
41
41
  $shadow-10: false
42
42
  ) {
43
43
  @if $shadow-1 == default {
44
- $shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
44
+ $shadow-1 : -compass-space-list(compact(if(sass($default-box-shadow-inset): inset; else: false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
45
45
  }
46
46
  $shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
47
47
  @include experimental(box-shadow, $shadow,
@@ -43,7 +43,7 @@
43
43
  $backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
44
44
  $background-6, $background-7, $background-8, $background-9, $background-10);
45
45
  $mult-bgs: -compass-list-size($backgrounds) > 1;
46
- $simple-background: if($mult-bgs or prefixed(-css2, $backgrounds), -css2(-compass-nth($backgrounds, last)), false);
46
+ $simple-background: if(sass($mult-bgs or prefixed(-css2, $backgrounds)): -css2(-compass-nth($backgrounds, last)); else: false);
47
47
  @if not(blank($simple-background)) { background: $simple-background; }
48
48
  @include background($background-1, $background-2, $background-3, $background-4, $background-5,
49
49
  $background-6, $background-7, $background-8, $background-9, $background-10);
@@ -83,7 +83,7 @@
83
83
  // For the `$orientation` parameter, you can pass `vertical` or `horizontal`.
84
84
  @mixin filter-gradient($start-color, $end-color, $orientation: vertical) {
85
85
  @include has-layout;
86
- $gradient-type: if($orientation == vertical, 0, 1);
86
+ $gradient-type: if(sass($orientation == vertical): 0; else: 1);
87
87
  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 {
88
88
  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}');
89
89
  }
@@ -74,11 +74,11 @@ $default-text-shadow-spread: false !default;
74
74
  $color: $temp-color;
75
75
  }
76
76
  // Can't rely on default assignment with multiple supported argument orders.
77
- $hoff: if($hoff, $hoff, $default-text-shadow-h-offset);
78
- $voff: if($voff, $voff, $default-text-shadow-v-offset);
79
- $blur: if($blur, $blur, $default-text-shadow-blur );
80
- $spread: if($spread, $spread, $default-text-shadow-spread );
81
- $color: if($color, $color, $default-text-shadow-color );
77
+ $hoff: if(sass($hoff): $hoff; else: $default-text-shadow-h-offset);
78
+ $voff: if(sass($voff): $voff; else: $default-text-shadow-v-offset);
79
+ $blur: if(sass($blur): $blur; else: $default-text-shadow-blur );
80
+ $spread: if(sass($spread): $spread; else: $default-text-shadow-spread );
81
+ $color: if(sass($color): $color; else: $default-text-shadow-color );
82
82
  // We don't need experimental support for this property.
83
83
  @if $color == none or $hoff == none {
84
84
  @include text-shadow(none);
@@ -124,7 +124,7 @@ $default-skew-y : 5deg !default;
124
124
  $origin-x: $default-origin-x,
125
125
  $origin-y: $default-origin-y,
126
126
  $origin-z: false,
127
- $only3d: if($origin-z, true, false)
127
+ $only3d: if(sass($origin-z): true; else: false)
128
128
  ) {
129
129
  $origin: unquote('');
130
130
  @if $origin-x or $origin-y or $origin-z {
@@ -1,3 +1,6 @@
1
+ @use "sass:meta";
2
+ @use "sass:list";
3
+ @use "sass:math";
1
4
  @import "shared";
2
5
  @import "../functions";
3
6
 
@@ -42,7 +45,7 @@ $transitionable-prefixed-values: transform, transform-origin !default;
42
45
  $property-9 : false,
43
46
  $property-10: false
44
47
  ) {
45
- @if type-of($property-1) == string { $property-1: unquote($property-1); }
48
+ @if meta.type-of($property-1) == string { $property-1: unquote($property-1); }
46
49
  $properties: compact($property-1, $property-2, $property-3, $property-4, $property-5, $property-6, $property-7, $property-8, $property-9, $property-10);
47
50
  @if $experimental-support-for-webkit { -webkit-transition-property : prefixed-for-transition(-webkit, $properties); }
48
51
  @if $experimental-support-for-mozilla { -moz-transition-property : prefixed-for-transition(-moz, $properties); }
@@ -66,7 +69,7 @@ $transitionable-prefixed-values: transform, transform-origin !default;
66
69
  $duration-9 : false,
67
70
  $duration-10: false
68
71
  ) {
69
- @if type-of($duration-1) == string { $duration-1: unquote($duration-1); }
72
+ @if meta.type-of($duration-1) == string { $duration-1: unquote($duration-1); }
70
73
  $durations: compact($duration-1, $duration-2, $duration-3, $duration-4, $duration-5, $duration-6, $duration-7, $duration-8, $duration-9, $duration-10);
71
74
  @include experimental(transition-duration, $durations,
72
75
  -moz, -webkit, -o, not(-ms), not(-khtml), official
@@ -113,7 +116,7 @@ $transitionable-prefixed-values: transform, transform-origin !default;
113
116
  $delay-9 : false,
114
117
  $delay-10: false
115
118
  ) {
116
- @if type-of($delay-1) == string { $delay-1: unquote($delay-1); }
119
+ @if meta.type-of($delay-1) == string { $delay-1: unquote($delay-1); }
117
120
  $delays: compact($delay-1, $delay-2, $delay-3, $delay-4, $delay-5, $delay-6, $delay-7, $delay-8, $delay-9, $delay-10);
118
121
  @include experimental(transition-delay, $delays,
119
122
  -moz, -webkit, -o, not(-ms), not(-khtml), official
@@ -147,8 +150,8 @@ $transitionable-prefixed-values: transform, transform-origin !default;
147
150
  $transition-1 : compact($default-transition-property $default-transition-duration $default-transition-function $default-transition-delay);
148
151
  }
149
152
  $transitions: false;
150
- @if type-of($transition-1) == list and type-of(nth($transition-1,1)) == list {
151
- $transitions: join($transition-1, compact($transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10), comma);
153
+ @if meta.type-of($transition-1) == list and meta.type-of(list.nth($transition-1,1)) == list {
154
+ $transitions: list.join($transition-1, compact($transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10), comma);
152
155
  } @else {
153
156
  $transitions : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
154
157
  }
@@ -163,23 +166,23 @@ $transitionable-prefixed-values: transform, transform-origin !default;
163
166
  @each $transition in $transitions {
164
167
  // Extract the values from the list
165
168
  // (this would be cleaner if nth took a 3rd argument to provide a default value).
166
- $property: nth($transition, 1);
169
+ $property: list.nth($transition, 1);
167
170
  $duration: false;
168
171
  $timing-function: false;
169
172
  $delay: false;
170
- @if length($transition) > 1 { $duration: nth($transition, 2); }
171
- @if length($transition) > 2 { $timing-function: nth($transition, 3); }
172
- @if length($transition) > 3 { $delay: nth($transition, 4); $has-delays: true; }
173
+ @if list.length($transition) > 1 { $duration: list.nth($transition, 2); }
174
+ @if list.length($transition) > 2 { $timing-function: list.nth($transition, 3); }
175
+ @if list.length($transition) > 3 { $delay: list.nth($transition, 4); $has-delays: true; }
173
176
 
174
177
  // If a delay is provided without a timing function
175
178
  @if is-time($timing-function) and not($delay) { $delay: $timing-function; $timing-function: false; $has-delays: true; }
176
179
 
177
180
  // Keep a list of delays in case one is specified
178
- $delays: append($delays, if($delay, $delay, 0s));
181
+ $delays: list.append($delays, if(sass($delay): $delay; else: 0s));
179
182
 
180
- $webkit-value: append($webkit-value, compact((prefixed-for-transition(-webkit, $property) $duration $timing-function)...));
181
- $moz-value: append( $moz-value, compact((prefixed-for-transition( -moz, $property) $duration $timing-function $delay)...));
182
- $o-value: append( $o-value, compact((prefixed-for-transition( -o, $property) $duration $timing-function $delay)...));
183
+ $webkit-value: list.append($webkit-value, compact((prefixed-for-transition(-webkit, $property) $duration $timing-function)...));
184
+ $moz-value: list.append( $moz-value, compact((prefixed-for-transition( -moz, $property) $duration $timing-function $delay)...));
185
+ $o-value: list.append( $o-value, compact((prefixed-for-transition( -o, $property) $duration $timing-function $delay)...));
183
186
  }
184
187
 
185
188
  @if $experimental-support-for-webkit { -webkit-transition : $webkit-value;
@@ -192,19 +195,19 @@ $transitionable-prefixed-values: transform, transform-origin !default;
192
195
 
193
196
  // coerce a list to be comma delimited or make a new, empty comma delimited list.
194
197
  @function comma-list($list: ()) {
195
- @return join((), $list, comma);
198
+ @return list.join((), $list, comma);
196
199
  }
197
200
 
198
201
  // Returns `$property` with the given prefix if it is found in `$transitionable-prefixed-values`.
199
202
  @function prefixed-for-transition($prefix, $property) {
200
- @if type-of($property) == list {
203
+ @if meta.type-of($property) == list {
201
204
  $new-list: comma-list();
202
205
  @each $v in $property {
203
- $new-list: append($new-list, prefixed-for-transition($prefix, $v));
206
+ $new-list: list.append($new-list, prefixed-for-transition($prefix, $v));
204
207
  }
205
208
  @return $new-list;
206
209
  } @else {
207
- @if index($transitionable-prefixed-values, $property) {
210
+ @if list.index($transitionable-prefixed-values, $property) {
208
211
  @return #{$prefix}-#{$property};
209
212
  } @else {
210
213
  @return $property;
@@ -214,8 +217,8 @@ $transitionable-prefixed-values: transform, transform-origin !default;
214
217
 
215
218
  // Checks if the value given is a unit of time.
216
219
  @function is-time($value) {
217
- @if type-of($value) == number {
218
- @return not(not(index(s ms, unit($value))));
220
+ @if meta.type-of($value) == number {
221
+ @return not(not(list.index(s ms, math.unit($value))));
219
222
  } @else {
220
223
  @return false;
221
224
  }
@@ -62,7 +62,7 @@
62
62
  @for $i from 1 through $font-file-length {
63
63
  @if(not $skip-next) {
64
64
  $font-file: nth($font-files, $i);
65
- $font-file-next: if($i < $font-file-length, nth($font-files, $i + 1), false);
65
+ $font-file-next: if(sass($i < $font-file-length): nth($font-files, $i + 1); else: false);
66
66
 
67
67
  // add font url.
68
68
  $full: $full + 'url("#{$font-path}/#{$font-file}")';
@@ -3,6 +3,8 @@
3
3
  // https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/lists.rb
4
4
  //
5
5
 
6
+ @use "sass:list";
7
+ @use "sass:meta";
6
8
 
7
9
  // compact is part of libsass
8
10
 
@@ -12,9 +14,9 @@
12
14
  $place: 1;
13
15
  }
14
16
  @if $place == "last" {
15
- $place: length($list);
17
+ $place: list.length($list);
16
18
  }
17
- @return nth($list, $place);
19
+ @return list.nth($list, $place);
18
20
  }
19
21
 
20
22
  // compass_list can't be implemented in sass script
@@ -22,7 +24,7 @@
22
24
  @function -compass-space-list($item1, $item2:null, $item3:null, $item4:null, $item5:null, $item6:null, $item7:null, $item8:null, $item9:null) {
23
25
  $items: ();
24
26
  // Support for polymorphism.
25
- @if type-of($item1) == 'list' {
27
+ @if meta.type-of($item1) == 'list' {
26
28
  // Passing a single array of properties.
27
29
  $items: $item1;
28
30
  } @else {
@@ -31,8 +33,8 @@
31
33
 
32
34
  $full: first-value-of($items);
33
35
 
34
- @for $i from 2 through length($items) {
35
- $item: nth($items, $i);
36
+ @for $i from 2 through list.length($items) {
37
+ $item: list.nth($items, $i);
36
38
  @if $item != null {
37
39
  $full: $full $item;
38
40
  }
@@ -42,16 +44,16 @@
42
44
  }
43
45
 
44
46
  @function -compass-list-size($list) {
45
- @return length($list);
47
+ @return list.length($list);
46
48
  }
47
49
 
48
50
  @function -compass-slice($list, $start, $end: false) {
49
51
  @if $end == false {
50
- $end: length($list);
52
+ $end: list.length($list);
51
53
  }
52
- $full: nth($list, $start);
54
+ $full: list.nth($list, $start);
53
55
  @for $i from $start + 1 through $end {
54
- $full: $full, nth($list, $i);
56
+ $full: $full, list.nth($list, $i);
55
57
  }
56
58
  @return $full;
57
59
  }
@@ -61,7 +63,7 @@
61
63
 
62
64
  $full: false;
63
65
  @each $item in $list {
64
- @if index($rejects, $item) {}
66
+ @if list.index($rejects, $item) {}
65
67
  @else {
66
68
  @if $full {
67
69
  $full: $full, $item;
@@ -75,15 +77,15 @@
75
77
  }
76
78
 
77
79
  @function first-value-of($list) {
78
- @return nth($list, 1);
80
+ @return list.nth($list, 1);
79
81
  }
80
82
 
81
83
  @function compact($vars...) {
82
- $separator: list-separator($vars);
84
+ $separator: list.separator($vars);
83
85
  $list: ();
84
86
  @each $var in $vars {
85
87
  @if $var {
86
- $list: append($list, $var, $separator);
88
+ $list: list.append($list, $var, $separator);
87
89
  }
88
90
  }
89
91
  @return $list;
@@ -1,3 +1,4 @@
1
+ @use "sass:math";
1
2
  @import "../layout/grid-background";
2
3
 
3
4
  // The base font size.
@@ -26,7 +27,7 @@ $min-line-padding: 2px !default;
26
27
 
27
28
  // $base-font-size but in your output unit of choice.
28
29
  // Defaults to 1em when `$relative-font-sizing` is true.
29
- $font-unit: if($relative-font-sizing, 1em, $base-font-size) !default;
30
+ $font-unit: if(sass($relative-font-sizing): 1em; else: $base-font-size) !default;
30
31
 
31
32
  // The basic unit of font rhythm.
32
33
  $base-rhythm-unit: calc($base-line-height / $base-font-size * $font-unit);
@@ -41,12 +42,12 @@ $base-half-leader: calc($base-leader / 2);
41
42
 
42
43
  // True if a number has a relative unit.
43
44
  @function relative-unit($number) {
44
- @return unit($number) == "%" or unit($number) == "em" or unit($number) == "rem"
45
+ @return math.unit($number) == "%" or math.unit($number) == "em" or math.unit($number) == "rem"
45
46
  }
46
47
 
47
48
  // True if a number has an absolute unit.
48
49
  @function absolute-unit($number) {
49
- @return not(relative-unit($number) or unitless($number));
50
+ @return not(relative-unit($number) or math.is-unitless($number));
50
51
  }
51
52
 
52
53
  @if $relative-font-sizing and not(relative-unit($font-unit)) {
@@ -63,7 +64,7 @@ $base-half-leader: calc($base-leader / 2);
63
64
  }
64
65
  html {
65
66
  font-size: $font-size;
66
- @include adjust-leading-to(1, if($relative-font-sizing, $font-size, $base-font-size));
67
+ @include adjust-leading-to(1, if(sass($relative-font-sizing): $font-size; else: $base-font-size));
67
68
  }
68
69
  }
69
70
 
@@ -73,7 +74,7 @@ $base-half-leader: calc($base-leader / 2);
73
74
  // @deprecated This mixin will be removed in the next release.
74
75
  // Please use the `adjust-leading-to` mixin instead.
75
76
  @mixin reset-baseline {
76
- @include adjust-leading-to(1, if($relative-font-sizing, $base-font-size, $base-font-size));
77
+ @include adjust-leading-to(1, if(sass($relative-font-sizing): $base-font-size; else: $base-font-size));
77
78
  }
78
79
 
79
80
  // Show a background image that can be used to debug your alignments.
@@ -97,7 +98,7 @@ $base-half-leader: calc($base-leader / 2);
97
98
  @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
98
99
  }
99
100
  font-size: calc($font-unit * $to-size / $from-size);
100
- @include adjust-leading-to($lines, if($relative-font-sizing, $to-size, $base-font-size));
101
+ @include adjust-leading-to($lines, if(sass($relative-font-sizing): $to-size; else: $base-font-size));
101
102
  }
102
103
 
103
104
  // Adjust a block to have different line height to maintain the rhythm.
@@ -119,19 +120,18 @@ $base-half-leader: calc($base-leader / 2);
119
120
  }
120
121
  $rhythm: calc($font-unit * ($lines * $base-line-height - $offset) / $font-size);
121
122
  // Round the pixels down to nearest integer.
122
- @if unit($rhythm) == px {
123
- $rhythm: floor($rhythm);
123
+ @if math.unit($rhythm) == px {
124
+ $rhythm: math.floor($rhythm);
124
125
  }
125
126
  @return $rhythm;
126
127
  }
127
128
 
128
129
  // Calculate the minimum multiple of rhythm units needed to contain the font-size.
129
130
  @function lines-for-font-size($font-size) {
130
- $lines: if($round-to-nearest-half-line,
131
- ceil(2 * $font-size / $base-line-height) / 2,
132
- ceil($font-size / $base-line-height));
131
+ $lines: if(sass($round-to-nearest-half-line): ceil(2 * $font-size / $base-line-height) / 2;
132
+ else: ceil($font-size / $base-line-height));
133
133
  @if $lines * $base-line-height - $font-size < $min-line-padding * 2 {
134
- $lines: $lines + if($round-to-nearest-half-line, 0.5, 1);
134
+ $lines: $lines + if(sass($round-to-nearest-half-line): 0.5; else: 1);
135
135
  }
136
136
  @return $lines;
137
137
  }
@@ -32,7 +32,7 @@ $hide-text-direction: left !default;
32
32
  //
33
33
  // If you set `$inline` to true, then an inline image (data uri) will be used.
34
34
  @mixin replace-text-with-dimensions($img, $x: 50%, $y: 50%, $inline: false) {
35
- @include replace-text(if($inline, inline-image($img), $img), $x, $y);
35
+ @include replace-text(if(sass($inline): inline-image($img); else: $img), $x, $y);
36
36
  width: image-width($img);
37
37
  height: image-height($img);
38
38
  }
@@ -12,7 +12,7 @@ $contrasted-lightness-threshold: 30% !default;
12
12
  $light: $contrasted-light-default,
13
13
  $threshold: $contrasted-lightness-threshold
14
14
  ) {
15
- @return if(lightness($color) < $threshold, $light, $dark)
15
+ @return if(sass(lightness($color) < $threshold): $light; else: $dark)
16
16
  }
17
17
 
18
18
  // Sets the specified background color and calculates a dark or light contrasted text color.