@acorex/styles 4.2.12 → 4.2.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/scss/menu.scss +73 -99
package/package.json
CHANGED
package/scss/menu.scss
CHANGED
|
@@ -1,74 +1,88 @@
|
|
|
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
|
+
|
|
8
|
+
&.nav-vertical {
|
|
9
|
+
background-color: var(--ax-white-color);
|
|
10
|
+
ul {
|
|
11
|
+
top: 0;
|
|
12
|
+
inset-inline-start: -9999px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
li {
|
|
16
|
+
width: 100%;
|
|
17
|
+
float: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
17
20
|
> li {
|
|
21
|
+
text-align: center;
|
|
22
|
+
padding: 0.5rem;
|
|
23
|
+
min-width: 2.375rem;
|
|
18
24
|
margin-inline-end: 0.5rem;
|
|
19
25
|
border-radius: var(--ax-size-border-radius);
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
.ax-menu-item,
|
|
27
|
+
.menu-item-start-side,
|
|
28
|
+
.menu-item-end-side {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
22
32
|
}
|
|
33
|
+
ul {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 100%;
|
|
37
|
+
inset-inline-start: -9999px;
|
|
38
|
+
z-index: 50000;
|
|
39
|
+
-webkit-transition: opacity 0.3s;
|
|
40
|
+
transition: opacity 0.3s;
|
|
41
|
+
min-width: 12em;
|
|
42
|
+
li {
|
|
43
|
+
float: none;
|
|
23
44
|
|
|
45
|
+
&:hover {
|
|
46
|
+
> ul {
|
|
47
|
+
top: 0;
|
|
48
|
+
inset-inline-start: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
24
53
|
:hover {
|
|
25
54
|
> ul {
|
|
26
55
|
inset-inline-start: 100%;
|
|
27
56
|
}
|
|
28
57
|
}
|
|
29
58
|
}
|
|
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;
|
|
59
|
+
li {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
position: relative;
|
|
44
62
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
63
|
+
.ax-menu-item {
|
|
64
|
+
height: 100%;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
.menu-item-start-side {
|
|
69
|
+
}
|
|
70
|
+
.ax-menu-item-text {
|
|
71
|
+
margin: 0 0.5rem;
|
|
72
|
+
white-space: nowrap;
|
|
49
73
|
}
|
|
50
74
|
|
|
51
|
-
|
|
52
|
-
> ul {
|
|
53
|
-
top: 0;
|
|
54
|
-
inset-inline-start: 100%;
|
|
55
|
-
}
|
|
75
|
+
.menu-item-end-side {
|
|
56
76
|
}
|
|
57
77
|
}
|
|
58
|
-
}
|
|
59
78
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
li {
|
|
68
|
-
border-top: none;
|
|
69
|
-
border-right: none;
|
|
70
|
-
border-left: none;
|
|
71
|
-
}
|
|
79
|
+
ul {
|
|
80
|
+
list-style: none;
|
|
81
|
+
margin: 0;
|
|
82
|
+
padding: 0;
|
|
83
|
+
background: #fff;
|
|
84
|
+
border: 1px solid var(--ax-border-color);
|
|
85
|
+
border-radius: var(--ax-size-border-radius);
|
|
72
86
|
}
|
|
73
87
|
&:hover {
|
|
74
88
|
> ul {
|
|
@@ -100,56 +114,16 @@
|
|
|
100
114
|
}
|
|
101
115
|
}
|
|
102
116
|
}
|
|
103
|
-
|
|
104
|
-
span {
|
|
117
|
+
.ax-sub-menu {
|
|
105
118
|
display: flex;
|
|
106
|
-
|
|
107
|
-
font-weight: normal;
|
|
108
|
-
height: 2.5rem;
|
|
109
|
-
min-width: 2.5rem;
|
|
110
|
-
text-decoration: none;
|
|
111
|
-
align-items: center;
|
|
112
|
-
justify-content: center;
|
|
113
|
-
span {
|
|
114
|
-
padding: 0 5px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.drop-icon {
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.nav-center {
|
|
122
|
-
> li {
|
|
123
|
-
display: inline-flex;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.nav-vertical {
|
|
128
|
-
max-width: 220px;
|
|
129
|
-
background-color: var(--ax-white-color);
|
|
130
|
-
ul {
|
|
131
|
-
top: 0;
|
|
132
|
-
inset-inline-start: -9999px;
|
|
133
|
-
}
|
|
134
|
-
|
|
119
|
+
flex-direction: column;
|
|
135
120
|
li {
|
|
136
|
-
|
|
137
|
-
|
|
121
|
+
padding: 0.5rem;
|
|
122
|
+
.ax-menu-item {
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: space-between;
|
|
125
|
+
}
|
|
138
126
|
}
|
|
139
127
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
128
|
}
|
|
143
129
|
}
|
|
144
|
-
|
|
145
|
-
.ax.nav-menu span:hover,
|
|
146
|
-
.ax.nav-menu span:focus,
|
|
147
|
-
.ax.nav-menu li:hover span {
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* 2 */
|
|
151
|
-
.ax.nav-menu li li span,
|
|
152
|
-
.ax.nav-menu li:hover li span {
|
|
153
|
-
padding: 5px 10px;
|
|
154
|
-
line-height: normal;
|
|
155
|
-
}
|