@cfx-dev/ui-components 2.0.5 → 2.0.6

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.
@@ -319,3 +319,26 @@ $zindexMap: (
319
319
  @function zindex($index) {
320
320
  @return map.get($zindexMap, $index);
321
321
  }
322
+
323
+ $mediaMap: (
324
+ 'xsmall': 360px,
325
+ 'small': 768px,
326
+ 'medium': 1024px,
327
+ 'large': 1300px,
328
+ );
329
+
330
+ @mixin media-max($size: 'medium', $fix: 'empty') {
331
+ @if $fix == 'empty' {
332
+ @media (min-width: calc(map.get($mediaMap, $size) - 1px)) { @content; }
333
+ } @else {
334
+ @media (min-width: $fix) { @content; }
335
+ }
336
+ }
337
+
338
+ @mixin media-min($size: 'medium', $fix: 'empty') {
339
+ @if $fix == 'empty' {
340
+ @media (min-width: map.get($mediaMap, $size)) { @content; }
341
+ } @else {
342
+ @media (min-width: $fix) { @content; }
343
+ }
344
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "2.0.5",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",