@acorex/styles 7.0.16 → 7.0.17
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/base/index.scss +17 -16
- package/src/shared/_decoration.scss +30 -33
- package/src/shared/_drop-down.scss +133 -139
- package/src/shared/_editor-container.scss +1 -4
package/package.json
CHANGED
package/src/base/index.scss
CHANGED
@@ -1,26 +1,27 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import
|
1
|
+
@import '../mixins/index.scss';
|
2
|
+
@import './normalize';
|
3
|
+
@import './theme';
|
4
4
|
|
5
5
|
:root {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
--ax-size-default: 2.5rem;
|
7
|
+
--ax-rounded-border-default: 0.375rem;
|
8
|
+
--ax-overlay-full-width: 93;
|
9
|
+
@include light-variables();
|
10
|
+
@include color-variable-genterator($theme-colors);
|
10
11
|
}
|
11
12
|
|
12
13
|
@include darkMode() {
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
&:root {
|
15
|
+
@include dark-variables();
|
16
|
+
}
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
.cdk-overlay-neutral-backdrop {
|
19
|
+
background: rgba(0, 0, 0, 0.5) !important;
|
20
|
+
}
|
20
21
|
}
|
21
22
|
|
22
23
|
html,
|
23
24
|
body {
|
24
|
-
|
25
|
-
|
26
|
-
}
|
25
|
+
background-color: rgb(var(--ax-color-background-default));
|
26
|
+
color: rgba(var(--ax-color-text-default));
|
27
|
+
}
|
@@ -1,45 +1,42 @@
|
|
1
1
|
.ax-decoration-container,
|
2
2
|
ax-header,
|
3
3
|
ax-footer {
|
4
|
+
display: flex;
|
5
|
+
justify-content: space-between;
|
6
|
+
gap: 0.5rem;
|
7
|
+
& > ax-prefix,
|
8
|
+
& > ax-suffix {
|
4
9
|
display: flex;
|
5
|
-
|
10
|
+
flex: 1 1 auto;
|
11
|
+
flex-direction: row;
|
6
12
|
gap: 0.5rem;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
& > ax-suffix {
|
21
|
-
order: 9999;
|
22
|
-
justify-content: flex-end;
|
23
|
-
align-items: center;
|
24
|
-
}
|
13
|
+
align-items: center;
|
14
|
+
}
|
15
|
+
& > ax-prefix {
|
16
|
+
order: -9999;
|
17
|
+
justify-content: flex-start;
|
18
|
+
align-items: center;
|
19
|
+
}
|
20
|
+
& > ax-suffix {
|
21
|
+
order: 9999;
|
22
|
+
justify-content: flex-end;
|
23
|
+
align-items: center;
|
24
|
+
}
|
25
25
|
}
|
26
26
|
|
27
|
-
ax-icon{
|
28
|
-
display: contents;
|
29
|
-
}
|
30
27
|
ax-close-button {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
28
|
+
width: 1.5rem;
|
29
|
+
height: 1.5rem;
|
30
|
+
display: grid;
|
31
|
+
place-items: center;
|
32
|
+
cursor: pointer;
|
36
33
|
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
ax-icon {
|
35
|
+
color: rgba(var(--ax-color-ghost), 0.5);
|
36
|
+
font-size: 1.25rem;
|
40
37
|
|
41
|
-
|
42
|
-
|
43
|
-
}
|
38
|
+
&:hover {
|
39
|
+
color: rgba(var(--ax-color-ghost), 0.75);
|
44
40
|
}
|
41
|
+
}
|
45
42
|
}
|
@@ -1,163 +1,157 @@
|
|
1
|
-
@import
|
1
|
+
@import '../variables/index.scss';
|
2
2
|
|
3
3
|
@mixin drop-down-item-apperance() {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
}
|
4
|
+
@each $color in $color_names {
|
5
|
+
&.ax-#{$color}-default {
|
6
|
+
background-color: transparent;
|
7
|
+
color: rgb(var(--ax-color-#{$color}-500));
|
8
|
+
border: transparent;
|
9
|
+
|
10
|
+
&:hover,
|
11
|
+
&:focus {
|
12
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
13
|
+
color: rgb(var(--ax-color-#{$color}-600));
|
14
|
+
}
|
15
|
+
|
16
|
+
&:active {
|
17
|
+
color: rgb(var(--ax-color-#{$color}-400));
|
18
|
+
}
|
19
|
+
|
20
|
+
&.ax-state-selected {
|
21
|
+
background-color: rgb(var(--ax-color-#{$color}-500));
|
22
|
+
color: rgb(var(--ax-color-#{$color}-fore));
|
23
|
+
}
|
26
24
|
}
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
&.ax-state-selected {
|
41
|
-
background-color: rgb(var(--ax-color-primary-500));
|
42
|
-
color: rgb(var(--ax-color-primary-fore));
|
43
|
-
}
|
25
|
+
}
|
26
|
+
|
27
|
+
&.ax-ghost-default {
|
28
|
+
background-color: transparent;
|
29
|
+
color: rgb(var(--ax-color-ghost));
|
30
|
+
border: transparent;
|
31
|
+
|
32
|
+
&:hover,
|
33
|
+
&:focus,
|
34
|
+
&:active {
|
35
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
36
|
+
color: rgb(var(--ax-color-ghost), 0.87);
|
44
37
|
}
|
45
38
|
|
39
|
+
&.ax-state-selected {
|
40
|
+
background-color: rgb(var(--ax-color-primary-500));
|
41
|
+
color: rgb(var(--ax-color-primary-fore));
|
42
|
+
}
|
43
|
+
}
|
46
44
|
}
|
47
45
|
|
48
|
-
|
49
46
|
.ax-drop-down {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
}
|
47
|
+
display: contents;
|
48
|
+
|
49
|
+
.ax-dropdown-content {
|
50
|
+
display: flex;
|
51
|
+
align-items: center;
|
52
|
+
flex: 1 1 auto;
|
53
|
+
font-size: 0.875rem;
|
54
|
+
overflow-y: hidden;
|
55
|
+
overflow-x: auto;
|
56
|
+
|
57
|
+
&.ax-state-disabled {
|
58
|
+
opacity: 0.5;
|
59
|
+
cursor: not-allowed;
|
64
60
|
}
|
61
|
+
}
|
65
62
|
}
|
66
63
|
|
67
64
|
.ax-overlay-pane {
|
65
|
+
background-color: rgba(var(--ax-color-surface));
|
66
|
+
border: 1px solid;
|
67
|
+
border-color: rgba(var(--ax-color-border-default));
|
68
|
+
border-radius: var(--ax-rounded-border-default);
|
69
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
70
|
+
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
71
|
+
overflow: hidden;
|
72
|
+
|
73
|
+
ax-header,
|
74
|
+
ax-footer {
|
68
75
|
background-color: rgba(var(--ax-color-surface));
|
69
|
-
|
70
|
-
|
71
|
-
border-radius: var(--ax-rounded-border-default);
|
72
|
-
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
73
|
-
overflow: hidden;
|
76
|
+
padding: 0.75rem;
|
77
|
+
}
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
border-color: rgba(var(--ax-color-border-default));
|
80
|
-
border-top: 1px solid;
|
79
|
+
@include media('phone') {
|
80
|
+
border-bottom-right-radius: 0px;
|
81
|
+
border-bottom-left-radius: 0px;
|
82
|
+
}
|
81
83
|
|
82
|
-
|
84
|
+
&.ax-overlay-center {
|
85
|
+
height: fit-content;
|
86
|
+
max-height: 90vh;
|
87
|
+
width: 80vw;
|
88
|
+
}
|
83
89
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
90
|
+
&.ax-overlay-actionsheet {
|
91
|
+
background-color: rgba(var(--ax-color-surface));
|
92
|
+
width: 100%;
|
93
|
+
height: auto;
|
94
|
+
max-height: 85vh;
|
88
95
|
|
89
|
-
&.ax-
|
90
|
-
|
91
|
-
|
92
|
-
width: 80vw;
|
96
|
+
&.ax-full {
|
97
|
+
max-height: 95vh;
|
98
|
+
height: 95vh;
|
93
99
|
}
|
100
|
+
}
|
94
101
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
max-height: 85vh;
|
102
|
+
&.ax-overlay-full {
|
103
|
+
width: 100vw;
|
104
|
+
height: 100vh;
|
105
|
+
}
|
100
106
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
107
|
+
&.ax-dropdown-list {
|
108
|
+
display: flex;
|
109
|
+
flex-direction: column;
|
110
|
+
border: 1px solid;
|
111
|
+
border-color: rgba(var(--ax-color-border-default));
|
112
|
+
border-radius: var(--ax-rounded-border-default);
|
113
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
114
|
+
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
115
|
+
padding: 0.5rem 0;
|
116
|
+
|
117
|
+
.ax-button-item {
|
118
|
+
position: relative;
|
119
|
+
display: inline-flex;
|
120
|
+
align-items: center;
|
121
|
+
justify-content: flex-start;
|
122
|
+
padding: 0.5rem;
|
123
|
+
padding-inline-start: 0.5rem;
|
124
|
+
padding-inline-end: 1rem;
|
125
|
+
font-size: 0.875rem;
|
126
|
+
color: rgba(var(--ax-color-text-default));
|
127
|
+
user-select: none;
|
128
|
+
cursor: pointer;
|
129
|
+
|
130
|
+
&.ax-divide {
|
131
|
+
border: 1px solid;
|
132
|
+
border-color: rgba(var(--ax-color-border-default));
|
133
|
+
}
|
106
134
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
135
|
+
&.ax-state-disabled {
|
136
|
+
opacity: 0.5;
|
137
|
+
cursor: not-allowed;
|
138
|
+
}
|
111
139
|
|
112
|
-
|
140
|
+
ax-prefix,
|
141
|
+
ax-suffix {
|
113
142
|
display: flex;
|
114
|
-
flex-direction:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
padding: 0.5rem;
|
127
|
-
padding-inline-start: 0.5rem;
|
128
|
-
padding-inline-end: 1rem;
|
129
|
-
font-size: 0.875rem;
|
130
|
-
color: rgba(var(--ax-color-text-default));
|
131
|
-
user-select: none;
|
132
|
-
cursor: pointer;
|
133
|
-
|
134
|
-
&.ax-divide {
|
135
|
-
border: 1px solid;
|
136
|
-
border-color: rgba(var(--ax-color-border-default));
|
137
|
-
|
138
|
-
}
|
139
|
-
|
140
|
-
&.ax-state-disabled {
|
141
|
-
opacity: 0.5;
|
142
|
-
cursor: not-allowed;
|
143
|
-
}
|
144
|
-
|
145
|
-
ax-prefix,
|
146
|
-
ax-suffix {
|
147
|
-
display: flex;
|
148
|
-
flex-direction: row;
|
149
|
-
}
|
150
|
-
|
151
|
-
ax-prefix {
|
152
|
-
padding-inline-end: 0.5rem;
|
153
|
-
}
|
154
|
-
|
155
|
-
ax-suffix {
|
156
|
-
padding-inline-start: 0.5rem
|
157
|
-
}
|
158
|
-
|
159
|
-
@include drop-down-item-apperance();
|
160
|
-
|
161
|
-
}
|
143
|
+
flex-direction: row;
|
144
|
+
}
|
145
|
+
|
146
|
+
ax-prefix {
|
147
|
+
padding-inline-end: 0.5rem;
|
148
|
+
}
|
149
|
+
|
150
|
+
ax-suffix {
|
151
|
+
padding-inline-start: 0.5rem;
|
152
|
+
}
|
153
|
+
|
154
|
+
@include drop-down-item-apperance();
|
162
155
|
}
|
163
|
-
}
|
156
|
+
}
|
157
|
+
}
|
@@ -48,11 +48,8 @@
|
|
48
48
|
color: rgba(var(--ax-color-ghost), 0.63);
|
49
49
|
}
|
50
50
|
&:focus-within {
|
51
|
-
outline-offset: 0px;
|
52
|
-
outline-width: 1px;
|
53
|
-
outline-style: solid;
|
54
|
-
outline-color: rgb(var(--ax-color-primary-500));
|
55
51
|
border-color: rgb(var(--ax-color-primary-500));
|
52
|
+
box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
|
56
53
|
}
|
57
54
|
|
58
55
|
&.ax-button-icon {
|