claritas-web-framework 8.5.92 → 8.6.0

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": "claritas-web-framework",
3
- "version": "8.5.92",
3
+ "version": "8.6.0",
4
4
  "description": "The CSS framework built for Claritas front end.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,7 +27,6 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "modern-normalize": "^3.0.1",
30
- "rfs": "^10.0.0",
31
- "sass": "^1.94.2"
30
+ "sass": "^1.95.0"
32
31
  }
33
32
  }
@@ -3,6 +3,5 @@
3
3
  @forward "./helpers/grid";
4
4
  @forward "./helpers/image";
5
5
  @forward "./helpers/link";
6
- @forward "./helpers/rfs";
7
6
  @forward "./helpers/screenReader";
8
7
  @forward "./helpers/wrap";
package/sass/_root.scss CHANGED
@@ -22,9 +22,9 @@
22
22
  --border-color-focus-main: #{$border-color-focus-main};
23
23
  --border-color-disabled-main: #{$border-color-disabled-main};
24
24
 
25
- @if $font-size-root {
26
- @include font-size(var(--root-font-size));
27
- }
25
+ // @if $font-size-root {
26
+ // @include font-size(var(--root-font-size));
27
+ // }
28
28
 
29
29
  @each $key, $value in $grays {
30
30
  --#{$key}: #{$value};
@@ -18,7 +18,8 @@
18
18
  @function breakpoint-next($name, $breakpoints: $breakpoints, $breakpoint-names: map.keys($breakpoints)) {
19
19
  $n: list.index($breakpoint-names, $name);
20
20
 
21
- @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
21
+ // @return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
22
+ @return if(sass($n != null and $n < length($breakpoint-names)): nth($breakpoint-names, $n + 1) ; else: null);
22
23
  }
23
24
 
24
25
  // Minimum breakpoint width. Null for the smallest (first) breakpoint.
@@ -28,7 +29,8 @@
28
29
  @function breakpoint-min($name, $breakpoints: $breakpoints) {
29
30
  $min: map.get($breakpoints, $name);
30
31
 
31
- @return if($min != 0, $min, null);
32
+ // @return if($min != 0, $min, null);
33
+ @return if(sass($min != 0): $min; else: null);
32
34
  }
33
35
 
34
36
  // Maximum breakpoint width. Null for the largest (last) breakpoint.
@@ -43,7 +45,8 @@
43
45
  @function breakpoint-max($name, $breakpoints: $breakpoints) {
44
46
  $next: breakpoint-next($name, $breakpoints);
45
47
 
46
- @return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
48
+ // @return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
49
+ @return if(sass($next): breakpoint-min($next, $breakpoints) - 0.02);
47
50
  }
48
51
 
49
52
  // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
@@ -54,7 +57,8 @@
54
57
  // "-sm"
55
58
 
56
59
  @function breakpoint-infix($name, $breakpoints: $breakpoints) {
57
- @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
60
+ // @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
61
+ @return if(sass(breakpoint-min($name, $breakpoints) == null): "" ; else: "-#{$name}");
58
62
  }
59
63
 
60
64
  // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
@@ -20,10 +20,13 @@
20
20
 
21
21
  @mixin make-col-ready() {
22
22
  // Add box sizing if only the grid is loaded
23
+ // box-sizing: if(
24
+ // meta.global-variable-exists(include-column-box-sizing) and $include-column-box-sizing,
25
+ // border-box,
26
+ // null
27
+ // );
23
28
  box-sizing: if(
24
- meta.global-variable-exists(include-column-box-sizing) and $include-column-box-sizing,
25
- border-box,
26
- null
29
+ sass(meta.global-variable-exists(include-column-box-sizing) and $include-column-box-sizing): border-box; else: null
27
30
  );
28
31
 
29
32
  // Prevent columns from becoming too narrow when at smaller grid tiers by
@@ -59,7 +62,8 @@
59
62
  @mixin make-col-offset($size, $columns: $grid-columns) {
60
63
  $num: math.div($size, $columns);
61
64
 
62
- margin-left: if($num == 0, 0, math.percentage($num));
65
+ // margin-left: if($num == 0, 0, math.percentage($num));
66
+ margin-left: if(sass($num == 0): 0; else: math.percentage($num));
63
67
  }
64
68
 
65
69
  // Row columns
@@ -8,7 +8,10 @@
8
8
  justify-content: flex-start;
9
9
  position: relative;
10
10
 
11
- $group-margin-fallback: if($enable-margins, var(--spacer), 0);
11
+ // $group-margin-fallback: if(sass($enable-margins): var(--spacer); else: 0);
12
+ $group-margin-fallback: if(
13
+ sass($enable-margins): var(--spacer) ; else: 0
14
+ );
12
15
 
13
16
  margin-bottom: var(--group-margin-bottom, #{$group-margin-fallback});
14
17
  }
@@ -46,7 +49,10 @@
46
49
  }
47
50
 
48
51
  @mixin make-grouped-row($element: false) {
49
- $selector: if($element, $element, "*");
52
+ // $selector: if($element, $element, "*");
53
+ $selector: if(
54
+ sass($element): $element; else: "*"
55
+ );
50
56
 
51
57
  flex-wrap: nowrap;
52
58
  gap: 0;
@@ -6,7 +6,10 @@
6
6
  margin: 0;
7
7
  padding: 0;
8
8
 
9
- $list-margin-fallback: if($enable-margins, var(--spacer), 0);
9
+ // $list-margin-fallback: if(sass($enable-margins): var(--spacer); else: 0);
10
+ $list-margin-fallback: if(
11
+ sass($enable-margins): var(--spacer) ; else: 0
12
+ );
10
13
 
11
14
  margin-bottom: var(--list-margin-bottom, #{$list-margin-fallback});
12
15
  }
@@ -20,7 +20,10 @@
20
20
  background: var(--alert-background);
21
21
  position: relative;
22
22
 
23
- $alert-margin-fallback: if($enable-margins, var(--spacer), 0);
23
+ // $alert-margin-fallback: if(sass($enable-margins): var(--spacer); else: 0);
24
+ $alert-margin-fallback: if(
25
+ sass($enable-margins): var(--spacer) ; else: 0
26
+ );
24
27
 
25
28
  margin-bottom: var(--alert-margin-bottom, #{$alert-margin-fallback});
26
29
 
@@ -43,10 +43,11 @@
43
43
  --button-text-decoration: none;
44
44
  --button-hover-text-decoration: none;
45
45
  --button-white-space: #{$button-white-space};
46
+ --button-font-size: #{$button-font-size};
46
47
 
47
- @include rfs($button-font-size, --button-font-size);
48
+ // @include rfs($button-font-size, --button-font-size);
48
49
 
49
- @include font-size(var(--button-font-size));
50
+ // @include font-size(var(--button-font-size));
50
51
 
51
52
  // Variable references
52
53
  background: var(--button-background);
@@ -76,11 +77,13 @@
76
77
  }
77
78
 
78
79
  &.button--large {
80
+ --button-font-size: #{$button-large-font-size};
81
+
79
82
  padding: var(--button-large-padding-y) var(--button-large-padding-x);
80
83
 
81
- @include rfs($button-large-font-size, --button-font-size);
84
+ // @include rfs($button-large-font-size, --button-font-size);
82
85
 
83
- @include font-size(var(--button-font-size));
86
+ // @include font-size(var(--button-font-size));
84
87
 
85
88
  &:not(.button--rounded) {
86
89
  border-radius: var(--button-large-border-radius);
@@ -88,11 +91,13 @@
88
91
  }
89
92
 
90
93
  &.button--small {
94
+ --button-font-size: #{$button-small-font-size};
95
+
91
96
  padding: var(--button-small-padding-y) var(--button-small-padding-x);
92
97
 
93
- @include rfs($button-small-font-size, --button-font-size);
98
+ // @include rfs($button-small-font-size, --button-font-size);
94
99
 
95
- @include font-size(var(--button-font-size));
100
+ // @include font-size(var(--button-font-size));
96
101
 
97
102
  &:not(.button--rounded) {
98
103
  border-radius: var(--button-small-border-radius);
@@ -24,7 +24,9 @@
24
24
  flex: 1 1 auto;
25
25
  position: relative;
26
26
 
27
- $card-margin-fallback: if($enable-margins, var(--spacer), 0);
27
+ $card-margin-fallback: if(
28
+ sass($enable-margins): var(--spacer) ; else: 0
29
+ );
28
30
 
29
31
  margin-bottom: var(--card-margin-bottom, #{$card-margin-fallback});
30
32
 
@@ -4,7 +4,10 @@
4
4
  details {
5
5
  transition: $details-transition;
6
6
 
7
- $details-margin-fallback: if($enable-margins, var(--spacer), 0);
7
+ // $details-margin-fallback: if(sass($enable-margins): var(--spacer); else: 0);
8
+ $details-margin-fallback: if(
9
+ sass($enable-margins): var(--spacer) ; else: 0
10
+ );
8
11
 
9
12
  margin-bottom: var(--details-margin-bottom, #{$details-margin-fallback});
10
13
 
@@ -63,6 +63,7 @@
63
63
  --input-height: auto;
64
64
  --input-desktop-width: 100%;
65
65
  --input-desktop-height: auto;
66
+ --input-font-size: #{$input-font-size};
66
67
 
67
68
  color: var(--input-color);
68
69
  border-width: var(--input-border-width);
@@ -82,9 +83,9 @@
82
83
  transition: $form-transition;
83
84
  position: relative;
84
85
 
85
- @include rfs($input-font-size, --input-font-size);
86
+ // @include rfs($input-font-size, --input-font-size);
86
87
 
87
- @include font-size(var(--input-font-size));
88
+ // @include font-size(var(--input-font-size));
88
89
 
89
90
  @include media-breakpoint-up("desktop") {
90
91
  height: var(--input-desktop-height);
@@ -132,11 +133,13 @@
132
133
  }
133
134
 
134
135
  &.input--small {
136
+ --input-font-size: #{$input-small-font-size};
137
+
135
138
  padding: var(--input-small-padding-y) var(--input-small-padding-x);
136
139
 
137
- @include rfs($input-small-font-size, --input-font-size);
140
+ // @include rfs($input-small-font-size, --input-font-size);
138
141
 
139
- @include font-size(var(--input-font-size));
142
+ // @include font-size(var(--input-font-size));
140
143
 
141
144
  &:not(.input--rounded) {
142
145
  border-radius: var(--input-small-border-radius);
@@ -144,11 +147,13 @@
144
147
  }
145
148
 
146
149
  &.input--large {
150
+ --input-font-size: #{$input-large-font-size};
151
+
147
152
  padding: var(--input-large-padding-y) var(--input-large-padding-x);
148
153
 
149
- @include rfs($input-large-font-size, --input-font-size);
154
+ // @include rfs($input-large-font-size, --input-font-size);
150
155
 
151
- @include font-size(var(--input-font-size));
156
+ // @include font-size(var(--input-font-size));
152
157
 
153
158
  &:not(.input--rounded) {
154
159
  border-radius: var(--input-large-border-radius);
@@ -12,7 +12,9 @@
12
12
  }
13
13
 
14
14
  dl {
15
- $dl-margin-fallback: if($enable-margins, var(--spacer), 0);
15
+ $dl-margin-fallback: if(
16
+ sass($enable-margins): var(--spacer) ; else: 0
17
+ );
16
18
 
17
19
  margin-bottom: var(--dl-margin-bottom, #{$dl-margin-fallback});
18
20
 
@@ -51,7 +53,9 @@ dl {
51
53
  border-radius: var(--border-radius-medium);
52
54
  border: 1px solid var(--border-color-main);
53
55
 
54
- $li-margin-fallback: if($enable-margins, var(--spacer), 0);
56
+ $li-margin-fallback: if(
57
+ sass($enable-margins): var(--spacer) ; else: 0
58
+ );
55
59
 
56
60
  margin-bottom: var(--li-margin-bottom, #{$li-margin-fallback});
57
61
 
@@ -15,10 +15,11 @@
15
15
  --pill-border-width: 1px;
16
16
  --pill-border-style: solid;
17
17
  --pill-font-weight: #{$pill-font-weight};
18
+ --pill-font-size: #{$pill-font-size};
18
19
 
19
- @include rfs($pill-font-size, --pill-font-size);
20
+ // @include rfs($pill-font-size, --pill-font-size);
20
21
 
21
- @include font-size(var(--pill-font-size));
22
+ // @include font-size(var(--pill-font-size));
22
23
 
23
24
  color: var(--pill-color);
24
25
  padding: var(--pill-padding-y) var(--pill-padding-x);
@@ -7,7 +7,9 @@
7
7
  --tabs-border-color: var(--border-color-main);
8
8
  --tabs-background: var(--white);
9
9
 
10
- $tabs-margin-fallback: if($enable-margins, var(--spacer), 0);
10
+ $tabs-margin-fallback: if(
11
+ sass($enable-margins): var(--spacer) ; else: 0
12
+ );
11
13
 
12
14
  margin-bottom: var(--tabs-margin-bottom, #{$tabs-margin-fallback});
13
15
 
@@ -18,10 +18,11 @@
18
18
  --tag-border-radius: var(--border-radius-medium);
19
19
  --tag-round-border-radius: var(--border-radius-round);
20
20
  --tag-font-weight: #{$tag-font-weight};
21
+ --tag-font-size: #{$tag-font-size};
21
22
 
22
- @include rfs($tag-font-size, --tag-font-size);
23
+ // @include rfs($tag-font-size, --tag-font-size);
23
24
 
24
- @include font-size(var(--tag-font-size));
25
+ // @include font-size(var(--tag-font-size));
25
26
 
26
27
  color: var(--tag-color);
27
28
  padding: var(--tag-padding-y) var(--tag-padding-x);
@@ -28,7 +28,9 @@
28
28
  flex: 1 1 auto;
29
29
  position: relative;
30
30
 
31
- $tile-margin-fallback: if($enable-margins, var(--spacer), 0);
31
+ $tile-margin-fallback: if(
32
+ sass($enable-margins): var(--spacer) ; else: 0
33
+ );
32
34
 
33
35
  margin-bottom: var(--tile-margin-bottom, #{$tile-margin-fallback});
34
36
 
@@ -1,303 +0,0 @@
1
- @use "sass:math";
2
- @use "sass:meta";
3
- @use "sass:string";
4
-
5
- // stylelint-disable property-blacklist, scss/dollar-variable-default
6
-
7
- // SCSS RFS mixin
8
- //
9
- // Automated responsive values for font sizes, paddings, margins and much more
10
- //
11
- // Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
12
-
13
- // Configuration
14
-
15
- // Base value
16
- $rfs-base-value: 1.25rem !default;
17
- $rfs-unit: rem !default;
18
-
19
- @if $rfs-unit != rem and $rfs-unit != px {
20
- @error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
21
- }
22
-
23
- // Breakpoint at where values start decreasing if screen width is smaller
24
- $rfs-breakpoint: 1200px !default;
25
- $rfs-breakpoint-unit: px !default;
26
-
27
- @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
28
- @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
29
- }
30
-
31
- // Resize values based on screen height and width
32
- $rfs-two-dimensional: false !default;
33
-
34
- // Factor of decrease
35
- $rfs-factor: 10 !default;
36
-
37
- @if meta.type-of($rfs-factor) != number or $rfs-factor <= 1 {
38
- @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
39
- }
40
-
41
- // Mode. Possibilities: "min-media-query", "max-media-query"
42
- $rfs-mode: min-media-query !default;
43
-
44
- // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
45
- $rfs-class: false !default;
46
-
47
- // 1 rem = $rfs-rem-value px
48
- $rfs-rem-value: 16 !default;
49
-
50
- // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
51
- $rfs-safari-iframe-resize-bug-fix: false !default;
52
-
53
- // Disable RFS by setting $enable-rfs to false
54
- $enable-rfs: true !default;
55
-
56
- // Cache $rfs-base-value unit
57
- $rfs-base-value-unit: math.unit($rfs-base-value);
58
-
59
- // Remove px-unit from $rfs-base-value for calculations
60
- @if $rfs-base-value-unit == px {
61
- $rfs-base-value: math.div($rfs-base-value, $rfs-base-value * 0 + 1);
62
- } @else if $rfs-base-value-unit == rem {
63
- $rfs-base-value: math.div($rfs-base-value, $rfs-base-value * 0 + math.div(1, $rfs-rem-value));
64
- }
65
-
66
- // Cache $rfs-breakpoint unit to prevent multiple calls
67
- $rfs-breakpoint-unit-cache: math.unit($rfs-breakpoint);
68
-
69
- // Remove unit from $rfs-breakpoint for calculations
70
- @if $rfs-breakpoint-unit-cache == px {
71
- $rfs-breakpoint: math.div($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
72
- } @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
73
- $rfs-breakpoint: math.div($rfs-breakpoint, $rfs-breakpoint * 0 + math.div(1, $rfs-rem-value));
74
- }
75
-
76
- // Calculate the media query value
77
- $rfs-mq-value: if(
78
- $rfs-breakpoint-unit == px,
79
- #{$rfs-breakpoint}px,
80
- #{math.div($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit}
81
- );
82
- $rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
83
- $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
84
-
85
- // Internal mixin used to determine which media query needs to be used
86
- @mixin _rfs-media-query {
87
- @if $rfs-two-dimensional {
88
- @if $rfs-mode == max-media-query {
89
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
90
- @content;
91
- }
92
- } @else {
93
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
94
- @content;
95
- }
96
- }
97
- } @else {
98
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
99
- @content;
100
- }
101
- }
102
- }
103
-
104
- // Internal mixin that adds disable classes to the selector if needed.
105
- @mixin _rfs-rule {
106
- @if $rfs-class == disable and $rfs-mode == max-media-query {
107
- // Adding an extra class increases specificity, which prevents the media query to override the property
108
- &,
109
- .disable-rfs &,
110
- &.disable-rfs {
111
- @content;
112
- }
113
- } @else if $rfs-class == enable and $rfs-mode == min-media-query {
114
- .enable-rfs &,
115
- &.enable-rfs {
116
- @content;
117
- }
118
- } @else {
119
- @content;
120
- }
121
- }
122
-
123
- // Internal mixin that adds enable classes to the selector if needed.
124
- @mixin _rfs-media-query-rule {
125
- @if $rfs-class == enable {
126
- @if $rfs-mode == min-media-query {
127
- @content;
128
- }
129
-
130
- @include _rfs-media-query {
131
- .enable-rfs &,
132
- &.enable-rfs {
133
- @content;
134
- }
135
- }
136
- } @else {
137
- @if $rfs-class == disable and $rfs-mode == min-media-query {
138
- .disable-rfs &,
139
- &.disable-rfs {
140
- @content;
141
- }
142
- }
143
- @include _rfs-media-query {
144
- @content;
145
- }
146
- }
147
- }
148
-
149
- // Helper function to get the formatted non-responsive value
150
- @function rfs-value($values) {
151
- // Convert to list
152
- $values: if(meta.type-of($values) != list, ($values), $values);
153
-
154
- $val: "";
155
-
156
- // Loop over each value and calculate value
157
- @each $value in $values {
158
- @if $value == 0 {
159
- $val: $val + " 0";
160
- } @else {
161
- // Cache $value unit
162
- $unit: if(meta.type-of($value) == "number", math.unit($value), false);
163
-
164
- @if $unit == px {
165
- // Convert to rem if needed
166
- $val: $val + " " + if($rfs-unit == rem, #{math.div($value, $value * 0 + $rfs-rem-value)}rem, $value);
167
- } @else if $unit == rem {
168
- // Convert to px if needed
169
- $val: $val + " " + if($rfs-unit == px, #{math.div($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
170
- } @else {
171
- // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
172
- $val: $val + " " + $value;
173
- }
174
- }
175
- }
176
-
177
- // Remove first space
178
- @return string.unquote(string.slice($val, 2));
179
- }
180
-
181
- // Helper function to get the responsive value calculated by RFS
182
- @function rfs-fluid-value($values) {
183
- // Convert to list
184
- $values: if(meta.type-of($values) != list, ($values), $values);
185
-
186
- $val: "";
187
-
188
- // Loop over each value and calculate value
189
- @each $value in $values {
190
- @if $value == 0 {
191
- $val: $val + " 0";
192
- } @else {
193
- // Cache $value unit
194
- $unit: if(meta.type-of($value) == "number", math.unit($value), false);
195
-
196
- // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
197
- @if not $unit or $unit != px and $unit != rem {
198
- $val: $val + " " + $value;
199
- } @else {
200
- // Remove unit from $value for calculations
201
- $value: math.div($value, $value * 0 + if($unit == px, 1, math.div(1, $rfs-rem-value)));
202
-
203
- // Only add the media query if the value is greater than the minimum value
204
- @if math.abs($value) <= $rfs-base-value or not $enable-rfs {
205
- $val: $val + " " + if($rfs-unit == rem, #{math.div($value, $rfs-rem-value)}rem, #{$value}px);
206
- } @else {
207
- // Calculate the minimum value
208
- $value-min: $rfs-base-value + math.div(math.abs($value) - $rfs-base-value, $rfs-factor);
209
-
210
- // Calculate difference between $value and the minimum value
211
- $value-diff: math.abs($value) - $value-min;
212
-
213
- // Base value formatting
214
- $min-width: if($rfs-unit == rem, #{math.div($value-min, $rfs-rem-value)}rem, #{$value-min}px);
215
-
216
- // Use negative value if needed
217
- $min-width: if($value < 0, -$min-width, $min-width);
218
-
219
- // Use `vmin` if two-dimensional is enabled
220
- $variable-unit: if($rfs-two-dimensional, vmin, vw);
221
-
222
- // Calculate the variable width between 0 and $rfs-breakpoint
223
- $variable-width: #{math.div($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
224
-
225
- // Return the calculated value
226
- $val: $val + " calc(" + $min-width + if($value < 0, " - ", " + ") + $variable-width + ")";
227
- }
228
- }
229
- }
230
- }
231
-
232
- // Remove first space
233
- @return string.unquote(string.slice($val, 2));
234
- }
235
-
236
- // RFS mixin
237
- @mixin rfs($values, $property: font-size) {
238
- @if $values != null {
239
- $val: rfs-value($values);
240
- $fluidVal: rfs-fluid-value($values);
241
-
242
- // Do not print the media query if responsive & non-responsive values are the same
243
- @if $val == $fluidVal {
244
- #{$property}: $val;
245
- } @else {
246
- @include _rfs-rule {
247
- #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
248
-
249
- // Include safari iframe resize fix if needed
250
- min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
251
- }
252
-
253
- @include _rfs-media-query-rule {
254
- #{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
255
- }
256
- }
257
- }
258
- }
259
-
260
- // Shorthand helper mixins
261
- @mixin font-size($value) {
262
- @include rfs($value);
263
- }
264
-
265
- @mixin padding($value) {
266
- @include rfs($value, padding);
267
- }
268
-
269
- @mixin padding-top($value) {
270
- @include rfs($value, padding-top);
271
- }
272
-
273
- @mixin padding-right($value) {
274
- @include rfs($value, padding-right);
275
- }
276
-
277
- @mixin padding-bottom($value) {
278
- @include rfs($value, padding-bottom);
279
- }
280
-
281
- @mixin padding-left($value) {
282
- @include rfs($value, padding-left);
283
- }
284
-
285
- @mixin margin($value) {
286
- @include rfs($value, margin);
287
- }
288
-
289
- @mixin margin-top($value) {
290
- @include rfs($value, margin-top);
291
- }
292
-
293
- @mixin margin-right($value) {
294
- @include rfs($value, margin-right);
295
- }
296
-
297
- @mixin margin-bottom($value) {
298
- @include rfs($value, margin-bottom);
299
- }
300
-
301
- @mixin margin-left($value) {
302
- @include rfs($value, margin-left);
303
- }