mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactored tokens of Misc
This commit is contained in:
parent
4bdc38e892
commit
a20948c218
11 changed files with 39 additions and 126 deletions
|
@ -5,22 +5,6 @@ const theme = ({ dt }) => `
|
|||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: ${dt('scrolltop.background')};
|
||||
color: ${dt('scrolltop.color')};
|
||||
}
|
||||
|
||||
.p-scrolltop:hover {
|
||||
background: ${dt('scrolltop.hover.background')};
|
||||
color: ${dt('scrolltop.hover.text')};
|
||||
}
|
||||
|
||||
.p-scrolltop-icon {
|
||||
font-size: 1.5rem;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
.p-scrolltop-sticky {
|
||||
|
@ -46,19 +30,10 @@ const theme = ({ dt }) => `
|
|||
.p-scrolltop-leave-active {
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
|
||||
.p-scrolltop {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
||||
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
||||
outline-color: transparent;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => ['p-scrolltop p-link p-component', { 'p-scrolltop-sticky': props.target !== 'window' }],
|
||||
root: ({ props }) => ['p-scrolltop', { 'p-scrolltop-sticky': props.target !== 'window' }],
|
||||
icon: 'p-scrolltop-icon'
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue