@acorex/styles 4.2.18 → 4.2.19

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.18",
3
+ "version": "4.2.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/drawer.scss CHANGED
@@ -20,6 +20,7 @@ ax-drawer-container {
20
20
  .ax-backdrop {
21
21
  background-color: rgb(0, 0, 0, 0.3);
22
22
  position: absolute;
23
+ width: 100%;
23
24
  height: 100%;
24
25
  z-index: 1;
25
26
  top: 0;
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
- font-size: 0.875rem;
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
- > .nav-active {
21
- background-color: rgba(0, 0, 0, 0.05);
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
- 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;
41
-
42
- li {
43
- float: none;
59
+ li {
60
+ cursor: pointer;
61
+ position: relative;
44
62
 
45
- .drop-icon {
46
- position: absolute;
47
- inset-inline-end: 10px;
48
- inset-inline-start: initial;
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
- &:hover {
52
- > ul {
53
- top: 0;
54
- inset-inline-start: 100%;
55
- }
75
+ .menu-item-end-side {
56
76
  }
57
77
  }
58
- }
59
78
 
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
- }
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,54 +114,16 @@
100
114
  }
101
115
  }
102
116
  }
103
-
104
- span {
117
+ .ax-sub-menu {
105
118
  display: flex;
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
-
119
+ flex-direction: column;
133
120
  li {
134
- width: 100%;
135
- float: none;
121
+ padding: 0.5rem;
122
+ .ax-menu-item {
123
+ display: flex;
124
+ justify-content: space-between;
125
+ }
136
126
  }
137
127
  }
138
-
139
-
140
128
  }
141
129
  }
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
- }