@acorex/styles 7.0.27 → 7.0.28

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 CHANGED
@@ -1,3 +1,5 @@
1
+ @import '@angular/cdk/overlay-prebuilt.css';
2
+
1
3
  @import './src/variables/colors';
2
4
  @import './src/icons/style.scss';
3
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "7.0.27",
3
+ "version": "7.0.28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -5,7 +5,7 @@
5
5
  --ax-color-surface: 255, 255, 255;
6
6
  --ax-color-on-surface: 242, 242, 242;
7
7
  --ax-color-ghost: 30, 41, 59;
8
- --ax-color-ghost-fore: 255, 255, 255;
8
+ --ax-color-ghost-fore: 0, 0, 0;
9
9
  }
10
10
  @mixin dark-variables() {
11
11
  --ax-color-background-default: 23, 32, 46;
@@ -14,5 +14,5 @@
14
14
  --ax-color-surface: 45, 50, 63;
15
15
  --ax-color-on-surface: 60, 68, 79;
16
16
  --ax-color-ghost: 255, 255, 255;
17
- --ax-color-ghost-fore: 0, 0, 0;
17
+ --ax-color-ghost-fore: 255, 255, 255;
18
18
  }
@@ -15,6 +15,10 @@
15
15
  border-radius: var(--ax-rounded-border-default);
16
16
  font-size: 1rem;
17
17
  overflow: hidden;
18
+ &:focus-within {
19
+ border-color: rgb(var(--ax-color-primary-500));
20
+ box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
21
+ }
18
22
 
