@acorex/styles 5.1.2 → 5.1.6
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/fonts/font-awesome/fa-brands-400.eot +0 -0
- package/fonts/font-awesome/fa-brands-400.svg +3570 -0
- package/fonts/font-awesome/fa-brands-400.ttf +0 -0
- package/fonts/font-awesome/fa-brands-400.woff +0 -0
- package/fonts/font-awesome/fa-brands-400.woff2 +0 -0
- package/fonts/font-awesome/fa-duotone-900.eot +0 -0
- package/fonts/font-awesome/fa-duotone-900.svg +15055 -0
- package/fonts/font-awesome/fa-duotone-900.ttf +0 -0
- package/fonts/font-awesome/fa-duotone-900.woff +0 -0
- package/fonts/font-awesome/fa-duotone-900.woff2 +0 -0
- package/fonts/font-awesome/fa-light-300.eot +0 -0
- package/fonts/font-awesome/fa-light-300.svg +12330 -0
- package/fonts/font-awesome/fa-light-300.ttf +0 -0
- package/fonts/font-awesome/fa-light-300.woff +0 -0
- package/fonts/font-awesome/fa-light-300.woff2 +0 -0
- package/fonts/font-awesome/fa-regular-400.eot +0 -0
- package/fonts/font-awesome/fa-regular-400.svg +11256 -0
- package/fonts/font-awesome/fa-regular-400.ttf +0 -0
- package/fonts/font-awesome/fa-regular-400.woff +0 -0
- package/fonts/font-awesome/fa-regular-400.woff2 +0 -0
- package/fonts/font-awesome/fa-solid-900.eot +0 -0
- package/fonts/font-awesome/fa-solid-900.svg +9588 -0
- package/fonts/font-awesome/fa-solid-900.ttf +0 -0
- package/fonts/font-awesome/fa-solid-900.woff +0 -0
- package/fonts/font-awesome/fa-solid-900.woff2 +0 -0
- package/fonts/font-awesome/font-awesome.css +16960 -0
- package/package.json +10 -10
- package/scss/buttons.scss +69 -0
- package/scss/calendar.scss +121 -0
- package/scss/checkbox.scss +46 -0
- package/scss/context-menu.scss +75 -0
- package/scss/data-grid.scss +117 -0
- package/scss/drawer.scss +138 -0
- package/scss/fieldset.scss +23 -0
- package/scss/forms.scss +515 -0
- package/scss/list.scss +47 -0
- package/scss/master.scss +259 -0
- package/scss/menu.scss +130 -0
- package/scss/mixin.scss +12 -0
- package/scss/page.scss +54 -0
- package/scss/progress.scss +11 -0
- package/scss/selection-list.scss +104 -0
- package/scss/style.scss +47 -0
- package/scss/tab-strip.scss +31 -0
- package/scss/tab.scss +36 -0
- package/scss/toast.scss +46 -0
- package/scss/tooltip.scss +55 -0
- package/scss/treeview.scss +122 -0
- package/scss/upload.scss +170 -0
- package/scss/variables.scss +139 -0
- package/index.scss +0 -11
- package/src/base/index.scss +0 -44
- package/src/components/_action-sheet.scss +0 -25
- package/src/components/_alert.scss +0 -64
- package/src/components/_avatar.scss +0 -135
- package/src/components/_badge.scss +0 -45
- package/src/components/_breadcrumbs.scss +0 -24
- package/src/components/_button.scss +0 -762
- package/src/components/_calendar.scss +0 -166
- package/src/components/_carousel.scss +0 -44
- package/src/components/_checkbox.scss +0 -63
- package/src/components/_collapse.scss +0 -52
- package/src/components/_datapager.scss +0 -40
- package/src/components/_datepicker.scss +0 -5
- package/src/components/_dialog.scss +0 -63
- package/src/components/_drawer.scss +0 -126
- package/src/components/_dropdown.scss +0 -226
- package/src/components/_editor-container.scss +0 -139
- package/src/components/_fieldset.scss +0 -8
- package/src/components/_form.scss +0 -8
- package/src/components/_input.scss +0 -14
- package/src/components/_label.scss +0 -7
- package/src/components/_list.scss +0 -80
- package/src/components/_loading.scss +0 -59
- package/src/components/_menu.scss +0 -50
- package/src/components/_numberbox.scss +0 -17
- package/src/components/_picker.scss +0 -11
- package/src/components/_popup.scss +0 -126
- package/src/components/_progress.scss +0 -62
- package/src/components/_radio.scss +0 -32
- package/src/components/_range-slider.scss +0 -15
- package/src/components/_rating.scss +0 -14
- package/src/components/_result.scss +0 -25
- package/src/components/_selectbox.scss +0 -18
- package/src/components/_selection-list.scss +0 -54
- package/src/components/_side-menu.scss +0 -42
- package/src/components/_skeleton.scss +0 -22
- package/src/components/_switch copy.scss +0 -185
- package/src/components/_switch.scss +0 -187
- package/src/components/_table.scss +0 -48
- package/src/components/_tabs.scss +0 -238
- package/src/components/_textarea.scss +0 -39
- package/src/components/_toast.scss +0 -82
- package/src/components/_tooltip.scss +0 -44
- package/src/components/_treeview.scss +0 -55
- package/src/components/index.scss +0 -42
- package/src/icons/Read Me.txt +0 -7
- package/src/icons/demo-files/demo.css +0 -152
- package/src/icons/demo-files/demo.js +0 -30
- package/src/icons/demo.html +0 -500
- package/src/icons/fonts/acorex-icon.eot +0 -0
- package/src/icons/fonts/acorex-icon.svg +0 -43
- package/src/icons/fonts/acorex-icon.ttf +0 -0
- package/src/icons/fonts/acorex-icon.woff +0 -0
- package/src/icons/selection.json +0 -1
- package/src/icons/style.css +0 -126
- package/src/icons/style.scss +0 -195
- package/src/icons/variables.scss +0 -37
- package/src/utility/_mixins.scss +0 -83
- package/src/utility/index.scss +0 -16
- package/src/variables/_colors.scss +0 -121
@@ -1,126 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
ax-page-footer,
|
3
|
-
ax-page-header {
|
4
|
-
@apply ax-flex ax-items-center ax-justify-between ax-px-3 ax-py-2 ax-border-solid ax-border-light-300 dark:ax-border-light-700;
|
5
|
-
|
6
|
-
ax-prefix {
|
7
|
-
@apply ax-flex ax-col-span-6 ax-col-start-1 ax-col-end-7 ax-justify-start;
|
8
|
-
}
|
9
|
-
|
10
|
-
ax-suffix {
|
11
|
-
@apply ax-flex ax-col-span-6 ax-col-start-7 ax-col-end-13 ax-justify-end;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
ax-page-footer {
|
16
|
-
@apply ax-border-t;
|
17
|
-
}
|
18
|
-
|
19
|
-
ax-page-header {
|
20
|
-
@apply ax-border-b;
|
21
|
-
}
|
22
|
-
|
23
|
-
.ax-popup {
|
24
|
-
@apply ax-flex ax-flex-col ax-bg-white ax-w-6/12 ax-shadow-lg ax-border ax-border-solid ax-border-light-300 ax-rounded ax-outline-none ax-p-0 ax-max-h-[98vh] ax-min-h-fit ax-mx-auto;
|
25
|
-
@include control-states("surface");
|
26
|
-
|
27
|
-
.ax-popup-header {
|
28
|
-
@apply ax-p-4 ax-border-b ax-border-light-300 dark:ax-border-light-700 ax-flex ax-justify-between ax-items-center ax-cursor-move;
|
29
|
-
|
30
|
-
span {
|
31
|
-
@apply ax-font-medium;
|
32
|
-
}
|
33
|
-
|
34
|
-
i {
|
35
|
-
@apply ax-text-light-300 dark:ax-text-light-200 ax-cursor-pointer ax-text-xl;
|
36
|
-
&:hover {
|
37
|
-
@apply ax-text-light-500 dark:ax-text-light-100;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
.ax-popup-main-container {
|
43
|
-
@apply ax-overflow-auto ax-flex-1;
|
44
|
-
}
|
45
|
-
.ax-popup-footer-container {
|
46
|
-
}
|
47
|
-
&.ax-popup-full {
|
48
|
-
@apply ax-w-screen;
|
49
|
-
height: calc(100 * var(--ax-vh));
|
50
|
-
max-height: calc(100 * var(--ax-vh));
|
51
|
-
}
|
52
|
-
|
53
|
-
&.ax-fit {
|
54
|
-
width: fit-content;
|
55
|
-
}
|
56
|
-
|
57
|
-
@media all and (min-width: 1280px) {
|
58
|
-
&.ax-popup-sm {
|
59
|
-
width: 420px !important;
|
60
|
-
}
|
61
|
-
|
62
|
-
&.ax-popup-md {
|
63
|
-
width: 680px !important;
|
64
|
-
}
|
65
|
-
|
66
|
-
&.ax-popup-lg {
|
67
|
-
width: 1024px !important;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
@media all and (min-width: 1024px) and (max-width: 1279px) {
|
72
|
-
&.ax-popup-sm {
|
73
|
-
width: 100vw;
|
74
|
-
max-height: calc(100 * var(--ax-vh));
|
75
|
-
.ax-popup-main {
|
76
|
-
@apply ax-h-screen;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
&.ax-popup-md {
|
81
|
-
width: 500px !important;
|
82
|
-
}
|
83
|
-
|
84
|
-
&.ax-popup-lg {
|
85
|
-
width: 900px !important;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
@media all and (min-width: 768px) and (max-width: 1023px) {
|
90
|
-
&.ax-popup-md {
|
91
|
-
width: 500px !important;
|
92
|
-
}
|
93
|
-
&.ax-popup-lg {
|
94
|
-
width: 700px !important;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
@media all and (min-width: 425px) and (max-width: 767px) {
|
99
|
-
&.ax-popup-sm {
|
100
|
-
width: 100vw;
|
101
|
-
height: calc(100 * var(--ax-vh));
|
102
|
-
max-height: calc(100 * var(--ax-vh));
|
103
|
-
.ax-popup-main {
|
104
|
-
@apply ax-h-screen;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
&.ax-popup-md,
|
109
|
-
&.ax-popup-lg {
|
110
|
-
width: 460px !important;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
@media all and (min-width: 0px) and (max-width: 424px) {
|
115
|
-
&.ax-popup-md,
|
116
|
-
&.ax-popup-lg {
|
117
|
-
width: calc(var(--ax-overlay-full-width) * 1vw);
|
118
|
-
height: calc(var(--ax-overlay-full-width) * var(--ax-vh));
|
119
|
-
max-height: calc(var(--ax-overlay-full-width) * var(--ax-vh));
|
120
|
-
.ax-popup-main {
|
121
|
-
@apply ax-h-screen;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|
@@ -1,62 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
ax-progress-bar,
|
3
|
-
.ax-progress-bar {
|
4
|
-
@apply ax-flex ax-justify-between ax-items-center ax-text-sm;
|
5
|
-
@include control-states("editor");
|
6
|
-
ax-prefix{
|
7
|
-
@apply ax-pe-2;
|
8
|
-
}
|
9
|
-
ax-suffix{
|
10
|
-
@apply ax-ps-2;
|
11
|
-
}
|
12
|
-
.ax-progress-bar-container {
|
13
|
-
@apply ax-w-full ax-h-2 ax-relative ax-bg-light-200 ax-flex ax-rounded-full;
|
14
|
-
.ax-progress-bar-rise {
|
15
|
-
max-width: 100%;
|
16
|
-
transition: width 1s;
|
17
|
-
@apply ax-bg-primary-500 ax-h-full ax-absolute ax-start-0 ax-rounded-full;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
&.ax-primary-default {
|
22
|
-
.ax-progress-bar-rise {
|
23
|
-
@apply ax-bg-primary-500;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
&.ax-secondary-default {
|
27
|
-
.ax-progress-bar-rise {
|
28
|
-
@apply ax-bg-secondary-500;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
&.ax-success-default {
|
32
|
-
.ax-progress-bar-rise {
|
33
|
-
@apply ax-bg-success-500;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
&.ax-warning-default {
|
37
|
-
.ax-progress-bar-rise {
|
38
|
-
@apply ax-bg-warning-500;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
&.ax-danger-default {
|
42
|
-
.ax-progress-bar-rise {
|
43
|
-
@apply ax-bg-danger-500;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
&.ax-info-default {
|
47
|
-
.ax-progress-bar-rise {
|
48
|
-
@apply ax-bg-info-500;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
&.ax-light-default {
|
52
|
-
.ax-progress-bar-rise {
|
53
|
-
@apply ax-bg-light-300;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
&.ax-dark-default {
|
57
|
-
.ax-progress-bar-rise {
|
58
|
-
@apply ax-bg-dark-500 dark:ax-bg-dark-300;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
ax-radio,.ax-radio {
|
3
|
-
@apply ax-text-sm ax-font-medium ax-text-light-700;
|
4
|
-
|
5
|
-
.ax-radio {
|
6
|
-
@apply ax-w-4 ax-h-4 ax-border-solid ax-border ax-border-light-300 ax-rounded-full ax-bg-white ax-text-primary-500 ax-m-0 ax-outline-none ax-align-middle ax-appearance-none;
|
7
|
-
@include control-states('editor');
|
8
|
-
|
9
|
-
&:checked {
|
10
|
-
@apply ax-border-primary-500 ax-bg-no-repeat ax-bg-current ax-bg-contain;
|
11
|
-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
12
|
-
}
|
13
|
-
&:focus {
|
14
|
-
@apply ax-ring-2 ax-ring-primary-500 ax-ring-offset-2;
|
15
|
-
}
|
16
|
-
&.ax-state-disabled{
|
17
|
-
@apply ax-opacity-70;
|
18
|
-
}
|
19
|
-
&.ax-state-disabled{
|
20
|
-
@apply ax-opacity-60;
|
21
|
-
}
|
22
|
-
&.ax-state-error{
|
23
|
-
@apply ax-border-danger-500;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
ax-label {
|
27
|
-
label {
|
28
|
-
@apply ax-mb-0;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-range-slider {
|
3
|
-
@apply ax-w-full;
|
4
|
-
.ax-range-slider-input {
|
5
|
-
@apply ax-appearance-none ax-w-full ax-h-2 ax-bg-light-100 ax-rounded-full ax-outline-none ax-transition-all dark:ax-bg-light-600;
|
6
|
-
&::-webkit-slider-thumb {
|
7
|
-
@apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300 ax-rounded-full ax-cursor-pointer dark:ax-bg-light-500;
|
8
|
-
}
|
9
|
-
&::-moz-range-thumb {
|
10
|
-
@apply ax-appearance-none ax-w-5 ax-h-5 ax-bg-white ax-shadow-sm ax-border ax-border-solid ax-border-light-300 ax-rounded-full ax-cursor-pointer dark:ax-bg-light-500;
|
11
|
-
}
|
12
|
-
|
13
|
-
}
|
14
|
-
}
|
15
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
ax-result,
|
3
|
-
.ax-result {
|
4
|
-
@apply ax-flex ax-flex-col;
|
5
|
-
.ax-result-icon {
|
6
|
-
@apply ax-text-6xl ax-text-center;
|
7
|
-
}
|
8
|
-
.ax-result-title,
|
9
|
-
.ax-result-description {
|
10
|
-
@apply ax-mt-4 ax-text-center;
|
11
|
-
}
|
12
|
-
.ax-result-title {
|
13
|
-
@apply ax-text-2xl ax-font-semibold ax-text-light-700 dark:ax-text-light-50;
|
14
|
-
}
|
15
|
-
.ax-result-description {
|
16
|
-
@apply ax-text-sm ax-text-light-500 dark:ax-text-light-100;
|
17
|
-
}
|
18
|
-
.ax-custom-icon,.ax-custom-image{
|
19
|
-
@apply ax-flex ax-items-center ax-justify-center;
|
20
|
-
}
|
21
|
-
.ax-result-content {
|
22
|
-
@apply ax-mt-4;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
ax-select-box {
|
3
|
-
.ax-select-box-selection {
|
4
|
-
@apply ax-flex ax-justify-center ax-items-center ax-outline-none;
|
5
|
-
|
6
|
-
.ax-badge{
|
7
|
-
@apply dark:ax-bg-white/[0.16] dark:ax-text-light-100;
|
8
|
-
}
|
9
|
-
.ax-dropdown-chips {
|
10
|
-
@apply ax-flex ax-overflow-x-auto;
|
11
|
-
}
|
12
|
-
|
13
|
-
.ax-selectbox-input {
|
14
|
-
@apply ax-opacity-0 ax-w-0;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
@layer components {
|
2
|
-
.ax-selection-list {
|
3
|
-
@apply ax-flex ax-flex-wrap;
|
4
|
-
|
5
|
-
&.ax-vertical {
|
6
|
-
@apply ax-flex-col;
|
7
|
-
|
8
|
-
.ax-checkbox-container,
|
9
|
-
.ax-radio-container {
|
10
|
-
@apply ax-mb-4;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
&.ax-horizontal {
|
15
|
-
@apply ax-flex-row;
|
16
|
-
.ax-checkbox-container,
|
17
|
-
.ax-radio-container {
|
18
|
-
@apply ax-pe-3;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
&.ax-state-error {
|
23
|
-
@apply ax-text-danger-500;
|
24
|
-
.ax-checkbox-checkmark {
|
25
|
-
@apply ax-border-danger-500;
|
26
|
-
}
|
27
|
-
|
28
|
-
.ax-radio-checkmark {
|
29
|
-
@apply ax-border-danger-500;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
.ax-separate-style {
|
34
|
-
.ax-selection-list {
|
35
|
-
&.ax-vertical {
|
36
|
-
& > div {
|
37
|
-
@apply ax-pb-3.5 ax-border-b ax-border-light-300 last:ax-border-0;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
.ax-card-style {
|
43
|
-
.ax-selection-list {
|
44
|
-
&.ax-vertical,&.ax-horizontal {
|
45
|
-
& > div {
|
46
|
-
@apply ax-p-4 ax-border ax-border-light-300 ax-rounded-md ax-shadow-sm;
|
47
|
-
&.ax-state-selected {
|
48
|
-
@apply ax-border-primary-500 ax-ring-1 ax-ring-primary-500 ax-shadow-primary-500;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
@@ -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,22 +0,0 @@
|
|
1
|
-
@layer utilities {
|
2
|
-
.ax-skeleton {
|
3
|
-
@apply ax-relative ax-overflow-hidden ax-bg-light-200 dark:ax-bg-light-700;
|
4
|
-
&.ax-skeleton-animate {
|
5
|
-
&::before {
|
6
|
-
content: "";
|
7
|
-
@apply ax-block ax-absolute ax-top-0 ax-h-full ax-w-52;
|
8
|
-
left: -200px;
|
9
|
-
background: linear-gradient(to right, transparent 0%, rgb(var(--ax-color-light-300)) 50%, transparent 100%);
|
10
|
-
animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
@keyframes load {
|
15
|
-
from {
|
16
|
-
left: -200px;
|
17
|
-
}
|
18
|
-
to {
|
19
|
-
left: 100%;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
@@ -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
|
-
}
|