azion-theme 1.7.4 → 1.8.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.8.0](https://github.com/aziontech/azion-theme/compare/v1.7.4...v1.8.0) (2024-11-13)
2
+
3
+ ### Features
4
+
5
+ * special button styles and variables ([#29](https://github.com/aziontech/azion-theme/issues/29)) ([a518a0d](https://github.com/aziontech/azion-theme/commit/a518a0ddd985995d3679189d0a0c5bced5879eb6))
6
+
1
7
  ## [1.7.4](https://github.com/aziontech/azion-theme/compare/v1.7.3...v1.7.4) (2024-11-08)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "azion-theme",
3
3
  "type": "module",
4
- "version": "1.7.4",
4
+ "version": "1.8.0",
5
5
  "author": "aziontech",
6
6
  "contributors": [
7
7
  {
@@ -1 +1,2 @@
1
- @import './custom/selection'
1
+ @import './custom/selection';
2
+ @import './custom/special-button';
@@ -227,6 +227,8 @@ $colors: (
227
227
  --carousel-indicator: #e9ecef20;
228
228
  --carousel-indicator-highlight: #ededed;
229
229
  --carousel-indicator-hover: #dee2e640;
230
+ --special-button-bg: rgba(23, 23, 23, 0.85);
231
+ --special-button-hover-bg: rgba(23, 23, 23, 0.25);
230
232
  }
231
233
 
232
234
  :root.azion.azion-light {
@@ -387,4 +389,6 @@ $colors: (
387
389
  --carousel-indicator: #e9ecef;
388
390
  --carousel-indicator-highlight: #1c1c1c;
389
391
  --carousel-indicator-hover: #dee2e6;
392
+ --special-button-bg: rgba(255, 255, 255);
393
+ --special-button-hover-bg: rgba(255, 255, 255, 0.85);
390
394
  }
@@ -0,0 +1,57 @@
1
+ .special-button {
2
+ position: relative;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ border: none;
7
+ padding: 1px;
8
+ background-color: transparent;
9
+ border-radius: 0.375rem;
10
+ overflow: hidden;
11
+ transition: background-color 0.3s ease;
12
+
13
+ &::before {
14
+ content: '';
15
+ position: absolute;
16
+ inset: 0;
17
+ filter: blur(12px);
18
+ background: linear-gradient(
19
+ 90deg,
20
+ rgba(255, 255, 255, 1), /* white */
21
+ rgba(0, 20, 255, 1), /* violet */
22
+ rgba(255, 120, 0, 1) /* orange */
23
+ );
24
+ animation: rotate-background 8s linear infinite;
25
+ z-index: 1;
26
+ pointer-events: none;
27
+ }
28
+
29
+ &:hover .special-button-content {
30
+ background-color: var(--special-button-hover-bg);
31
+ box-shadow: inset 0 0 0 0px var(--surface-border);
32
+ }
33
+ }
34
+
35
+ .special-button-content {
36
+ position: relative;
37
+ z-index: 2;
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 0.375rem;
41
+ padding: 0 0.75rem;
42
+ height: 2rem;
43
+ border-radius: 0.375rem;
44
+ background-color: var(--special-button-bg);
45
+ transition: background-color 0.3s ease;
46
+ box-shadow: inset 0 0 0 .5px var(--surface-border);
47
+ }
48
+
49
+ @keyframes rotate-background {
50
+ 0% {
51
+ transform: rotate(0deg);
52
+ }
53
+ 100% {
54
+ transform: rotate(360deg);
55
+ }
56
+ }
57
+
@@ -1 +1,2 @@
1
- @import './custom/selection'
1
+ @import './custom/selection';
2
+ @import './custom/special-button';
@@ -0,0 +1,56 @@
1
+ .special-button {
2
+ position: relative;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ border: none;
7
+ padding: 1px;
8
+ background-color: transparent;
9
+ border-radius: 0.375rem;
10
+ overflow: hidden;
11
+ transition: background-color 0.3s ease;
12
+
13
+ &::before {
14
+ content: '';
15
+ position: absolute;
16
+ inset: 0;
17
+ filter: blur(12px);
18
+ background: linear-gradient(
19
+ 90deg,
20
+ rgba(255, 255, 255, 1), /* white */
21
+ rgba(0, 20, 255, 1), /* violet */
22
+ rgba(255, 120, 0, 1) /* orange */
23
+ );
24
+ animation: rotate-background 8s linear infinite;
25
+ z-index: 1;
26
+ pointer-events: none;
27
+ }
28
+
29
+ &:hover .special-button-content {
30
+ background-color: var(--special-button-hover-bg);
31
+ box-shadow: inset 0 0 0 0px var(--surface-border);
32
+ }
33
+ }
34
+
35
+ .special-button-content {
36
+ position: relative;
37
+ z-index: 2;
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 0.375rem;
41
+ padding: 0 0.75rem;
42
+ height: 2rem;
43
+ border-radius: 0.375rem;
44
+ background-color: var(--special-button-bg);
45
+ transition: background-color 0.3s ease;
46
+ box-shadow: inset 0 0 0 .5px var(--surface-border);
47
+ }
48
+
49
+ @keyframes rotate-background {
50
+ 0% {
51
+ transform: rotate(0deg);
52
+ }
53
+ 100% {
54
+ transform: rotate(360deg);
55
+ }
56
+ }
@@ -1 +1,2 @@
1
- @import './custom/selection'
1
+ @import './custom/selection';
2
+ @import './custom/special-button';
@@ -0,0 +1,56 @@
1
+ .special-button {
2
+ position: relative;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ border: none;
7
+ padding: 1px;
8
+ background-color: transparent;
9
+ border-radius: 0.375rem;
10
+ overflow: hidden;
11
+ transition: background-color 0.3s ease;
12
+
13
+ &::before {
14
+ content: '';
15
+ position: absolute;
16
+ inset: 0;
17
+ filter: blur(12px);
18
+ background: linear-gradient(
19
+ 90deg,
20
+ rgba(255, 255, 255, 1), /* white */
21
+ rgba(0, 20, 255, 1), /* violet */
22
+ rgba(255, 120, 0, 1) /* orange */
23
+ );
24
+ animation: rotate-background 8s linear infinite;
25
+ z-index: 1;
26
+ pointer-events: none;
27
+ }
28
+
29
+ &:hover .special-button-content {
30
+ background-color: var(--special-button-hover-bg);
31
+ box-shadow: inset 0 0 0 0px var(--surface-border);
32
+ }
33
+ }
34
+
35
+ .special-button-content {
36
+ position: relative;
37
+ z-index: 2;
38
+ display: flex;
39
+ align-items: center;
40
+ gap: 0.375rem;
41
+ padding: 0 0.75rem;
42
+ height: 2rem;
43
+ border-radius: 0.375rem;
44
+ background-color: var(--special-button-bg);
45
+ transition: background-color 0.3s ease;
46
+ box-shadow: inset 0 0 0 .5px var(--surface-border);
47
+ }
48
+
49
+ @keyframes rotate-background {
50
+ 0% {
51
+ transform: rotate(0deg);
52
+ }
53
+ 100% {
54
+ transform: rotate(360deg);
55
+ }
56
+ }