19
23
  &.ax-sm {
20
24
  .ax-input {
@@ -48,10 +52,6 @@
48
52
  line-height: 1.25rem;
49
53
  color: rgba(var(--ax-color-ghost), 0.63);
50
54
  }
51
- &:focus-within {
52
- border-color: rgb(var(--ax-color-primary-500));
53
- box-shadow: 0px 0 0px 1px rgb(var(--ax-color-primary-500));
54
- }
55
55
 
56
56
  &.ax-button-icon {
57
57
  padding-left: 0.5rem;
@@ -81,7 +81,7 @@
81
81
  & > .ax-prefix {
82
82
  *,
83
83
  .ax-button,
84
- .ax-title {
84
+ ax-title {
85
85
  border-start-start-radius: 0.25rem /* 4px */;
86
86
  border-end-start-radius: 0.25rem;
87
87
  }
@@ -90,7 +90,7 @@
90
90
  & > .ax-suffix {
91
91
  *,
92
92
  .ax-button,
93
- .ax-title {
93
+ ax-title {
94
94
  border-start-end-radius: 0.25rem /* 4px */;
95
95
  border-end-end-radius: 0.25rem;
96
96
  }
@@ -106,15 +106,28 @@
106
106
  border-radius: 0px;
107
107
  }
108
108
 
109
- .ax-icon {
109
+ ax-icon {
110
110
  padding-left: 0.5rem /* 8px */;
111
111
  padding-right: 0.5rem;
112
112
  }
113
113
 
114
- .ax-title {
114
+ ax-title {
115
115
  padding-left: 1rem /* 16px */;
116
116
  padding-right: 1rem /* 16px */;
117
117
  }
118
+
119
+ & > ax-text {
120
+ font-size: 0.875rem;
121
+ background-color: rgba(var(--ax-color-ghost), 0.05);
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ padding: 0 0.5rem;
126
+ border-inline-start: 1px solid;
127
+ border-color: rgb(var(--ax-color-border-default));
128
+ color: rgba(var(--ax-color-ghost-fore));
129
+ line-height: 1;
130
+ }
118
131
  }
119
132
 
120
133
  .ax-button {
@@ -29,7 +29,7 @@
29
29
  font-size: 1.5rem;
30
30
  width: var(--ax-size-default);
31
31
  height: var(--ax-size-default);
32
- .ax-icon {
32
+ ax-icon {
33
33
  font-size: 1.5rem;
34
34
  }
35
35
  }
@@ -9,7 +9,7 @@
9
9
  height: 1rem;
10
10
  border: 1px solid;
11
11
  border-color: rgba(var(--ax-color-ghost), 0.3);
12
- border-radius: 999rem;
12
+ border-radius: 99rem;
13
13
  background-color: rgb(var(--ax-color-surface));
14
14
  outline: 2px solid transparent;
15
15
  outline-offset: 2px;
@@ -1,45 +1,52 @@
1
- @import "../variables/index.scss";
1
+ @import '../variables/index.scss';
2
2
 
3
- [class*=" ax-icon-"],
4
- [class^="ax-icon-"] {
5
- vertical-align: middle;
3
+ [class*=' ax-icon-'],
4
+ [class^='ax-icon-'] {
5
+ vertical-align: middle;
6
6
  }
7
7
 
8
8
  .ax-rotaion-0 {
9
- transform: rotate(0);
9
+ transform: rotate(0);
10
10
  }
11
11
 
12
12
  @each $deg in $degrees {
13
- .ax-rotation-#{$deg} {
14
- transform: rotate(#{$deg}deg);
15
- }
13
+ .ax-rotation-#{$deg} {
14
+ transform: rotate(#{$deg}deg);
15
+ }
16
16
 
17
- .-ax-rotation-#{$deg} {
18
- transform: rotate(-#{$deg}deg);
19
- }
17
+ .-ax-rotation-#{$deg} {
18
+ transform: rotate(-#{$deg}deg);
19
+ }
20
20
  }
21
21
 
22
22
  .ax-transition-all {
23
- transition-property: all;
24
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
25
- transition-duration: 150ms;
23
+ transition-property: all;
24
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
25
+ transition-duration: 150ms;
26
26
  }
27
27
 
28
28
  .ax-w-full {
29
- width: 100%;
29
+ width: 100%;
30
30
  }
31
31
 
32
32
  .ax-h-full {
33
- height: 100%;
33
+ height: 100%;
34
34
  }
35
35
 
36
36
  .ax-fieldset {
37
- border: 1px solid;
38
- border-color: rgb(var(--ax-color-border-default));
39
- padding: 0.75rem;
40
- border-radius: var(--ax-rounded-border-default);
41
- legend {
42
- font-size: 0.875rem;
43
- padding: 0 0.25rem;
44
- }
37
+ border: 1px solid;
38
+ border-color: rgb(var(--ax-color-border-default));
39
+ padding: 0.75rem;
40
+ border-radius: var(--ax-rounded-border-default);
41
+ legend {
42
+ font-size: 0.875rem;
43
+ padding: 0 0.25rem;
44
+ }
45
+ }
46
+
47
+ .ax-card {
48
+ background-color: rgb(var(--ax-color-surface));
49
+ border: 1px solid;
50
+ border-color: rgb(var(--ax-color-border-default));
51
+ border-radius: var(--ax-rounded-border-default);
45
52
  }
@@ -15,13 +15,8 @@ module.exports = withAnimations({
15
15
  corePlugins: {
16
16
  preflight: false,
17
17
  },
18
- content: [
19
- './src/**/*.{html,ts,scss}',
20
- './projects/**/*.{html,ts,scss}',
21
- // "./dist/acorex/**/*.{html,ts,scss}",
22
- // "./node_modules/@acorex/**/*.{html,ts,js,mjs,scss}",
23
- ],
24
- darkMode: 'class', // or 'media' or 'class'
18
+ content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
19
+ darkMode: 'class',
25
20
  theme: {
26
21
  extend: {
27
22
  colors: {
@@ -119,6 +114,12 @@ module.exports = withAnimations({
119
114
  '.animate-faster': {
120
115
  animationDuration: '500ms',
121
116
  },
117
+ '.card': {
118
+ backgroundColor: 'rgb(var(--ax-color-surface))',
119
+ border: '1px solid',
120
+ borderColor: 'rgb(var(--ax-color-border-default))',
121
+ borderRadius: 'var(--ax-rounded-border-default)',
122
+ },
122
123
  '.bg-default': {
123
124
  backgroundColor:
124
125
  'rgb(var(--ax-color-default-background) / var(--tw-bg-opacity))',