Token for mask transition

pull/5806/head
Cagatay Civici 2024-05-25 16:40:04 +03:00
parent c53b2869f8
commit c5c0078dc7
4 changed files with 13 additions and 5 deletions

View File

@ -88,22 +88,21 @@ const theme = ({ dt }) => `
}
.p-overlay-mask {
background: rgba(0, 0, 0, 0.4);
transition-duration: ${dt('mask.transition.duration')};
background: ${dt('mask.background')};
color: ${dt('mask.color')};
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: ${dt('mask.color')};
}
.p-overlay-mask-enter {
animation: p-overlay-mask-enter-animation 150ms forwards;
animation: p-overlay-mask-enter-animation ${dt('mask.transition.duration')} forwards;
}
.p-overlay-mask-leave {
animation: p-overlay-mask-leave-animation 150ms forwards;
animation: p-overlay-mask-leave-animation ${dt('mask.transition.duration')} forwards;
}
@keyframes p-overlay-mask-enter-animation {

View File

@ -172,6 +172,9 @@ export default {
content: {
borderRadius: '{border.radius.md}'
},
mask: {
transitionDuration: '0.15s'
},
navigation: {
list: {
padding: '0.25rem 0.25rem',

View File

@ -171,6 +171,9 @@ export default {
content: {
borderRadius: '{border.radius.md}'
},
mask: {
transitionDuration: '0.15s'
},
navigation: {
list: {
padding: '0.5rem 0',

View File

@ -171,6 +171,9 @@ export default {
content: {
borderRadius: '{border.radius.xs}'
},
mask: {
transitionDuration: '0.15s'
},
navigation: {
list: {
padding: '0.125rem 0',