@acorex/styles 6.1.12 → 7.0.1
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.scss +3 -1
- package/package.json +1 -1
- package/src/base/index.scss +44 -30
- package/src/components/_avatar.scss +122 -122
- package/src/components/_badge.scss +178 -178
- package/src/components/_breadcrumbs.scss +30 -29
- package/src/components/_button copy.scss +924 -0
- package/src/components/_button.scss +0 -924
- package/src/components/_calendar.scss +180 -180
- package/src/components/_carousel.scss +44 -44
- package/src/components/_checkbox.scss +58 -58
- package/src/components/_collapse.scss +48 -48
- package/src/components/_color-palette.scss +5 -5
- package/src/components/_color-picker.scss +23 -23
- package/src/components/_context-menu.scss +0 -16
- package/src/components/_data-table.scss +1 -1
- package/src/components/_datepicker.scss +5 -5
- package/src/components/_decoration.scss +0 -39
- package/src/components/_dialog.scss +80 -79
- package/src/components/_drawer.scss +112 -112
- package/src/components/_dropdown.scss +162 -216
- package/src/components/_editor-container.scss +0 -155
- package/src/components/_fieldset.scss +1 -6
- package/src/components/_image.scss +1 -1
- package/src/components/_label.scss +1 -1
- package/src/components/_list.scss +0 -83
- package/src/components/_loading.scss +1 -50
- package/src/components/_menu copy.scss +5 -5
- package/src/components/_menu.scss +114 -114
- package/src/components/_popup.scss +92 -91
- package/src/components/_progress.scss +59 -59
- package/src/components/_radio.scss +30 -30
- package/src/components/_range-slider.scss +147 -125
- package/src/components/_result.scss +2 -2
- package/src/components/_selectbox.scss +15 -17
- package/src/components/_selection-list.scss +2 -2
- package/src/components/_skeleton.scss +2 -2
- package/src/components/_switch.scss +0 -186
- package/src/components/_table.scss +0 -81
- package/src/components/_tabs copy.scss +18 -18
- package/src/components/_tabs.scss +235 -235
- package/src/components/_textarea.scss +27 -31
- package/src/components/_toast.scss +1 -1
- package/src/components/_treeview.scss +0 -54
- package/src/components/_uploader.scss +0 -18
- package/src/components/index.scss +1 -47
- package/src/icons/demo.html +892 -738
- package/src/icons/fonts/acorex-icons.eot +0 -0
- package/src/icons/fonts/acorex-icons.svg +71 -0
- package/src/icons/fonts/acorex-icons.ttf +0 -0
- package/src/icons/fonts/acorex-icons.woff +0 -0
- package/src/icons/selection.json +1 -1
- package/src/icons/style.css +210 -177
- package/src/icons/style.scss +335 -280
- package/src/icons/variables.scss +65 -54
- package/src/mixins/_media.scss +27 -0
- package/src/mixins/index.scss +1 -0
- package/src/shared/_check-box.scss +45 -0
- package/src/shared/_decoration.scss +56 -0
- package/src/shared/_drop-down.scss +163 -0
- package/src/shared/_editor-container.scss +130 -0
- package/src/shared/_general-button.scss +42 -0
- package/src/shared/_icon-control.scss +0 -0
- package/src/shared/_inputs.scss +12 -0
- package/src/shared/_list.scss +134 -0
- package/src/shared/_radio.scss +37 -0
- package/src/shared/_skeleton.scss +26 -0
- package/src/shared/_table.scss +116 -0
- package/src/shared/_utils.scss +46 -0
- package/src/shared/index.scss +12 -0
- package/src/utility/_mixins.scss +3 -3
- package/src/utility/index.scss +16 -22
- package/src/variables/_colors.scss +76 -107
- package/src/variables/_degrees.scss +1 -0
- package/src/variables/index.scss +2 -0
- package/{index.js → tailwind.config.js} +14 -63
- package/src/components/_alert.scss +0 -276
- package/src/icons/fonts/acorex-icon.eot +0 -0
- package/src/icons/fonts/acorex-icon.svg +0 -60
- package/src/icons/fonts/acorex-icon.ttf +0 -0
- package/src/icons/fonts/acorex-icon.woff +0 -0
package/src/icons/variables.scss
CHANGED
@@ -1,54 +1,65 @@
|
|
1
|
-
$icomoon-font-family: "acorex-
|
2
|
-
$icomoon-font-path: "fonts" !default;
|
3
|
-
|
4
|
-
$ax-
|
5
|
-
$ax-
|
6
|
-
$ax-
|
7
|
-
$ax-
|
8
|
-
$ax-
|
9
|
-
$ax-
|
10
|
-
$ax-
|
11
|
-
$ax-
|
12
|
-
$ax-
|
13
|
-
$ax-
|
14
|
-
$ax-
|
15
|
-
$ax-
|
16
|
-
$ax-
|
17
|
-
$ax-
|
18
|
-
$ax-
|
19
|
-
$ax-
|
20
|
-
$ax-
|
21
|
-
$ax-
|
22
|
-
$ax-
|
23
|
-
$ax-
|
24
|
-
$ax-
|
25
|
-
$ax-
|
26
|
-
$ax-
|
27
|
-
$ax-
|
28
|
-
$ax-
|
29
|
-
$ax-
|
30
|
-
$ax-
|
31
|
-
$ax-
|
32
|
-
$ax-
|
33
|
-
$ax-
|
34
|
-
$ax-
|
35
|
-
$ax-
|
36
|
-
$ax-
|
37
|
-
$ax-
|
38
|
-
$ax-
|
39
|
-
$ax-
|
40
|
-
$ax-
|
41
|
-
$ax-
|
42
|
-
$ax-
|
43
|
-
$ax-
|
44
|
-
$ax-
|
45
|
-
$ax-
|
46
|
-
$ax-
|
47
|
-
$ax-
|
48
|
-
$ax-
|
49
|
-
$ax-
|
50
|
-
$ax-
|
51
|
-
$ax-
|
52
|
-
$ax-
|
53
|
-
$ax-
|
54
|
-
|
1
|
+
$icomoon-font-family: "acorex-icons" !default;
|
2
|
+
$icomoon-font-path: "fonts" !default;
|
3
|
+
|
4
|
+
$ax-icon-star-fill: "\e900";
|
5
|
+
$ax-icon-star: "\e901";
|
6
|
+
$ax-icon-light-mode: "\e902";
|
7
|
+
$ax-icon-dark-mode: "\e903";
|
8
|
+
$ax-icon-color-picker: "\e904";
|
9
|
+
$ax-icon-color-palette: "\e905";
|
10
|
+
$ax-icon-arrow-left: "\e906";
|
11
|
+
$ax-icon-arrow-down: "\e907";
|
12
|
+
$ax-icon-arrow-up: "\e908";
|
13
|
+
$ax-icon-arrow-right: "\e909";
|
14
|
+
$ax-icon-chevron-left: "\e90a";
|
15
|
+
$ax-icon-chevron-down: "\e90b";
|
16
|
+
$ax-icon-chevron-up: "\e90c";
|
17
|
+
$ax-icon-chevron-right: "\e90d";
|
18
|
+
$ax-icon-first-page: "\e90e";
|
19
|
+
$ax-icon-last-page: "\e90f";
|
20
|
+
$ax-icon-full-screen: "\e910";
|
21
|
+
$ax-icon-full-screen-close: "\e911";
|
22
|
+
$ax-icon-done: "\e912";
|
23
|
+
$ax-icon-calendar: "\e913";
|
24
|
+
$ax-icon-more: "\e914";
|
25
|
+
$ax-icon-menu: "\e915";
|
26
|
+
$ax-icon-report: "\e916";
|
27
|
+
$ax-icon-report-fill: "\e917";
|
28
|
+
$ax-icon-error: "\e918";
|
29
|
+
$ax-icon-error-fill: "\e919";
|
30
|
+
$ax-icon-warning: "\e91a";
|
31
|
+
$ax-icon-warning-fill: "\e91b";
|
32
|
+
$ax-icon-check-circle: "\e91c";
|
33
|
+
$ax-icon-check-circle-fill: "\e91d";
|
34
|
+
$ax-icon-close: "\e91e";
|
35
|
+
$ax-icon-time: "\e91f";
|
36
|
+
$ax-icon-visibility-off: "\e920";
|
37
|
+
$ax-icon-visibility: "\e921";
|
38
|
+
$ax-icon-unfold-more: "\e922";
|
39
|
+
$ax-icon-unfold-less: "\e923";
|
40
|
+
$ax-icon-arrow-long: "\e924";
|
41
|
+
$ax-icon-arrow-short: "\e925";
|
42
|
+
$ax-icon-download: "\e926";
|
43
|
+
$ax-icon-upload: "\e927";
|
44
|
+
$ax-icon-publish: "\e928";
|
45
|
+
$ax-icon-cloud-download: "\e929";
|
46
|
+
$ax-icon-cloud-upload: "\e92a";
|
47
|
+
$ax-icon-undo: "\e92b";
|
48
|
+
$ax-icon-redo: "\e92c";
|
49
|
+
$ax-icon-search: "\e92d";
|
50
|
+
$ax-icon-add: "\e92e";
|
51
|
+
$ax-icon-remove: "\e92f";
|
52
|
+
$ax-icon-paste: "\e930";
|
53
|
+
$ax-icon-cut: "\e931";
|
54
|
+
$ax-icon-copy: "\e932";
|
55
|
+
$ax-icon-refresh: "\e933";
|
56
|
+
$ax-icon-inbox: "\e934";
|
57
|
+
$ax-icon-skip-previous: "\e935";
|
58
|
+
$ax-icon-skip-next: "\e936";
|
59
|
+
$ax-icon-delete: "\e937";
|
60
|
+
$ax-icon-happy: "\e938";
|
61
|
+
$ax-icon-normal: "\e939";
|
62
|
+
$ax-icon-sad: "\e93a";
|
63
|
+
$ax-icon-person: "\e93b";
|
64
|
+
$ax-icon-dashboard: "\e93c";
|
65
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@mixin media($media) {
|
2
|
+
@if $media == "phone" {
|
3
|
+
@media (max-width: 599px) {
|
4
|
+
@content;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
@if $media == "tablet" {
|
8
|
+
@media (min-width: 600px) {
|
9
|
+
@content;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
@if $media == "tablet-landscape" {
|
13
|
+
@media (min-width: 900px) {
|
14
|
+
@content;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
@if $media == "desktop" {
|
18
|
+
@media (min-width: 1200px) {
|
19
|
+
@content;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
@if $media == "desktop-large" {
|
23
|
+
@media (min-width: 1800px) {
|
24
|
+
@content;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "./media";
|
@@ -0,0 +1,45 @@
|
|
1
|
+
.ax-dark {
|
2
|
+
.ax-checkbox {
|
3
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
4
|
+
}
|
5
|
+
}
|
6
|
+
.ax-checkbox {
|
7
|
+
width: 1rem;
|
8
|
+
height: 1rem;
|
9
|
+
border: 1px solid;
|
10
|
+
border-color: rgba(var(--ax-color-border-default));
|
11
|
+
background-color: rgb(var(--ax-color-surface));
|
12
|
+
border-radius: 0.2rem;
|
13
|
+
margin: 0;
|
14
|
+
outline: none;
|
15
|
+
vertical-align: middle;
|
16
|
+
appearance: none;
|
17
|
+
|
18
|
+
&:checked,
|
19
|
+
&:indeterminate {
|
20
|
+
border-color: rgba(var(--ax-color-primary)) !important;
|
21
|
+
background-color: rgba(var(--ax-color-primary));
|
22
|
+
background-repeat: no-repeat;
|
23
|
+
background-size: contain;
|
24
|
+
}
|
25
|
+
|
26
|
+
&:checked {
|
27
|
+
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
28
|
+
}
|
29
|
+
|
30
|
+
&:indeterminate {
|
31
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
|
32
|
+
}
|
33
|
+
|
34
|
+
&:focus {
|
35
|
+
outline-offset: 2px;
|
36
|
+
outline-width: 2px;
|
37
|
+
outline-style: solid;
|
38
|
+
outline-color: rgba(var(--ax-color-primary));
|
39
|
+
}
|
40
|
+
|
41
|
+
&:disabled {
|
42
|
+
cursor: not-allowed;
|
43
|
+
opacity: 0.5;
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
.ax-decoration-container,
|
2
|
+
ax-header,
|
3
|
+
ax-footer {
|
4
|
+
display: flex;
|
5
|
+
justify-content: space-between;
|
6
|
+
gap: 0.5rem;
|
7
|
+
background-color: rgb(var(--ax-color-surface));
|
8
|
+
border-color: rgb(var(--ax-color-border-default));
|
9
|
+
& > ax-prefix,
|
10
|
+
& > ax-suffix {
|
11
|
+
display: flex;
|
12
|
+
flex: 1 1 auto;
|
13
|
+
flex-direction: row;
|
14
|
+
gap: 0.5rem;
|
15
|
+
align-items: center;
|
16
|
+
}
|
17
|
+
& > ax-prefix {
|
18
|
+
order: -9999;
|
19
|
+
justify-content: flex-start;
|
20
|
+
align-items: center;
|
21
|
+
}
|
22
|
+
& > ax-suffix {
|
23
|
+
order: 9999;
|
24
|
+
justify-content: flex-end;
|
25
|
+
align-items: center;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
ax-title,
|
30
|
+
ax-icon {
|
31
|
+
font-weight: 500;
|
32
|
+
}
|
33
|
+
|
34
|
+
ax-title {
|
35
|
+
font-size: 1rem;
|
36
|
+
}
|
37
|
+
ax-sub-title {
|
38
|
+
font-size: 0.875rem;
|
39
|
+
color: rgba(var(--ax-color-ghost), 0.6);
|
40
|
+
}
|
41
|
+
ax-close-button {
|
42
|
+
width: 1.5rem;
|
43
|
+
height: 1.5rem;
|
44
|
+
display: grid;
|
45
|
+
place-items: center;
|
46
|
+
cursor: pointer;
|
47
|
+
|
48
|
+
ax-icon {
|
49
|
+
color: rgba(var(--ax-color-ghost), 0.5);
|
50
|
+
font-size: 1.25rem;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
color: rgba(var(--ax-color-ghost), 0.75);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,163 @@
|
|
1
|
+
@import "../variables/index.scss";
|
2
|
+
|
3
|
+
@mixin drop-down-item-apperance() {
|
4
|
+
@each $color in $color_names {
|
5
|
+
&.ax-#{$color}-default {
|
6
|
+
background-color: transparent;
|
7
|
+
color: rgb(var(--ax-color-#{$color}-500));
|
8
|
+
border: transparent;
|
9
|
+
|
10
|
+
&:hover,
|
11
|
+
&:focus {
|
12
|
+
|
13
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
14
|
+
color: rgb(var(--ax-color-#{$color}-600));
|
15
|
+
}
|
16
|
+
|
17
|
+
&:active {
|
18
|
+
color: rgb(var(--ax-color-#{$color}-400));
|
19
|
+
}
|
20
|
+
|
21
|
+
&.ax-state-selected {
|
22
|
+
background-color: rgb(var(--ax-color-#{$color}-500));
|
23
|
+
color: rgb(var(--ax-color-#{$color}-fore));
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
&.ax-ghost-default {
|
29
|
+
background-color: transparent;
|
30
|
+
color: rgb(var(--ax-color-ghost));
|
31
|
+
border: transparent;
|
32
|
+
|
33
|
+
&:hover,
|
34
|
+
&:focus,
|
35
|
+
&:active {
|
36
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
37
|
+
color: rgb(var(--ax-color-ghost), 0.87);
|
38
|
+
}
|
39
|
+
|
40
|
+
&.ax-state-selected {
|
41
|
+
background-color: rgb(var(--ax-color-primary-500));
|
42
|
+
color: rgb(var(--ax-color-primary-fore));
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
.ax-drop-down {
|
50
|
+
display: contents;
|
51
|
+
|
52
|
+
.ax-dropdown-content {
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
flex: 1 1 auto;
|
56
|
+
font-size: 0.875rem;
|
57
|
+
overflow-y: hidden;
|
58
|
+
overflow-x: auto;
|
59
|
+
|
60
|
+
&.ax-state-disabled {
|
61
|
+
opacity: 0.5;
|
62
|
+
cursor: not-allowed;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.ax-overlay-pane {
|
68
|
+
background-color: rgba(var(--ax-color-surface));
|
69
|
+
border: 1px solid;
|
70
|
+
border-color: rgba(var(--ax-color-border-default));
|
71
|
+
border-radius: var(--ax-rounded-border-default);
|
72
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
73
|
+
overflow: hidden;
|
74
|
+
|
75
|
+
ax-header,
|
76
|
+
ax-footer {
|
77
|
+
background-color: rgba(var(--ax-color-surface));
|
78
|
+
padding: 0.75rem;
|
79
|
+
border-color: rgba(var(--ax-color-border-default));
|
80
|
+
border-top: 1px solid;
|
81
|
+
|
82
|
+
}
|
83
|
+
|
84
|
+
@include media("phone") {
|
85
|
+
border-bottom-right-radius: 0px;
|
86
|
+
border-bottom-left-radius: 0px;
|
87
|
+
}
|
88
|
+
|
89
|
+
&.ax-overlay-center {
|
90
|
+
height: fit-content;
|
91
|
+
max-height: 90vh;
|
92
|
+
width: 80vw;
|
93
|
+
}
|
94
|
+
|
95
|
+
&.ax-overlay-actionsheet {
|
96
|
+
background-color: rgba(var(--ax-color-surface));
|
97
|
+
width: 100%;
|
98
|
+
height: auto;
|
99
|
+
max-height: 85vh;
|
100
|
+
|
101
|
+
&.ax-full {
|
102
|
+
max-height: 95vh;
|
103
|
+
height: 95vh;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&.ax-overlay-full {
|
108
|
+
width: 100vw;
|
109
|
+
height: 100vh;
|
110
|
+
}
|
111
|
+
|
112
|
+
&.ax-dropdown-list {
|
113
|
+
display: flex;
|
114
|
+
flex-direction: column;
|
115
|
+
border: 1px solid;
|
116
|
+
border-color: rgba(var(--ax-color-border-default));
|
117
|
+
border-radius: var(--ax-rounded-border-default);
|
118
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
119
|
+
padding: 0.5rem 0;
|
120
|
+
|
121
|
+
.ax-button-item {
|
122
|
+
position: relative;
|
123
|
+
display: inline-flex;
|
124
|
+
align-items: center;
|
125
|
+
justify-content: flex-start;
|
126
|
+
padding: 0.5rem;
|
127
|
+
padding-inline-start: 0.5rem;
|
128
|
+
padding-inline-end: 1rem;
|
129
|
+
font-size: 0.875rem;
|
130
|
+
color: rgba(var(--ax-color-text-default));
|
131
|
+
user-select: none;
|
132
|
+
cursor: pointer;
|
133
|
+
|
134
|
+
&.ax-divide {
|
135
|
+
border: 1px solid;
|
136
|
+
border-color: rgba(var(--ax-color-border-default));
|
137
|
+
|
138
|
+
}
|
139
|
+
|
140
|
+
&.ax-state-disabled {
|
141
|
+
opacity: 0.5;
|
142
|
+
cursor: not-allowed;
|
143
|
+
}
|
144
|
+
|
145
|
+
ax-prefix,
|
146
|
+
ax-suffix {
|
147
|
+
display: flex;
|
148
|
+
flex-direction: row;
|
149
|
+
}
|
150
|
+
|
151
|
+
ax-prefix {
|
152
|
+
padding-inline-end: 0.5rem;
|
153
|
+
}
|
154
|
+
|
155
|
+
ax-suffix {
|
156
|
+
padding-inline-start: 0.5rem
|
157
|
+
}
|
158
|
+
|
159
|
+
@include drop-down-item-apperance();
|
160
|
+
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
.ax-dark {
|
2
|
+
.ax-editor-container {
|
3
|
+
background-color: rgba(var(--ax-color-ghost), 0.05);
|
4
|
+
}
|
5
|
+
}
|
6
|
+
.ax-editor-container {
|
7
|
+
width: 100%;
|
8
|
+
height: var(--ax-size-default);
|
9
|
+
display: flex;
|
10
|
+
background-color: rgb(var(--ax-color-surface));
|
11
|
+
color: rgb(var(--ax-color-text-default));
|
12
|
+
border: 1px solid;
|
13
|
+
border-color: rgb(var(--ax-color-border-default));
|
14
|
+
border-radius: var(--ax-rounded-border-default);
|
15
|
+
font-size: 0.875rem;
|
16
|
+
overflow: hidden;
|
17
|
+
.ax-editor-control {
|
18
|
+
display: flex;
|
19
|
+
align-items: center;
|
20
|
+
justify-content: center;
|
21
|
+
width: var(--ax-size-default);
|
22
|
+
height: var(--ax-size-default);
|
23
|
+
font-size: 1.5rem;
|
24
|
+
line-height: 1.5rem;
|
25
|
+
color: rgba(var(--ax-color-ghost), 0.63);
|
26
|
+
}
|
27
|
+
&:focus-within {
|
28
|
+
outline-offset: 0px;
|
29
|
+
outline-width: 1px;
|
30
|
+
outline-style: solid;
|
31
|
+
outline-color: rgb(var(--ax-color-primary));
|
32
|
+
border-color: rgb(var(--ax-color-primary));
|
33
|
+
}
|
34
|
+
|
35
|
+
&.ax-button-icon {
|
36
|
+
padding-left: 0.5rem;
|
37
|
+
padding-right: 0.5rem;
|
38
|
+
}
|
39
|
+
.ax-input,
|
40
|
+
.ax-textarea {
|
41
|
+
background-color: transparent;
|
42
|
+
flex: 1 1 0%;
|
43
|
+
border: none;
|
44
|
+
text-align: inherit;
|
45
|
+
font: inherit;
|
46
|
+
width: 1%;
|
47
|
+
&:focus {
|
48
|
+
box-shadow: none;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
.ax-input {
|
52
|
+
padding-inline-start: 1rem /* 16px */;
|
53
|
+
padding-inline-end: 0.75rem /* 12px */;
|
54
|
+
}
|
55
|
+
.ax-textarea {
|
56
|
+
padding: 0.625rem /* 10px */;
|
57
|
+
}
|
58
|
+
& > .ax-prefix {
|
59
|
+
*,
|
60
|
+
.ax-button,
|
61
|
+
.ax-title {
|
62
|
+
border-start-start-radius: 0.25rem /* 4px */;
|
63
|
+
border-end-start-radius: 0.25rem;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
& > .ax-suffix {
|
68
|
+
*,
|
69
|
+
.ax-button,
|
70
|
+
.ax-title {
|
71
|
+
border-start-end-radius: 0.25rem /* 4px */;
|
72
|
+
border-end-end-radius: 0.25rem;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
& > .ax-prefix,
|
77
|
+
& > .ax-suffix {
|
78
|
+
* {
|
79
|
+
height: 100%;
|
80
|
+
display: flex;
|
81
|
+
justify-content: center;
|
82
|
+
align-items: center;
|
83
|
+
border-radius: 0px;
|
84
|
+
}
|
85
|
+
|
86
|
+
.ax-icon {
|
87
|
+
padding-left: 0.5rem /* 8px */;
|
88
|
+
padding-right: 0.5rem;
|
89
|
+
}
|
90
|
+
|
91
|
+
.ax-title {
|
92
|
+
padding-left: 1rem /* 16px */;
|
93
|
+
padding-right: 1rem /* 16px */;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.ax-button {
|
98
|
+
height: 100% !important;
|
99
|
+
border-radius: 0px;
|
100
|
+
|
101
|
+
&.ax-button-icon {
|
102
|
+
width: var(--ax-size-default);
|
103
|
+
height: var(--ax-size-default);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&.ax-state-disabled {
|
108
|
+
opacity: 0.5;
|
109
|
+
}
|
110
|
+
|
111
|
+
&.ax-state-error {
|
112
|
+
outline-color: rgb(var(--ax-color-danger-500));
|
113
|
+
border-color: rgb(var(--ax-color-danger-500));
|
114
|
+
.ax-input {
|
115
|
+
&::placeholder {
|
116
|
+
color: rgb(var(--ax-color-danger));
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
&.ax-state-success {
|
122
|
+
outline-color: rgb(var(--ax-color-success-500));
|
123
|
+
border-color: rgb(var(--ax-color-success-500));
|
124
|
+
.ax-input {
|
125
|
+
&::placeholder {
|
126
|
+
color: rgb(var(--ax-color-success));
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.ax-general-button {
|
2
|
+
display: inline-flex;
|
3
|
+
align-items: center;
|
4
|
+
justify-content: center;
|
5
|
+
border-radius: var(--ax-rounded-border-default);
|
6
|
+
padding: 0 1rem;
|
7
|
+
height: var(--ax-size-default);
|
8
|
+
font-size: 0.875rem;
|
9
|
+
cursor: pointer;
|
10
|
+
transition: background-color 0.3s;
|
11
|
+
color: rgba(var(--ax-color-ghost), 0.6);
|
12
|
+
|
13
|
+
&:is(&:hover):not(&:disabled, .ax-state-disabled) {
|
14
|
+
background: rgba(var(--ax-color-ghost), 0.08);
|
15
|
+
color: rgba(var(--ax-color-ghost), 0.87);
|
16
|
+
}
|
17
|
+
|
18
|
+
&:is(&:focus, &:focus-within):not(&:disabled, .ax-state-disabled) {
|
19
|
+
background-color: rgba(var(--ax-color-ghost), 0.12);
|
20
|
+
outline-color: transparent;
|
21
|
+
}
|
22
|
+
|
23
|
+
&:is(&:active):not(&:disabled, .ax-state-disabled) {
|
24
|
+
background-color: transparent;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.ax-button-icon {
|
28
|
+
padding: 0 0.5rem;
|
29
|
+
font-size: 1.5rem;
|
30
|
+
width: var(--ax-size-default);
|
31
|
+
height: var(--ax-size-default);
|
32
|
+
.ax-icon {
|
33
|
+
font-size: 1.5rem;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
&:disabled,
|
38
|
+
&.ax-state-disabled {
|
39
|
+
opacity: 0.5;
|
40
|
+
cursor: not-allowed;
|
41
|
+
}
|
42
|
+
}
|
File without changes
|