@acorex/styles 4.2.17 → 4.2.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "4.2.17",
3
+ "version": "4.2.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/drawer.scss CHANGED
@@ -20,7 +20,6 @@ ax-drawer-container {
20
20
  .ax-backdrop {
21
21
  background-color: rgb(0, 0, 0, 0.3);
22
22
  position: absolute;
23
- width: 100%;
24
23
  height: 100%;
25
24
  z-index: 1;
26
25
  top: 0;
package/scss/menu.scss CHANGED
@@ -1,88 +1,74 @@
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
+
1
14
  .ax {
2
15
  &.nav-menu {
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
- }
16
+ font-size: 0.875rem;
20
17
  > li {
21
- text-align: center;
22
- padding: 0.5rem;
23
- min-width: 2.375rem;
24
18
  margin-inline-end: 0.5rem;
25
19
  border-radius: var(--ax-size-border-radius);
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;
20
+ > .nav-active {
21
+ background-color: rgba(0, 0, 0, 0.05);
32
22
  }
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;
44
23
 
45
- &:hover {
46
- > ul {
47
- top: 0;
48
- inset-inline-start: 100%;
49
- }
50
- }
51
- }
52
- }
53
24
  :hover {
54
25
  > ul {
55
26
  inset-inline-start: 100%;
56
27
  }
57
28
  }
58
29
  }
59
- li {
60
- cursor: pointer;
61
- position: relative;
30
+ ul {
31
+ opacity: 0;
32
+ position: absolute;
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;
62
41
 
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;
42
+ li {
43
+ float: none;
44
+
45
+ .drop-icon {
46
+ position: absolute;
47
+ inset-inline-end: 10px;
48
+ inset-inline-start: initial;
73
49
  }
74
50
 
75
- .menu-item-end-side {
51
+ &:hover {
52
+ > ul {
53
+ top: 0;
54
+ inset-inline-start: 100%;
55
+ }
76
56
  }
77
57
  }
58
+ }
78
59
 
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);
60
+ li {
61
+ white-space: nowrap;
62
+ cursor: pointer;
63
+ &.disabled {
64
+ opacity: 0.6;
65
+ }
66
+ > ul {
67
+ li {
68
+ border-top: none;
69
+ border-right: none;
70
+ border-left: none;
71
+ }
86
72
  }
87
73
  &:hover {
88
74
  > ul {
@@ -114,16 +100,54 @@
114
100
  }
115
101
  }
116
102
  }
117
- .ax-sub-menu {
103
+
104
+ span {
118
105
  display: flex;
119
- flex-direction: column;
106
+ padding: 0 10px;
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
+
120
133
  li {
121
- padding: 0.5rem;
122
- .ax-menu-item {
123
- display: flex;
124
- justify-content: space-between;
125
- }
134
+ width: 100%;
135
+ float: none;
126
136
  }
127
137
  }
138
+
139
+
128
140
  }
129
141
  }
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
+ }