beathers 5.7.3 → 5.7.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.
@@ -1,146 +1,146 @@
1
- @use '../settings/index' as settings;
2
- @use '../variables' as vars;
3
-
4
- // Definitions
5
- $useLoader: if(vars.$useLoader != null, vars.$useLoader, settings.$useLoader);
6
-
7
-
8
- $dialogInline: (
9
- height: 100dvh,
10
- transition: all 300ms ease-in-out,
11
- );
12
-
13
- $dialogBlock: (
14
- transform: translateX(-50%),
15
- max-width: 95%,
16
- max-height: 95%,
17
- transition: all 300ms ease-in-out,
18
- );
19
-
20
- $dialogCenter: (
21
- transform: translate(-50%, -50%),
22
- max-width: 95%,
23
- max-height: 95%,
24
- transition: all 300ms cubic-bezier(0, 2.5, 1, 1),
25
- );
26
-
27
- $dialogPositions: (
28
- 'top': (
29
- origin: (
30
- top: -150%,
31
- left: 50%,
32
- ),
33
- active: (
34
- top: 2.5%,
35
- ),
36
- ),
37
- 'bottom': (
38
- origin: (
39
- bottom: -150%,
40
- left: 50%,
41
- ),
42
- active: (
43
- bottom: 2.5%,
44
- ),
45
- ),
46
- 'left': (
47
- origin: (
48
- top: 0,
49
- left: -100%,
50
- right: unset,
51
- ),
52
- active: (
53
- left: 0,
54
- ),
55
- ),
56
- 'start': (
57
- origin: (
58
- top: 0,
59
- inset-inline-start: -100%,
60
- inset-inline-end: unset,
61
- ),
62
- active: (
63
- inset-inline-start: 0,
64
- ),
65
- ),
66
- 'right': (
67
- origin: (
68
- top: 0,
69
- right: -100%,
70
- left: unset,
71
- ),
72
- active: (
73
- right: 0,
74
- ),
75
- ),
76
- 'end': (
77
- origin: (
78
- top: 0,
79
- inset-inline-end: -100%,
80
- inset-inline-start: unset,
81
- ),
82
- active: (
83
- inset-inline-end: 0,
84
- ),
85
- ),
86
- 'center': (
87
- origin: (
88
- top: 150%,
89
- left: 50%,
90
- ),
91
- active: (
92
- top: 50%,
93
- ),
94
- ),
95
- );
96
-
97
- .dialog {
98
- --dialog-width: 400px;
99
- --dialog-min-width: 380px;
100
-
101
- position: fixed;
102
- border: unset;
103
- overflow-y: auto;
104
- z-index: 2000;
105
- pointer-events: none;
106
- opacity: 0;
107
-
108
- &.active {
109
- pointer-events: all;
110
- opacity: 1;
111
- }
112
-
113
- @each $position, $modes in $dialogPositions {
114
- &.#{$position} {
115
- min-width: var(--dialog-min-width);
116
-
117
- @if $position == 'center' {
118
- @each $posProp, $posValue in $dialogCenter {
119
- #{$posProp}: $posValue;
120
- }
121
- } @else if $position == 'left' or $position == 'right' or $position == 'start' or $position == 'end' {
122
- @each $posProp, $posValue in $dialogInline {
123
- #{$posProp}: $posValue;
124
- }
125
-
126
- width: var(--dialog-width);
127
- } @else if $position == 'top' or $position == 'bottom' {
128
- @each $posProp, $posValue in $dialogBlock {
129
- #{$posProp}: $posValue;
130
- }
131
- }
132
-
133
- @each $mode, $values in $modes {
134
- @each $prop, $value in $values {
135
- @if $mode == 'active' {
136
- &.active {
137
- #{$prop}: $value;
138
- }
139
- } @else {
140
- #{$prop}: $value;
141
- }
142
- }
143
- }
144
- }
145
- }
146
- }
1
+ @use '../settings/index' as settings;
2
+ @use '../variables' as vars;
3
+
4
+ // Definitions
5
+ $useLoader: if(vars.$useLoader != null, vars.$useLoader, settings.$useLoader);
6
+
7
+
8
+ $dialogInline: (
9
+ height: 100dvh,
10
+ transition: all 300ms ease-in-out,
11
+ );
12
+
13
+ $dialogBlock: (
14
+ transform: translateX(-50%),
15
+ max-width: 95%,
16
+ max-height: 95%,
17
+ transition: all 300ms ease-in-out,
18
+ );
19
+
20
+ $dialogCenter: (
21
+ transform: translate(-50%, -50%),
22
+ max-width: 95%,
23
+ max-height: 95%,
24
+ transition: all 300ms cubic-bezier(0, 2.5, 1, 1),
25
+ );
26
+
27
+ $dialogPositions: (
28
+ 'top': (
29
+ origin: (
30
+ top: -150%,
31
+ left: 50%,
32
+ ),
33
+ active: (
34
+ top: 2.5%,
35
+ ),
36
+ ),
37
+ 'bottom': (
38
+ origin: (
39
+ bottom: -150%,
40
+ left: 50%,
41
+ ),
42
+ active: (
43
+ bottom: 2.5%,
44
+ ),
45
+ ),
46
+ 'left': (
47
+ origin: (
48
+ top: 0,
49
+ left: -100%,
50
+ right: unset,
51
+ ),
52
+ active: (
53
+ left: 0,
54
+ ),
55
+ ),
56
+ 'start': (
57
+ origin: (
58
+ top: 0,
59
+ inset-inline-start: -100%,
60
+ inset-inline-end: unset,
61
+ ),
62
+ active: (
63
+ inset-inline-start: 0,
64
+ ),
65
+ ),
66
+ 'right': (
67
+ origin: (
68
+ top: 0,
69
+ right: -100%,
70
+ left: unset,
71
+ ),
72
+ active: (
73
+ right: 0,
74
+ ),
75
+ ),
76
+ 'end': (
77
+ origin: (
78
+ top: 0,
79
+ inset-inline-end: -100%,
80
+ inset-inline-start: unset,
81
+ ),
82
+ active: (
83
+ inset-inline-end: 0,
84
+ ),
85
+ ),
86
+ 'center': (
87
+ origin: (
88
+ top: 150%,
89
+ left: 50%,
90
+ ),
91
+ active: (
92
+ top: 50%,
93
+ ),
94
+ ),
95
+ );
96
+
97
+ .dialog {
98
+ --dialog-width: 400px;
99
+ --dialog-min-width: 380px;
100
+
101
+ position: fixed;
102
+ border: unset;
103
+ overflow-y: auto;
104
+ z-index: 2000;
105
+ pointer-events: none;
106
+ opacity: 0;
107
+
108
+ &.active {
109
+ pointer-events: all;
110
+ opacity: 1;
111
+ }
112
+
113
+ @each $position, $modes in $dialogPositions {
114
+ &.#{$position} {
115
+ min-width: var(--dialog-min-width);
116
+
117
+ @if $position == 'center' {
118
+ @each $posProp, $posValue in $dialogCenter {
119
+ #{$posProp}: $posValue;
120
+ }
121
+ } @else if $position == 'left' or $position == 'right' or $position == 'start' or $position == 'end' {
122
+ @each $posProp, $posValue in $dialogInline {
123
+ #{$posProp}: $posValue;
124
+ }
125
+
126
+ width: var(--dialog-width);
127
+ } @else if $position == 'top' or $position == 'bottom' {
128
+ @each $posProp, $posValue in $dialogBlock {
129
+ #{$posProp}: $posValue;
130
+ }
131
+ }
132
+
133
+ @each $mode, $values in $modes {
134
+ @each $prop, $value in $values {
135
+ @if $mode == 'active' {
136
+ &.active {
137
+ #{$prop}: $value;
138
+ }
139
+ } @else {
140
+ #{$prop}: $value;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
@@ -1,80 +1,80 @@
1
- @use 'sass:map';
2
- @use '../functions/colors' as colors;
3
- @use '../settings/index' as settings;
4
- @use '../settings/defaults' as defs;
5
- @use '../variables' as vars;
6
-
7
- // Definitions
8
- $useGlass: if(vars.$useGlass != null, vars.$useGlass, settings.$useGlass);
9
- $useColorsLightMode: if(vars.$useColorsLightMode != null, vars.$useColorsLightMode, settings.$useColorsLightMode);
10
- $useColorsDarkMode: if(vars.$useColorsDarkMode != null, vars.$useColorsDarkMode, settings.$useColorsDarkMode);
11
- $glassBlur: if(vars.$glassBlur != null, vars.$glassBlur, defs.$glassBlur);
12
- $glassColor: if(vars.$glassColor != null, vars.$glassColor, defs.$glassColor);
13
- $glassBorderThickness: if(vars.$glassBorderThickness != null, vars.$glassBorderThickness, defs.$glassBorderThickness);
14
- $glassBorder1Color: if(vars.$glassBorder1Color != null, vars.$glassBorder1Color, defs.$glassBorder1Color);
15
- $glassBorder2Color: if(vars.$glassBorder2Color != null, vars.$glassBorder2Color, defs.$glassBorder2Color);
16
- $glassLightAngle: if(vars.$glassLightAngle != null, vars.$glassLightAngle, defs.$glassLightAngle);
17
-
18
- @if $useGlass {
19
- $glassColorLight: colors.hexToRgba(map.get($glassColor, 'light'), 0.15, 'Glass.light');
20
- $glassColorDark: colors.hexToRgba(map.get($glassColor, 'dark'), 0.15, 'Glass.dark');
21
- $glassBorder1ColorLight: colors.hexToRgba(map.get($glassBorder1Color, 'light'), 0.4, 'Glass.light');
22
- $glassBorder1ColorDark: colors.hexToRgba(map.get($glassBorder1Color, 'dark'), 0.4, 'Glass.dark');
23
- $glassBorder2ColorLight: colors.hexToRgba(map.get($glassBorder2Color, 'light'), 0.4, 'Glass.light');
24
- $glassBorder2ColorDark: colors.hexToRgba(map.get($glassBorder2Color, 'dark'), 0.4, 'Glass.dark');
25
-
26
- .bg\:glass {
27
- position: relative;
28
- isolation: isolate;
29
- backdrop-filter: blur(var(--glass-blur, $glassBlur));
30
-
31
- &::before {
32
- content: '';
33
- position: absolute;
34
- inset: 0;
35
- border-radius: inherit;
36
- border: var(--glass-border-thickness, $glassBorderThickness) solid transparent;
37
- mask:
38
- linear-gradient(black, black) border-box,
39
- linear-gradient(black, black) padding-box;
40
- mask-composite: subtract;
41
- z-index: -1;
42
- }
43
-
44
- @if ($useColorsLightMode) {
45
- .light &,
46
- .light\:#{&},
47
- &.light {
48
- background: var(--glass-color-light, $glassColorLight);
49
-
50
- &::before {
51
- background: linear-gradient(
52
- var(--glass-light-angle, $glassLightAngle),
53
- var(--glass-border-2-color-light, $glassBorder2ColorLight),
54
- var(--glass-border-1-color-light, $glassBorder1ColorLight),
55
- var(--glass-border-2-color-light, $glassBorder2ColorLight)
56
- )
57
- border-box;
58
- }
59
- }
60
- }
61
-
62
- @if ($useColorsDarkMode) {
63
- .dark &,
64
- .dark\:#{&},
65
- &.dark {
66
- background: var(--glass-color-dark, $glassColorDark);
67
-
68
- &::before {
69
- background: linear-gradient(
70
- var(--glass-light-angle, $glassLightAngle),
71
- var(--glass-border-2-color-dark, $glassBorder2ColorDark),
72
- var(--glass-border-1-color-dark, $glassBorder1ColorDark),
73
- var(--glass-border-2-color-dark, $glassBorder2ColorDark)
74
- )
75
- border-box;
76
- }
77
- }
78
- }
79
- }
80
- }
1
+ @use 'sass:map';
2
+ @use '../functions/colors' as colors;
3
+ @use '../settings/index' as settings;
4
+ @use '../settings/defaults' as defs;
5
+ @use '../variables' as vars;
6
+
7
+ // Definitions
8
+ $useGlass: if(vars.$useGlass != null, vars.$useGlass, settings.$useGlass);
9
+ $useColorsLightMode: if(vars.$useColorsLightMode != null, vars.$useColorsLightMode, settings.$useColorsLightMode);
10
+ $useColorsDarkMode: if(vars.$useColorsDarkMode != null, vars.$useColorsDarkMode, settings.$useColorsDarkMode);
11
+ $glassBlur: if(vars.$glassBlur != null, vars.$glassBlur, defs.$glassBlur);
12
+ $glassColor: if(vars.$glassColor != null, vars.$glassColor, defs.$glassColor);
13
+ $glassBorderThickness: if(vars.$glassBorderThickness != null, vars.$glassBorderThickness, defs.$glassBorderThickness);
14
+ $glassBorder1Color: if(vars.$glassBorder1Color != null, vars.$glassBorder1Color, defs.$glassBorder1Color);
15
+ $glassBorder2Color: if(vars.$glassBorder2Color != null, vars.$glassBorder2Color, defs.$glassBorder2Color);
16
+ $glassLightAngle: if(vars.$glassLightAngle != null, vars.$glassLightAngle, defs.$glassLightAngle);
17
+
18
+ @if $useGlass {
19
+ $glassColorLight: colors.hexToRgba(map.get($glassColor, 'light'), 0.15, 'Glass.light');
20
+ $glassColorDark: colors.hexToRgba(map.get($glassColor, 'dark'), 0.15, 'Glass.dark');
21
+ $glassBorder1ColorLight: colors.hexToRgba(map.get($glassBorder1Color, 'light'), 0.4, 'Glass.light');
22
+ $glassBorder1ColorDark: colors.hexToRgba(map.get($glassBorder1Color, 'dark'), 0.4, 'Glass.dark');
23
+ $glassBorder2ColorLight: colors.hexToRgba(map.get($glassBorder2Color, 'light'), 0.4, 'Glass.light');
24
+ $glassBorder2ColorDark: colors.hexToRgba(map.get($glassBorder2Color, 'dark'), 0.4, 'Glass.dark');
25
+
26
+ .bg\:glass {
27
+ position: relative;
28
+ isolation: isolate;
29
+ backdrop-filter: blur(var(--glass-blur, $glassBlur));
30
+
31
+ &::before {
32
+ content: '';
33
+ position: absolute;
34
+ inset: 0;
35
+ border-radius: inherit;
36
+ border: var(--glass-border-thickness, $glassBorderThickness) solid transparent;
37
+ mask:
38
+ linear-gradient(black, black) border-box,
39
+ linear-gradient(black, black) padding-box;
40
+ mask-composite: subtract;
41
+ z-index: -1;
42
+ }
43
+
44
+ @if ($useColorsLightMode) {
45
+ .light &,
46
+ .light\:#{&},
47
+ &.light {
48
+ background: var(--glass-color-light, $glassColorLight);
49
+
50
+ &::before {
51
+ background: linear-gradient(
52
+ var(--glass-light-angle, $glassLightAngle),
53
+ var(--glass-border-2-color-light, $glassBorder2ColorLight),
54
+ var(--glass-border-1-color-light, $glassBorder1ColorLight),
55
+ var(--glass-border-2-color-light, $glassBorder2ColorLight)
56
+ )
57
+ border-box;
58
+ }
59
+ }
60
+ }
61
+
62
+ @if ($useColorsDarkMode) {
63
+ .dark &,
64
+ .dark\:#{&},
65
+ &.dark {
66
+ background: var(--glass-color-dark, $glassColorDark);
67
+
68
+ &::before {
69
+ background: linear-gradient(
70
+ var(--glass-light-angle, $glassLightAngle),
71
+ var(--glass-border-2-color-dark, $glassBorder2ColorDark),
72
+ var(--glass-border-1-color-dark, $glassBorder1ColorDark),
73
+ var(--glass-border-2-color-dark, $glassBorder2ColorDark)
74
+ )
75
+ border-box;
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
@@ -1,95 +1,95 @@
1
- @use '../functions/mediaQueries' as mQ;
2
- @use '../settings/configs' as configs;
3
- @use '../functions/validations' as val;
4
- @use '../settings/index' as settings;
5
- @use '../functions/others' as func;
6
- @use '../variables' as vars;
7
-
8
- // Definitions
9
- $useGrid: if(vars.$useGrid != null, vars.$useGrid, settings.$useGrid);
10
- $useFlex: if(vars.$useFlex != null, vars.$useFlex, settings.$useFlex);
11
- $useGridMediaQueries: if(vars.$useGridMediaQueries != null, vars.$useGridMediaQueries, settings.$useGridMediaQueries);
12
-
13
- @if $useGrid {
14
- .grid {
15
- display: grid;
16
-
17
- @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
18
- @include func.gridDivision(column, $size, $divider);
19
- @include func.gridDivision(row, $size, $divider);
20
- }
21
- }
22
- }
23
-
24
- @if $useFlex {
25
- .flex {
26
- display: flex;
27
- flex-direction: row;
28
- flex-wrap: wrap;
29
-
30
- @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
31
- @each $property, $values in configs.$flexProperties {
32
- // Validate parameters
33
- $checkedProperty: val.listItem((flex-wrap, flex-direction), $property, 'flex.properties');
34
-
35
- @each $value in $values {
36
- // Validate parameters
37
- $checkedProperty: val.listItem(
38
- (wrap, nowrap, row, row-reverse, column, column-reverse),
39
- $value,
40
- 'flex.properties.values'
41
- );
42
-
43
- $mainClass: if($size, #{$size}#{$divider}#{$value}, $value);
44
-
45
- &.#{$mainClass} {
46
- #{$property}: if($size, $value !important, $value);
47
- }
48
- }
49
- }
50
-
51
- &.flex-wrapper {
52
- &.row,
53
- &.row-reverse {
54
- @include func.flexDivision(width, 'cols', $size, $divider);
55
- @include func.flexDivision(width, 'col', $size, $divider);
56
- }
57
-
58
- &.column,
59
- &.column-reverse {
60
- @include func.flexDivision(height, 'rows', $size, $divider);
61
- @include func.flexDivision(height, 'row', $size, $divider);
62
- }
63
- }
64
- }
65
- }
66
- }
67
-
68
- @if $useFlex or $useGrid {
69
- @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
70
- @each $way, $selections in configs.$justify {
71
- @each $selection, $properties in $selections {
72
- @each $property in $properties {
73
- $mainClass: if($size, '#{$size}#{$divider}#{$way}-#{$selection}#{\:}', '#{$way}-#{$selection}#{\:}');
74
-
75
- .#{$mainClass} {
76
- $prefix: if($property == 'around' or $property == 'between' or $property == 'evenly', 'space-', '');
77
- $flexPrefix: if($property == 'start' or $property == 'end', 'flex-', '');
78
- $value: #{$prefix}#{$property};
79
- $flexValue: #{$flexPrefix}#{$value};
80
-
81
- &#{$property} {
82
- &.flex,
83
- &.d-flex,
84
- &.d-inline-flex {
85
- #{$way}-#{$selection}: if($size, $flexValue !important, $flexValue);
86
- }
87
-
88
- #{$way}-#{$selection}: if($size, $value !important, $value);
89
- }
90
- }
91
- }
92
- }
93
- }
94
- }
95
- }
1
+ @use '../functions/mediaQueries' as mQ;
2
+ @use '../settings/configs' as configs;
3
+ @use '../functions/validations' as val;
4
+ @use '../settings/index' as settings;
5
+ @use '../functions/others' as func;
6
+ @use '../variables' as vars;
7
+
8
+ // Definitions
9
+ $useGrid: if(vars.$useGrid != null, vars.$useGrid, settings.$useGrid);
10
+ $useFlex: if(vars.$useFlex != null, vars.$useFlex, settings.$useFlex);
11
+ $useGridMediaQueries: if(vars.$useGridMediaQueries != null, vars.$useGridMediaQueries, settings.$useGridMediaQueries);
12
+
13
+ @if $useGrid {
14
+ .grid {
15
+ display: grid;
16
+
17
+ @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
18
+ @include func.gridDivision(column, $size, $divider);
19
+ @include func.gridDivision(row, $size, $divider);
20
+ }
21
+ }
22
+ }
23
+
24
+ @if $useFlex {
25
+ .flex {
26
+ display: flex;
27
+ flex-direction: row;
28
+ flex-wrap: wrap;
29
+
30
+ @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
31
+ @each $property, $values in configs.$flexProperties {
32
+ // Validate parameters
33
+ $checkedProperty: val.listItem((flex-wrap, flex-direction), $property, 'flex.properties');
34
+
35
+ @each $value in $values {
36
+ // Validate parameters
37
+ $checkedProperty: val.listItem(
38
+ (wrap, nowrap, row, row-reverse, column, column-reverse),
39
+ $value,
40
+ 'flex.properties.values'
41
+ );
42
+
43
+ $mainClass: if($size, #{$size}#{$divider}#{$value}, $value);
44
+
45
+ &.#{$mainClass} {
46
+ #{$property}: if($size, $value !important, $value);
47
+ }
48
+ }
49
+ }
50
+
51
+ &.flex-wrapper {
52
+ &.row,
53
+ &.row-reverse {
54
+ @include func.flexDivision(width, 'cols', $size, $divider);
55
+ @include func.flexDivision(width, 'col', $size, $divider);
56
+ }
57
+
58
+ &.column,
59
+ &.column-reverse {
60
+ @include func.flexDivision(height, 'rows', $size, $divider);
61
+ @include func.flexDivision(height, 'row', $size, $divider);
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ @if $useFlex or $useGrid {
69
+ @include mQ.multiSizes($useGridMediaQueries) using ($size, $divider) {
70
+ @each $way, $selections in configs.$justify {
71
+ @each $selection, $properties in $selections {
72
+ @each $property in $properties {
73
+ $mainClass: if($size, '#{$size}#{$divider}#{$way}-#{$selection}#{\:}', '#{$way}-#{$selection}#{\:}');
74
+
75
+ .#{$mainClass} {
76
+ $prefix: if($property == 'around' or $property == 'between' or $property == 'evenly', 'space-', '');
77
+ $flexPrefix: if($property == 'start' or $property == 'end', 'flex-', '');
78
+ $value: #{$prefix}#{$property};
79
+ $flexValue: #{$flexPrefix}#{$value};
80
+
81
+ &#{$property} {
82
+ &.flex,
83
+ &.d-flex,
84
+ &.d-inline-flex {
85
+ #{$way}-#{$selection}: if($size, $flexValue !important, $flexValue);
86
+ }
87
+
88
+ #{$way}-#{$selection}: if($size, $value !important, $value);
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }