@acorex/styles 5.2.0 → 5.3.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.
- package/package.json +1 -1
- package/src/components/_alert.scss +65 -28
- package/src/components/_button.scss +9 -9
- package/src/components/_calendar.scss +1 -1
- package/src/components/_decoration.scss +36 -0
- package/src/components/_drawer.scss +51 -77
- package/src/components/_dropdown.scss +0 -23
- package/src/components/_list.scss +0 -6
- package/src/components/_menu.scss +8 -2
- package/src/components/_picker.scss +178 -58
- package/src/components/_popup.scss +0 -35
- package/src/components/_toast.scss +4 -74
- package/src/components/index.scss +2 -1
- package/src/utility/_mixins.scss +34 -1
- package/src/variables/_colors.scss +12 -12
package/package.json
CHANGED
@@ -1,64 +1,101 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
|
-
@apply ax-flex ax-bg-light-100 ax-text-light-fore ax-
|
2
|
+
ax-alert {
|
3
|
+
@apply ax-relative ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden;
|
4
4
|
transition: visibility 0s, opacity 0.5s ease-in-out;
|
5
|
+
|
5
6
|
&.ax-state-hidden {
|
6
7
|
visibility: hidden;
|
7
8
|
opacity: 0;
|
8
9
|
}
|
10
|
+
|
9
11
|
&.ax-state-visible {
|
10
12
|
visibility: visible;
|
11
13
|
opacity: 1;
|
12
14
|
}
|
13
|
-
|
14
|
-
|
15
|
+
|
16
|
+
& > ax-header {
|
17
|
+
@apply ax-px-3.5 ax-py-3 ax-bg-transparent ax-border-none ax-justify-start ax-text-sm;
|
18
|
+
& > ax-icon {
|
19
|
+
@apply ax-me-3 ax-text-2xl;
|
20
|
+
}
|
15
21
|
}
|
16
22
|
.ax-alert-body {
|
17
|
-
@apply ax-
|
18
|
-
|
19
|
-
@apply ax-
|
20
|
-
a {
|
21
|
-
@apply ax-text-current ax-font-bold;
|
22
|
-
}
|
23
|
+
@apply ax-flex-1 ax-p-3.5 ax-text-sm;
|
24
|
+
ax-icon {
|
25
|
+
@apply ax-me-3 ax-text-2xl;
|
23
26
|
}
|
24
|
-
|
27
|
+
& > ax-content {
|
25
28
|
@apply ax-block ax-text-sm ax-break-words;
|
26
29
|
|
27
30
|
ul {
|
28
31
|
@apply ax-my-2 ax-ms-5 ax-list-disc;
|
29
32
|
}
|
33
|
+
|
30
34
|
a {
|
31
35
|
@apply ax-text-current ax-font-bold ax-underline;
|
36
|
+
|
32
37
|
&:hover {
|
33
38
|
@apply ax-underline;
|
34
39
|
}
|
35
40
|
}
|
36
41
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
|
43
|
+
ax-suffix {
|
44
|
+
@apply ax-block ax-mt-3;
|
45
|
+
ax-button {
|
46
|
+
@apply ax-ms-2 ax-me-0 #{!important};
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
ax-footer {
|
51
|
+
@apply ax-bg-transparent ax-border-none ax-p-0 ax-mt-3;
|
52
|
+
ax-button {
|
53
|
+
@apply ax-me-2;
|
43
54
|
}
|
44
55
|
}
|
45
56
|
}
|
46
|
-
|
47
|
-
|
48
|
-
@apply ax-
|
57
|
+
&.ax-light-default {
|
58
|
+
ax-header {
|
59
|
+
@apply ax-bg-light-200;
|
60
|
+
}
|
61
|
+
.ax-alert-body {
|
62
|
+
@applyax-bg-light-300;
|
63
|
+
}
|
64
|
+
.ax-alert-progress {
|
65
|
+
@apply ax-absolute ax-bg-light-400;
|
49
66
|
}
|
50
67
|
}
|
51
|
-
|
52
|
-
|
53
|
-
@apply ax-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
}
|
68
|
+
&.ax-dark-default {
|
69
|
+
ax-button {
|
70
|
+
@apply ax-bg-white/30 #{!important};
|
71
|
+
&:hover,
|
72
|
+
&:active,
|
73
|
+
&:focus {
|
74
|
+
@apply ax-bg-white/20 #{!important};
|
59
75
|
}
|
60
76
|
}
|
61
77
|
}
|
78
|
+
&[class*="dark"] {
|
79
|
+
.ax-alert-progress {
|
80
|
+
@apply ax-bg-white/50;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
.ax-alert-progress {
|
84
|
+
@apply ax-absolute ax-bg-black/30 ax-start-0 ax-bottom-0 ax-h-1.5 ax-w-0;
|
85
|
+
animation-duration: 4s;
|
86
|
+
animation-timing-function: linear;
|
87
|
+
animation-name: progressBar;
|
88
|
+
}
|
89
|
+
@keyframes progressBar {
|
90
|
+
0% {
|
91
|
+
width: 100%;
|
92
|
+
}
|
93
|
+
100% {
|
94
|
+
width: 0%;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
@include button-on-colorful-bg();
|
98
|
+
|
62
99
|
@include color-look-generator();
|
63
100
|
}
|
64
101
|
}
|
@@ -117,7 +117,7 @@
|
|
117
117
|
@apply ax-ring-2 ax-ring-offset-2 ax-ring-warning-500;
|
118
118
|
}
|
119
119
|
&:active {
|
120
|
-
@apply ax-bg-warning-600 ax-text-warning-
|
120
|
+
@apply ax-bg-warning-600 ax-text-warning-fore ax-ring-2 ax-ring-offset-2 ax-ring-warning-700;
|
121
121
|
}
|
122
122
|
}
|
123
123
|
|
@@ -249,19 +249,19 @@
|
|
249
249
|
}
|
250
250
|
}
|
251
251
|
&.ax-warning-twotone {
|
252
|
-
@apply ax-bg-warning-100 ax-text-warning-
|
252
|
+
@apply ax-bg-warning-100 ax-text-warning-900 ax-border-transparent dark:ax-bg-warning-300 dark:ax-text-warning-fore;
|
253
253
|
&:not(.ax-state-disabled) {
|
254
254
|
&:hover,
|
255
255
|
&:focus {
|
256
|
-
@apply ax-bg-warning-200 ax-text-warning-
|
256
|
+
@apply ax-bg-warning-200 ax-text-warning-fore;
|
257
257
|
}
|
258
258
|
&:active {
|
259
|
-
@apply ax-bg-warning-300 ax-text-warning-
|
259
|
+
@apply ax-bg-warning-300 ax-text-warning-fore;
|
260
260
|
}
|
261
261
|
}
|
262
262
|
|
263
263
|
&.ax-state-selected {
|
264
|
-
@apply ax-bg-warning-200 ax-text-warning-
|
264
|
+
@apply ax-bg-warning-200 ax-text-warning-fore;
|
265
265
|
}
|
266
266
|
}
|
267
267
|
&.ax-danger-twotone {
|
@@ -515,10 +515,10 @@
|
|
515
515
|
&:not(.ax-state-disabled) {
|
516
516
|
&:hover,
|
517
517
|
&:focus {
|
518
|
-
@apply ax-bg-warning-50 ax-text-warning-
|
518
|
+
@apply ax-bg-warning-50 ax-text-warning-fore dark:ax-bg-transparent;
|
519
519
|
}
|
520
520
|
&:active {
|
521
|
-
@apply ax-bg-warning-100 ax-text-warning-
|
521
|
+
@apply ax-bg-warning-100 ax-text-warning-fore;
|
522
522
|
}
|
523
523
|
}
|
524
524
|
|
@@ -644,10 +644,10 @@
|
|
644
644
|
&:not(.ax-state-disabled) {
|
645
645
|
&:hover,
|
646
646
|
&:focus {
|
647
|
-
@apply ax-text-warning-
|
647
|
+
@apply ax-text-warning-fore ax-border-warning-600;
|
648
648
|
}
|
649
649
|
&:active {
|
650
|
-
@apply ax-text-warning-
|
650
|
+
@apply ax-text-warning-fore ax-border-warning-500;
|
651
651
|
}
|
652
652
|
}
|
653
653
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@layer components {
|
2
|
+
ax-header,
|
3
|
+
ax-footer {
|
4
|
+
@apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
5
|
+
}
|
6
|
+
|
7
|
+
ax-header {
|
8
|
+
@apply ax-border-b;
|
9
|
+
|
10
|
+
& > ax-prefix,
|
11
|
+
& > ax-suffix {
|
12
|
+
@apply ax-flex ax-items-center;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
ax-footer {
|
17
|
+
@apply ax-border-t;
|
18
|
+
}
|
19
|
+
|
20
|
+
ax-title {
|
21
|
+
@apply ax-font-medium;
|
22
|
+
}
|
23
|
+
|
24
|
+
ax-icon {
|
25
|
+
@apply ax-font-medium;
|
26
|
+
}
|
27
|
+
|
28
|
+
ax-close-button {
|
29
|
+
ax-icon {
|
30
|
+
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
31
|
+
&:hover {
|
32
|
+
@apply ax-text-light-500 dark:ax-text-light-100;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -1,126 +1,100 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
2
|
+
ax-drawer-container {
|
3
3
|
@apply ax-flex ax-relative ax-w-full ax-h-full ax-overflow-hidden;
|
4
4
|
|
5
|
-
|
6
|
-
@apply ax-
|
7
|
-
|
5
|
+
&.ax-fixed {
|
6
|
+
@apply ax-hidden ax-top-0 ax-right-0 ax-left-0 ax-bottom-0 ax-z-[1000];
|
7
|
+
|
8
|
+
&.ax-visible {
|
9
|
+
@apply ax-flex;
|
10
|
+
}
|
8
11
|
}
|
9
12
|
|
10
|
-
.ax-
|
11
|
-
|
13
|
+
.ax-backdrop {
|
14
|
+
@apply ax-bg-black/30 ax-absolute ax-w-full ax-h-full ax-z-[1] ax-top-0 ax-bottom-0 ax-transition-all;
|
15
|
+
}
|
12
16
|
|
13
|
-
|
14
|
-
|
15
|
-
// }
|
17
|
+
ax-drawer {
|
18
|
+
@apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-all #{!important};
|
16
19
|
|
17
|
-
&.ax-
|
18
|
-
@apply ax-
|
19
|
-
z-index: 9999;
|
20
|
+
&.ax-preload {
|
21
|
+
@apply ax-animate-duration-[0ms] ax-transition-none #{!important};
|
20
22
|
}
|
21
23
|
|
22
|
-
&.ax-drawer-start {
|
23
|
-
@apply ax-h-full;
|
24
|
-
&.ax-hide {
|
25
|
-
position: absolute;
|
26
|
-
left: -9999px;
|
27
|
-
}
|
28
24
|
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
&>ax-content
|
26
|
+
{
|
27
|
+
@apply ax-overflow-auto ax-bg-white ax-flex-1 ax-h-full;
|
28
|
+
}
|
29
|
+
|
30
|
+
&.ax-drawer-overlay {
|
31
|
+
@apply ax-absolute;
|
32
32
|
|
33
33
|
&.ax-expanded {
|
34
|
-
|
34
|
+
@apply ax-z-[2];
|
35
35
|
}
|
36
|
-
}
|
37
36
|
|
38
|
-
|
39
|
-
|
40
|
-
&.ax-hide {
|
41
|
-
position: absolute;
|
42
|
-
right: -9999px;
|
37
|
+
&.ax-collapsed {
|
38
|
+
@apply ax-z-[0];
|
43
39
|
}
|
44
40
|
|
45
|
-
&.ax-drawer-
|
46
|
-
&.ax-collapsed {
|
47
|
-
right: calc(-2 * var(--attr-width));
|
48
|
-
}
|
41
|
+
&.ax-drawer-start {
|
49
42
|
|
50
43
|
&.ax-expanded {
|
51
|
-
|
44
|
+
left:0;
|
52
45
|
}
|
53
|
-
}
|
54
46
|
|
55
|
-
&.ax-drawer-push {
|
56
47
|
&.ax-collapsed {
|
57
|
-
|
48
|
+
left: calc(-1 * var(--ax-el-width));
|
58
49
|
}
|
59
50
|
|
60
|
-
&.ax-expanded {
|
61
|
-
margin-inline-end: 0;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
&.ax-drawer-top {
|
66
|
-
@apply ax-w-full;
|
67
|
-
&.ax-hide {
|
68
|
-
position: absolute;
|
69
|
-
top: -9999px;
|
70
51
|
}
|
71
52
|
|
72
|
-
&.ax-drawer-
|
73
|
-
&.ax-collapsed {
|
74
|
-
top: calc(-2 * var(--attr-height));
|
75
|
-
}
|
53
|
+
&.ax-drawer-end {
|
76
54
|
|
77
55
|
&.ax-expanded {
|
78
|
-
|
56
|
+
right:0;
|
79
57
|
}
|
80
|
-
}
|
81
58
|
|
82
|
-
&.ax-drawer-push {
|
83
59
|
&.ax-collapsed {
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
&.ax-expanded {
|
88
|
-
margin-block-start: 0;
|
60
|
+
right: calc(-1 * var(--ax-el-width));
|
89
61
|
}
|
90
62
|
}
|
91
63
|
}
|
92
|
-
&.ax-drawer-bottom {
|
93
|
-
@apply ax-w-full;
|
94
|
-
&.ax-hide {
|
95
|
-
position: absolute;
|
96
|
-
bottom: -9999px;
|
97
|
-
}
|
98
64
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
65
|
+
&.ax-drawer-push {
|
66
|
+
@apply ax-flex-initial;
|
67
|
+
|
68
|
+
&.ax-drawer-start {
|
69
|
+
@apply ax-order-first;
|
103
70
|
|
104
71
|
&.ax-expanded {
|
105
|
-
|
72
|
+
margin-inline-start: 0%
|
106
73
|
}
|
107
|
-
}
|
108
74
|
|
109
|
-
&.ax-drawer-push {
|
110
75
|
&.ax-collapsed {
|
111
|
-
margin-
|
76
|
+
margin-inline-start: calc(-1 * var(--ax-el-width));
|
112
77
|
}
|
113
78
|
|
79
|
+
}
|
80
|
+
|
81
|
+
&.ax-drawer-end {
|
82
|
+
@apply ax-order-last;
|
83
|
+
|
114
84
|
&.ax-expanded {
|
115
|
-
margin-
|
85
|
+
margin-inline-end: 0%;
|
86
|
+
}
|
87
|
+
|
88
|
+
&.ax-collapsed {
|
89
|
+
margin-inline-end: calc(-1 * var(--ax-el-width));
|
116
90
|
}
|
117
91
|
}
|
118
92
|
}
|
93
|
+
|
119
94
|
}
|
120
95
|
|
121
|
-
|
122
|
-
@apply ax-flex-1 ax-overflow-auto;
|
123
|
-
width: var(--attr-content-width);
|
96
|
+
&>ax-content {
|
97
|
+
@apply ax-flex-1 ax-h-full ax-overflow-auto;
|
124
98
|
}
|
125
99
|
}
|
126
|
-
}
|
100
|
+
}
|
@@ -11,14 +11,6 @@
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
|
14
|
-
.ax-backdrop-light {
|
15
|
-
@apply cdk-overlay-backdrop ax-bg-white ax-bg-opacity-50;
|
16
|
-
}
|
17
|
-
|
18
|
-
.ax-backdrop-dark {
|
19
|
-
@apply cdk-overlay-backdrop ax-bg-black ax-bg-opacity-50;
|
20
|
-
}
|
21
|
-
|
22
14
|
.ax-overlay-pane {
|
23
15
|
@apply ax-bg-white ax-border ax-rounded ax-border-light-300;
|
24
16
|
@include control-states("surface");
|
@@ -50,21 +42,6 @@
|
|
50
42
|
@apply ax-w-screen ax-h-screen;
|
51
43
|
}
|
52
44
|
|
53
|
-
.ax-header {
|
54
|
-
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
|
55
|
-
|
56
|
-
span {
|
57
|
-
@apply ax-font-medium;
|
58
|
-
}
|
59
|
-
|
60
|
-
i {
|
61
|
-
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
62
|
-
&:hover {
|
63
|
-
@apply ax-text-light-500 dark:ax-text-light-100;
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
45
|
&.ax-dropdown-list {
|
69
46
|
@apply ax-border ax-border-solid ax-flex ax-flex-col ax-py-1 ax-rounded ax-shadow-sm;
|
70
47
|
|
@@ -3,13 +3,7 @@
|
|
3
3
|
display: block;
|
4
4
|
@apply ax-h-full ax-flex ax-flex-col ax-overflow-hidden md:ax-max-h-80;
|
5
5
|
|
6
|
-
.ax-header {
|
7
|
-
@apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2.5;
|
8
|
-
}
|
9
|
-
|
10
6
|
.ax-content {
|
11
|
-
|
12
|
-
|
13
7
|
@apply ax-flex-1 ax-overflow-y-auto ax-overflow-x-hidden;
|
14
8
|
|
15
9
|
&.ax-list-items-container {
|
@@ -2,8 +2,14 @@
|
|
2
2
|
ax-menu,
|
3
3
|
.ax-menu {
|
4
4
|
> ul {
|
5
|
-
@apply ax-flex
|
6
|
-
|
5
|
+
@apply ax-flex ax-text-sm;
|
6
|
+
&.vertical-mode {
|
7
|
+
@apply ax-flex-col
|
8
|
+
}
|
9
|
+
&.horizontal-mode{
|
10
|
+
@apply ax-flex-row ax-whitespace-nowrap
|
11
|
+
}
|
12
|
+
|
7
13
|
li {
|
8
14
|
@apply ax-cursor-pointer;
|
9
15
|
|
@@ -1,59 +1,179 @@
|
|
1
|
-
@layer components {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
1
|
+
// @layer components {
|
2
|
+
// ax-picker,
|
3
|
+
// .ax-picker {
|
4
|
+
// @apply ax-relative;
|
5
|
+
// ax-carousel {
|
6
|
+
// &::before {
|
7
|
+
// @apply ax-top-0;
|
8
|
+
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.08+0,0+100;Neutral+Density */
|
9
|
+
// background: -moz-linear-gradient(
|
10
|
+
// top,
|
11
|
+
// rgba(226, 232, 240, 0.08) 0%,
|
12
|
+
// rgba(226, 232, 240, 0) 100%
|
13
|
+
// ); /* FF3.6-15 */
|
14
|
+
// background: -webkit-linear-gradient(
|
15
|
+
// top,
|
16
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
17
|
+
// rgba(226, 232, 240, 0) 100%
|
18
|
+
// ); /* Chrome10-25,Safari5.1-6 */
|
19
|
+
// background: linear-gradient(
|
20
|
+
// to bottom,
|
21
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
22
|
+
// rgba(226, 232, 240, 0) 100%
|
23
|
+
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
24
|
+
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
25
|
+
// }
|
26
|
+
// &::after {
|
27
|
+
// @apply ax-bottom-0;
|
28
|
+
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.70+0,0+100;Neutral+Density */
|
29
|
+
// background: -moz-linear-gradient(
|
30
|
+
// bottom,
|
31
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
32
|
+
// rgba(226, 232, 240, 0) 100%
|
33
|
+
// ); /* FF3.6-15 */
|
34
|
+
// background: -webkit-linear-gradient(
|
35
|
+
// bottom,
|
36
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
37
|
+
// rgba(226, 232, 240, 0) 100%
|
38
|
+
// ); /* Chrome10-25,Safari5.1-6 */
|
39
|
+
// background: linear-gradient(
|
40
|
+
// to top,
|
41
|
+
// rgba(226, 232, 240, 0.70) 0%,
|
42
|
+
// rgba(226, 232, 240, 0) 100%
|
43
|
+
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
44
|
+
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
45
|
+
// }
|
46
|
+
// &::before,
|
47
|
+
// &::after {
|
48
|
+
// @apply ax-absolute ax-h-1/2 ax-w-full ax-start-0 ax-pointer-events-none;
|
49
|
+
// content: "";
|
50
|
+
// }
|
51
|
+
// }
|
52
|
+
// .ax-picker-item {
|
53
|
+
// @apply ax-block ax-p-4 ax-text-sm;
|
54
|
+
// &.is-active {
|
55
|
+
// @apply ax-text-base ax-text-primary-500 ax-transition-all;
|
56
|
+
// }
|
57
|
+
// }
|
58
|
+
// }
|
59
|
+
// }
|
60
|
+
|
61
|
+
// @layer components {
|
62
|
+
// ax-picker {
|
63
|
+
// @apply ax-max-h-full ax-overflow-y-scroll;
|
64
|
+
// scroll-snap-type: mandatory;
|
65
|
+
// scroll-snap-points-y: repeat(1rem);
|
66
|
+
// scroll-snap-type: y mandatory;
|
67
|
+
// li {
|
68
|
+
// @apply ax-py-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-snap-start ax-text-sm;
|
69
|
+
// }
|
70
|
+
// }
|
71
|
+
// }
|
72
|
+
.ng-data-picker {
|
73
|
+
font-size: 1rem;
|
74
|
+
height: 10em;
|
75
|
+
position: relative;
|
76
|
+
background-color: white;
|
77
|
+
overflow: hidden;
|
78
|
+
}
|
79
|
+
.ng-data-picker.black {
|
80
|
+
color: white;
|
81
|
+
}
|
82
|
+
.ng-data-picker .picker-group {
|
83
|
+
}
|
84
|
+
.ng-data-picker .picker-list {
|
85
|
+
height: 6.25em;
|
86
|
+
position: relative;
|
87
|
+
top: 4em; // half of picker height - half of item height
|
88
|
+
}
|
89
|
+
.ng-data-picker .picker-item {
|
90
|
+
position: absolute;
|
91
|
+
top: 0;
|
92
|
+
left: 0;
|
93
|
+
overflow: hidden;
|
94
|
+
width: 100%;
|
95
|
+
text-overflow: ellipsis;
|
96
|
+
white-space: nowrap;
|
97
|
+
display: block;
|
98
|
+
text-align: center;
|
99
|
+
will-change: transform;
|
100
|
+
contain: strict;
|
101
|
+
height: 2em;
|
102
|
+
line-height: 2;
|
103
|
+
font-size: 1em;
|
104
|
+
}
|
105
|
+
.ng-data-picker .selected-item {
|
106
|
+
}
|
107
|
+
|
108
|
+
/* picker handle layer */
|
109
|
+
.ng-data-picker .picker-handle-layer {
|
110
|
+
position: absolute;
|
111
|
+
width: 100%;
|
112
|
+
height: calc(100% + 2px);
|
113
|
+
left: 0;
|
114
|
+
right: 0;
|
115
|
+
top: -1px;
|
116
|
+
bottom: -1px;
|
117
|
+
}
|
118
|
+
.ng-data-picker .picker-handle-layer .picker-top {
|
119
|
+
border-bottom: 0.55px solid rgba(74, 73, 89, 0.5);
|
120
|
+
background: linear-gradient(to bottom, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
121
|
+
transform: translate3d(0, 0, 5.625em);
|
122
|
+
}
|
123
|
+
.ng-data-picker .picker-handle-layer .picker-middle {
|
124
|
+
height: 2em;
|
125
|
+
}
|
126
|
+
.ng-data-picker .picker-handle-layer .picker-bottom {
|
127
|
+
border-top: 0.55px solid rgba(74, 73, 89, 0.5);
|
128
|
+
background: linear-gradient(to top, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
129
|
+
transform: translate3d(0, 0, 5.625em);
|
130
|
+
}
|
131
|
+
|
132
|
+
/* flex system */
|
133
|
+
.flex-box {
|
134
|
+
display: flex;
|
135
|
+
}
|
136
|
+
.flex-box.dir-column {
|
137
|
+
flex-direction: column;
|
138
|
+
}
|
139
|
+
.flex-box.dir-row {
|
140
|
+
flex-direction: row;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* flex system - for items */
|
144
|
+
.flex-box .weight-1 {
|
145
|
+
flex: 1;
|
146
|
+
}
|
147
|
+
.flex-box .weight-2 {
|
148
|
+
flex: 2;
|
149
|
+
}
|
150
|
+
.flex-box .weight-3 {
|
151
|
+
flex: 3;
|
152
|
+
}
|
153
|
+
.flex-box .weight-4 {
|
154
|
+
flex: 4;
|
155
|
+
}
|
156
|
+
.flex-box .weight-5 {
|
157
|
+
flex: 5;
|
158
|
+
}
|
159
|
+
.flex-box .weight-6 {
|
160
|
+
flex: 6;
|
161
|
+
}
|
162
|
+
.flex-box .weight-7 {
|
163
|
+
flex: 7;
|
164
|
+
}
|
165
|
+
.flex-box .weight-8 {
|
166
|
+
flex: 8;
|
167
|
+
}
|
168
|
+
.flex-box .weight-9 {
|
169
|
+
flex: 9;
|
170
|
+
}
|
171
|
+
.flex-box .weight-10 {
|
172
|
+
flex: 10;
|
173
|
+
}
|
174
|
+
.flex-box .weight-11 {
|
175
|
+
flex: 11;
|
176
|
+
}
|
177
|
+
.flex-box .weight-12 {
|
178
|
+
flex: 12;
|
59
179
|
}
|
@@ -1,44 +1,9 @@
|
|
1
1
|
@layer components {
|
2
|
-
ax-page-footer,
|
3
|
-
ax-page-header {
|
4
|
-
@apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2 ax-border-solid ax-border-light-300 dark:ax-border-light-700;
|
5
|
-
|
6
|
-
ax-prefix {
|
7
|
-
@apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
|
8
|
-
}
|
9
|
-
|
10
|
-
ax-suffix {
|
11
|
-
@apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
ax-page-footer {
|
16
|
-
@apply ax-border-t;
|
17
|
-
}
|
18
|
-
|
19
|
-
ax-page-header {
|
20
|
-
@apply ax-border-b;
|
21
|
-
}
|
22
2
|
|
23
3
|
.ax-popup {
|
24
4
|
@apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-light-300 ax-rounded ax-outline-none ax-p-0 ax-max-h-[98vh] ax-min-h-fit ax-mx-auto;
|
25
5
|
@include control-states("surface");
|
26
6
|
|
27
|
-
.ax-popup-header {
|
28
|
-
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center ax-cursor-move;
|
29
|
-
|
30
|
-
span {
|
31
|
-
@apply ax-font-medium;
|
32
|
-
}
|
33
|
-
|
34
|
-
i {
|
35
|
-
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
36
|
-
&:hover {
|
37
|
-
@apply ax-text-light-500 dark:ax-text-light-100;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
7
|
.ax-popup-main-container {
|
43
8
|
@apply ax-overflow-auto ax-flex-1;
|
44
9
|
}
|
@@ -1,82 +1,12 @@
|
|
1
1
|
@layer components {
|
2
|
-
|
3
|
-
|
4
|
-
@include control-states('surface');
|
2
|
+
ax-toast {
|
3
|
+
|
5
4
|
@screen sm {
|
6
5
|
width: 98vw;
|
7
6
|
}
|
8
7
|
@screen md {
|
9
8
|
width: max(20vw, 350px);
|
10
9
|
}
|
11
|
-
|
12
|
-
@apply ax-col-span-1 ax-h-full;
|
13
|
-
}
|
14
|
-
.ax-toast-content-side {
|
15
|
-
@apply ax-col-span-10;
|
16
|
-
.ax-toast-title {
|
17
|
-
@apply ax-text-sm ax-font-semibold ax-text-light-700 dark:ax-text-light-100;
|
18
|
-
}
|
19
|
-
.ax-toast-content {
|
20
|
-
@apply ax-py-2 ax-text-sm ax-text-light-400 dark:ax-text-light-200;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
.ax-toast-dismiss-icon {
|
24
|
-
@apply ax-col-span-1 ax-cursor-pointer ax-h-full;
|
25
|
-
.ax-ic {
|
26
|
-
@apply ax-text-base;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
.ax-toast-dismiss-icon {
|
30
|
-
@apply ax-text-light-400;
|
31
|
-
}
|
32
|
-
.ax-toast-buttons {
|
33
|
-
@apply ax-col-span-12;
|
34
|
-
}
|
35
|
-
.ax-toast-progress {
|
36
|
-
@apply ax-absolute ax-bottom-0 ax-h-1 ax-w-0;
|
37
|
-
animation-duration: 4s;
|
38
|
-
animation-timing-function: linear;
|
39
|
-
animation-name: progressBar;
|
40
|
-
}
|
41
|
-
@keyframes progressBar {
|
42
|
-
0% {
|
43
|
-
width: 100%;
|
44
|
-
}
|
45
|
-
100% {
|
46
|
-
width: 0%;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
&.ax-success {
|
50
|
-
.ax-toast-icon {
|
51
|
-
@apply ax-text-success-500;
|
52
|
-
}
|
53
|
-
.ax-toast-progress {
|
54
|
-
@apply ax-bg-success-400;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
&.ax-danger {
|
58
|
-
.ax-toast-icon {
|
59
|
-
@apply ax-text-danger-500;
|
60
|
-
}
|
61
|
-
.ax-toast-progress {
|
62
|
-
@apply ax-bg-danger-400;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
&.ax-warning {
|
66
|
-
.ax-toast-icon {
|
67
|
-
@apply ax-text-warning-500;
|
68
|
-
}
|
69
|
-
.ax-toast-progress {
|
70
|
-
@apply ax-bg-warning-400;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
&.ax-info {
|
74
|
-
.ax-toast-icon {
|
75
|
-
@apply ax-text-info-500;
|
76
|
-
}
|
77
|
-
.ax-toast-progress {
|
78
|
-
@apply ax-bg-info-400;
|
79
|
-
}
|
80
|
-
}
|
10
|
+
|
81
11
|
}
|
82
|
-
}
|
12
|
+
}
|
package/src/utility/_mixins.scss
CHANGED
@@ -61,12 +61,34 @@
|
|
61
61
|
}
|
62
62
|
@if ($look == "outline") {
|
63
63
|
@apply ax-bg-transparent ax-text-#{$color}-500 ax-border ax-rounded-md ax-border-#{$color}-500;
|
64
|
+
ax-header {
|
65
|
+
@apply ax-bg-#{$color}-50;
|
66
|
+
}
|
67
|
+
.ax-alert-body {
|
68
|
+
@apply ax-bg-transparent #{!important};
|
69
|
+
ax-button {
|
70
|
+
@apply ax-bg-#{$color}-500 #{!important};
|
71
|
+
}
|
72
|
+
}
|
64
73
|
}
|
65
74
|
@if ($look == "twotone") {
|
66
|
-
@apply ax-bg-#{$color}-
|
75
|
+
@apply ax-bg-#{$color}-100 ax-text-#{$color}-500;
|
76
|
+
.ax-alert-body {
|
77
|
+
@apply ax-bg-#{$color}-50 #{!important};
|
78
|
+
ax-button {
|
79
|
+
@apply ax-bg-#{$color}-500 #{!important};
|
80
|
+
}
|
81
|
+
}
|
67
82
|
}
|
68
83
|
@if ($look == "blank") {
|
69
84
|
@apply ax-bg-transparent ax-text-#{$color}-500;
|
85
|
+
|
86
|
+
.ax-alert-body {
|
87
|
+
@apply ax-bg-transparent #{!important};
|
88
|
+
ax-button {
|
89
|
+
@apply ax-bg-#{$color}-500 #{!important};
|
90
|
+
}
|
91
|
+
}
|
70
92
|
}
|
71
93
|
}
|
72
94
|
|
@@ -81,3 +103,14 @@
|
|
81
103
|
}
|
82
104
|
}
|
83
105
|
}
|
106
|
+
|
107
|
+
@mixin button-on-colorful-bg {
|
108
|
+
ax-button {
|
109
|
+
@apply ax-bg-black/20 ax-text-sm ax-border-0 ax-outline-0 ax-ring-0 ax-ring-transparent ax-h-auto ax-shadow-none ax-font-semibold ax-py-1.5 ax-px-2 #{!important};
|
110
|
+
&:focus,
|
111
|
+
&:active,
|
112
|
+
&:hover {
|
113
|
+
@apply ax-bg-black/30 ax-ring-0 ax-border-0 ax-outline-0 ax-shadow-none ax-ring-transparent ax-ring-offset-0 #{!important};
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
@@ -63,18 +63,18 @@ $theme-colors: (
|
|
63
63
|
"900": "127 29 29",
|
64
64
|
),
|
65
65
|
"warning": (
|
66
|
-
"": "
|
67
|
-
"fore": "
|
68
|
-
"50": "255
|
69
|
-
"100": "
|
70
|
-
"200": "
|
71
|
-
"300": "
|
72
|
-
"400": "
|
73
|
-
"500": "
|
74
|
-
"600": "
|
75
|
-
"700": "
|
76
|
-
"800": "
|
77
|
-
"900": "
|
66
|
+
"": "255 193 7",
|
67
|
+
"fore": "33 37 41",
|
68
|
+
"50": "255 248 225",
|
69
|
+
"100": "255 236 181",
|
70
|
+
"200": "255 224 131",
|
71
|
+
"300": "255 212 81",
|
72
|
+
"400": "255 202 44",
|
73
|
+
"500": "255 193 7",
|
74
|
+
"600": "255 187 6",
|
75
|
+
"700": "255 179 5",
|
76
|
+
"800": "255 171 4",
|
77
|
+
"900": "255 158 2",
|
78
78
|
),
|
79
79
|
"info": (
|
80
80
|
"": "139 92 246",
|