@acorex/styles 7.4.7 → 7.5.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/index.scss +0 -4
- package/package.json +1 -1
- package/src/animations/index.scss +5 -5
- package/src/mixins/_appearance.scss +1 -0
- package/src/shared/_decoration.scss +2 -1
- package/src/shared/_drop-down.scss +3 -3
- package/src/shared/_table.scss +92 -86
- package/src/themes/default.scss +14 -1
- package/tailwind-base.js +15 -0
package/index.scss
CHANGED
package/package.json
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
.ax-animate-fadeIn {
|
2
|
+
animation-name: ax-fadeIn;
|
3
|
+
animation-duration: 1s;
|
4
|
+
animation-duration: 1000ms;
|
5
|
+
}
|
1
6
|
.ax-animate-bounceIn {
|
2
7
|
animation: 0.75s cubic-bezier(0.215, 0.61, 0.355, 1) both ax-bounceIn;
|
3
8
|
}
|
@@ -6,11 +11,6 @@
|
|
6
11
|
animation-duration: 500ms;
|
7
12
|
}
|
8
13
|
|
9
|
-
.ax-animate-fadeIn {
|
10
|
-
animation-name: ax-fadeIn;
|
11
|
-
animation-duration: 1s;
|
12
|
-
animation-duration: 1000ms;
|
13
|
-
}
|
14
14
|
.ax-animate-zoomIn {
|
15
15
|
animation-name: ax-zoomIn;
|
16
16
|
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
&:hover,
|
11
11
|
&:focus {
|
12
|
-
background-color: rgba(var(--ax-color-
|
12
|
+
background-color: rgba(var(--ax-color-gray-200));
|
13
13
|
color: rgba(var(--ax-color-#{$color}-600));
|
14
14
|
}
|
15
15
|
|
@@ -26,13 +26,13 @@
|
|
26
26
|
|
27
27
|
&.ax-default-default {
|
28
28
|
background-color: transparent;
|
29
|
-
color: rgba(var(--ax-color-default
|
29
|
+
color: rgba(var(--ax-color-text-default));
|
30
30
|
border: transparent;
|
31
31
|
|
32
32
|
&:hover,
|
33
33
|
&:focus,
|
34
34
|
&:active {
|
35
|
-
background-color: rgba(var(--ax-color-default)
|
35
|
+
background-color: rgba(var(--ax-color-default));
|
36
36
|
color: rgba(var(--ax-color-default-fore));
|
37
37
|
}
|
38
38
|
|
package/src/shared/_table.scss
CHANGED
@@ -1,111 +1,117 @@
|
|
1
|
-
@
|
1
|
+
@import '../mixins/index.scss';
|
2
|
+
@include darkMode() {
|
2
3
|
.ax-table {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
thead {
|
5
|
+
background-color: rgba(var(--ax-color-gray-900));
|
6
|
+
}
|
7
|
+
}
|
8
|
+
}
|
9
|
+
.ax-table {
|
10
|
+
width: 100%;
|
11
|
+
border-radius: var(--ax-rounded-border-default);
|
12
|
+
border-spacing: 0px;
|
13
|
+
border-collapse: collapse;
|
14
|
+
border: 1px solid;
|
15
|
+
border-color: rgba(var(--ax-color-border-default));
|
16
|
+
overflow: hidden;
|
17
|
+
font-size: 0.875rem;
|
18
|
+
td {
|
19
|
+
border-bottom: 1px solid;
|
8
20
|
border-color: rgba(var(--ax-color-border-default));
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
21
|
+
padding: 0.875rem 1rem;
|
22
|
+
}
|
23
|
+
thead {
|
24
|
+
background-color: rgba(var(--ax-color-gray-200));
|
25
|
+
border-bottom: 1px solid;
|
26
|
+
border-color: rgba(var(--ax-color-border-default));
|
27
|
+
th {
|
28
|
+
text-transform: uppercase;
|
29
|
+
font-weight: 500;
|
30
|
+
text-align: start;
|
14
31
|
padding: 0.875rem 1rem;
|
15
32
|
}
|
33
|
+
}
|
34
|
+
&.ax-table-alternate {
|
35
|
+
tbody {
|
36
|
+
tr {
|
37
|
+
&:nth-child(even) {
|
38
|
+
background-color: rgba(var(--ax-color-gray-200));
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
&.ax-table-bordered {
|
16
44
|
thead {
|
17
|
-
background-color: rgba(var(--ax-color-default));
|
18
|
-
border-bottom: 1px solid;
|
19
|
-
border-color: rgba(var(--ax-color-border-default));
|
20
45
|
th {
|
21
|
-
|
22
|
-
font-weight: 500;
|
23
|
-
text-align: start;
|
24
|
-
padding: 0.875rem 1rem;
|
46
|
+
border-top: 0 !important;
|
25
47
|
}
|
26
48
|
}
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
49
|
+
tbody {
|
50
|
+
tr {
|
51
|
+
&:last-child {
|
52
|
+
td {
|
53
|
+
border-bottom: 0 !important;
|
32
54
|
}
|
33
55
|
}
|
34
|
-
|
35
|
-
}
|
36
|
-
&.ax-table-bordered {
|
37
|
-
thead {
|
38
|
-
th {
|
39
|
-
border-top: 0 !important;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
tbody {
|
43
|
-
tr {
|
56
|
+
td {
|
44
57
|
&:last-child {
|
45
|
-
|
46
|
-
border-bottom: 0 !important;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
td {
|
50
|
-
&:last-child {
|
51
|
-
border-bottom: 0 !important;
|
52
|
-
}
|
58
|
+
border-bottom: 0 !important;
|
53
59
|
}
|
54
60
|
}
|
55
61
|
}
|
62
|
+
}
|
56
63
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
64
|
+
td,
|
65
|
+
th {
|
66
|
+
border: 1px solid;
|
67
|
+
border-color: rgba(var(--ax-color-border-default));
|
68
|
+
&:first-child {
|
69
|
+
border-inline-start-width: 0px;
|
70
|
+
}
|
71
|
+
&:last-child {
|
72
|
+
border-inline-end-width: 0px;
|
67
73
|
}
|
68
74
|
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
}
|
76
|
+
@media screen and (max-width: 601px) {
|
77
|
+
&.ax-table-responsive {
|
78
|
+
overflow-wrap: break-word;
|
79
|
+
display: block;
|
80
|
+
border: 0px;
|
81
|
+
thead {
|
82
|
+
position: absolute;
|
83
|
+
inset-inline-start: -100%;
|
84
|
+
top: -100%;
|
85
|
+
}
|
79
86
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
}
|
91
|
-
&:before {
|
92
|
-
content: attr(data-label);
|
93
|
-
display: block;
|
94
|
-
font-weight: bold;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
tr {
|
98
|
-
border: 1px solid;
|
99
|
-
border-color: rgba(var(--ax-color-border-default));
|
87
|
+
td {
|
88
|
+
display: block;
|
89
|
+
float: inline-start;
|
90
|
+
width: 100%;
|
91
|
+
clear: both;
|
92
|
+
background: rgba(var(--ax-color-surface));
|
93
|
+
padding: 0.375rem 0.625rem;
|
94
|
+
box-sizing: border-box;
|
95
|
+
&:last-child {
|
96
|
+
border: 0;
|
100
97
|
}
|
101
|
-
|
102
|
-
|
98
|
+
&:before {
|
99
|
+
content: attr(data-label);
|
103
100
|
display: block;
|
104
|
-
|
105
|
-
float: inline-start;
|
106
|
-
margin-bottom: 0.625rem;
|
101
|
+
font-weight: bold;
|
107
102
|
}
|
108
103
|
}
|
104
|
+
tr {
|
105
|
+
border: 1px solid;
|
106
|
+
border-color: rgba(var(--ax-color-border-default));
|
107
|
+
}
|
108
|
+
tr,
|
109
|
+
tbody {
|
110
|
+
display: block;
|
111
|
+
width: 100%;
|
112
|
+
float: inline-start;
|
113
|
+
margin-bottom: 0.625rem;
|
114
|
+
}
|
109
115
|
}
|
110
116
|
}
|
111
117
|
}
|
package/src/themes/default.scss
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
--ax-size-base: 2.5rem;
|
3
3
|
--ax-size-default: var(--ax-size-base);
|
4
4
|
|
5
|
-
--ax-rounded-border-default: 0.
|
5
|
+
--ax-rounded-border-default: 0.5rem;
|
6
6
|
--ax-color-border-default: 224, 224, 224;
|
7
7
|
|
8
8
|
--ax-color-background-default: 246, 247, 249;
|
@@ -101,6 +101,19 @@
|
|
101
101
|
--ax-color-info-800: 55, 48, 163;
|
102
102
|
--ax-color-info-900: 49, 46, 129;
|
103
103
|
--ax-color-info-950: 30, 27, 75;
|
104
|
+
|
105
|
+
--ax-color-gray-fore: 3, 7, 18;
|
106
|
+
--ax-color-gray-50: 249, 250, 251;
|
107
|
+
--ax-color-gray-100: 243, 244, 246;
|
108
|
+
--ax-color-gray-200: 229, 231, 235;
|
109
|
+
--ax-color-gray-300: 209, 213, 219;
|
110
|
+
--ax-color-gray-400: 156, 163, 175;
|
111
|
+
--ax-color-gray-500: 107, 114, 128;
|
112
|
+
--ax-color-gray-600: 75, 85, 99;
|
113
|
+
--ax-color-gray-700: 55, 65, 81;
|
114
|
+
--ax-color-gray-800: 31, 41, 55;
|
115
|
+
--ax-color-gray-900: 17, 24, 39;
|
116
|
+
--ax-color-gray-950: 3, 7, 18;
|
104
117
|
}
|
105
118
|
|
106
119
|
.ax-dark {
|
package/tailwind-base.js
CHANGED
@@ -117,6 +117,21 @@ module.exports = withAnimations({
|
|
117
117
|
900: withOpacityValue('--ax-color-info-900'),
|
118
118
|
950: withOpacityValue('--ax-color-info-950'),
|
119
119
|
},
|
120
|
+
gray: {
|
121
|
+
DEFAULT: withOpacityValue('--ax-color-gray-500'),
|
122
|
+
fore: withOpacityValue('--ax-color-gray-fore'),
|
123
|
+
50: withOpacityValue('--ax-color-gray-50'),
|
124
|
+
100: withOpacityValue('--ax-color-gray-100'),
|
125
|
+
200: withOpacityValue('--ax-color-gray-200'),
|
126
|
+
300: withOpacityValue('--ax-color-gray-300'),
|
127
|
+
400: withOpacityValue('--ax-color-gray-400'),
|
128
|
+
500: withOpacityValue('--ax-color-gray-500'),
|
129
|
+
600: withOpacityValue('--ax-color-gray-600'),
|
130
|
+
700: withOpacityValue('--ax-color-gray-700'),
|
131
|
+
800: withOpacityValue('--ax-color-gray-800'),
|
132
|
+
900: withOpacityValue('--ax-color-gray-900'),
|
133
|
+
950: withOpacityValue('--ax-color-gray-950'),
|
134
|
+
},
|
120
135
|
},
|
121
136
|
textColor: {
|
122
137
|
DEFAULT: withOpacityValue('--ax-color-text-default'),
|