@acorex/styles 5.8.0 → 5.9.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.js +195 -0
- package/index.scss +3 -4
- package/package.json +1 -1
- package/src/base/index.scss +3 -1
- package/src/components/_action-sheet.scss +1 -1
- package/src/components/_alert.scss +1 -5
- package/src/components/_avatar.scss +1 -1
- package/src/components/_badge.scss +146 -26
- package/src/components/_breadcrumbs.scss +12 -8
- package/src/components/_button.scss +2 -2
- package/src/components/_collapse.scss +5 -11
- package/src/components/_color-palette.scss +4 -20
- package/src/components/_color-picker.scss +1 -1
- package/src/components/_data-table.scss +1 -1
- package/src/components/_decoration.scss +3 -3
- package/src/components/_editor-container.scss +1 -1
- package/src/components/_fieldset.scss +1 -1
- package/src/components/_input.scss +1 -1
- package/src/components/_menu.scss +1 -1
- package/src/components/_popup.scss +3 -3
- package/src/components/_progress.scss +9 -10
- package/src/components/_range-slider.scss +161 -30
- package/src/components/_result.scss +2 -2
- package/src/components/_selection-list.scss +1 -1
- package/src/components/_table.scss +5 -5
- package/src/icons/demo.html +556 -556
- package/src/icons/fonts/acorex-icon.svg +46 -46
- package/src/icons/style.css +138 -138
- package/src/icons/style.scss +215 -215
- package/src/icons/variables.scss +41 -41
- package/src/utility/_mixins.scss +3 -66
- package/src/utility/index.scss +3 -3
package/index.js
ADDED
@@ -0,0 +1,195 @@
|
|
1
|
+
const plugin = require("tailwindcss/plugin");
|
2
|
+
const withAnimations = require("animated-tailwindcss");
|
3
|
+
function withOpacityValue(variable) {
|
4
|
+
return ({ opacityValue }) => {
|
5
|
+
if (opacityValue === undefined) {
|
6
|
+
return `rgb(var(${variable}))`;
|
7
|
+
}
|
8
|
+
return `rgb(var(${variable}) / ${opacityValue})`;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
|
12
|
+
module.exports = withAnimations({
|
13
|
+
prefix: "ax-",
|
14
|
+
darkMode: "class",
|
15
|
+
mode: "jit",
|
16
|
+
content:['./projects/documentation/**/*.{html,ts,scss}",'],
|
17
|
+
// content: [
|
18
|
+
// "./src/**/*.{html,ts,scss}",
|
19
|
+
// "./projects/**/*.{html,ts,scss}",
|
20
|
+
// "./dist/acorex/**/*.{html,ts,scss}",
|
21
|
+
// "./node_modules/@acorex/**/*.{html,ts,js,mjs,scss}",
|
22
|
+
// ],
|
23
|
+
darkMode: "class", // or 'media' or 'class'
|
24
|
+
theme: {
|
25
|
+
extend: {
|
26
|
+
colors: {
|
27
|
+
black: withOpacityValue("--ax-color-black"),
|
28
|
+
white: withOpacityValue("--ax-color-white"),
|
29
|
+
"default-background": withOpacityValue("--ax-color-default-background"),
|
30
|
+
"default-color": withOpacityValue("--ax-color-default-color"),
|
31
|
+
primary: {
|
32
|
+
fore: withOpacityValue("--ax-color-primary-fore"),
|
33
|
+
50: withOpacityValue("--ax-color-primary-50"),
|
34
|
+
100: withOpacityValue("--ax-color-primary-100"),
|
35
|
+
200: withOpacityValue("--ax-color-primary-200"),
|
36
|
+
300: withOpacityValue("--ax-color-primary-300"),
|
37
|
+
400: withOpacityValue("--ax-color-primary-400"),
|
38
|
+
500: withOpacityValue("--ax-color-primary-500"),
|
39
|
+
600: withOpacityValue("--ax-color-primary-600"),
|
40
|
+
700: withOpacityValue("--ax-color-primary-700"),
|
41
|
+
800: withOpacityValue("--ax-color-primary-800"),
|
42
|
+
900: withOpacityValue("--ax-color-primary-900"),
|
43
|
+
},
|
44
|
+
secondary: {
|
45
|
+
fore: withOpacityValue("--ax-color-secondary-fore"),
|
46
|
+
50: withOpacityValue("--ax-color-secondary-50"),
|
47
|
+
100: withOpacityValue("--ax-color-secondary-100"),
|
48
|
+
200: withOpacityValue("--ax-color-secondary-200"),
|
49
|
+
300: withOpacityValue("--ax-color-secondary-300"),
|
50
|
+
400: withOpacityValue("--ax-color-secondary-400"),
|
51
|
+
500: withOpacityValue("--ax-color-secondary-500"),
|
52
|
+
600: withOpacityValue("--ax-color-secondary-600"),
|
53
|
+
700: withOpacityValue("--ax-color-secondary-700"),
|
54
|
+
800: withOpacityValue("--ax-color-secondary-800"),
|
55
|
+
900: withOpacityValue("--ax-color-secondary-900"),
|
56
|
+
},
|
57
|
+
success: {
|
58
|
+
fore: withOpacityValue("--ax-color-success-fore"),
|
59
|
+
50: withOpacityValue("--ax-color-success-50"),
|
60
|
+
100: withOpacityValue("--ax-color-success-100"),
|
61
|
+
200: withOpacityValue("--ax-color-success-200"),
|
62
|
+
300: withOpacityValue("--ax-color-success-300"),
|
63
|
+
400: withOpacityValue("--ax-color-success-400"),
|
64
|
+
500: withOpacityValue("--ax-color-success-500"),
|
65
|
+
600: withOpacityValue("--ax-color-success-600"),
|
66
|
+
700: withOpacityValue("--ax-color-success-700"),
|
67
|
+
800: withOpacityValue("--ax-color-success-800"),
|
68
|
+
900: withOpacityValue("--ax-color-success-900"),
|
69
|
+
},
|
70
|
+
danger: {
|
71
|
+
fore: withOpacityValue("--ax-color-danger-fore"),
|
72
|
+
50: withOpacityValue("--ax-color-danger-50"),
|
73
|
+
100: withOpacityValue("--ax-color-danger-100"),
|
74
|
+
200: withOpacityValue("--ax-color-danger-200"),
|
75
|
+
300: withOpacityValue("--ax-color-danger-300"),
|
76
|
+
400: withOpacityValue("--ax-color-danger-400"),
|
77
|
+
500: withOpacityValue("--ax-color-danger-500"),
|
78
|
+
600: withOpacityValue("--ax-color-danger-600"),
|
79
|
+
700: withOpacityValue("--ax-color-danger-700"),
|
80
|
+
800: withOpacityValue("--ax-color-danger-800"),
|
81
|
+
900: withOpacityValue("--ax-color-danger-900"),
|
82
|
+
},
|
83
|
+
warning: {
|
84
|
+
fore: withOpacityValue("--ax-color-warning-fore"),
|
85
|
+
50: withOpacityValue("--ax-color-warning-50"),
|
86
|
+
100: withOpacityValue("--ax-color-warning-100"),
|
87
|
+
200: withOpacityValue("--ax-color-warning-200"),
|
88
|
+
300: withOpacityValue("--ax-color-warning-300"),
|
89
|
+
400: withOpacityValue("--ax-color-warning-400"),
|
90
|
+
500: withOpacityValue("--ax-color-warning-500"),
|
91
|
+
600: withOpacityValue("--ax-color-warning-600"),
|
92
|
+
700: withOpacityValue("--ax-color-warning-700"),
|
93
|
+
800: withOpacityValue("--ax-color-warning-800"),
|
94
|
+
900: withOpacityValue("--ax-color-warning-900"),
|
95
|
+
},
|
96
|
+
info: {
|
97
|
+
fore: withOpacityValue("--ax-color-info-fore"),
|
98
|
+
50: withOpacityValue("--ax-color-info-50"),
|
99
|
+
100: withOpacityValue("--ax-color-info-100"),
|
100
|
+
200: withOpacityValue("--ax-color-info-200"),
|
101
|
+
300: withOpacityValue("--ax-color-info-300"),
|
102
|
+
400: withOpacityValue("--ax-color-info-400"),
|
103
|
+
500: withOpacityValue("--ax-color-info-500"),
|
104
|
+
600: withOpacityValue("--ax-color-info-600"),
|
105
|
+
700: withOpacityValue("--ax-color-info-700"),
|
106
|
+
800: withOpacityValue("--ax-color-info-800"),
|
107
|
+
900: withOpacityValue("--ax-color-info-900"),
|
108
|
+
},
|
109
|
+
light: {
|
110
|
+
fore: withOpacityValue("--ax-color-light-fore"),
|
111
|
+
50: withOpacityValue("--ax-color-light-50"),
|
112
|
+
100: withOpacityValue("--ax-color-light-100"),
|
113
|
+
200: withOpacityValue("--ax-color-light-200"),
|
114
|
+
300: withOpacityValue("--ax-color-light-300"),
|
115
|
+
400: withOpacityValue("--ax-color-light-400"),
|
116
|
+
500: withOpacityValue("--ax-color-light-500"),
|
117
|
+
600: withOpacityValue("--ax-color-light-600"),
|
118
|
+
700: withOpacityValue("--ax-color-light-700"),
|
119
|
+
800: withOpacityValue("--ax-color-light-800"),
|
120
|
+
900: withOpacityValue("--ax-color-light-900"),
|
121
|
+
},
|
122
|
+
dark: {
|
123
|
+
fore: withOpacityValue("--ax-color-dark-fore"),
|
124
|
+
50: withOpacityValue("--ax-color-dark-50"),
|
125
|
+
100: withOpacityValue("--ax-color-dark-100"),
|
126
|
+
200: withOpacityValue("--ax-color-dark-200"),
|
127
|
+
300: withOpacityValue("--ax-color-dark-300"),
|
128
|
+
400: withOpacityValue("--ax-color-dark-400"),
|
129
|
+
500: withOpacityValue("--ax-color-dark-500"),
|
130
|
+
600: withOpacityValue("--ax-color-dark-600"),
|
131
|
+
700: withOpacityValue("--ax-color-dark-700"),
|
132
|
+
800: withOpacityValue("--ax-color-dark-800"),
|
133
|
+
900: withOpacityValue("--ax-color-dark-900"),
|
134
|
+
},
|
135
|
+
},
|
136
|
+
width: {
|
137
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
138
|
+
},
|
139
|
+
minWidth: {
|
140
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
141
|
+
},
|
142
|
+
maxWidth: {
|
143
|
+
"8xl": "90rem",
|
144
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
145
|
+
},
|
146
|
+
height: {
|
147
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
148
|
+
},
|
149
|
+
minHeight: {
|
150
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
151
|
+
},
|
152
|
+
maxHeight: {
|
153
|
+
base: "calc((var(--ax-base-size) * var(--ax-base-ratio)))",
|
154
|
+
},
|
155
|
+
borderRadius: {
|
156
|
+
default: "var(--ax-border-rounded-default)",
|
157
|
+
},
|
158
|
+
},
|
159
|
+
},
|
160
|
+
variants: {
|
161
|
+
extend: {},
|
162
|
+
},
|
163
|
+
plugins: [
|
164
|
+
plugin(function ({ addUtilities }) {
|
165
|
+
const acorexClasses = {
|
166
|
+
".animate-fast": {
|
167
|
+
animationDuration: "800ms",
|
168
|
+
},
|
169
|
+
".animate-faster": {
|
170
|
+
animationDuration: "500ms",
|
171
|
+
},
|
172
|
+
".bg-default": {
|
173
|
+
backgroundColor:
|
174
|
+
"rgb(var(--ax-color-default-background) / var(--tw-bg-opacity))",
|
175
|
+
},
|
176
|
+
".text-default": {
|
177
|
+
backgroundColor:
|
178
|
+
"rgb(var(--ax-color-default-color) / var(--tw-text-opacity))",
|
179
|
+
},
|
180
|
+
".rtl": {
|
181
|
+
direction: "rtl",
|
182
|
+
},
|
183
|
+
".ltr": {
|
184
|
+
direction: "ltr",
|
185
|
+
},
|
186
|
+
};
|
187
|
+
addUtilities(acorexClasses, ["responsive", "hover", "focus"]);
|
188
|
+
}),
|
189
|
+
require("postcss-import"),
|
190
|
+
require("tailwindcss/nesting")(require("postcss-nesting")),
|
191
|
+
require("tailwindcss"),
|
192
|
+
require("autoprefixer"),
|
193
|
+
require("tailwind-rtl-utilities"),
|
194
|
+
],
|
195
|
+
});
|
package/index.scss
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
@import "./src/variables/colors";
|
2
2
|
@import "./src/icons/style.scss";
|
3
3
|
|
4
|
-
@
|
5
|
-
@
|
6
|
-
@import "tailwindcss/utilities";
|
7
|
-
|
4
|
+
@tailwind base;
|
5
|
+
@tailwind components;
|
8
6
|
@import "./src/base/index.scss";
|
9
7
|
@import "./src/components/index.scss";
|
10
8
|
@import "./src/utility/index.scss";
|
9
|
+
@tailwind utilities;
|
11
10
|
|
package/package.json
CHANGED
package/src/base/index.scss
CHANGED
@@ -6,11 +6,13 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
:root {
|
9
|
-
--ax-
|
9
|
+
--ax-size: 8px;
|
10
|
+
--ax-base-size: var(--ax-size);
|
10
11
|
--ax-base-ratio: 6;
|
11
12
|
--ax-color-default-background: 255, 255, 255;
|
12
13
|
--ax-color-default-color: 107, 114, 128;
|
13
14
|
--ax-overlay-full-width: 93;
|
15
|
+
--ax-border-rounded-default: 6px;
|
14
16
|
@include colors($theme-colors);
|
15
17
|
}
|
16
18
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
ax-action-sheet,
|
3
3
|
.ax-action-sheet {
|
4
4
|
.ax-action-sheet-container {
|
5
|
-
@apply ax-fixed ax-bottom-0 ax-left-1/2 -ax-translate-x-1/2 ax-z-[9999] ax-w-1/3 ax-rounded-t-
|
5
|
+
@apply ax-fixed ax-bottom-0 ax-left-1/2 -ax-translate-x-1/2 ax-z-[9999] ax-w-1/3 ax-rounded-t-default ax-overflow-hidden;
|
6
6
|
|
7
7
|
@include screen(mobile) {
|
8
8
|
@apply ax-w-full;
|
@@ -30,7 +30,7 @@
|
|
30
30
|
@apply ax-ring-offset-0 #{!important};
|
31
31
|
}
|
32
32
|
ax-content {
|
33
|
-
@apply ax-flex ax-items-center ax-break-words ax-whitespace-pre;
|
33
|
+
@apply ax-flex ax-items-center ax-break-words ax-whitespace-pre-wrap;
|
34
34
|
|
35
35
|
ul {
|
36
36
|
@apply ax-my-2 ax-ms-5 ax-list-disc;
|
@@ -83,10 +83,6 @@
|
|
83
83
|
}
|
84
84
|
}
|
85
85
|
|
86
|
-
// @include button-on-colorful-bg();
|
87
|
-
|
88
|
-
// @include color-look-generator();
|
89
|
-
|
90
86
|
// primary
|
91
87
|
&.ax-primary-default {
|
92
88
|
@apply ax-bg-primary-500 ax-text-primary-fore dark:ax-bg-primary-800 dark:ax-text-primary-100;
|
@@ -15,31 +15,151 @@
|
|
15
15
|
@apply ax-m-0;
|
16
16
|
}
|
17
17
|
}
|
18
|
+
&.ax-badge-icon{
|
19
|
+
width: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 15px);
|
20
|
+
height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 15px);
|
21
|
+
}
|
22
|
+
&.ax-primary-default {
|
23
|
+
@apply ax-bg-primary-500 ax-text-primary-fore ax-border-transparent dark:ax-bg-primary-800;
|
24
|
+
}
|
25
|
+
&.ax-primary-twotone {
|
26
|
+
@apply ax-bg-primary-100 ax-text-primary-500 ax-border-transparent dark:ax-bg-primary-800 dark:ax-text-primary-100;
|
27
|
+
}
|
28
|
+
&.ax-primary-outline {
|
29
|
+
@apply ax-text-primary-500 ax-border ax-border-primary-500 dark:ax-border-primary-400 dark:ax-text-primary-300;
|
30
|
+
}
|
31
|
+
&.ax-primary-blank {
|
32
|
+
@apply ax-text-primary-500 ax-border-transparent dark:ax-text-primary-300;
|
33
|
+
}
|
34
|
+
&.ax-primary-link {
|
35
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-primary-500 ax-border-primary-500 dark:ax-border-primary-400 dark:ax-text-primary-300;
|
36
|
+
}
|
37
|
+
|
38
|
+
// secondary
|
39
|
+
&.ax-secondary-default {
|
40
|
+
@apply ax-bg-secondary-500 ax-text-secondary-fore ax-border-transparent dark:ax-bg-secondary-800;
|
41
|
+
}
|
42
|
+
&.ax-secondary-twotone {
|
43
|
+
@apply ax-bg-secondary-100 ax-text-secondary-500 ax-border-transparent dark:ax-bg-secondary-800 dark:ax-text-secondary-100;
|
44
|
+
}
|
45
|
+
&.ax-secondary-outline {
|
46
|
+
@apply ax-text-secondary-500 ax-border ax-border-secondary-500 dark:ax-border-secondary-400 dark:ax-text-secondary-300;
|
47
|
+
}
|
48
|
+
&.ax-secondary-blank {
|
49
|
+
@apply ax-text-secondary-500 ax-border-transparent dark:ax-text-secondary-300;
|
50
|
+
}
|
51
|
+
&.ax-secondary-link {
|
52
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-secondary-500 ax-border-secondary-500 dark:ax-border-secondary-400 dark:ax-text-secondary-300;
|
53
|
+
}
|
54
|
+
// success
|
55
|
+
&.ax-success-default {
|
56
|
+
@apply ax-bg-success-500 ax-text-success-fore ax-border-transparent dark:ax-bg-success-800;
|
57
|
+
}
|
58
|
+
&.ax-success-twotone {
|
59
|
+
@apply ax-bg-success-100 ax-text-success-500 ax-border-transparent dark:ax-bg-success-800 dark:ax-text-success-100;
|
60
|
+
}
|
61
|
+
&.ax-success-outline {
|
62
|
+
@apply ax-text-success-500 ax-border ax-border-success-500 dark:ax-border-success-400 dark:ax-text-success-300;
|
63
|
+
}
|
64
|
+
&.ax-success-blank {
|
65
|
+
@apply ax-text-success-500 ax-border-transparent dark:ax-text-success-300;
|
66
|
+
}
|
67
|
+
&.ax-success-link {
|
68
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-success-500 ax-border-success-500 dark:ax-border-success-400 dark:ax-text-success-300;
|
69
|
+
}
|
70
|
+
// warning
|
71
|
+
&.ax-warning-default {
|
72
|
+
@apply ax-bg-warning-500 ax-text-warning-fore ax-border-transparent dark:ax-bg-warning-800;
|
73
|
+
}
|
74
|
+
&.ax-warning-twotone {
|
75
|
+
@apply ax-bg-warning-100 ax-text-warning-900 ax-border-transparent dark:ax-bg-warning-800 dark:ax-text-warning-fore;
|
76
|
+
}
|
77
|
+
&.ax-warning-outline {
|
78
|
+
@apply ax-text-warning-500 ax-border ax-border-warning-500 dark:ax-border-warning-400 dark:ax-text-warning-300;
|
79
|
+
}
|
80
|
+
&.ax-warning-blank {
|
81
|
+
@apply ax-text-warning-500 ax-border-transparent dark:ax-text-warning-300;
|
82
|
+
}
|
83
|
+
&.ax-warning-link {
|
84
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-warning-500 ax-border-warning-500 dark:ax-border-warning-400 dark:ax-text-warning-300;
|
85
|
+
}
|
86
|
+
// danger
|
87
|
+
&.ax-danger-default {
|
88
|
+
@apply ax-bg-danger-500 ax-text-danger-fore ax-border-transparent dark:ax-bg-danger-800;
|
89
|
+
}
|
90
|
+
&.ax-danger-twotone {
|
91
|
+
@apply ax-bg-danger-100 ax-text-danger-500 ax-border-transparent dark:ax-bg-danger-800 dark:ax-text-danger-100;
|
92
|
+
}
|
93
|
+
&.ax-danger-outline {
|
94
|
+
@apply ax-text-danger-500 ax-border ax-border-danger-500 dark:ax-border-danger-400 dark:ax-text-danger-300;
|
95
|
+
}
|
96
|
+
&.ax-danger-blank {
|
97
|
+
@apply ax-text-danger-500 ax-border-transparent dark:ax-text-danger-300;
|
98
|
+
}
|
99
|
+
&.ax-danger-link {
|
100
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-danger-500 ax-border-danger-500 dark:ax-border-danger-400 dark:ax-text-danger-300;
|
101
|
+
}
|
102
|
+
|
103
|
+
// info
|
104
|
+
&.ax-info-default {
|
105
|
+
@apply ax-bg-info-500 ax-text-info-fore ax-border-transparent dark:ax-bg-info-800;
|
106
|
+
}
|
107
|
+
&.ax-info-twotone {
|
108
|
+
@apply ax-bg-info-100 ax-text-info-500 ax-border-transparent dark:ax-bg-info-800 dark:ax-text-info-100;
|
109
|
+
}
|
110
|
+
&.ax-info-outline {
|
111
|
+
@apply ax-text-info-500 ax-border ax-border-info-500 dark:ax-border-info-400 dark:ax-text-info-300;
|
112
|
+
}
|
113
|
+
&.ax-info-blank {
|
114
|
+
@apply ax-text-info-500 ax-border-transparent dark:ax-text-info-300;
|
115
|
+
}
|
116
|
+
&.ax-info-link {
|
117
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-info-500 ax-border-info-500 dark:ax-border-info-400 dark:ax-text-info-300;
|
118
|
+
}
|
119
|
+
|
120
|
+
// dark
|
121
|
+
&.ax-dark-default {
|
122
|
+
@apply ax-bg-dark-500 ax-text-dark-fore ax-border-transparent dark:ax-bg-dark-600;
|
123
|
+
|
124
|
+
}
|
125
|
+
&.ax-dark-twotone {
|
126
|
+
@apply ax-bg-dark-50 ax-text-dark-500 ax-border-transparent dark:ax-bg-dark-300 dark:ax-text-dark-700;
|
127
|
+
|
128
|
+
}
|
129
|
+
&.ax-dark-outline {
|
130
|
+
@apply ax-text-dark-500 ax-border-dark-500 dark:ax-text-dark-100 dark:ax-border-dark-100;
|
131
|
+
|
132
|
+
}
|
133
|
+
&.ax-dark-blank {
|
134
|
+
@apply ax-text-dark-500 ax-border-transparent dark:ax-text-dark-50;
|
135
|
+
|
136
|
+
}
|
137
|
+
&.ax-dark-link {
|
138
|
+
@apply ax-rounded-none ax-border-b ax-border-e-0 ax-border-s-0 ax-border-t-0 ax-text-dark-500 ax-border-dark-500 dark:ax-border-dark-50 dark:ax-text-dark-50;
|
139
|
+
|
140
|
+
}
|
141
|
+
|
142
|
+
// light
|
143
|
+
&.ax-light-default {
|
144
|
+
@apply ax-bg-light-100 ax-text-light-fore dark:ax-bg-light-800 dark:ax-border-light-800 dark:ax-text-light-100;
|
145
|
+
|
146
|
+
}
|
147
|
+
&.ax-light-twotone {
|
148
|
+
@apply ax-bg-light-200 ax-text-light-fore dark:ax-bg-light-600 dark:ax-border-light-600 dark:ax-text-light-100;
|
149
|
+
|
150
|
+
}
|
151
|
+
&.ax-light-outline {
|
152
|
+
@apply ax-text-light-fore ax-border ax-border-light-300 dark:ax-border-light-500 dark:ax-text-light-100;
|
153
|
+
|
154
|
+
}
|
155
|
+
&.ax-light-link {
|
156
|
+
@apply ax-text-light-fore ax-border-b ax-rounded-none ax-border-light-300 dark:ax-text-light-100 dark:ax-border-light-500;
|
157
|
+
|
158
|
+
}
|
159
|
+
&.ax-light-blank {
|
160
|
+
@apply ax-text-light-fore dark:ax-border-light-600 dark:ax-text-light-100;
|
161
|
+
}
|
18
162
|
|
19
|
-
|
20
|
-
// &.ax-primary-default {
|
21
|
-
// @apply ax-bg-primary-50 ax-text-primary-500 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
|
22
|
-
// }
|
23
|
-
// &.ax-secondary-default {
|
24
|
-
// @apply ax-bg-secondary-50 ax-text-secondary-500 dark:ax-bg-secondary-500 dark:ax-text-secondary-fore;
|
25
|
-
// }
|
26
|
-
// &.ax-success-default {
|
27
|
-
// @apply ax-bg-success-50 ax-text-success-500 dark:ax-bg-success-500 dark:ax-text-success-fore;
|
28
|
-
// }
|
29
|
-
// &.ax-warning-default {
|
30
|
-
// @apply ax-bg-warning-50 ax-text-warning-700 dark:ax-bg-warning-500 dark:ax-text-warning-fore;
|
31
|
-
// }
|
32
|
-
// &.ax-danger-default {
|
33
|
-
// @apply ax-bg-danger-50 ax-text-danger-500 dark:ax-bg-danger-500 dark:ax-text-danger-fore;
|
34
|
-
// }
|
35
|
-
// &.ax-info-default {
|
36
|
-
// @apply ax-bg-info-50 ax-text-info-500 dark:ax-bg-info-500 dark:ax-text-info-fore;
|
37
|
-
// }
|
38
|
-
// &.ax-light-default {
|
39
|
-
// @apply ax-bg-light-200 ax-text-light-700;
|
40
|
-
// }
|
41
|
-
// &.ax-dark-default {
|
42
|
-
// @apply ax-bg-dark-500 ax-text-dark-fore dark:ax-bg-dark-500 dark:ax-text-dark-50;
|
43
|
-
// }
|
163
|
+
|
44
164
|
}
|
45
|
-
}
|
165
|
+
}
|
@@ -1,24 +1,28 @@
|
|
1
1
|
@layer components {
|
2
2
|
ax-breadcrumbs,
|
3
3
|
.ax-breadcrumbs {
|
4
|
-
@apply ax-flex ax-items-center;
|
4
|
+
@apply ax-inline-flex ax-items-center ax-space-x-1 md:ax-space-x-3;
|
5
5
|
ax-breadcrumbs-item,
|
6
6
|
.ax-breadcrumbs-item {
|
7
|
+
@apply ax-inline-flex ax-items-center ax-text-sm ax-font-medium ax-text-light-500 dark:ax-text-light-400 ax-cursor-pointer ax-select-none;
|
8
|
+
.ax-breadcrumbs-item-text {
|
9
|
+
@apply ax-pe-2 hover:ax-text-light-900 dark:hover:ax-text-white;
|
10
|
+
}
|
7
11
|
ax-prefix {
|
8
12
|
@apply ax-pe-2;
|
9
13
|
}
|
10
14
|
ax-suffix {
|
11
15
|
@apply ax-ps-2;
|
12
16
|
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
content: "/";
|
17
|
+
.ax-breadcrumb-divider {
|
18
|
+
@apply dark:ax-text-white/30;
|
19
|
+
}
|
20
|
+
&:last-child{
|
21
|
+
.ax-breadcrumb-divider{
|
22
|
+
@apply ax-hidden
|
20
23
|
}
|
21
24
|
}
|
22
25
|
}
|
26
|
+
|
23
27
|
}
|
24
28
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@layer components {
|
2
2
|
ax-button {
|
3
|
-
@apply ax-text-sm ax-relative ax-inline-flex ax-items-center ax-justify-center ax-rounded-
|
3
|
+
@apply ax-text-sm ax-relative ax-inline-flex ax-items-center ax-justify-center ax-rounded-default ax-select-none ax-font-medium ax-whitespace-nowrap ax-overflow-hidden ax-text-ellipsis ax-transition-all;
|
4
4
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
|
5
5
|
line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2) !important;
|
6
6
|
|
7
7
|
& > button {
|
8
|
-
@apply ax-inline-flex ax-items-center ax-justify-center
|
8
|
+
@apply ax-inline-flex ax-items-center ax-justify-center ax-font-medium ax-whitespace-nowrap ax-overflow-hidden ax-text-ellipsis ax-px-4 ax-w-full ax-h-full;
|
9
9
|
&:focus,
|
10
10
|
&:focus-visible {
|
11
11
|
@apply ax-outline-none;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
@layer components {
|
2
2
|
ax-collpase,
|
3
3
|
.ax-collapse {
|
4
|
-
@apply ax-border ax-border-light-200 ax-block ax-text-sm ax-rounded ax-overflow-hidden;
|
5
|
-
@include control-states("surface");
|
4
|
+
@apply ax-border ax-border-light-200 dark:ax-border-white/10 ax-block ax-text-sm ax-rounded-default ax-overflow-hidden;
|
6
5
|
|
7
6
|
.ax-collapse-header {
|
8
7
|
@apply ax-cursor-pointer ax-select-none;
|
@@ -18,15 +17,11 @@
|
|
18
17
|
@apply ax-border-b-0;
|
19
18
|
}
|
20
19
|
}
|
21
|
-
.ax-collapse-custom-header-container {
|
22
|
-
@apply ax-bg-light-100 ax-border-b ax-border-light-
|
23
|
-
@include control-states("surface");
|
24
|
-
|
20
|
+
.ax-collapse-custom-header-container,.ax-collapse-header-container {
|
21
|
+
@apply ax-bg-light-100 dark:ax-bg-white/10 ax-border-b ax-border-light-100 dark:ax-border-white/10;
|
25
22
|
}
|
26
23
|
.ax-collapse-header-container {
|
27
|
-
@apply ax-flex ax-justify-between ax-
|
28
|
-
@include control-states("surface");
|
29
|
-
|
24
|
+
@apply ax-flex ax-justify-between ax-p-3 ;
|
30
25
|
.ax-collapse-arrow {
|
31
26
|
@apply ax-inline-block ax-text-xl ax-me-2 ax-rotate-90;
|
32
27
|
}
|
@@ -37,8 +32,7 @@
|
|
37
32
|
}
|
38
33
|
}
|
39
34
|
.ax-collapse-group {
|
40
|
-
@apply ax-block ax-border ax-border-light-200 ax-rounded ax-overflow-hidden;
|
41
|
-
@include control-states('surface');
|
35
|
+
@apply ax-block ax-border ax-border-light-200 dark:ax-border-white/10 ax-rounded-default ax-overflow-hidden;
|
42
36
|
|
43
37
|
ax-collpase,
|
44
38
|
.ax-collapse {
|
@@ -23,7 +23,7 @@
|
|
23
23
|
@include control-states("editor");
|
24
24
|
}
|
25
25
|
ax-color-palette-preview {
|
26
|
-
@apply ax-relative ax-h-20 ax-w-full ax-rounded-t ax-bg-primary-50 ax-flex ax-justify-center ax-items-center ax-font-semibold ax-shadow-sm ax-border-b ax-border-light-200 dark:ax-border-white/
|
26
|
+
@apply ax-relative ax-h-20 ax-w-full ax-rounded-t ax-bg-primary-50 ax-flex ax-justify-center ax-items-center ax-font-semibold ax-shadow-sm ax-border-b ax-border-light-200 dark:ax-border-white/10 ax-transition-all;
|
27
27
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADFJREFUOE9jZGBgEGHAD97gk2YcNYBhmIQBgWSAP52AwoAQwJvQRg1gACckQoC2gQgAIF8IscwEtKYAAAAASUVORK5CYII=")
|
28
28
|
left center;
|
29
29
|
.palette-preview-overlay {
|
@@ -32,14 +32,14 @@
|
|
32
32
|
}
|
33
33
|
|
34
34
|
ax-color-palette-favorite {
|
35
|
-
@apply ax-border-t ax-border-light-200 dark:ax-border-white/
|
35
|
+
@apply ax-border-t ax-border-light-200 dark:ax-border-white/10 ax-block;
|
36
36
|
}
|
37
37
|
|
38
38
|
ax-color-palette-swatches,
|
39
39
|
ax-color-palette-favorite {
|
40
40
|
@apply ax-p-2 ax-grid-cols-8 ax-gap-0.5 ax-grid ax-max-h-36 ax-overflow-y-auto ax-overflow-x-hidden;
|
41
41
|
div {
|
42
|
-
@apply ax-relative ax-bg-dark-100 ax-flex ax-items-center ax-justify-center ax-cursor-pointer ax-m-0.5 ax-rounded ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/
|
42
|
+
@apply ax-relative ax-bg-dark-100 ax-flex ax-items-center ax-justify-center ax-cursor-pointer ax-m-0.5 ax-rounded ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/10;
|
43
43
|
|
44
44
|
&::before {
|
45
45
|
content: "";
|
@@ -78,7 +78,7 @@
|
|
78
78
|
ax-color-palette-picker {
|
79
79
|
@apply ax-flex ax-flex-col ax-gap-2 ax-p-2;
|
80
80
|
.ax-color-picker-overlay {
|
81
|
-
@apply ax-block ax-w-full ax-h-32
|
81
|
+
@apply ax-block ax-w-full ax-h-32 ax-relative;
|
82
82
|
.ax-color-picker-pointer {
|
83
83
|
@apply ax-w-3 ax-h-3 ax-rounded-full ax-bg-transparent ax-border ax-border-white ax-shadow-md;
|
84
84
|
}
|
@@ -92,22 +92,6 @@
|
|
92
92
|
}
|
93
93
|
|
94
94
|
}
|
95
|
-
// .ax-color-picker-gradient-line,
|
96
|
-
// .ax-color-picker-transparent-line {
|
97
|
-
// @apply ax-h-3 ax-w-full ax-block ax-relative;
|
98
|
-
// }
|
99
|
-
// .ax-color-picker-gradient-line {
|
100
|
-
// background: linear-gradient(
|
101
|
-
// to right,
|
102
|
-
// rgb(255, 0, 0) 0%,
|
103
|
-
// rgb(255, 255, 0) 17%,
|
104
|
-
// rgb(0, 255, 0) 33%,
|
105
|
-
// rgb(0, 255, 255) 50%,
|
106
|
-
// rgb(0, 0, 255) 67%,
|
107
|
-
// rgb(255, 0, 255) 83%,
|
108
|
-
// rgb(255, 0, 0) 100%
|
109
|
-
// );
|
110
|
-
// }
|
111
95
|
|
112
96
|
ax-range-slider
|
113
97
|
{
|
@@ -4,7 +4,7 @@
|
|
4
4
|
@apply ax-mx-2 ax-flex ax-items-center;
|
5
5
|
|
6
6
|
.color-badge {
|
7
|
-
@apply ax-block ax-rounded ax-me-2 ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/
|
7
|
+
@apply ax-block ax-rounded ax-me-2 ax-shadow-sm ax-border ax-border-light-200 dark:ax-border-white/10;
|
8
8
|
width: calc(var(--ax-base-size) * var(--ax-base-ratio) / 2);
|
9
9
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio) / 2);
|
10
10
|
}
|
@@ -20,7 +20,7 @@
|
|
20
20
|
}
|
21
21
|
|
22
22
|
ax-title {
|
23
|
-
@apply ax-font-
|
23
|
+
@apply ax-font-normal;
|
24
24
|
}
|
25
25
|
|
26
26
|
ax-icon {
|
@@ -29,9 +29,9 @@
|
|
29
29
|
|
30
30
|
ax-close-button {
|
31
31
|
ax-icon {
|
32
|
-
@apply ax-text-light-
|
32
|
+
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
33
33
|
&:hover {
|
34
|
-
@apply ax-text-light-
|
34
|
+
@apply ax-text-light-400 dark:ax-text-light-100;
|
35
35
|
}
|
36
36
|
}
|
37
37
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
.ax-editor-container {
|
3
3
|
height: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
4
4
|
line-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
|
5
|
-
@apply ax-flex ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
|
5
|
+
@apply ax-flex ax-rounded-default ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300;
|
6
6
|
@include control-states("editor");
|
7
7
|
|
8
8
|
@screen md {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@layer components{
|
2
2
|
fieldset{
|
3
|
-
@apply ax-grid ax-col-span-6 ax-grid-cols-6 ax-gap-4 ax-border ax-border-solid ax-border-light-300 ax-p-3 ax-rounded;
|
3
|
+
@apply ax-grid ax-col-span-6 ax-grid-cols-6 ax-gap-4 ax-border ax-border-solid ax-border-light-300 ax-p-3 ax-rounded dark:ax-border-white/10;
|
4
4
|
legend{
|
5
5
|
@apply ax-text-sm ax-px-1;
|
6
6
|
}
|