@acorex/styles 7.0.27 → 7.0.28
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 +2 -0
- package/package.json +1 -1
- package/src/base/_theme.scss +2 -2
- package/src/shared/_editor-container.scss +21 -8
- package/src/shared/_general-button.scss +1 -1
- package/src/shared/_radio.scss +1 -1
- package/src/shared/_utils.scss +31 -24
- package/tailwind.config.js +8 -7
package/index.scss
CHANGED
package/package.json
CHANGED
package/src/base/_theme.scss
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
--ax-color-surface: 255, 255, 255;
|
6
6
|
--ax-color-on-surface: 242, 242, 242;
|
7
7
|
--ax-color-ghost: 30, 41, 59;
|
8
|
-
--ax-color-ghost-fore:
|
8
|
+
--ax-color-ghost-fore: 0, 0, 0;
|
9
9
|
}
|
10
10
|
@mixin dark-variables() {
|
11
11
|
--ax-color-background-default: 23, 32, 46;
|
@@ -14,5 +14,5 @@
|
|
14
14
|
--ax-color-surface: 45, 50, 63;
|
15
15
|
--ax-color-on-surface: 60, 68, 79;
|
16
16
|
--ax-color-ghost: 255, 255, 255;
|
17
|
-
--ax-color-ghost-fore:
|
17
|
+
--ax-color-ghost-fore: 255, 255, 255;
|
18
18
|
}
|
@@ -15,6 +15,10 @@
|
|
15
15
|
border-radius: var(--ax-rounded-border-default);
|
16
16
|
font-size: 1rem;
|
17
17
|
overflow: hidden;
|
18
|
+
&:focus-within {
|
19
|
+
border-color: rgb(var(--ax-color-primary-500));
|
20
|
+
box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
|
21
|
+
}
|
18
22
|
|
19
23
|
&.ax-sm {
|
20
24
|
.ax-input {
|
@@ -48,10 +52,6 @@
|
|
48
52
|
line-height: 1.25rem;
|
49
53
|
color: rgba(var(--ax-color-ghost), 0.63);
|
50
54
|
}
|
51
|
-
&:focus-within {
|
52
|
-
border-color: rgb(var(--ax-color-primary-500));
|
53
|
-
box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
|
54
|
-
}
|
55
55
|
|
56
56
|
&.ax-button-icon {
|
57
57
|
padding-left: 0.5rem;
|
@@ -81,7 +81,7 @@
|
|
81
81
|
& > .ax-prefix {
|
82
82
|
*,
|
83
83
|
.ax-button,
|
84
|
-
|
84
|
+
ax-title {
|
85
85
|
border-start-start-radius: 0.25rem /* 4px */;
|
86
86
|
border-end-start-radius: 0.25rem;
|
87
87
|
}
|
@@ -90,7 +90,7 @@
|
|
90
90
|
& > .ax-suffix {
|
91
91
|
*,
|
92
92
|
.ax-button,
|
93
|
-
|
93
|
+
ax-title {
|
94
94
|
border-start-end-radius: 0.25rem /* 4px */;
|
95
95
|
border-end-end-radius: 0.25rem;
|
96
96
|
}
|
@@ -106,15 +106,28 @@
|
|
106
106
|
border-radius: 0px;
|
107
107
|
}
|
108
108
|
|
109
|
-
|
109
|
+
ax-icon {
|
110
110
|
padding-left: 0.5rem /* 8px */;
|
111
111
|
padding-right: 0.5rem;
|
112
112
|
}
|
113
113
|
|
114
|
-
|
114
|
+
ax-title {
|
115
115
|
padding-left: 1rem /* 16px */;
|
116
116
|
padding-right: 1rem /* 16px */;
|
117
117
|
}
|
118
|
+
|
119
|
+
& > ax-text {
|
120
|
+
font-size: 0.875rem;
|
121
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
122
|
+
display: flex;
|
123
|
+
align-items: center;
|
124
|
+
justify-content: center;
|
125
|
+
padding: 0 0.5rem;
|
126
|
+
border-inline-start: 1px solid;
|
127
|
+
border-color: rgb(var(--ax-color-border-default));
|
128
|
+
color: rgba(var(--ax-color-ghost-fore));
|
129
|
+
line-height: 1;
|
130
|
+
}
|
118
131
|
}
|
119
132
|
|
120
133
|
.ax-button {
|
package/src/shared/_radio.scss
CHANGED
package/src/shared/_utils.scss
CHANGED
@@ -1,45 +1,52 @@
|
|
1
|
-
@import
|
1
|
+
@import '../variables/index.scss';
|
2
2
|
|
3
|
-
[class*=
|
4
|
-
[class^=
|
5
|
-
|
3
|
+
[class*=' ax-icon-'],
|
4
|
+
[class^='ax-icon-'] {
|
5
|
+
vertical-align: middle;
|
6
6
|
}
|
7
7
|
|
8
8
|
.ax-rotaion-0 {
|
9
|
-
|
9
|
+
transform: rotate(0);
|
10
10
|
}
|
11
11
|
|
12
12
|
@each $deg in $degrees {
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
.ax-rotation-#{$deg} {
|
14
|
+
transform: rotate(#{$deg}deg);
|
15
|
+
}
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
.-ax-rotation-#{$deg} {
|
18
|
+
transform: rotate(-#{$deg}deg);
|
19
|
+
}
|
20
20
|
}
|
21
21
|
|
22
22
|
.ax-transition-all {
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
transition-property: all;
|
24
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
25
|
+
transition-duration: 150ms;
|
26
26
|
}
|
27
27
|
|
28
28
|
.ax-w-full {
|
29
|
-
|
29
|
+
width: 100%;
|
30
30
|
}
|
31
31
|
|
32
32
|
.ax-h-full {
|
33
|
-
|
33
|
+
height: 100%;
|
34
34
|
}
|
35
35
|
|
36
36
|
.ax-fieldset {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
37
|
+
border: 1px solid;
|
38
|
+
border-color: rgb(var(--ax-color-border-default));
|
39
|
+
padding: 0.75rem;
|
40
|
+
border-radius: var(--ax-rounded-border-default);
|
41
|
+
legend {
|
42
|
+
font-size: 0.875rem;
|
43
|
+
padding: 0 0.25rem;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.ax-card {
|
48
|
+
background-color: rgb(var(--ax-color-surface));
|
49
|
+
border: 1px solid;
|
50
|
+
border-color: rgb(var(--ax-color-border-default));
|
51
|
+
border-radius: var(--ax-rounded-border-default);
|
45
52
|
}
|
package/tailwind.config.js
CHANGED
@@ -15,13 +15,8 @@ module.exports = withAnimations({
|
|
15
15
|
corePlugins: {
|
16
16
|
preflight: false,
|
17
17
|
},
|
18
|
-
content: [
|
19
|
-
|
20
|
-
'./projects/**/*.{html,ts,scss}',
|
21
|
-
// "./dist/acorex/**/*.{html,ts,scss}",
|
22
|
-
// "./node_modules/@acorex/**/*.{html,ts,js,mjs,scss}",
|
23
|
-
],
|
24
|
-
darkMode: 'class', // or 'media' or 'class'
|
18
|
+
content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
|
19
|
+
darkMode: 'class',
|
25
20
|
theme: {
|
26
21
|
extend: {
|
27
22
|
colors: {
|
@@ -119,6 +114,12 @@ module.exports = withAnimations({
|
|
119
114
|
'.animate-faster': {
|
120
115
|
animationDuration: '500ms',
|
121
116
|
},
|
117
|
+
'.card': {
|
118
|
+
backgroundColor: 'rgb(var(--ax-color-surface))',
|
119
|
+
border: '1px solid',
|
120
|
+
borderColor: 'rgb(var(--ax-color-border-default))',
|
121
|
+
borderRadius: 'var(--ax-rounded-border-default)',
|
122
|
+
},
|
122
123
|
'.bg-default': {
|
123
124
|
backgroundColor:
|
124
125
|
'rgb(var(--ax-color-default-background) / var(--tw-bg-opacity))',
|