@acorex/styles 5.9.0 → 6.0.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/index.js +8 -12
- package/index.scss +4 -4
- package/package.json +17 -10
- package/src/components/_action-sheet.scss +1 -2
- package/src/components/_alert.scss +56 -54
- package/src/components/_avatar.scss +0 -2
- package/src/components/_badge.scss +29 -5
- package/src/components/_breadcrumbs.scss +2 -3
- package/src/components/_button.scss +9 -13
- package/src/components/_calendar.scss +5 -5
- package/src/components/_checkbox.scss +3 -8
- package/src/components/_collapse.scss +0 -1
- package/src/components/_color-palette.scss +5 -5
- package/src/components/_color-picker.scss +1 -1
- package/src/components/_data-table.scss +5 -5
- package/src/components/_datapager.scss +3 -3
- package/src/components/_decoration.scss +10 -10
- package/src/components/_dialog.scss +1 -1
- package/src/components/_drawer.scss +7 -7
- package/src/components/_dropdown.scss +8 -10
- package/src/components/_editor-container.scss +12 -12
- package/src/components/_fieldset.scss +1 -1
- package/src/components/_form.scss +1 -1
- package/src/components/_label.scss +1 -1
- package/src/components/_list.scss +8 -23
- package/src/components/_loading.scss +14 -21
- package/src/components/_menu.scss +3 -4
- package/src/components/_numberbox.scss +1 -3
- package/src/components/_popup.scss +3 -7
- package/src/components/_progress.scss +2 -3
- package/src/components/_radio.scss +1 -1
- package/src/components/_range-slider.scss +2 -2
- package/src/components/_result.scss +0 -1
- package/src/components/_selectbox.scss +2 -2
- package/src/components/_switch.scss +0 -1
- package/src/components/_tabs.scss +3 -3
- package/src/components/_textarea.scss +5 -6
- package/src/components/_toast.scss +1 -1
- package/src/components/_treeview.scss +0 -1
- package/src/components/index.scss +0 -2
- package/src/icons/demo-files/demo.css +152 -152
- package/src/icons/demo-files/demo.js +30 -30
- package/src/icons/demo.html +556 -556
- package/src/icons/fonts/acorex-icon.svg +46 -46
- package/src/icons/style.css +138 -138
- package/src/icons/style.scss +215 -215
- package/src/icons/variables.scss +41 -41
- package/src/utility/_mixins.scss +63 -0
- package/src/components/_picker.scss +0 -179
- package/src/components/_side-menu.scss +0 -42
- package/src/components/_switch copy.scss +0 -185
@@ -1,179 +0,0 @@
|
|
1
|
-
// @layer components {
|
2
|
-
// ax-picker,
|
3
|
-
// .ax-picker {
|
4
|
-
// @apply ax-relative;
|
5
|
-
// ax-carousel {
|
6
|
-
// &::before {
|
7
|
-
// @apply ax-top-0;
|
8
|
-
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.08+0,0+100;Neutral+Density */
|
9
|
-
// background: -moz-linear-gradient(
|
10
|
-
// top,
|
11
|
-
// rgba(226, 232, 240, 0.08) 0%,
|
12
|
-
// rgba(226, 232, 240, 0) 100%
|
13
|
-
// ); /* FF3.6-15 */
|
14
|
-
// background: -webkit-linear-gradient(
|
15
|
-
// top,
|
16
|
-
// rgba(226, 232, 240, 0.70) 0%,
|
17
|
-
// rgba(226, 232, 240, 0) 100%
|
18
|
-
// ); /* Chrome10-25,Safari5.1-6 */
|
19
|
-
// background: linear-gradient(
|
20
|
-
// to bottom,
|
21
|
-
// rgba(226, 232, 240, 0.70) 0%,
|
22
|
-
// rgba(226, 232, 240, 0) 100%
|
23
|
-
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
24
|
-
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
25
|
-
// }
|
26
|
-
// &::after {
|
27
|
-
// @apply ax-bottom-0;
|
28
|
-
// /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.70+0,0+100;Neutral+Density */
|
29
|
-
// background: -moz-linear-gradient(
|
30
|
-
// bottom,
|
31
|
-
// rgba(226, 232, 240, 0.70) 0%,
|
32
|
-
// rgba(226, 232, 240, 0) 100%
|
33
|
-
// ); /* FF3.6-15 */
|
34
|
-
// background: -webkit-linear-gradient(
|
35
|
-
// bottom,
|
36
|
-
// rgba(226, 232, 240, 0.70) 0%,
|
37
|
-
// rgba(226, 232, 240, 0) 100%
|
38
|
-
// ); /* Chrome10-25,Safari5.1-6 */
|
39
|
-
// background: linear-gradient(
|
40
|
-
// to top,
|
41
|
-
// rgba(226, 232, 240, 0.70) 0%,
|
42
|
-
// rgba(226, 232, 240, 0) 100%
|
43
|
-
// ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
44
|
-
// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#14000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
|
45
|
-
// }
|
46
|
-
// &::before,
|
47
|
-
// &::after {
|
48
|
-
// @apply ax-absolute ax-h-1/2 ax-w-full ax-start-0 ax-pointer-events-none;
|
49
|
-
// content: "";
|
50
|
-
// }
|
51
|
-
// }
|
52
|
-
// .ax-picker-item {
|
53
|
-
// @apply ax-block ax-p-4 ax-text-sm;
|
54
|
-
// &.is-active {
|
55
|
-
// @apply ax-text-base ax-text-primary-500 ax-transition-all;
|
56
|
-
// }
|
57
|
-
// }
|
58
|
-
// }
|
59
|
-
// }
|
60
|
-
|
61
|
-
// @layer components {
|
62
|
-
// ax-picker {
|
63
|
-
// @apply ax-max-h-full ax-overflow-y-scroll;
|
64
|
-
// scroll-snap-type: mandatory;
|
65
|
-
// scroll-snap-points-y: repeat(1rem);
|
66
|
-
// scroll-snap-type: y mandatory;
|
67
|
-
// li {
|
68
|
-
// @apply ax-py-4 ax-flex ax-flex-col ax-items-center ax-justify-center ax-snap-start ax-text-sm;
|
69
|
-
// }
|
70
|
-
// }
|
71
|
-
// }
|
72
|
-
.ng-data-picker {
|
73
|
-
font-size: 1rem;
|
74
|
-
height: 10em;
|
75
|
-
position: relative;
|
76
|
-
background-color: white;
|
77
|
-
overflow: hidden;
|
78
|
-
}
|
79
|
-
.ng-data-picker.black {
|
80
|
-
color: white;
|
81
|
-
}
|
82
|
-
.ng-data-picker .picker-group {
|
83
|
-
}
|
84
|
-
.ng-data-picker .picker-list {
|
85
|
-
height: 6.25em;
|
86
|
-
position: relative;
|
87
|
-
top: 4em; // half of picker height - half of item height
|
88
|
-
}
|
89
|
-
.ng-data-picker .picker-item {
|
90
|
-
position: absolute;
|
91
|
-
top: 0;
|
92
|
-
left: 0;
|
93
|
-
overflow: hidden;
|
94
|
-
width: 100%;
|
95
|
-
text-overflow: ellipsis;
|
96
|
-
white-space: nowrap;
|
97
|
-
display: block;
|
98
|
-
text-align: center;
|
99
|
-
will-change: transform;
|
100
|
-
contain: strict;
|
101
|
-
height: 2em;
|
102
|
-
line-height: 2;
|
103
|
-
font-size: 1em;
|
104
|
-
}
|
105
|
-
.ng-data-picker .selected-item {
|
106
|
-
}
|
107
|
-
|
108
|
-
/* picker handle layer */
|
109
|
-
.ng-data-picker .picker-handle-layer {
|
110
|
-
position: absolute;
|
111
|
-
width: 100%;
|
112
|
-
height: calc(100% + 2px);
|
113
|
-
left: 0;
|
114
|
-
right: 0;
|
115
|
-
top: -1px;
|
116
|
-
bottom: -1px;
|
117
|
-
}
|
118
|
-
.ng-data-picker .picker-handle-layer .picker-top {
|
119
|
-
border-bottom: 0.55px solid rgba(74, 73, 89, 0.5);
|
120
|
-
background: linear-gradient(to bottom, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
121
|
-
transform: translate3d(0, 0, 5.625em);
|
122
|
-
}
|
123
|
-
.ng-data-picker .picker-handle-layer .picker-middle {
|
124
|
-
height: 2em;
|
125
|
-
}
|
126
|
-
.ng-data-picker .picker-handle-layer .picker-bottom {
|
127
|
-
border-top: 0.55px solid rgba(74, 73, 89, 0.5);
|
128
|
-
background: linear-gradient(to top, white 2%, rgba(255, 255, 255, 0.1) 100%);
|
129
|
-
transform: translate3d(0, 0, 5.625em);
|
130
|
-
}
|
131
|
-
|
132
|
-
/* flex system */
|
133
|
-
.flex-box {
|
134
|
-
display: flex;
|
135
|
-
}
|
136
|
-
.flex-box.dir-column {
|
137
|
-
flex-direction: column;
|
138
|
-
}
|
139
|
-
.flex-box.dir-row {
|
140
|
-
flex-direction: row;
|
141
|
-
}
|
142
|
-
|
143
|
-
/* flex system - for items */
|
144
|
-
.flex-box .weight-1 {
|
145
|
-
flex: 1;
|
146
|
-
}
|
147
|
-
.flex-box .weight-2 {
|
148
|
-
flex: 2;
|
149
|
-
}
|
150
|
-
.flex-box .weight-3 {
|
151
|
-
flex: 3;
|
152
|
-
}
|
153
|
-
.flex-box .weight-4 {
|
154
|
-
flex: 4;
|
155
|
-
}
|
156
|
-
.flex-box .weight-5 {
|
157
|
-
flex: 5;
|
158
|
-
}
|
159
|
-
.flex-box .weight-6 {
|
160
|
-
flex: 6;
|
161
|
-
}
|
162
|
-
.flex-box .weight-7 {
|
163
|
-
flex: 7;
|
164
|
-
}
|
165
|
-
.flex-box .weight-8 {
|
166
|
-
flex: 8;
|
167
|
-
}
|
168
|
-
.flex-box .weight-9 {
|
169
|
-
flex: 9;
|
170
|
-
}
|
171
|
-
.flex-box .weight-10 {
|
172
|
-
flex: 10;
|
173
|
-
}
|
174
|
-
.flex-box .weight-11 {
|
175
|
-
flex: 11;
|
176
|
-
}
|
177
|
-
.flex-box .weight-12 {
|
178
|
-
flex: 12;
|
179
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-side-menu {
|
3
|
-
@apply ax-list-none ax-p-0 ax-m-0;
|
4
|
-
.ax-side-menu-item {
|
5
|
-
@apply ax-flex ax-items-center ax-p-2 ax-cursor-pointer;
|
6
|
-
&:hover {
|
7
|
-
@apply ax-bg-light-100;
|
8
|
-
}
|
9
|
-
&:focus {
|
10
|
-
@apply ax-outline-none ax-ring-2 ax-ring-primary-500 ax-ring-opacity-100 ax-border-transparent;
|
11
|
-
}
|
12
|
-
.ax-side-menu-icon {
|
13
|
-
@apply ax-pr-2 ax-h-full ax-flex ax-items-center;
|
14
|
-
}
|
15
|
-
.ax-side-menu-text {
|
16
|
-
@apply ax-flex-1;
|
17
|
-
}
|
18
|
-
.ax-side-menu-badge {
|
19
|
-
}
|
20
|
-
}
|
21
|
-
&.ax-alternate {
|
22
|
-
.ax-side-menu-item {
|
23
|
-
&:nth-child(odd) {
|
24
|
-
@apply ax-bg-light-100;
|
25
|
-
}
|
26
|
-
&:hover {
|
27
|
-
@apply ax-bg-light-300;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
&.ax-divided {
|
32
|
-
.ax-side-menu-item {
|
33
|
-
&:not(:last-child) {
|
34
|
-
@apply ax-border-b ax-border ax-border-solid;
|
35
|
-
}
|
36
|
-
&:hover {
|
37
|
-
@apply ax-bg-light-100;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
@@ -1,185 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-switch {
|
3
|
-
label {
|
4
|
-
width: calc((var(--ax-base-size) * var(--ax-base-ratio) - 5px));
|
5
|
-
height: calc(var(--ax-base-size) * var(--ax-base-ratio) / 2);
|
6
|
-
@apply ax-relative ax-inline-block;
|
7
|
-
input {
|
8
|
-
@apply ax-w-0 ax-h-0 ax-opacity-0;
|
9
|
-
}
|
10
|
-
|
11
|
-
.ax-switch-slider {
|
12
|
-
@apply ax-absolute ax-cursor-pointer ax-left-0 ax-right-0 ax-bottom-0 ax-top-0 ax-bg-light-300 ax-rounded-full;
|
13
|
-
@include control-states("editor");
|
14
|
-
-webkit-transition: 0.4s;
|
15
|
-
transition: 0.4s;
|
16
|
-
&::before {
|
17
|
-
@apply ax-absolute ax-bg-white ax-rounded-full;
|
18
|
-
content: "";
|
19
|
-
width: 35%;
|
20
|
-
padding-bottom: 35%;
|
21
|
-
left: 7%;
|
22
|
-
top: 50%;
|
23
|
-
transform: translate(0, -50%);
|
24
|
-
-webkit-transition: 0.4s;
|
25
|
-
transition: 0.4s;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
input:checked + .ax-switch-slider {
|
30
|
-
@apply ax-bg-primary-500;
|
31
|
-
}
|
32
|
-
|
33
|
-
input:focus + .ax-switch-slider {
|
34
|
-
@apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
|
35
|
-
}
|
36
|
-
|
37
|
-
input:checked + .ax-switch-slider:before {
|
38
|
-
-webkit-transform: translate(140%, -50%);
|
39
|
-
-ms-transform: translate(140%, -50%);
|
40
|
-
transform: translate(140%, -50%);
|
41
|
-
}
|
42
|
-
|
43
|
-
}
|
44
|
-
&.ax-success {
|
45
|
-
ax-loading {
|
46
|
-
@apply ax-stroke-success-500;
|
47
|
-
}
|
48
|
-
> input {
|
49
|
-
&:checked {
|
50
|
-
& + .ax-switch-slider {
|
51
|
-
background-color: rgb(var(--ax-color-success));
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
input:focus ~ .ax-switch-slider {
|
56
|
-
@apply ax-ring-success-500;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
&.ax-secondary {
|
60
|
-
ax-loading {
|
61
|
-
@apply ax-stroke-secondary-500;
|
62
|
-
}
|
63
|
-
> input {
|
64
|
-
&:checked {
|
65
|
-
& + .ax-switch-slider {
|
66
|
-
background-color: rgb(var(--ax-color-secondary));
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
input:focus ~ .ax-switch-slider {
|
71
|
-
@apply ax-ring-secondary-500;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
&.ax-danger {
|
75
|
-
ax-loading {
|
76
|
-
@apply ax-stroke-danger-500;
|
77
|
-
}
|
78
|
-
> input {
|
79
|
-
&:checked {
|
80
|
-
& + .ax-switch-slider {
|
81
|
-
background-color: rgb(var(--ax-color-danger));
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
input:focus ~ .ax-switch-slider {
|
86
|
-
@apply ax-ring-danger-500;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
&.ax-warning {
|
90
|
-
ax-loading {
|
91
|
-
@apply ax-stroke-warning-500;
|
92
|
-
}
|
93
|
-
> input {
|
94
|
-
&:checked {
|
95
|
-
& + .ax-switch-slider {
|
96
|
-
background-color: rgb(var(--ax-color-warning));
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
input:focus ~ .ax-switch-slider {
|
101
|
-
@apply ax-ring-warning-500;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
&.ax-info {
|
105
|
-
ax-loading {
|
106
|
-
@apply ax-stroke-info-500;
|
107
|
-
}
|
108
|
-
> input {
|
109
|
-
&:checked {
|
110
|
-
& + .ax-switch-slider {
|
111
|
-
background-color: rgb(var(--ax-color-info));
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
input:focus ~ .ax-switch-slider {
|
116
|
-
@apply ax-ring-info-500;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
&.ax-light {
|
120
|
-
ax-loading {
|
121
|
-
@apply ax-stroke-light-500;
|
122
|
-
}
|
123
|
-
> input {
|
124
|
-
&:checked {
|
125
|
-
& + .ax-switch-slider {
|
126
|
-
background-color: rgb(var(--ax-color-light));
|
127
|
-
}
|
128
|
-
}
|
129
|
-
}
|
130
|
-
input:focus ~ .ax-switch-slider {
|
131
|
-
@apply ax-ring-light-500;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
&.ax-dark {
|
135
|
-
ax-loading {
|
136
|
-
@apply ax-stroke-dark-500;
|
137
|
-
}
|
138
|
-
> input {
|
139
|
-
&:checked {
|
140
|
-
& + .ax-switch-slider {
|
141
|
-
background-color: rgb(var(--ax-color-dark));
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
145
|
-
input:focus ~ .ax-switch-slider {
|
146
|
-
@apply ax-ring-dark-500;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
&.ax-state-loading {
|
150
|
-
label {
|
151
|
-
.ax-switch-slider {
|
152
|
-
&::before {
|
153
|
-
background-image: url("../images/fill-loading.svg");
|
154
|
-
background-color: transparent;
|
155
|
-
background-size: cover;
|
156
|
-
@apply ax-absolute;
|
157
|
-
content: "";
|
158
|
-
width: 35%;
|
159
|
-
padding-bottom: 35%;
|
160
|
-
transform: translate(0, -50%);
|
161
|
-
|
162
|
-
left: 7%;
|
163
|
-
top: 18%;
|
164
|
-
animation: rotation 0.6s infinite linear;
|
165
|
-
|
166
|
-
}
|
167
|
-
@keyframes rotation {
|
168
|
-
from {
|
169
|
-
transform: rotate(0deg);
|
170
|
-
}
|
171
|
-
to {
|
172
|
-
transform: rotate(359deg);
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}
|
176
|
-
}
|
177
|
-
}
|
178
|
-
&.ax-state-disabled {
|
179
|
-
@apply ax-opacity-60;
|
180
|
-
}
|
181
|
-
&.ax-state-readonly {
|
182
|
-
@apply ax-opacity-60;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
}
|