magic-pill 6.1.3 → 6.1.4
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/dist/magicpill.css +111 -85
- package/package.json +1 -1
package/dist/magicpill.css
CHANGED
|
@@ -3,107 +3,133 @@
|
|
|
3
3
|
|
|
4
4
|
/* CSS variables */
|
|
5
5
|
:root {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
--themeDark: #141414;
|
|
7
|
+
--themeLight: #F9F9F9;
|
|
8
|
+
--font-text: "Overlock", sans-serif;
|
|
9
|
+
--font-accent: "Lexend", sans-serif;
|
|
10
|
+
--normal: normal;
|
|
11
|
+
--italic: italic;
|
|
12
|
+
--medium: 400;
|
|
13
|
+
--bold: 700;
|
|
14
|
+
--black: 900;
|
|
15
|
+
--success: #3F7253;
|
|
16
|
+
--danger: #FC5D6A;
|
|
17
|
+
--textSize: 19.4px;
|
|
18
|
+
--titleSize: 31.42px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* General */
|
|
22
22
|
*,
|
|
23
23
|
*::before,
|
|
24
24
|
*::after {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
font-family: var(--font-text);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.magicPill {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: calc(95dvh - 110px);
|
|
34
|
+
left: 50%;
|
|
35
|
+
transform: translateX(-50%);
|
|
36
|
+
padding: 25px;
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: 25px;
|
|
39
|
+
background-color: var(--themeDark);
|
|
40
|
+
color: var(--themeLight);
|
|
41
|
+
border-radius: 100px;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
>.message,
|
|
46
|
+
.info {
|
|
47
|
+
font-style: var(--italic);
|
|
48
|
+
font-size: var(--textSize);
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
>.title {
|
|
51
|
+
font-weight: var(--black);
|
|
52
|
+
font-size: var(--titleSize);
|
|
53
|
+
}
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
>.message {
|
|
57
|
+
padding-left: 25px;
|
|
58
|
+
border-left: 1px solid var(--themeLight);
|
|
59
|
+
font-style: var(--italic);
|
|
60
|
+
font-size: 19.4px;
|
|
61
|
+
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
>.CTA {
|
|
64
|
+
font-family: var(--font-accent);
|
|
65
|
+
font-size: var(--textSize);
|
|
66
|
+
font-weight: var(--bold);
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: flex-start;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 10px;
|
|
71
|
+
padding: 15px;
|
|
72
|
+
max-width: 54.5px;
|
|
73
|
+
aspect-ratio: 1;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
background-color: var(--themeLight);
|
|
76
|
+
border: transparent;
|
|
77
|
+
border-radius: 100px;
|
|
78
|
+
transition: width 250ms ease-in-out;
|
|
79
|
+
cursor: pointer;
|
|
73
80
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
position: absolute;
|
|
80
|
-
width: 100%;
|
|
81
|
-
height: 100%;
|
|
82
|
-
background-color: var(--themeDark);
|
|
83
|
-
border-radius: 55px;
|
|
84
|
-
bottom: 0px;
|
|
85
|
-
transition: height 250ms ease-in-out, bottom 250ms ease-in-out, border-radius 250ms ease-in-out;
|
|
86
|
-
}
|
|
81
|
+
>svg {
|
|
82
|
+
min-width: calc(54.5px / 2);
|
|
83
|
+
width: 100%;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
}
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
87
|
+
>span {
|
|
88
|
+
z-index: 1;
|
|
89
|
+
font-family: var(--font-accent);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
>.CTA:hover {
|
|
94
|
+
max-width: 300px;
|
|
95
|
+
aspect-ratio: unset;
|
|
96
|
+
transition: max-width 250ms ease-in-out;
|
|
97
|
+
}
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
>.info {
|
|
100
|
+
display: grid;
|
|
101
|
+
gap: 25px;
|
|
102
|
+
padding: 50px;
|
|
103
|
+
z-index: -1;
|
|
104
|
+
position: absolute;
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 100%;
|
|
107
|
+
background-color: var(--themeDark);
|
|
108
|
+
border-radius: 55px;
|
|
109
|
+
bottom: 0px;
|
|
110
|
+
transition: height 250ms ease-in-out, bottom 250ms ease-in-out, border-radius 250ms ease-in-out;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
>.info::after {
|
|
114
|
+
content: '';
|
|
115
|
+
position: absolute;
|
|
116
|
+
width: 95%;
|
|
117
|
+
height: 95%;
|
|
118
|
+
top: 50%;
|
|
119
|
+
left: 50%;
|
|
120
|
+
transform: translateX(-50%) translateY(-50%);
|
|
121
|
+
background-color: var(--themeDark);
|
|
122
|
+
border-radius: 55px;
|
|
123
|
+
transition: height 250ms 250ms ease-in-out;
|
|
124
|
+
}
|
|
105
125
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
126
|
+
>.info.active {
|
|
127
|
+
border-radius: 50px 50px 0px 0px;
|
|
128
|
+
bottom: calc(106.5px / 2);
|
|
129
|
+
height: fit-content !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
>.info.active::after {
|
|
133
|
+
height: 0%;
|
|
134
|
+
}
|
|
109
135
|
}
|