@citizenplane/pimp 10.0.0 → 10.0.1
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/pimp.es.js +372 -368
- package/dist/pimp.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CpToast.vue +8 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<toast class="cpToasts">
|
|
2
|
+
<toast class="cpToasts" @mouse-enter="handleMouse" @mouse-leave="handleMouse">
|
|
3
3
|
<template #container="{ message, closeCallback }">
|
|
4
4
|
<div class="cpToast" :class="getDynamicClass(message.severity)">
|
|
5
5
|
<div class="cpToast__inner">
|
|
@@ -127,6 +127,8 @@ const handleActionClick = (onClick: VoidFunction, closeCallback: VoidFunction) =
|
|
|
127
127
|
onClick()
|
|
128
128
|
closeCallback()
|
|
129
129
|
}
|
|
130
|
+
|
|
131
|
+
const handleMouse = () => true
|
|
130
132
|
</script>
|
|
131
133
|
|
|
132
134
|
<style lang="scss">
|
|
@@ -261,6 +263,10 @@ const handleActionClick = (onClick: VoidFunction, closeCallback: VoidFunction) =
|
|
|
261
263
|
}
|
|
262
264
|
}
|
|
263
265
|
|
|
266
|
+
&:has(.cpToast__timer):hover .cpToast__timer {
|
|
267
|
+
animation-play-state: paused;
|
|
268
|
+
}
|
|
269
|
+
|
|
264
270
|
&__timer {
|
|
265
271
|
position: absolute;
|
|
266
272
|
inset: 0;
|
|
@@ -361,6 +367,7 @@ const handleActionClick = (onClick: VoidFunction, closeCallback: VoidFunction) =
|
|
|
361
367
|
@media (max-width: 451px) {
|
|
362
368
|
.cpToasts {
|
|
363
369
|
max-width: calc(100% - #{fn.v(spacing-2xl)});
|
|
370
|
+
width: 100%;
|
|
364
371
|
right: 0 !important;
|
|
365
372
|
left: 0;
|
|
366
373
|
margin: 0 auto;
|