@acorex/styles 5.3.0 → 5.3.2

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": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  @layer components {
2
2
  ax-alert {
3
- @apply ax-relative ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden;
3
+ @apply ax-relative ax-w-full ax-flex ax-flex-col ax-bg-light-100 ax-text-light-fore ax-rounded ax-overflow-hidden;
4
4
  transition: visibility 0s, opacity 0.5s ease-in-out;
5
5
 
6
6
  &.ax-state-hidden {
@@ -41,22 +41,27 @@
41
41
  }
42
42
 
43
43
  ax-suffix {
44
- @apply ax-block ax-mt-3;
44
+ @apply ax-block;
45
45
  ax-button {
46
- @apply ax-ms-2 ax-me-0 #{!important};
46
+ @apply ax-ms-2 #{!important};
47
47
  }
48
48
  }
49
49
 
50
50
  ax-footer {
51
51
  @apply ax-bg-transparent ax-border-none ax-p-0 ax-mt-3;
52
- ax-button {
53
- @apply ax-me-2;
52
+
53
+ ax-suffix {
54
+ ax-button{
55
+ @apply ax-ms-0 ax-me-2 #{!important};
56
+ }
57
+ @apply ax-mt-3;
54
58
  }
55
59
  }
56
60
  }
57
61
  &.ax-light-default {
62
+
58
63
  ax-header {
59
- @apply ax-bg-light-200;
64
+ @apply ax-bg-light-200 ;
60
65
  }
61
66
  .ax-alert-body {
62
67
  @applyax-bg-light-300;
@@ -2,10 +2,10 @@
2
2
  ax-collpase,
3
3
  .ax-collapse {
4
4
  @apply ax-border ax-border-light-200 ax-block ax-text-sm ax-rounded ax-overflow-hidden;
5
-
5
+ @include control-states("editor");
6
6
  .ax-collapse-header {
7
7
  @apply ax-cursor-pointer ax-select-none;
8
-
8
+
9
9
  &.ax-state-collapsed {
10
10
  .ax-collapse-header-container {
11
11
  @apply ax-border-b-0;
@@ -13,15 +13,19 @@
13
13
  @apply -ax-rotate-90;
14
14
  }
15
15
  }
16
- .ax-collapse-custom-header-container{
16
+ .ax-collapse-custom-header-container {
17
17
  @apply ax-border-b-0;
18
18
  }
19
19
  }
20
- .ax-collapse-custom-header-container{
21
- @apply ax-bg-light-50 ax-border-b ax-border-light-200;
20
+ .ax-collapse-custom-header-container {
21
+ @apply ax-bg-light-100 ax-border-b ax-border-light-200;
22
+ @include control-states("editor");
23
+
22
24
  }
23
25
  .ax-collapse-header-container {
24
- @apply ax-flex ax-justify-between ax-px-3 ax-py-1.5 ax-bg-light-50 ax-border-b ax-border-light-200;
26
+ @apply ax-flex ax-justify-between ax-px-3 ax-py-1.5 ax-bg-light-100 ax-border-b ax-border-light-100;
27
+ @include control-states("editor");
28
+
25
29
  .ax-collapse-arrow {
26
30
  @apply ax-inline-block ax-text-xl ax-me-2 ax-rotate-90;
27
31
  }
@@ -33,12 +37,13 @@
33
37
  }
34
38
  .ax-collapse-group {
35
39
  @apply ax-block ax-border ax-border-light-200 ax-rounded ax-overflow-hidden;
40
+ @include control-states('editor');
36
41
 
37
42
  ax-collpase,
38
43
  .ax-collapse {
39
44
  @apply ax-rounded-none ax-border-none;
40
45
  .ax-collapse-header-container {
41
- @apply ax-border-t ax-border-light-200;
46
+ @apply ax-border-t ax-border-light-100;
42
47
  }
43
48
  }
44
49
  ax-collapse {
@@ -1,7 +1,8 @@
1
1
  @layer components {
2
2
  ax-header,
3
3
  ax-footer {
4
- @apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
4
+ @apply ax-bg-white ax-p-3 ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center;
5
+ @include control-states("editor");
5
6
  }
6
7
 
7
8
  ax-header {
@@ -35,27 +35,27 @@
35
35
  }
36
36
  &.ax-primary-default {
37
37
  .ax-dialog-icon {
38
- @apply ax-text-primary-500 ax-bg-primary-50;
38
+ @apply ax-text-primary-500 ax-bg-primary-50 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
39
39
  }
40
40
  }
41
41
  &.ax-success-default {
42
42
  .ax-dialog-icon {
43
- @apply ax-text-success-500 ax-bg-success-50;
43
+ @apply ax-text-success-500 ax-bg-success-50 dark:ax-bg-success-500 dark:ax-text-success-fore;
44
44
  }
45
45
  }
46
46
  &.ax-danger-default {
47
47
  .ax-dialog-icon {
48
- @apply ax-text-danger-500 ax-bg-danger-50;
48
+ @apply ax-text-danger-500 ax-bg-danger-50 dark:ax-bg-danger-500 dark:ax-text-danger-fore;
49
49
  }
50
50
  }
51
51
  &.ax-warning-default {
52
52
  .ax-dialog-icon {
53
- @apply ax-text-warning-500 ax-bg-warning-50;
53
+ @apply ax-text-warning-500 ax-bg-warning-50 dark:ax-bg-warning-500 dark:ax-text-warning-fore;
54
54
  }
55
55
  }
56
56
  &.ax-info-default {
57
57
  .ax-dialog-icon {
58
- @apply ax-text-info-500 ax-bg-info-50;
58
+ @apply ax-text-info-500 ax-bg-info-50 dark:ax-bg-info-500 dark:ax-text-info-fore;
59
59
  }
60
60
  }
61
61
  }
@@ -15,8 +15,7 @@
15
15
  }
16
16
 
17
17
  ax-drawer {
18
- @apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-all #{!important};
19
-
18
+ @apply ax-flex ax-flex-col ax-max-w-[95%] ax-h-full ax-animate-duration-300 ax-transition-[left] #{!important};
20
19
  &.ax-preload {
21
20
  @apply ax-animate-duration-[0ms] ax-transition-none #{!important};
22
21
  }
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .ax-overlay-pane {
15
- @apply ax-bg-white ax-border ax-rounded ax-border-light-300;
15
+ @apply ax-bg-white ax-border ax-rounded ax-border-light-200 ax-shadow-lg;
16
16
  @include control-states("surface");
17
17
 
18
18
 
@@ -30,6 +30,7 @@
30
30
 
31
31
  &.ax-overlay-actionsheet {
32
32
  @apply ax-w-full ax-h-auto ax-bg-white;
33
+ @include control-states("surface");
33
34
  max-height: 85vh;
34
35
  &.ax-full
35
36
  {
@@ -33,7 +33,7 @@
33
33
 
34
34
  .ax-list-item {
35
35
  height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
36
- @apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700;
36
+ @apply ax-text-sm ax-flex ax-items-center ax-px-3 ax-text-light-700 dark:ax-text-light-100;
37
37
 
38
38
  &:focus,
39
39
  &:focus-visible {
@@ -41,12 +41,12 @@
41
41
  }
42
42
 
43
43
  &.ax-state-selected {
44
- @apply ax-bg-light-200 ax-text-light-900 ax-font-medium dark:ax-text-primary-50;
44
+ @apply ax-bg-light-200 ax-text-light-900 ax-font-medium ;
45
45
  }
46
46
 
47
47
  &:not(.ax-check-box) {
48
48
  &.ax-state-selected {
49
- @apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-white/[0.16];
49
+ @apply ax-bg-light-200 ax-text-light-900 dark:ax-bg-primary-500 dark:ax-text-primary-fore;
50
50
  }
51
51
  }
52
52
 
@@ -2,7 +2,6 @@
2
2
  ax-progress-bar,
3
3
  .ax-progress-bar {
4
4
  @apply ax-flex ax-justify-between ax-items-center ax-text-sm;
5
- @include control-states("editor");
6
5
  ax-prefix{
7
6
  @apply ax-pe-2;
8
7
  }
@@ -11,6 +10,7 @@
11
10
  }
12
11
  .ax-progress-bar-container {
13
12
  @apply ax-w-full ax-h-2 ax-relative ax-bg-light-200 ax-flex ax-rounded-full;
13
+ @include control-states("editor");
14
14
  .ax-progress-bar-rise {
15
15
  max-width: 100%;
16
16
  transition: width 1s;
@@ -34,7 +34,7 @@
34
34
  .ax-selection-list {
35
35
  &.ax-vertical {
36
36
  & > div {
37
- @apply ax-pb-3.5 ax-border-b ax-border-light-300 last:ax-border-0;
37
+ @apply ax-pb-3.5 ax-border-b ax-border-light-300 dark:ax-border-white/[0.09] last:ax-border-0;
38
38
  }
39
39
  }
40
40
  }
@@ -43,7 +43,7 @@
43
43
  .ax-selection-list {
44
44
  &.ax-vertical,&.ax-horizontal {
45
45
  & > div {
46
- @apply ax-p-4 ax-border ax-border-light-300 ax-rounded-md ax-shadow-sm;
46
+ @apply ax-p-4 ax-border ax-border-light-300 dark:ax-border-white/[0.09] ax-rounded-md ax-shadow-sm;
47
47
  &.ax-state-selected {
48
48
  @apply ax-border-primary-500 ax-ring-1 ax-ring-primary-500 ax-shadow-primary-500;
49
49
  }
@@ -141,7 +141,7 @@
141
141
 
142
142
  &.ax-vertical {
143
143
  .ax-items-wrapper {
144
- @apply ax-flex-col;
144
+ @apply ax-flex-col ax-h-full;
145
145
 
146
146
  ax-tab-item {
147
147
  @apply ax-text-center ax-justify-start ax-py-2;
@@ -3,6 +3,8 @@
3
3
  .ax-textarea {
4
4
  min-height: calc(var(--ax-base-size) * var(--ax-base-ratio));
5
5
  @apply ax-relative ax-flex ax-flex-col ax-rounded ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300 ax-overflow-hidden ax-w-full;
6
+ @include control-states("editor");
7
+
6
8
  &:focus-within {
7
9
  @apply ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
8
10
  }
@@ -1,12 +1,8 @@
1
1
  @layer components {
2
2
  ax-toast {
3
-
4
- @screen sm {
3
+ width: max(20vw, 350px);
4
+ @include screen("mobile") {
5
5
  width: 98vw;
6
6
  }
7
- @screen md {
8
- width: max(20vw, 350px);
9
- }
10
-
11
7
  }
12
8
  }
@@ -23,7 +23,7 @@
23
23
  &::before {
24
24
  content: "";
25
25
  width: 1px;
26
- @apply ax-absolute ax-bottom-0 ax-bg-light-200 ax-h-full ax-start-2;
26
+ @apply ax-absolute ax-bottom-0 ax-bg-light-200 ax-h-full ax-start-2 dark:ax-bg-white/30;
27
27
  }
28
28
  li {
29
29
  &::before {
@@ -1,152 +1,152 @@
1
- body {
2
- padding: 0;
3
- margin: 0;
4
- font-family: sans-serif;
5
- font-size: 1em;
6
- line-height: 1.5;
7
- color: #555;
8
- background: #fff;
9
- }
10
- h1 {
11
- font-size: 1.5em;
12
- font-weight: normal;
13
- }
14
- small {
15
- font-size: .66666667em;
16
- }
17
- a {
18
- color: #e74c3c;
19
- text-decoration: none;
20
- }
21
- a:hover, a:focus {
22
- box-shadow: 0 1px #e74c3c;
23
- }
24
- .bshadow0, input {
25
- box-shadow: inset 0 -2px #e7e7e7;
26
- }
27
- input:hover {
28
- box-shadow: inset 0 -2px #ccc;
29
- }
30
- input, fieldset {
31
- font-family: sans-serif;
32
- font-size: 1em;
33
- margin: 0;
34
- padding: 0;
35
- border: 0;
36
- }
37
- input {
38
- color: inherit;
39
- line-height: 1.5;
40
- height: 1.5em;
41
- padding: .25em 0;
42
- }
43
- input:focus {
44
- outline: none;
45
- box-shadow: inset 0 -2px #449fdb;
46
- }
47
- .glyph {
48
- font-size: 16px;
49
- width: 15em;
50
- padding-bottom: 1em;
51
- margin-right: 4em;
52
- margin-bottom: 1em;
53
- float: left;
54
- overflow: hidden;
55
- }
56
- .liga {
57
- width: 80%;
58
- width: calc(100% - 2.5em);
59
- }
60
- .talign-right {
61
- text-align: right;
62
- }
63
- .talign-center {
64
- text-align: center;
65
- }
66
- .bgc1 {
67
- background: #f1f1f1;
68
- }
69
- .fgc1 {
70
- color: #999;
71
- }
72
- .fgc0 {
73
- color: #000;
74
- }
75
- p {
76
- margin-top: 1em;
77
- margin-bottom: 1em;
78
- }
79
- .mvm {
80
- margin-top: .75em;
81
- margin-bottom: .75em;
82
- }
83
- .mtn {
84
- margin-top: 0;
85
- }
86
- .mtl, .mal {
87
- margin-top: 1.5em;
88
- }
89
- .mbl, .mal {
90
- margin-bottom: 1.5em;
91
- }
92
- .mal, .mhl {
93
- margin-left: 1.5em;
94
- margin-right: 1.5em;
95
- }
96
- .mhmm {
97
- margin-left: 1em;
98
- margin-right: 1em;
99
- }
100
- .mls {
101
- margin-left: .25em;
102
- }
103
- .ptl {
104
- padding-top: 1.5em;
105
- }
106
- .pbs, .pvs {
107
- padding-bottom: .25em;
108
- }
109
- .pvs, .pts {
110
- padding-top: .25em;
111
- }
112
- .unit {
113
- float: left;
114
- }
115
- .unitRight {
116
- float: right;
117
- }
118
- .size1of2 {
119
- width: 50%;
120
- }
121
- .size1of1 {
122
- width: 100%;
123
- }
124
- .clearfix:before, .clearfix:after {
125
- content: " ";
126
- display: table;
127
- }
128
- .clearfix:after {
129
- clear: both;
130
- }
131
- .hidden-true {
132
- display: none;
133
- }
134
- .textbox0 {
135
- width: 3em;
136
- background: #f1f1f1;
137
- padding: .25em .5em;
138
- line-height: 1.5;
139
- height: 1.5em;
140
- }
141
- #testDrive {
142
- display: block;
143
- padding-top: 24px;
144
- line-height: 1.5;
145
- }
146
- .fs0 {
147
- font-size: 16px;
148
- }
149
- .fs1 {
150
- font-size: 32px;
151
- }
152
-
1
+ body {
2
+ padding: 0;
3
+ margin: 0;
4
+ font-family: sans-serif;
5
+ font-size: 1em;
6
+ line-height: 1.5;
7
+ color: #555;
8
+ background: #fff;
9
+ }
10
+ h1 {
11
+ font-size: 1.5em;
12
+ font-weight: normal;
13
+ }
14
+ small {
15
+ font-size: .66666667em;
16
+ }
17
+ a {
18
+ color: #e74c3c;
19
+ text-decoration: none;
20
+ }
21
+ a:hover, a:focus {
22
+ box-shadow: 0 1px #e74c3c;
23
+ }
24
+ .bshadow0, input {
25
+ box-shadow: inset 0 -2px #e7e7e7;
26
+ }
27
+ input:hover {
28
+ box-shadow: inset 0 -2px #ccc;
29
+ }
30
+ input, fieldset {
31
+ font-family: sans-serif;
32
+ font-size: 1em;
33
+ margin: 0;
34
+ padding: 0;
35
+ border: 0;
36
+ }
37
+ input {
38
+ color: inherit;
39
+ line-height: 1.5;
40
+ height: 1.5em;
41
+ padding: .25em 0;
42
+ }
43
+ input:focus {
44
+ outline: none;
45
+ box-shadow: inset 0 -2px #449fdb;
46
+ }
47
+ .glyph {
48
+ font-size: 16px;
49
+ width: 15em;
50
+ padding-bottom: 1em;
51
+ margin-right: 4em;
52
+ margin-bottom: 1em;
53
+ float: left;
54
+ overflow: hidden;
55
+ }
56
+ .liga {
57
+ width: 80%;
58
+ width: calc(100% - 2.5em);
59
+ }
60
+ .talign-right {
61
+ text-align: right;
62
+ }
63
+ .talign-center {
64
+ text-align: center;
65
+ }
66
+ .bgc1 {
67
+ background: #f1f1f1;
68
+ }
69
+ .fgc1 {
70
+ color: #999;
71
+ }
72
+ .fgc0 {
73
+ color: #000;
74
+ }
75
+ p {
76
+ margin-top: 1em;
77
+ margin-bottom: 1em;
78
+ }
79
+ .mvm {
80
+ margin-top: .75em;
81
+ margin-bottom: .75em;
82
+ }
83
+ .mtn {
84
+ margin-top: 0;
85
+ }
86
+ .mtl, .mal {
87
+ margin-top: 1.5em;
88
+ }
89
+ .mbl, .mal {
90
+ margin-bottom: 1.5em;
91
+ }
92
+ .mal, .mhl {
93
+ margin-left: 1.5em;
94
+ margin-right: 1.5em;
95
+ }
96
+ .mhmm {
97
+ margin-left: 1em;
98
+ margin-right: 1em;
99
+ }
100
+ .mls {
101
+ margin-left: .25em;
102
+ }
103
+ .ptl {
104
+ padding-top: 1.5em;
105
+ }
106
+ .pbs, .pvs {
107
+ padding-bottom: .25em;
108
+ }
109
+ .pvs, .pts {
110
+ padding-top: .25em;
111
+ }
112
+ .unit {
113
+ float: left;
114
+ }
115
+ .unitRight {
116
+ float: right;
117
+ }
118
+ .size1of2 {
119
+ width: 50%;
120
+ }
121
+ .size1of1 {
122
+ width: 100%;
123
+ }
124
+ .clearfix:before, .clearfix:after {
125
+ content: " ";
126
+ display: table;
127
+ }
128
+ .clearfix:after {
129
+ clear: both;
130
+ }
131
+ .hidden-true {
132
+ display: none;
133
+ }
134
+ .textbox0 {
135
+ width: 3em;
136
+ background: #f1f1f1;
137
+ padding: .25em .5em;
138
+ line-height: 1.5;
139
+ height: 1.5em;
140
+ }
141
+ #testDrive {
142
+ display: block;
143
+ padding-top: 24px;
144
+ line-height: 1.5;
145
+ }
146
+ .fs0 {
147
+ font-size: 16px;
148
+ }
149
+ .fs1 {
150
+ font-size: 32px;
151
+ }
152
+
@@ -1,30 +1,30 @@
1
- if (!('boxShadow' in document.body.style)) {
2
- document.body.setAttribute('class', 'noBoxShadow');
3
- }
4
-
5
- document.body.addEventListener("click", function(e) {
6
- var target = e.target;
7
- if (target.tagName === "INPUT" &&
8
- target.getAttribute('class').indexOf('liga') === -1) {
9
- target.select();
10
- }
11
- });
12
-
13
- (function() {
14
- var fontSize = document.getElementById('fontSize'),
15
- testDrive = document.getElementById('testDrive'),
16
- testText = document.getElementById('testText');
17
- function updateTest() {
18
- testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
- if (window.icomoonLiga) {
20
- window.icomoonLiga(testDrive);
21
- }
22
- }
23
- function updateSize() {
24
- testDrive.style.fontSize = fontSize.value + 'px';
25
- }
26
- fontSize.addEventListener('change', updateSize, false);
27
- testText.addEventListener('input', updateTest, false);
28
- testText.addEventListener('change', updateTest, false);
29
- updateSize();
30
- }());
1
+ if (!('boxShadow' in document.body.style)) {
2
+ document.body.setAttribute('class', 'noBoxShadow');
3
+ }
4
+
5
+ document.body.addEventListener("click", function(e) {
6
+ var target = e.target;
7
+ if (target.tagName === "INPUT" &&
8
+ target.getAttribute('class').indexOf('liga') === -1) {
9
+ target.select();
10
+ }
11
+ });
12
+
13
+ (function() {
14
+ var fontSize = document.getElementById('fontSize'),
15
+ testDrive = document.getElementById('testDrive'),
16
+ testText = document.getElementById('testText');
17
+ function updateTest() {
18
+ testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
+ if (window.icomoonLiga) {
20
+ window.icomoonLiga(testDrive);
21
+ }
22
+ }
23
+ function updateSize() {
24
+ testDrive.style.fontSize = fontSize.value + 'px';
25
+ }
26
+ fontSize.addEventListener('change', updateSize, false);
27
+ testText.addEventListener('input', updateTest, false);
28
+ testText.addEventListener('change', updateTest, false);
29
+ updateSize();
30
+ }());