@acorex/styles 7.0.16 → 7.0.18

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": "7.0.16",
3
+ "version": "7.0.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -1,19 +1,18 @@
1
1
  @mixin light-variables() {
2
- --ax-color-border-default: 0, 0, 0, 0.12;
3
- --ax-color-background-default: 250, 250, 250;
4
- --ax-color-text-default: 18, 18, 18;
5
- --ax-color-surface: 255, 255, 255;
6
- --ax-color-on-surface: 242, 242, 242;
7
- --ax-color-ghost: 0, 0, 0;
8
- --ax-color-ghost-fore: 255, 255, 255;
2
+ --ax-color-border-default: 30, 41, 59, 0.12;
3
+ --ax-color-background-default: 250, 250, 250;
4
+ --ax-color-text-default: 18, 18, 18;
5
+ --ax-color-surface: 255, 255, 255;
6
+ --ax-color-on-surface: 242, 242, 242;
7
+ --ax-color-ghost: 30, 41, 59;
8
+ --ax-color-ghost-fore: 255, 255, 255;
9
9
  }
10
10
  @mixin dark-variables() {
11
- --ax-color-background-default: 21, 27, 36;
12
- --ax-color-text-default: 224, 224, 224;
13
- --ax-color-border-default: 255, 255, 255, 0.12;
14
- --ax-color-surface: 23, 31, 45;
15
- --ax-color-on-surface: 25, 36, 54;
16
- --ax-color-ghost: 255, 255, 255;
17
- --ax-color-ghost-fore: 0, 0, 0;
18
-
11
+ --ax-color-background-default: 21, 27, 36;
12
+ --ax-color-text-default: 224, 224, 224;
13
+ --ax-color-border-default: 255, 255, 255, 0.12;
14
+ --ax-color-surface: 23, 31, 45;
15
+ --ax-color-on-surface: 25, 36, 54;
16
+ --ax-color-ghost: 255, 255, 255;
17
+ --ax-color-ghost-fore: 0, 0, 0;
19
18
  }
@@ -1,26 +1,27 @@
1
- @import "../mixins/index.scss";
2
- @import "./normalize";
3
- @import "./theme";
1
+ @import '../mixins/index.scss';
2
+ @import './normalize';
3
+ @import './theme';
4
4
 
5
5
  :root {
6
- --ax-size-default: 2.5rem;
7
- --ax-rounded-border-default: 0.375rem;
8
- @include light-variables();
9
- @include color-variable-genterator($theme-colors);
6
+ --ax-size-default: 2.5rem;
7
+ --ax-rounded-border-default: 0.375rem;
8
+ --ax-overlay-full-width: 93;
9
+ @include light-variables();
10
+ @include color-variable-genterator($theme-colors);
10
11
  }
11
12
 
12
13
  @include darkMode() {
13
- &:root {
14
- @include dark-variables();
15
- }
14
+ &:root {
15
+ @include dark-variables();
16
+ }
16
17
 
17
- .cdk-overlay-neutral-backdrop {
18
- background: rgba(0, 0, 0, 0.5) !important;
19
- }
18
+ .cdk-overlay-neutral-backdrop {
19
+ background: rgba(0, 0, 0, 0.5) !important;
20
+ }
20
21
  }
21
22
 
22
23
  html,
23
24
  body {
24
- background-color: rgb(var(--ax-color-background-default));
25
- color: rgba(var(--ax-color-text-default));
26
- }
25
+ background-color: rgb(var(--ax-color-background-default));
26
+ color: rgba(var(--ax-color-text-default));
27
+ }
@@ -1,7 +1,7 @@
1
- Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
2
-
3
- To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
4
-
5
- You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
6
-
7
- You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
1
+ Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
2
+
3
+ To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
4
+
5
+ You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
6
+
7
+ You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
@@ -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
+ }());
@@ -1,48 +1,47 @@
1
- @import "../mixins/index.scss";
1
+ @import '../mixins/index.scss';
2
2
 
