@acorex/styles 4.2.2 → 4.2.5

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.2",
3
+ "version": "4.2.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  .ax-checkbox-container {
2
2
  display: flex;
3
3
  align-items: center;
4
+ font-size: 0.875rem;
4
5
  span {
5
6
  margin-inline-start: 0.5rem;
6
7
  }
package/scss/drawer.scss CHANGED
@@ -1,27 +1,137 @@
1
- .ax-drawer-overlay {
2
- position: fixed;
3
- top: 0;
4
- left: 0;
1
+ ax-drawer-container {
2
+ display: flex;
3
+ position: relative;
5
4
  width: 100%;
6
5
  height: 100%;
7
- z-index: 999999;
8
-
9
- .ax-drawer-container {
10
- background: #fff;
11
- height: 100%;
12
- }
13
- }
14
- .ax-drawer-underlay {
15
- &::before {
16
- position: fixed;
17
- background-color: rgba(0, 0, 0, 0.3);
6
+ overflow: hidden;
7
+
8
+ &.ax-fixed {
9
+ display: none;
18
10
  top: 0;
11
+ right: 0;
19
12
  left: 0;
20
- width: 100%;
13
+ bottom: 0;
14
+ z-index: 1000;
15
+ &.ax-visible {
16
+ display: flex;
17
+ }
18
+ }
19
+
20
+ .ax-backdrop {
21
+ background-color: rgb(0, 0, 0, 0.3);
22
+ position: absolute;
21
23
  height: 100%;
22
- content: "";
23
- z-index: 9999;
24
+ z-index: 1;
25
+ top: 0;
26
+ bottom: 0;
27
+ transition-property: all;
28
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
29
+ transition-duration: 150ms;
24
30
  }
25
- }
26
31
 
32
+ ax-drawer {
33
+ display: flex !important;
34
+ flex-direction: column;
35
+ max-width: 95%;
36
+ height: 100%;
37
+ animation-duration: 300ms;
38
+ transition-property: all;
39
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
40
+ transition-duration: 150ms;
41
+ .ax-header,
42
+ .ax-footer {
43
+ padding: 0.75rem;
44
+ border-color: var(--ax-gray-light-color);
45
+ }
46
+ .ax-footer {
47
+ border-top: 1px solid;
48
+ border-color: var(--ax-gray-light-color);
49
+ }
50
+ .ax-header {
51
+ border-bottom: 1px solid;
52
+ border-color: var(--ax-gray-light-color);
53
+ }
54
+ &.ax-preload {
55
+ animation-duration: 30ms;
56
+ transition-property: all;
57
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
58
+ transition-duration: 150ms;
59
+ }
60
+ .ax-visible {
61
+ visibility: visible;
62
+ }
63
+ & > .ax-content {
64
+ overflow: auto;
65
+ background: var(--ax-white-color);
66
+ flex: 1;
67
+ height: 100%;
68
+ text: var(--ax-gray-color);
69
+ }
70
+
71
+ &.ax-drawer-overlay {
72
+ position: absolute;
73
+
74
+ &.ax-expanded {
75
+ z-index: 2;
76
+ }
77
+
78
+ &.ax-collapsed {
79
+ z-index: 0;
80
+ }
81
+
82
+ &.ax-drawer-start {
83
+ &.ax-expanded {
84
+ inset-inline-start: 0px;
85
+ }
86
+
87
+ &.ax-collapsed {
88
+ inset-inline-start: calc(-1 * var(--ax-el-width));
89
+ }
90
+ }
27
91
 
92
+ &.ax-drawer-end {
93
+ &.ax-expanded {
94
+ inset-inline-end: 0px;
95
+ }
96
+
97
+ &.ax-collapsed {
98
+ inset-inline-end: calc(-1 * var(--ax-el-width));
99
+ }
100
+ }
101
+ }
102
+
103
+ &.ax-drawer-push {
104
+ flex: 0 1 auto;
105
+
106
+ &.ax-drawer-start {
107
+ order: -9999;
108
+
109
+ &.ax-expanded {
110
+ margin-inline-start: 0%;
111
+ }
112
+
113
+ &.ax-collapsed {
114
+ margin-inline-start: calc(-1 * var(--ax-el-width));
115
+ }
116
+ }
117
+
118
+ &.ax-drawer-end {
119
+ order: 9999;
120
+
121
+ &.ax-expanded {
122
+ margin-inline-end: 0%;
123
+ }
124
+
125
+ &.ax-collapsed {
126
+ margin-inline-end: calc(-1 * var(--ax-el-width));
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ & > .ax-content {
133
+ flex: 1;
134
+ height: 100%;
135
+ overflow: auto;
136
+ }
137
+ }
package/scss/forms.scss CHANGED
@@ -448,6 +448,7 @@
448
448
  vertical-align: middle;
449
449
  text-overflow: ellipsis;
450
450
  font-size: 0.875rem;
451
+ min-width: fit-content;
451
452
  max-width: 110px;
452
453
  direction: inherit;
453
454
  text-align: inherit;
package/scss/menu.scss CHANGED
@@ -105,7 +105,7 @@
105
105
  display: flex;
106
106
  padding: 0 10px;
107
107
  font-weight: normal;
108
- line-height: 40px;
108
+ height: 2.5rem;
109
109
  text-decoration: none;
110
110
  align-items: center;
111
111
  span {
package/scss/tooltip.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  .ax-tooltip {
2
2
  position: absolute;
3
3
  font-size: 0.875rem;
4
+ min-width: fit-content;
4
5
  max-width: 150px;
5
6
  text-align: center;
6
7
  color: var(--ax-dark-fore-color);
@@ -34,7 +35,7 @@
34
35
 
35
36
  &.ax-tooltip-left:after {
36
37
  top: 50%;
37
- inset-inline-start: 100%;
38
+ inset-inline-end: 100%;
38
39
  margin-top: -5px;
39
40
  border-width: 5px;
40
41
  border-color: transparent transparent transparent var(--ax-dark-color);
@@ -42,7 +43,7 @@
42
43
 
43
44
  &.ax-tooltip-right:after {
44
45
  top: 50%;
45
- inset-inline-end: 100%;
46
+ inset-inline-start: 100%;
46
47
  margin-top: -5px;
47
48
  border-width: 5px;
48
49
  border-color: transparent var(--ax-dark-color) transparent transparent;
@@ -85,7 +85,7 @@ $left: -($ident);
85
85
  background: var(--ax-white-color);
86
86
  z-index: 1;
87
87
  i {
88
- font-size: 0.7em;
88
+ font-size: 0.875rem;
89
89
  text-align: center;
90
90
  :not(.fa-spin) {
91
91
  font-size: initial !important;