@nulllogic/scssleon 1.0.39 → 1.1.1

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.
@@ -1,15 +0,0 @@
1
- @use 'sass:map';
2
-
3
- // Utility generator
4
- // Used to generate utilities & print utilities
5
- @mixin generate-utility($property, $settings) {
6
- $class : map.get($settings, 'property');
7
- $values : map.get($settings, 'values');
8
- $suffix : map.get($settings, 'suffix');
9
-
10
- @each $name, $value in $values {
11
- .#{$name} {
12
- #{$property} : #{$value};
13
- }
14
- }
15
- }
@@ -1,17 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../../functions' as functions;
4
-
5
- // Media that add color variables
6
-
7
- @mixin generate-color-scheme($schema) {
8
- @if $schema == 'light' {
9
- @media (prefers-color-scheme: light) {
10
- @content
11
- }
12
- } @else if $schema == 'dark' {
13
- @media (prefers-color-scheme: dark) {
14
- @content
15
- }
16
- }
17
- }
@@ -1,16 +0,0 @@
1
- @use "sass:map";
2
- @use "../../functions" as functions;
3
-
4
- @mixin generate-wrapper($config) {
5
- /* Wrapper class variables assigment */
6
- $is_wrapper_enabled: functions.get-config($config, "enable.wrapper");
7
- $wrapper_class: functions.get-config($config, "wrapper-class");
8
-
9
- @if $is_wrapper_enabled {
10
- .#{$wrapper_class} {
11
- @content;
12
- }
13
- } @else {
14
- @content;
15
- }
16
- }
@@ -1,24 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../functions' as functions;
4
- @use '../mixins' as mixins;
5
- @use '../utilities' as utilities;
6
-
7
- $config: nil !default;
8
- $theme: nil !default;
9
-
10
- $grid-breakpoints: functions.get-config($config, 'grid-breakpoints');
11
-
12
- // Loop over each breakpoint
13
- @each $property, $settings in utilities.$utilities {
14
- @include mixins.generate-utility($property, $settings);
15
- }
16
-
17
- // Print utilities
18
- @media print {
19
- // @each $key, $utility in utilities.$utilities {
20
- // @if type-of($utility) == "map" and map-get($utility, print) == true {
21
- // @include mixins.generate-utility($utility, "-print");
22
- // }
23
- // }
24
- }