atharv-mandlavdiya 1.1.2 → 1.1.3
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/atharvmandlavdiya.js +9 -18
- package/package.json +1 -1
- package/prefabs/progress/progress.css +9 -18
package/atharvmandlavdiya.js
CHANGED
|
@@ -18,31 +18,21 @@ const progressCardStyles = `
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.progress-wrapper {
|
|
21
|
-
display: grid;
|
|
22
|
-
grid-template-columns: repeat(14, 1fr);
|
|
23
|
-
grid-template-rows: repeat(2, 1fr);
|
|
24
|
-
align-items: start;
|
|
25
|
-
column-gap: 0.4rem;
|
|
26
21
|
position: relative;
|
|
27
22
|
min-height: 1024px;
|
|
28
|
-
width: 100
|
|
23
|
+
width: calc(100% + 2vw);
|
|
24
|
+
margin-left: -1vw;
|
|
29
25
|
box-sizing: border-box;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
@media (min-width: 1024px) {
|
|
33
|
-
.progress-wrapper {
|
|
34
|
-
column-gap: 0.8rem;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
28
|
progress-card {
|
|
39
|
-
|
|
40
|
-
grid-row: 1;
|
|
41
|
-
align-self: center;
|
|
42
|
-
height: calc(var(--vh, 1vh) * 40);
|
|
29
|
+
display: block;
|
|
43
30
|
position: sticky;
|
|
44
31
|
top: calc(var(--vh, 1vh) * 30);
|
|
45
32
|
margin-bottom: calc(var(--vh, 1vh) * 30);
|
|
33
|
+
height: calc(var(--vh, 1vh) * 40);
|
|
34
|
+
width: 100%;
|
|
35
|
+
max-width: 100%;
|
|
46
36
|
scale: calc(0.5 + var(--progress) * 0.5);
|
|
47
37
|
clip-path: rect(
|
|
48
38
|
calc(20% - var(--progress) * 20%)
|
|
@@ -53,15 +43,16 @@ progress-card {
|
|
|
53
43
|
);
|
|
54
44
|
transform: translateZ(0);
|
|
55
45
|
overflow: hidden;
|
|
56
|
-
width: 100%;
|
|
57
46
|
}
|
|
58
47
|
|
|
59
48
|
@media (min-width: 1024px) {
|
|
60
49
|
progress-card {
|
|
61
|
-
grid-column: 3 / 13;
|
|
62
50
|
top: calc(var(--vh, 1vh) * 15);
|
|
63
51
|
margin-bottom: calc(var(--vh, 1vh) * 15);
|
|
64
52
|
height: calc(var(--vh, 1vh) * 70);
|
|
53
|
+
width: 70%;
|
|
54
|
+
margin-left: auto;
|
|
55
|
+
margin-right: auto;
|
|
65
56
|
clip-path: rect(
|
|
66
57
|
calc(20% - var(--progress) * 20%)
|
|
67
58
|
calc(70% + var(--progress) * 30%)
|
package/package.json
CHANGED
|
@@ -5,31 +5,21 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.progress-wrapper {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: repeat(14, 1fr);
|
|
10
|
-
grid-template-rows: repeat(2, 1fr);
|
|
11
|
-
align-items: start;
|
|
12
|
-
column-gap: 0.4rem;
|
|
13
8
|
position: relative;
|
|
14
9
|
min-height: 1024px;
|
|
15
|
-
width: 100
|
|
10
|
+
width: calc(100% + 2vw);
|
|
11
|
+
margin-left: -1vw;
|
|
16
12
|
box-sizing: border-box;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
@media (min-width: 1024px) {
|
|
20
|
-
.progress-wrapper {
|
|
21
|
-
column-gap: 0.8rem;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
15
|
progress-card {
|
|
26
|
-
|
|
27
|
-
grid-row: 1;
|
|
28
|
-
align-self: center;
|
|
29
|
-
height: calc(var(--vh, 1vh) * 40);
|
|
16
|
+
display: block;
|
|
30
17
|
position: sticky;
|
|
31
18
|
top: calc(var(--vh, 1vh) * 30);
|
|
32
19
|
margin-bottom: calc(var(--vh, 1vh) * 30);
|
|
20
|
+
height: calc(var(--vh, 1vh) * 40);
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: 100%;
|
|
33
23
|
scale: calc(0.5 + var(--progress) * 0.5);
|
|
34
24
|
clip-path: rect(
|
|
35
25
|
calc(20% - var(--progress) * 20%)
|
|
@@ -40,15 +30,16 @@ progress-card {
|
|
|
40
30
|
);
|
|
41
31
|
transform: translateZ(0);
|
|
42
32
|
overflow: hidden;
|
|
43
|
-
width: 100%;
|
|
44
33
|
}
|
|
45
34
|
|
|
46
35
|
@media (min-width: 1024px) {
|
|
47
36
|
progress-card {
|
|
48
|
-
grid-column: 3 / 13;
|
|
49
37
|
top: calc(var(--vh, 1vh) * 15);
|
|
50
38
|
margin-bottom: calc(var(--vh, 1vh) * 15);
|
|
51
39
|
height: calc(var(--vh, 1vh) * 70);
|
|
40
|
+
width: 70%;
|
|
41
|
+
margin-left: auto;
|
|
42
|
+
margin-right: auto;
|
|
52
43
|
clip-path: rect(
|
|
53
44
|
calc(20% - var(--progress) * 20%)
|
|
54
45
|
calc(70% + var(--progress) * 30%)
|