magic-pill 6.1.12 → 6.1.13

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,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.1.13]
4
+ ### Fixed
5
+ - Fixed the definition of CSS vairables which conflicted with the project's global stylesheet, now everything only extends to the scope of the Magic Pill
6
+
3
7
  ## [6.1.12]
4
8
  ### Fixed
5
9
  - Fixed a wrong import line in the README file
@@ -2,7 +2,7 @@
2
2
  @import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
3
3
 
4
4
  /* CSS variables */
5
- :root {
5
+ .magicPill {
6
6
  --themeDark: #141414;
7
7
  --themeLight: #F9F9F9;
8
8
  --font-text: "Overlock", sans-serif;
@@ -19,9 +19,9 @@
19
19
  }
20
20
 
21
21
  /* General */
22
- *,
23
- *::before,
24
- *::after {
22
+ .magicPill,
23
+ .magicPill::before,
24
+ .magicPill::after {
25
25
  box-sizing: border-box;
26
26
  margin: 0;
27
27
  padding: 0;
@@ -46,6 +46,7 @@
46
46
  overflow: hidden;
47
47
  transform-origin: left;
48
48
  transition: width 250ms ease-in-out, max-width 250ms ease-in-out;
49
+
49
50
  >svg {
50
51
  min-width: calc(110px / 2);
51
52
  width: 100%;
@@ -147,6 +148,7 @@
147
148
 
148
149
  .magicPill.active {
149
150
  max-width: 1000px;
151
+
150
152
  >svg {
151
153
  min-width: unset;
152
154
  width: unset;
@@ -164,6 +166,7 @@
164
166
  max-width: 104.5px;
165
167
  transition: max-width 1500ms ease-in-out, width 1500ms ease-in-out;
166
168
  animation: entry 2500ms 1500ms ease-in-out reverse forwards;
169
+
167
170
  >svg {
168
171
  min-width: calc(110px / 2);
169
172
  width: 100%;
@@ -173,7 +176,9 @@
173
176
 
174
177
  .magicPill:has(.info.active) {
175
178
  overflow: unset;
176
- >svg, p {
179
+
180
+ >svg,
181
+ p {
177
182
  z-index: -1;
178
183
  }
179
184
  }
@@ -182,9 +187,11 @@
182
187
  0% {
183
188
  scale: 0;
184
189
  }
190
+
185
191
  90% {
186
192
  scale: 1.2;
187
193
  }
194
+
188
195
  100% {
189
196
  scale: 1;
190
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-pill",
3
- "version": "6.1.12",
3
+ "version": "6.1.13",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "index.d.ts",