@acorex/styles 4.2.18 → 4.2.21
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/scss/drawer.scss +1 -0
- package/scss/master.scss +29 -2
- package/scss/menu.scss +76 -97
- package/scss/tab.scss +4 -1
- package/scss/variables.scss +0 -1
package/package.json
CHANGED
package/scss/drawer.scss
CHANGED
package/scss/master.scss
CHANGED
|
@@ -32,6 +32,34 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
@each $name, $color in $colors {
|
|
36
|
+
@if type-of($color) == "map" {
|
|
37
|
+
@each $subname, $variant in $color {
|
|
38
|
+
@if $subname== "" {
|
|
39
|
+
.ax-text-#{$name} {
|
|
40
|
+
color: var(--ax-#{$name}-#{$color-suffix});
|
|
41
|
+
}
|
|
42
|
+
.ax-bg-#{$name} {
|
|
43
|
+
background: var(--ax-#{$name}-#{$color-suffix});
|
|
44
|
+
}
|
|
45
|
+
.ax-border-#{$name} {
|
|
46
|
+
border-color: var(--ax-#{$name}-#{$color-suffix});
|
|
47
|
+
}
|
|
48
|
+
} @else {
|
|
49
|
+
.ax-text-#{$name}-#{$subname} {
|
|
50
|
+
color: var(--ax-#{$name}-#{$subname}-#{$color-suffix});
|
|
51
|
+
}
|
|
52
|
+
.ax-bg-#{$name}-#{$subname} {
|
|
53
|
+
background: var(--ax-#{$name}-#{$subname}-#{$color-suffix});
|
|
54
|
+
}
|
|
55
|
+
.ax-border-#{$name}-#{$subname} {
|
|
56
|
+
background: var(--ax-#{$name}-#{$subname}-#{$color-suffix});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
35
63
|
// Sizes
|
|
36
64
|
.ax {
|
|
37
65
|
&.form-control {
|
|
@@ -153,8 +181,7 @@
|
|
|
153
181
|
}
|
|
154
182
|
|
|
155
183
|
&:hover:not(.disabled),
|
|
156
|
-
&:focus:not(.disabled)
|
|
157
|
-
{
|
|
184
|
+
&:focus:not(.disabled) {
|
|
158
185
|
background: var(--ax-#{$name}-light-#{$color-suffix});
|
|
159
186
|
color: var(--ax-#{$name}-fore-#{$color-suffix});
|
|
160
187
|
}
|
package/scss/menu.scss
CHANGED
|
@@ -1,74 +1,91 @@
|
|
|
1
|
-
/* nav */
|
|
2
|
-
.ax.nav-menu,
|
|
3
|
-
.ax.nav-menu ul,
|
|
4
|
-
.ax.nav-menu li,
|
|
5
|
-
.ax.nav-menu span {
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
line-height: normal;
|
|
9
|
-
list-style: none;
|
|
10
|
-
display: block;
|
|
11
|
-
position: relative;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
1
|
.ax {
|
|
15
2
|
&.nav-menu {
|
|
16
|
-
|
|
3
|
+
list-style: none;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
8
|
+
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
9
|
+
&.nav-vertical {
|
|
10
|
+
background-color: var(--ax-white-color);
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
ul {
|
|
13
|
+
top: 0;
|
|
14
|
+
inset-inline-start: -9999px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
li {
|
|
18
|
+
width: 100%;
|
|
19
|
+
float: none;
|
|
20
|
+
text-align: right;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
17
23
|
> li {
|
|
24
|
+
text-align: center;
|
|
25
|
+
padding: 0.5rem;
|
|
26
|
+
min-width: 2.375rem;
|
|
18
27
|
margin-inline-end: 0.5rem;
|
|
19
28
|
border-radius: var(--ax-size-border-radius);
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
.ax-menu-item,
|
|
30
|
+
.menu-item-start-side,
|
|
31
|
+
.menu-item-end-side {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
22
35
|
}
|
|
36
|
+
ul {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 100%;
|
|
40
|
+
inset-inline-start: -9999px;
|
|
41
|
+
z-index: 50000;
|
|
42
|
+
-webkit-transition: opacity 0.3s;
|
|
43
|
+
transition: opacity 0.3s;
|
|
44
|
+
min-width: 12em;
|
|
45
|
+
li {
|
|
46
|
+
float: none;
|
|
23
47
|
|
|
48
|
+
&:hover {
|
|
49
|
+
> ul {
|
|
50
|
+
top: 0;
|
|
51
|
+
inset-inline-start: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
24
56
|
:hover {
|
|
25
57
|
> ul {
|
|
26
58
|
inset-inline-start: 100%;
|
|
27
59
|
}
|
|
28
60
|
}
|
|
29
61
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
position:
|
|
33
|
-
top: 100%;
|
|
34
|
-
inset-inline-start: -9999px;
|
|
35
|
-
z-index: 50000;
|
|
36
|
-
-webkit-transition: opacity 0.3s;
|
|
37
|
-
transition: opacity 0.3s;
|
|
38
|
-
min-width: 12em;
|
|
39
|
-
box-shadow: 0 1px 7px 0 var(--ax-border-color);
|
|
40
|
-
background: #fff;
|
|
41
|
-
|
|
42
|
-
li {
|
|
43
|
-
float: none;
|
|
62
|
+
li {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
position: relative;
|
|
44
65
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
66
|
+
.ax-menu-item {
|
|
67
|
+
height: 100%;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
.menu-item-start-side {
|
|
72
|
+
}
|
|
73
|
+
.ax-menu-item-text {
|
|
74
|
+
margin: 0 0.5rem;
|
|
75
|
+
white-space: nowrap;
|
|
49
76
|
}
|
|
50
77
|
|
|
51
|
-
|
|
52
|
-
> ul {
|
|
53
|
-
top: 0;
|
|
54
|
-
inset-inline-start: 100%;
|
|
55
|
-
}
|
|
78
|
+
.menu-item-end-side {
|
|
56
79
|
}
|
|
57
80
|
}
|
|
58
|
-
}
|
|
59
81
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
li {
|
|
68
|
-
border-top: none;
|
|
69
|
-
border-right: none;
|
|
70
|
-
border-left: none;
|
|
71
|
-
}
|
|
82
|
+
ul {
|
|
83
|
+
list-style: none;
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 0;
|
|
86
|
+
background: #fff;
|
|
87
|
+
border: 1px solid var(--ax-border-color);
|
|
88
|
+
border-radius: var(--ax-size-border-radius);
|
|
72
89
|
}
|
|
73
90
|
&:hover {
|
|
74
91
|
> ul {
|
|
@@ -100,54 +117,16 @@
|
|
|
100
117
|
}
|
|
101
118
|
}
|
|
102
119
|
}
|
|
103
|
-
|
|
104
|
-
span {
|
|
120
|
+
.ax-sub-menu {
|
|
105
121
|
display: flex;
|
|
106
|
-
|
|
107
|
-
font-weight: normal;
|
|
108
|
-
line-height: 40px;
|
|
109
|
-
text-decoration: none;
|
|
110
|
-
align-items: center;
|
|
111
|
-
span {
|
|
112
|
-
padding: 0 5px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.drop-icon {
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&.nav-center {
|
|
120
|
-
> li {
|
|
121
|
-
display: inline-flex;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&.nav-vertical {
|
|
126
|
-
max-width: 220px;
|
|
127
|
-
background-color: var(--ax-white-color);
|
|
128
|
-
ul {
|
|
129
|
-
top: 0;
|
|
130
|
-
inset-inline-start: -9999px;
|
|
131
|
-
}
|
|
132
|
-
|
|
122
|
+
flex-direction: column;
|
|
133
123
|
li {
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
padding: 0.5rem;
|
|
125
|
+
.ax-menu-item {
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
}
|
|
136
129
|
}
|
|
137
130
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
131
|
}
|
|
141
132
|
}
|
|
142
|
-
|
|
143
|
-
.ax.nav-menu span:hover,
|
|
144
|
-
.ax.nav-menu span:focus,
|
|
145
|
-
.ax.nav-menu li:hover span {
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/* 2 */
|
|
149
|
-
.ax.nav-menu li li span,
|
|
150
|
-
.ax.nav-menu li:hover li span {
|
|
151
|
-
padding: 5px 10px;
|
|
152
|
-
line-height: normal;
|
|
153
|
-
}
|
package/scss/tab.scss
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
-moz-border-radius-topright: var(--ax-size-border-radius);
|
|
19
19
|
border-top-left-radius: var(--ax-size-border-radius);
|
|
20
20
|
border-top-right-radius: var(--ax-size-border-radius);
|
|
21
|
+
i {
|
|
22
|
+
margin-inline-end: 0.5em;
|
|
23
|
+
}
|
|
21
24
|
&:hover {
|
|
22
25
|
background: var(--ax-primary-color);
|
|
23
26
|
color: var(--ax-primary-fore-color);
|
|
@@ -30,4 +33,4 @@
|
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
|
-
}
|
|
36
|
+
}
|