3
- @include darkMode(){
4
- .ax-checkbox {
5
- background-color: rgba(var(--ax-color-ghost), 0.05);
6
-
7
- }
3
+ @include darkMode() {
4
+ .ax-checkbox {
5
+ background-color: rgba(var(--ax-color-ghost), 0.05);
6
+ }
8
7
  }
9
8
  .ax-checkbox {
10
- width: 1rem;
11
- height: 1rem;
12
- border: 1px solid;
13
- border-color: rgba(var(--ax-color-border-default));
14
- background-color: rgb(var(--ax-color-surface));
15
- border-radius: 0.2rem;
16
- margin: 0;
17
- outline: none;
18
- vertical-align: middle;
19
- appearance: none;
9
+ width: 1rem;
10
+ height: 1rem;
11
+ border: 1px solid;
12
+ border-color: rgba(var(--ax-color-ghost), 0.3);
13
+ background-color: rgb(var(--ax-color-surface));
14
+ border-radius: 0.2rem;
15
+ margin: 0;
16
+ outline: none;
17
+ vertical-align: middle;
18
+ appearance: none;
20
19
 
21
- &:checked,
22
- &:indeterminate {
23
- border-color: rgba(var(--ax-color-primary)) !important;
24
- background-color: rgba(var(--ax-color-primary)) !important;
25
- background-repeat: no-repeat;
26
- background-size: contain;
27
- }
20
+ &:checked,
21
+ &:indeterminate {
22
+ border-color: rgba(var(--ax-color-primary)) !important;
23
+ background-color: rgba(var(--ax-color-primary)) !important;
24
+ background-repeat: no-repeat;
25
+ background-size: contain;
26
+ }
28
27
 
29
- &:checked {
30
- 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");
31
- }
28
+ &:checked {
29
+ 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");
30
+ }
32
31
 
33
- &:indeterminate {
34
- background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
35
- }
32
+ &:indeterminate {
33
+ background-image: url('data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==');
34
+ }
36
35
 
37
- &:focus-visible {
38
- outline-offset: 2px;
39
- outline-width: 2px;
40
- outline-style: solid;
41
- outline-color: rgba(var(--ax-color-primary));
42
- }
36
+ &:focus-visible {
37
+ outline-offset: 2px;
38
+ outline-width: 2px;
39
+ outline-style: solid;
40
+ outline-color: rgba(var(--ax-color-primary));
41
+ }
43
42
 
44
- &:disabled {
45
- cursor: not-allowed;
46
- opacity: 0.5;
47
- }
43
+ &:disabled {
44
+ cursor: not-allowed;
45
+ opacity: 0.5;
46
+ }
48
47
  }
@@ -1,45 +1,42 @@
1
1
  .ax-decoration-container,
2
2
  ax-header,
3
3
  ax-footer {
4
+ display: flex;
5
+ justify-content: space-between;
6
+ gap: 0.5rem;
7
+ & > ax-prefix,
8
+ & > ax-suffix {
4
9
  display: flex;
5
- justify-content: space-between;
10
+ flex: 1 1 auto;
11
+ flex-direction: row;
6
12
  gap: 0.5rem;
7
- & > ax-prefix,
8
- & > ax-suffix {
9
- display: flex;
10
- flex: 1 1 auto;
11
- flex-direction: row;
12
- gap: 0.5rem;
13
- align-items: center;
14
- }
15
- & > ax-prefix {
16
- order: -9999;
17
- justify-content: flex-start;
18
- align-items: center;
19
- }
20
- & > ax-suffix {
21
- order: 9999;
22
- justify-content: flex-end;
23
- align-items: center;
24
- }
13
+ align-items: center;
14
+ }
15
+ & > ax-prefix {
16
+ order: -9999;
17
+ justify-content: flex-start;
18
+ align-items: center;
19
+ }
20
+ & > ax-suffix {
21
+ order: 9999;
22
+ justify-content: flex-end;
23
+ align-items: center;
24
+ }
25
25
  }
26
26
 
27
- ax-icon{
28
- display: contents;
29
- }
30
27
  ax-close-button {
31
- width: 1.5rem;
32
- height: 1.5rem;
33
- display: grid;
34
- place-items: center;
35
- cursor: pointer;
28
+ width: 1.5rem;
29
+ height: 1.5rem;
30
+ display: grid;
31
+ place-items: center;
32
+ cursor: pointer;
36
33
 
37
- ax-icon {
38
- color: rgba(var(--ax-color-ghost), 0.5);
39
- font-size: 1.25rem;
34
+ ax-icon {
35
+ color: rgba(var(--ax-color-ghost), 0.5);
36
+ font-size: 1.25rem;
40
37
 
41
- &:hover {
42
- color: rgba(var(--ax-color-ghost), 0.75);
43
- }
38
+ &:hover {
39
+ color: rgba(var(--ax-color-ghost), 0.75);
44
40
  }
41
+ }
45
42
  }
@@ -1,163 +1,157 @@
1
- @import "../variables/index.scss";
1
+ @import '../variables/index.scss';
2
2
 
3
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
- }
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
+ background-color: rgba(var(--ax-color-ghost), 0.05);
13
+ color: rgb(var(--ax-color-#{$color}-600));
14
+ }
15
+
16
+ &:active {
17
+ color: rgb(var(--ax-color-#{$color}-400));
18
+ }
19
+
20
+ &.ax-state-selected {
21
+ background-color: rgb(var(--ax-color-#{$color}-500));
22
+ color: rgb(var(--ax-color-#{$color}-fore));
23
+ }
26
24
  }
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
- }
25
+ }
26
+
27
+ &.ax-ghost-default {
28
+ background-color: transparent;
29
+ color: rgb(var(--ax-color-ghost));
30
+ border: transparent;
31
+
32
+ &:hover,
33
+ &:focus,
34
+ &:active {
35
+ background-color: rgba(var(--ax-color-ghost), 0.05);
36
+ color: rgb(var(--ax-color-ghost), 0.87);
44
37
  }
45
38
 
39
+ &.ax-state-selected {
40
+ background-color: rgb(var(--ax-color-primary-500));
41
+ color: rgb(var(--ax-color-primary-fore));
42
+ }
43
+ }
46
44
  }
47
45
 
48
-
49
46
  .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
- }
47
+ display: contents;
48
+
49
+ .ax-dropdown-content {
50
+ display: flex;
51
+ align-items: center;
52
+ flex: 1 1 auto;
53
+ font-size: 0.875rem;
54
+ overflow-y: hidden;
55
+ overflow-x: auto;
56
+
57
+ &.ax-state-disabled {
58
+ opacity: 0.5;
59
+ cursor: not-allowed;
64
60
  }
61
+ }
65
62
  }
66
63
 
67
64
  .ax-overlay-pane {
65
+ background-color: rgba(var(--ax-color-surface));
66
+ border: 1px solid;
67
+ border-color: rgba(var(--ax-color-border-default));
68
+ border-radius: var(--ax-rounded-border-default);
69
+ box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
70
+ 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
71
+ overflow: hidden;
72
+
73
+ ax-header,
74
+ ax-footer {
68
75
  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;
76
+ padding: 0.75rem;
77
+ }
74
78
 
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;
79
+ @include media('phone') {
80
+ border-bottom-right-radius: 0px;
81
+ border-bottom-left-radius: 0px;
82
+ }
81
83
 
82
- }
84
+ &.ax-overlay-center {
85
+ height: fit-content;
86
+ max-height: 90vh;
87
+ width: 80vw;
88
+ }
83
89
 
84
- @include media("phone") {
85
- border-bottom-right-radius: 0px;
86
- border-bottom-left-radius: 0px;
87
- }
90
+ &.ax-overlay-actionsheet {
91
+ background-color: rgba(var(--ax-color-surface));
92
+ width: 100%;
93
+ height: auto;
94
+ max-height: 85vh;
88
95
 
89
- &.ax-overlay-center {
90
- height: fit-content;
91
- max-height: 90vh;
92
- width: 80vw;
96
+ &.ax-full {
97
+ max-height: 95vh;
98
+ height: 95vh;
93
99
  }
100
+ }
94
101
 
95
- &.ax-overlay-actionsheet {
96
- background-color: rgba(var(--ax-color-surface));
97
- width: 100%;
98
- height: auto;
99
- max-height: 85vh;
102
+ &.ax-overlay-full {
103
+ width: 100vw;
104
+ height: 100vh;
105
+ }
100
106
 
101
- &.ax-full {
102
- max-height: 95vh;
103
- height: 95vh;
104
- }
105
- }
107
+ &.ax-dropdown-list {
108
+ display: flex;
109
+ flex-direction: column;
110
+ border: 1px solid;
111
+ border-color: rgba(var(--ax-color-border-default));
112
+ border-radius: var(--ax-rounded-border-default);
113
+ box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
114
+ 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
115
+ padding: 0.5rem 0;
116
+
117
+ .ax-button-item {
118
+ position: relative;
119
+ display: inline-flex;
120
+ align-items: center;
121
+ justify-content: flex-start;
122
+ padding: 0.5rem;
123
+ padding-inline-start: 0.5rem;
124
+ padding-inline-end: 1rem;
125
+ font-size: 0.875rem;
126
+ color: rgba(var(--ax-color-text-default));
127
+ user-select: none;
128
+ cursor: pointer;
129
+
130
+ &.ax-divide {
131
+ border: 1px solid;
132
+ border-color: rgba(var(--ax-color-border-default));
133
+ }
106
134
 
107
- &.ax-overlay-full {
108
- width: 100vw;
109
- height: 100vh;
110
- }
135
+ &.ax-state-disabled {
136
+ opacity: 0.5;
137
+ cursor: not-allowed;
138
+ }
111
139
 
112
- &.ax-dropdown-list {
140
+ ax-prefix,
141
+ ax-suffix {
113
142
  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
- }
143
+ flex-direction: row;
144
+ }
145
+
146
+ ax-prefix {
147
+ padding-inline-end: 0.5rem;
148
+ }
149
+
150
+ ax-suffix {
151
+ padding-inline-start: 0.5rem;
152
+ }
153
+
154
+ @include drop-down-item-apperance();
162
155
  }
163
- }
156
+ }
157
+ }
@@ -48,11 +48,8 @@
48
48
  color: rgba(var(--ax-color-ghost), 0.63);
49
49
  }
