@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "4.2.18",
3
+ "version": "4.2.21",
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/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
- font-size: 0.875rem;
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
- > .nav-active {
21
- background-color: rgba(0, 0, 0, 0.05);
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
- 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;
62
+ li {
63
+ cursor: pointer;
64
+ position: relative;
44
65
 
45
- .drop-icon {
46
- position: absolute;
47
- inset-inline-end: 10px;
48
- inset-inline-start: initial;
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
- &:hover {
52
- > ul {
53
- top: 0;
54
- inset-inline-start: 100%;
55
- }
78
+ .menu-item-end-side {
56
79
  }
57
80
  }
58
- }
59
81
 
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
- }
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
- 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
-
122
+ flex-direction: column;
133
123
  li {
134
- width: 100%;
135
- float: none;
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
+ }
@@ -64,7 +64,6 @@ $colors: (
64
64
  "trans-dark": transparentize($secondary-light, 0.85),
65
65
  "trans-light": transparentize($secondary-dark, 0.85),
66
66
  ),
67
-
68
67
  "success": (
69
68
  "": $success,
70
69
  "fore": $white,