Move ripple styles from BaseStyle.js to RippleStyle.js

pull/5756/head
Mert Sincan 2024-05-10 09:32:29 +01:00
parent c926bbe82a
commit fcad42fd8b
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
});