50
50
  &:focus-within {
51
- outline-offset: 0px;
52
- outline-width: 1px;
53
- outline-style: solid;
54
- outline-color: rgb(var(--ax-color-primary-500));
55
51
  border-color: rgb(var(--ax-color-primary-500));
52
+ box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
56
53
  }
57
54
 
58
55
  &.ax-button-icon {
@@ -136,7 +133,7 @@
136
133
  &.ax-state-error {
137
134
  border-color: rgb(var(--ax-color-danger-500));
138
135
  &:focus-within {
139
- outline-color: rgb(var(--ax-color-danger-500));
136
+ box-shadow: 0px 0 0px 1px rgb(var(--ax-color-danger-500));
140
137
  }
141
138
  .ax-input {
142
139
  &::placeholder {
@@ -149,7 +146,7 @@
149
146
  outline-color: rgb(var(--ax-color-success-500));
150
147
  border-color: rgb(var(--ax-color-success-500));
151
148
  &:focus-within {
152
- outline-color: rgb(var(--ax-color-success-500));
149
+ box-shadow: 0px 0 0px 1px rgb(var(--ax-color-success-500));
153
150
  }
154
151
  .ax-input {
155
152
  &::placeholder {
@@ -1,38 +1,38 @@
1
- @import "../mixins/index.scss";
1
+ @import '../mixins/index.scss';
2
2
  @include darkMode() {
3
- .ax-radio {
4
- background-color: rgba(var(--ax-color-ghost), 0.05);
5
- }
3
+ .ax-radio {
4
+ background-color: rgba(var(--ax-color-ghost), 0.05);
5
+ }
6
6
  }
7
7
  .ax-radio {
8
- width: 1rem;
9
- height: 1rem;
10
- border: 1px solid;
11
- border-color: rgb(var(--ax-color-border-default));
12
- border-radius: 999rem;
13
- background-color: rgb(var(--ax-color-surface));
14
- outline: 2px solid transparent;
15
- outline-offset: 2px;
16
- vertical-align: middle;
17
- appearance: none;
8
+ width: 1rem;
9
+ height: 1rem;
10
+ border: 1px solid;
11
+ border-color: rgba(var(--ax-color-ghost), 0.3);
12
+ border-radius: 999rem;
13
+ background-color: rgb(var(--ax-color-surface));
14
+ outline: 2px solid transparent;
15
+ outline-offset: 2px;
16
+ vertical-align: middle;
17
+ appearance: none;
18
18
 
19
- &:checked {
20
- border-color: rgb(var(--ax-color-primary));
21
- 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");
22
- background-color: rgb(var(--ax-color-primary));
23
- background-repeat: no-repeat;
24
- background-size: contain;
25
- }
19
+ &:checked {
20
+ border-color: rgb(var(--ax-color-primary));
21
+ 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");
22
+ background-color: rgb(var(--ax-color-primary));
23
+ background-repeat: no-repeat;
24
+ background-size: contain;
25
+ }
26
26
 
27
- &:focus-visible {
28
- outline-offset: 2px;
29
- outline-width: 2px;
30
- outline-style: solid;
31
- outline-color: rgba(var(--ax-color-primary));
32
- }
27
+ &:focus-visible {
28
+ outline-offset: 2px;
29
+ outline-width: 2px;
30
+ outline-style: solid;
31
+ outline-color: rgba(var(--ax-color-primary));
32
+ }
33
33
 
34
- &:disabled {
35
- opacity: 0.5;
36
- cursor: not-allowed;
37
- }
34
+ &:disabled {
35
+ opacity: 0.5;
36
+ cursor: not-allowed;
37
+ }
38
38
  }
@@ -1,26 +1,31 @@
1
1
  .ax-skeleton {
2
- position: relative;
3
- overflow: hidden;
4
- background-color: rgba(var(--ax-color-ghost),0.05);
5
- &.ax-skeleton-animate {
6
- &::before {
7
- content: "";
8
- display: block;
9
- position: absolute;
10
- top: 0;
11
- height: 100%;
12
- width: 14rem;
13
- left: -200px;
14
- background: linear-gradient(to right, transparent 0%, rgba(var(--ax-color-ghost),0.03) 50%, transparent 100%);
15
- animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
16
- }
2
+ position: relative;
3
+ overflow: hidden;
4
+ background-color: rgba(var(--ax-color-ghost), 0.15);
5
+ &.ax-skeleton-animate {
6
+ &::before {
7
+ content: '';
8
+ display: block;
9
+ position: absolute;
10
+ top: 0;
11
+ height: 100%;
12
+ width: 14rem;
13
+ left: -200px;
14
+ background: linear-gradient(
15
+ to right,
16
+ transparent 0%,
17
+ rgba(var(--ax-color-ghost), 0.03) 50%,
18
+ transparent 100%
19
+ );
20
+ animation: load 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
17
21
  }
22
+ }
18
23
  }
19
24
  @keyframes load {
20
- from {
21
- left: -200px;
22
- }
23
- to {
24
- left: 100%;
25
- }
26
- }
25
+ from {
26
+ left: -200px;
27
+ }
28
+ to {
29
+ left: 100%;
30
+ }
31
+ }
@@ -1,116 +1,110 @@
1
1
  @layer components {
2
- .ax-table {
3
- width: 100%;
4
- border-radius: var(--ax-rounded-border-default);
5
- border-collapse: collapse;
6
- border: 1px solid;
7
- border-color: rgb(var(--ax-color-border-default));
8
- overflow: hidden;
9
- font-size: 0.875rem;
10
- td {
11
- border-bottom: 1px solid;
12
- border-color: rgb(var(--ax-color-border-default));
13
- padding: 1rem 1.5rem;
14
- }
15
- thead {
16
- background-color: rgb(var(--ax-color-ghost), 0.05);
17
- box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
18
- border-bottom: 1px solid;
19
- border-color: rgb(var(--ax-color-border-default));
20
- th {
21
- font-weight: bold;
22
- text-align: start;
23
- padding: 1rem 1.5rem;
24
-
25
- }
2
+ .ax-table {
3
+ width: 100%;
4
+ border-radius: var(--ax-rounded-border-default);
5
+ border-spacing: 0px;
6
+ border-collapse: separate;
7
+ border: 1px solid;
8
+ border-color: rgb(var(--ax-color-border-default));
9
+ overflow: hidden;
10
+ font-size: 0.875rem;
11
+ td {
12
+ border-bottom: 1px solid;
13
+ border-color: rgb(var(--ax-color-border-default));
14
+ padding: 1rem;
15
+ }
16
+ thead {
17
+ background-color: rgb(var(--ax-color-ghost), 0.05);
18
+ border-bottom: 1px solid;
19
+ border-color: rgb(var(--ax-color-border-default));
20
+ th {
21
+ font-weight: 500;
22
+ text-align: start;
23
+ padding: 1rem;
24
+ }
25
+ }
26
+ &.ax-table-alternate {
27
+ tbody {
28
+ tr {
29
+ &:nth-child(even) {
30
+ background-color: rgb(var(--ax-color-ghost), 0.03);
31
+ }
26
32
  }
27
- &.ax-table-alternate {
28
- tbody {
29
- tr {
30
- &:nth-child(even) {
31
- background-color: rgb(var(--ax-color-ghost), 0.03);
32
- }
33
- }
34
- }
33
+ }
34
+ }
35
+ &.ax-table-bordered {
36
+ thead {
37
+ th {
38
+ border-top: 0 !important;
35
39
  }
36
- &.ax-table-bordered {
37
- thead {
38
- th {
39
- border-top: 0 !important;
40
- }
40
+ }
41
+ tbody {
42
+ tr {
43
+ &:last-child {
44
+ td {
45
+ border-bottom: 0 !important;
41
46
  }
42
- tbody {
43
- tr {
44
- &:last-child {
45
- td {
46
- border-bottom: 0 !important;
47
- }
48
- }
49
- td {
50
- &:last-child {
51
- border-bottom: 0 !important;
52
-
53
- }
54
- }
55
- }
56
- }
57
-
58
- td,
59
- th {
60
- border: 1px solid;
61
- border-color: rgb(var(--ax-color-border-default));
62
- &:first-child {
63
- border-inline-start-width: 0px;
64
-
65
- }
66
- &:last-child {
67
- border-inline-end-width: 0px;
68
-
69
- }
47
+ }
48
+ td {
49
+ &:last-child {
50
+ border-bottom: 0 !important;
70
51
  }
52
+ }
71
53
  }
72
- @media screen and (max-width: 601px) {
73
- &.ax-table-responsive {
74
- overflow-wrap: break-word;
75
- display: block;
76
- border: 0px;
77
- thead {
78
- position: absolute;
79
- inset-inline-start: -100%;
80
- top: -100%;
54
+ }
81
55
 
82
- }
56
+ td,
57
+ th {
58
+ border: 1px solid;
59
+ border-color: rgb(var(--ax-color-border-default));
60
+ &:first-child {
61
+ border-inline-start-width: 0px;
62
+ }
63
+ &:last-child {
64
+ border-inline-end-width: 0px;
65
+ }
66
+ }
67
+ }
68
+ @media screen and (max-width: 601px) {
69
+ &.ax-table-responsive {
70
+ overflow-wrap: break-word;
71
+ display: block;
72
+ border: 0px;
73
+ thead {
74
+ position: absolute;
75
+ inset-inline-start: -100%;
76
+ top: -100%;
77
+ }
83
78
 
84
- td {
85
-
86
- display: block;
87
- float: inline-start;
88
- width: 100%;
89
- clear: both;
90
- background: rgb(var(--ax-color-surface));
91
- padding: 0.375rem 0.625rem;
92
- box-sizing: border-box;
93
- &:last-child{
94
- border: 0;
95
- }
96
- &:before {
97
- content: attr(data-label);
98
- display: block;
99
- font-weight: bold;
100
- }
101
- }
102
- tr {
103
- border: 1px solid;
104
- border-color: rgb(var(--ax-color-border-default));
105
- }
106
- tr,
107
- tbody {
108
- display: block;
109
- width: 100%;
110
- float: inline-start;
111
- margin-bottom: 0.625rem;
112
- }
113
- }
79
+ td {
80
+ display: block;
81
+ float: inline-start;
82
+ width: 100%;
83
+ clear: both;
84
+ background: rgb(var(--ax-color-surface));
85
+ padding: 0.375rem 0.625rem;
86
+ box-sizing: border-box;
87
+ &:last-child {
88
+ border: 0;
89
+ }
90
+ &:before {
91
+ content: attr(data-label);
92
+ display: block;
93
+ font-weight: bold;
94
+ }
95
+ }
96
+ tr {
97
+ border: 1px solid;
98
+ border-color: rgb(var(--ax-color-border-default));
99
+ }
100
+ tr,
101
+ tbody {
102
+ display: block;
103
+ width: 100%;
104
+ float: inline-start;
105
+ margin-bottom: 0.625rem;
114
106
  }
107
+ }
115
108
  }
109
+ }
116
110
  }