@acorex/styles 4.2.11 → 4.2.16
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 +72 -97
package/package.json
CHANGED
package/scss/menu.scss
CHANGED
|
@@ -1,74 +1,87 @@
|
|
|
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;
|
|
49
72
|
}
|
|
50
73
|
|
|
51
|
-
|
|
52
|
-
> ul {
|
|
53
|
-
top: 0;
|
|
54
|
-
inset-inline-start: 100%;
|
|
55
|
-
}
|
|
74
|
+
.menu-item-end-side {
|
|
56
75
|
}
|
|
57
76
|
}
|
|
58
|
-
}
|
|
59
77
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
li {
|
|
68
|
-
border-top: none;
|
|
69
|
-
border-right: none;
|
|
70
|
-
border-left: none;
|
|
71
|
-
}
|
|
78
|
+
ul {
|
|
79
|
+
list-style: none;
|
|
80
|
+
margin: 0;
|
|
81
|
+
padding: 0;
|
|
82
|
+
background: #fff;
|
|
83
|
+
border: 1px solid var(--ax-border-color);
|
|
84
|
+
border-radius: var(--ax-size-border-radius);
|
|
72
85
|
}
|
|
73
86
|
&:hover {
|
|
74
87
|
> ul {
|
|
@@ -100,54 +113,16 @@
|
|
|
100
113
|
}
|
|
101
114
|
}
|
|
102
115
|
}
|
|
103
|
-
|
|
104
|
-
span {
|
|
116
|
+
.ax-sub-menu {
|
|
105
117
|
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
|
-
|
|
118
|
+
flex-direction: column;
|
|
133
119
|
li {
|
|
134
|
-
|
|
135
|
-
|
|
120
|
+
padding: 0.5rem;
|
|
121
|
+
.ax-menu-item {
|
|
122
|
+
display: flex;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
}
|
|
136
125
|
}
|
|
137
126
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
127
|
}
|
|
141
128
|
}
|
|
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
|
-
}
|