beathers 5.6.2 → 5.7.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.
@@ -0,0 +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
+ }
@@ -0,0 +1,61 @@
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
+ $useColorsLightMode: if(vars.$useColorsLightMode != null, vars.$useColorsLightMode, settings.$useColorsLightMode);
7
+ $useColorsDarkMode: if(vars.$useColorsDarkMode != null, vars.$useColorsDarkMode, settings.$useColorsDarkMode);
8
+ $loaderColorMain: if(vars.$loaderColorMain != null, vars.$loaderColorMain, defs.$loaderColorMain);
9
+ $loaderColorSecond: if(vars.$loaderColorSecond != null, vars.$loaderColorSecond, defs.$loaderColorSecond);
10
+ $loaderDuration: if(vars.$loaderDuration != null, vars.$loaderDuration, defs.$loaderDuration);
11
+
12
+ @if $useLoader {
13
+ $colorMainLight: colors.hexToRgba(map.get($colorMain, 'light'), 0.4, 'Glass.light');
14
+ $colorMainDark: colors.hexToRgba(map.get($colorMain, 'dark'), 0.4, 'Glass.dark');
15
+ $colorSecondLight: colors.hexToRgba(map.get($colorSecond, 'light'), 0.4, 'Glass.light');
16
+ $colorSecondDark: colors.hexToRgba(map.get($colorSecond, 'dark'), 0.4, 'Glass.dark');
17
+
18
+ .skeleton {
19
+ $skeletonsVariants: (
20
+ 'rounded': 8px,
21
+ 'sharp': unset,
22
+ 'circle': 100vw,
23
+ 'square': 5px,
24
+ 'text': 3px,
25
+ ) !default;
26
+
27
+ display: inline-block;
28
+ background: linear-gradient(
29
+ 110deg,
30
+ var(--skeleton-main-color, $colorMainLight) 0%,
31
+ var(--skeleton-second-color, $colorSecondLight) 30%,
32
+ var(--skeleton-second-color, $colorSecondLight) 30%,
33
+ var(--skeleton-main-color, $colorMainLight) 100%
34
+ );
35
+ background-size: 200% 100%;
36
+ animation: var(--skeleton-duration, $loaderDuration) shine linear infinite;
37
+
38
+ @each $variant, $radius in $skeletonsVariants {
39
+ &.#{$variant} {
40
+ border-radius: $radius;
41
+ aspect-ratio: if($variant == 'circle' or $variant == 'square', 1, unset);
42
+ }
43
+ }
44
+
45
+ .dark & {
46
+ background: linear-gradient(
47
+ 110deg,
48
+ var(--skeleton-main-color, $colorMainDark) 0%,
49
+ var(--skeleton-second-color, $colorSecondDark) 30%,
50
+ var(--skeleton-second-color, $colorSecondDark) 30%,
51
+ var(--skeleton-main-color, $colorMainDark) 100%
52
+ );
53
+ }
54
+
55
+ @keyframes shine {
56
+ to {
57
+ background-position-x: -200%;
58
+ }
59
+ }
60
+ }
61
+ }
@@ -52,18 +52,6 @@ table {
52
52
  border-spacing: 0;
53
53
  }
54
54
 
55
- button {
56
- cursor: pointer;
57
- background: transparent;
58
- border: none;
59
- }
60
-
61
- :focus,
62
- button:focus {
63
- outline: unset;
64
- box-shadow: unset;
65
- }
66
-
67
55
  fieldset {
68
56
  border: 0;
69
57
  margin: 0;