mediacube-ui-v2 0.0.189 → 0.0.190

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.
@@ -123,7 +123,11 @@
123
123
  $i: 1;
124
124
 
125
125
  @each $key, $value in $map {
126
- $sep: if($i < length($map), ", ", "");
126
+ @if $i < length($map) {
127
+ $sep: ", ";
128
+ } @else {
129
+ $sep: "";
130
+ }
127
131
  $output: $output + "#{$key}#{$sep}#{available-names($value, $level + 1)}";
128
132
  $i: $i + 1;
129
133
  }
@@ -61,7 +61,11 @@
61
61
 
62
62
  @mixin responsive-font($responsive, $min, $max: false, $fallback: false) {
63
63
  $responsive-unitless: calc(#{$responsive} / (#{$responsive} - #{$responsive} + 1));
64
- $dimension: if(unit($responsive) == 'vh', 'height', 'width');
64
+ @if unit($responsive) == 'vh' {
65
+ $dimension: 'height';
66
+ } @else {
67
+ $dimension: 'width';
68
+ }
65
69
  $min-breakpoint: calc(#{$min} / #{$responsive-unitless} * 100);
66
70
 
67
71
  @media (max-#{$dimension}: #{$min-breakpoint}) {
@@ -218,14 +222,26 @@
218
222
 
219
223
  @mixin default-link($main-color: $color-black, $second-color: $color-purple, $is-important: false) {
220
224
  & {
221
- color: $main-color if($is-important, !important, null);
225
+ @if $is-important {
226
+ color: $main-color !important;
227
+ } @else {
228
+ color: $main-color;
229
+ }
222
230
  }
223
231
  &:hover,
224
232
  &:focus {
225
- color: $second-color if($is-important, !important, null);
233
+ @if $is-important {
234
+ color: $second-color !important;
235
+ } @else {
236
+ color: $second-color;
237
+ }
226
238
  }
227
239
  &:active {
228
- color: sasscolor.adjust($second-color, $lightness: 8%) if($is-important, !important, null);
240
+ @if $is-important {
241
+ color: sasscolor.adjust($second-color, $lightness: 8%) !important;
242
+ } @else {
243
+ color: sasscolor.adjust($second-color, $lightness: 8%);
244
+ }
229
245
  }
230
246
  }
231
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui-v2",
3
- "version": "0.0.189",
3
+ "version": "0.0.190",
4
4
  "license": "MIT",
5
5
  "description": "Design system for Mediacube services",
6
6
  "keywords": [