pull/5756/head
Cagatay Civici 2024-05-10 11:35:22 +03:00
commit 60130a3f12
2 changed files with 28 additions and 25 deletions

View File

@ -200,31 +200,6 @@ const theme = ({ dt }) => `
background-color: transparent;
}
}
.p-ripple {
overflow: hidden;
position: relative;
}
.p-ink {
display: block;
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 100%;
transform: scale(0);
pointer-events: none;
}
.p-ink-active {
animation: ripple 0.4s linear;
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2.5);
}
}
`;
const css = ({ dt }) => `

View File

@ -1,10 +1,38 @@
import BaseStyle from 'primevue/base/style';
const theme = ({ dt }) => `
.p-ripple {
overflow: hidden;
position: relative;
}
.p-ink {
display: block;
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 100%;
transform: scale(0);
pointer-events: none;
}
.p-ink-active {
animation: ripple 0.4s linear;
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2.5);
}
}
`;
const classes = {
root: 'p-ink'
};
export default BaseStyle.extend({
name: 'ripple-directive',
theme,
classes
});