@acorex/styles 5.0.21 → 5.0.25
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/dark.scss +3 -21
- package/package.json +1 -1
- package/src/base/index.scss +8 -7
- package/src/components/_alert.scss +37 -29
- package/src/components/_badge.scss +37 -4
- package/src/components/_button.scss +74 -74
- package/src/components/_calendar.scss +11 -11
- package/src/components/_checkbox.scss +5 -4
- package/src/components/_dialog.scss +12 -11
- package/src/components/_drawer.scss +1 -1
- package/src/components/_dropdown.scss +38 -38
- package/src/components/_editor-container.scss +8 -6
- package/src/components/_form.scss +1 -1
- package/src/components/_input.scss +1 -1
- package/src/components/_list.scss +3 -3
- package/src/components/_loading.scss +2 -2
- package/src/components/_popup.scss +18 -17
- package/src/components/_radio.scss +5 -3
- package/src/components/_selectbox.scss +3 -0
- package/src/components/_selection-list.scss +3 -3
- package/src/components/_side-menu.scss +1 -5
- package/src/components/_switch.scss +10 -11
- package/src/components/_tabs.scss +82 -66
- package/src/components/_toast.scss +7 -7
- package/src/utility/_mixins.scss +16 -1
- package/src/variables/_colors.scss +1 -1
package/dark.scss
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
.ax-dark,
|
2
|
-
.ax-dark * {
|
1
|
+
html.ax-dark,
|
2
|
+
html.ax-dark * {
|
3
3
|
--tw-ring-offset-color: #151b24;
|
4
4
|
--ax-color-default-background: 21 27 36;
|
5
5
|
--ax-color-default-color: 255 255 255;
|
6
6
|
--ax-color-border: 55 65 81;
|
7
7
|
--ax-color-placeholder: 161 161 161;
|
8
|
-
|
9
8
|
.ax-skeleton {
|
10
9
|
&.ax-skeleton-animate {
|
11
10
|
&::before {
|
@@ -14,24 +13,7 @@
|
|
14
13
|
}
|
15
14
|
}
|
16
15
|
}
|
17
|
-
|
18
16
|
.cdk-overlay-dark-backdrop {
|
19
|
-
background: rgba(0, 0, 0, 0.
|
20
|
-
}
|
21
|
-
|
22
|
-
.ax-controll {
|
23
|
-
@apply ax-border-transparent ax-bg-white/[0.16] ax-backdrop-blur-3xl;
|
24
|
-
}
|
25
|
-
|
26
|
-
.ax-surface {
|
27
|
-
@apply ax-bg-white/20 ax-border-white/[0.1] ax-backdrop-blur-3xl;
|
28
|
-
}
|
29
|
-
|
30
|
-
.cdk-overlay-pane {
|
31
|
-
.ax-editor-container,
|
32
|
-
input[type="checkbox"],
|
33
|
-
input[type="radio"] {
|
34
|
-
@apply ax-bg-black/[0.2];
|
35
|
-
}
|
17
|
+
background: rgba(0, 0, 0, 0.5) !important;
|
36
18
|
}
|
37
19
|
}
|
package/package.json
CHANGED
package/src/base/index.scss
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@import "../utility/mixins";
|
2
2
|
|
3
3
|
[class*=" ax-ic-"],
|
4
|
-
[class^=ax-ic-] {
|
4
|
+
[class^="ax-ic-"] {
|
5
5
|
vertical-align: middle;
|
6
6
|
}
|
7
7
|
|
@@ -18,13 +18,14 @@ body {
|
|
18
18
|
background-color: rgb(var(--ax-color-default-background));
|
19
19
|
color: rgba(var(--ax-color-default-color));
|
20
20
|
height: 100%;
|
21
|
-
font-size: 16px
|
21
|
+
font-size: 16px;
|
22
22
|
}
|
23
23
|
|
24
|
-
.ax-
|
25
|
-
|
24
|
+
.ax-sm {
|
25
|
+
--ax-base-size: 6px;
|
26
|
+
font-size: 0.75rem
|
26
27
|
}
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
.ax-lg {
|
29
|
+
--ax-base-size: 10px;
|
30
|
+
font-size: 1.125rem
|
30
31
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@layer components {
|
2
2
|
.ax-alert {
|
3
|
-
@apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-
|
3
|
+
@apply ax-flex ax-bg-light-100 ax-text-light-fore ax-px-3.5 ax-py-4 ax-items-center ax-rounded ax-border;
|
4
4
|
transition: visibility 0s, opacity 0.5s ease-in-out;
|
5
5
|
&.ax-state-hidden {
|
6
6
|
visibility: hidden;
|
@@ -11,7 +11,7 @@
|
|
11
11
|
opacity: 1;
|
12
12
|
}
|
13
13
|
.ax-alert-icon {
|
14
|
-
@apply ax-text-xl ax-
|
14
|
+
@apply ax-text-xl ax-self-baseline;
|
15
15
|
|
16
16
|
}
|
17
17
|
.ax-alert-body {
|
@@ -23,7 +23,7 @@
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
.ax-alert-content {
|
26
|
-
@apply ax-block ax-text-sm;
|
26
|
+
@apply ax-block ax-text-sm ax-break-words;
|
27
27
|
|
28
28
|
ul {
|
29
29
|
@apply ax-my-2 ax-ms-5 ax-list-disc;
|
@@ -37,102 +37,110 @@
|
|
37
37
|
}
|
38
38
|
.ax-alert-footer {
|
39
39
|
.ax-alert-buttons {
|
40
|
-
@apply ax-flex ax-mt-
|
40
|
+
@apply ax-flex ax-mt-4;
|
41
41
|
.ax-alert-button {
|
42
|
-
@apply ax-font-
|
42
|
+
@apply ax-text-sm ax-font-semibold ax-me-4 ax-cursor-pointer;
|
43
43
|
}
|
44
44
|
}
|
45
45
|
}
|
46
|
+
|
47
|
+
}
|
48
|
+
.ax-alert-prefix {
|
49
|
+
.ax-alert-buttons{
|
50
|
+
@apply ax-flex;
|
51
|
+
}
|
52
|
+
|
46
53
|
}
|
47
54
|
.ax-alert-suffix {
|
48
55
|
.ax-alert-buttons {
|
56
|
+
@apply ax-flex;
|
49
57
|
.ax-alert-button {
|
50
|
-
@apply ax-
|
58
|
+
@apply ax-me-0.5 ax-text-sm ax-font-semibold ax-cursor-pointer;
|
51
59
|
i {
|
52
60
|
@apply ax-mx-1;
|
53
61
|
}
|
54
62
|
}
|
55
63
|
}
|
56
64
|
}
|
57
|
-
&.ax-primary {
|
58
|
-
@apply ax-bg-primary-50 ax-text-primary dark:ax-bg-primary-
|
65
|
+
&.ax-primary-default {
|
66
|
+
@apply ax-bg-primary-50 ax-text-primary-500 dark:ax-bg-primary-600 dark:ax-text-primary-50 ax-border-primary-500/10;
|
59
67
|
.ax-alert-title {
|
60
68
|
@apply ax-text-primary-700 dark:ax-text-primary-100;
|
61
69
|
}
|
62
70
|
.ax-alert-button {
|
63
71
|
&:hover {
|
64
|
-
@apply ax-text-primary-
|
72
|
+
@apply ax-text-primary-900;
|
65
73
|
}
|
66
74
|
}
|
67
75
|
}
|
68
|
-
&.ax-secondary {
|
69
|
-
@apply ax-bg-secondary-50 ax-text-secondary dark:ax-bg-secondary-
|
76
|
+
&.ax-secondary-default {
|
77
|
+
@apply ax-bg-secondary-50 ax-text-secondary-500 dark:ax-bg-secondary-600 dark:ax-text-secondary-50 ax-border-secondary-500/10;
|
70
78
|
.ax-alert-title {
|
71
79
|
@apply ax-text-secondary-700 dark:ax-text-secondary-100;
|
72
80
|
}
|
73
81
|
.ax-alert-button {
|
74
82
|
&:hover {
|
75
|
-
@apply ax-text-secondary-
|
83
|
+
@apply ax-text-secondary-900;
|
76
84
|
}
|
77
85
|
}
|
78
86
|
}
|
79
|
-
&.ax-success {
|
80
|
-
@apply ax-bg-success-50 ax-text-success dark:ax-bg-success-
|
87
|
+
&.ax-success-default {
|
88
|
+
@apply ax-bg-success-50 ax-text-success-500 dark:ax-bg-success-600 dark:ax-text-success-50 ax-border-success-500/10;
|
81
89
|
.ax-alert-title {
|
82
90
|
@apply ax-text-success-700 dark:ax-text-success-100;
|
83
91
|
}
|
84
92
|
.ax-alert-button {
|
85
93
|
&:hover {
|
86
|
-
@apply ax-text-success-
|
94
|
+
@apply ax-text-success-900;
|
87
95
|
}
|
88
96
|
}
|
89
97
|
}
|
90
|
-
&.ax-warning {
|
91
|
-
@apply ax-bg-warning-50 ax-text-warning dark:ax-bg-warning-
|
98
|
+
&.ax-warning-default {
|
99
|
+
@apply ax-bg-warning-50 ax-text-warning-500 dark:ax-bg-warning-600 dark:ax-text-white ax-border-warning-500/10;
|
92
100
|
.ax-alert-title {
|
93
101
|
@apply ax-text-warning-700 dark:ax-text-warning-100;
|
94
102
|
}
|
95
103
|
.ax-alert-button {
|
96
104
|
&:hover {
|
97
|
-
@apply ax-text-warning-
|
105
|
+
@apply ax-text-warning-900;
|
98
106
|
}
|
99
107
|
}
|
100
108
|
}
|
101
|
-
&.ax-danger {
|
102
|
-
@apply ax-bg-danger-50 ax-text-danger dark:ax-bg-danger-
|
109
|
+
&.ax-danger-default {
|
110
|
+
@apply ax-bg-danger-50 ax-text-danger-500 dark:ax-bg-danger-600 dark:ax-text-danger-50 ax-border-danger-500/10;
|
103
111
|
.ax-alert-title {
|
104
112
|
@apply ax-text-danger-700 dark:ax-text-danger-100;
|
105
113
|
}
|
106
114
|
.ax-alert-button {
|
107
115
|
&:hover {
|
108
|
-
@apply ax-text-danger-
|
116
|
+
@apply ax-text-danger-900;
|
109
117
|
}
|
110
118
|
}
|
111
119
|
}
|
112
|
-
&.ax-info {
|
113
|
-
@apply ax-bg-info-50 ax-text-info dark:ax-bg-info-
|
120
|
+
&.ax-info-default {
|
121
|
+
@apply ax-bg-info-50 ax-text-info-500 dark:ax-bg-info-600 dark:ax-text-info-50 ax-border-info-500/10;
|
114
122
|
.ax-alert-title {
|
115
123
|
@apply ax-text-info-700 dark:ax-text-info-100;
|
116
124
|
}
|
117
125
|
.ax-alert-button {
|
118
126
|
&:hover {
|
119
|
-
@apply ax-text-info-
|
127
|
+
@apply ax-text-info-900;
|
120
128
|
}
|
121
129
|
}
|
122
130
|
}
|
123
|
-
&.ax-light {
|
124
|
-
@apply ax-bg-light-50 ax-text-light-fore dark:ax-bg-light-500 dark:ax-text-light-50;
|
131
|
+
&.ax-light-default {
|
132
|
+
@apply ax-bg-light-50 ax-text-light-fore dark:ax-bg-light-500 dark:ax-text-light-50 ax-border-light-500/10;
|
125
133
|
.ax-alert-title {
|
126
134
|
@apply ax-text-light-fore dark:ax-text-light-100;
|
127
135
|
}
|
128
136
|
.ax-alert-button {
|
129
137
|
&:hover {
|
130
|
-
@apply ax-text-light-
|
138
|
+
@apply ax-text-light-900;
|
131
139
|
}
|
132
140
|
}
|
133
141
|
}
|
134
|
-
&.ax-dark {
|
135
|
-
@apply ax-bg-dark ax-text-dark-fore dark:ax-bg-dark-
|
142
|
+
&.ax-dark-default {
|
143
|
+
@apply ax-bg-dark-500 ax-text-dark-fore dark:ax-bg-dark-400 dark:ax-text-dark-50 ax-border-dark-500/10;
|
136
144
|
.ax-alert-title {
|
137
145
|
@apply ax-text-dark-fore dark:ax-text-dark-100;
|
138
146
|
}
|
@@ -1,11 +1,44 @@
|
|
1
1
|
@layer components {
|
2
2
|
.ax-badge {
|
3
|
-
@apply ax-rounded ax-
|
3
|
+
@apply ax-rounded ax-align-middle ax-flex ax-justify-center ax-items-center ax-max-w-max ax-text-sm ax-px-2;
|
4
|
+
min-width: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 10px);
|
5
|
+
height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 10px);
|
6
|
+
|
4
7
|
ax-prefix {
|
5
|
-
@apply ax-me-1.5
|
8
|
+
@apply ax-me-1.5;
|
6
9
|
}
|
7
10
|
ax-suffix {
|
8
|
-
@apply ax-ms-1.5
|
11
|
+
@apply ax-ms-1.5;
|
12
|
+
}
|
13
|
+
&.ax-badge-icon {
|
14
|
+
ax-prefix,
|
15
|
+
ax-suffix {
|
16
|
+
@apply ax-m-0;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
&.ax-primary-default{
|
20
|
+
@apply ax-bg-primary-100 ax-text-primary-600 dark:ax-bg-primary-300;
|
21
|
+
}
|
22
|
+
&.ax-secondary-default{
|
23
|
+
@apply ax-bg-secondary-100 ax-text-secondary-600 dark:ax-bg-secondary-300 ;
|
24
|
+
}
|
25
|
+
&.ax-success-default{
|
26
|
+
@apply ax-bg-success-100 ax-text-success-600 dark:ax-bg-success-300 ;
|
27
|
+
}
|
28
|
+
&.ax-warning-default{
|
29
|
+
@apply ax-bg-warning-100 ax-text-warning-700 dark:ax-bg-warning-300 ;
|
30
|
+
}
|
31
|
+
&.ax-danger-default{
|
32
|
+
@apply ax-bg-danger-100 ax-text-danger-600 dark:ax-bg-danger-300 ;
|
33
|
+
}
|
34
|
+
&.ax-info-default{
|
35
|
+
@apply ax-bg-info-100 ax-text-info-600 dark:ax-bg-info-300 ;
|
36
|
+
}
|
37
|
+
&.ax-light-default{
|
38
|
+
@apply ax-bg-light-200 ax-text-light-700;
|
39
|
+
}
|
40
|
+
&.ax-dark-default{
|
41
|
+
@apply ax-bg-dark-500 ax-text-dark-fore dark:ax-bg-dark-300 dark:ax-text-dark-50;
|
9
42
|
}
|
10
43
|
}
|
11
|
-
}
|
44
|
+
}
|