Token for mask transition
parent
c53b2869f8
commit
c5c0078dc7
|
@ -88,22 +88,21 @@ const theme = ({ dt }) => `
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-overlay-mask {
|
.p-overlay-mask {
|
||||||
background: rgba(0, 0, 0, 0.4);
|
background: ${dt('mask.background')};
|
||||||
transition-duration: ${dt('mask.transition.duration')};
|
color: ${dt('mask.color')};
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
color: ${dt('mask.color')};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-overlay-mask-enter {
|
.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 {
|
.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 {
|
@keyframes p-overlay-mask-enter-animation {
|
||||||
|
|
|
@ -172,6 +172,9 @@ export default {
|
||||||
content: {
|
content: {
|
||||||
borderRadius: '{border.radius.md}'
|
borderRadius: '{border.radius.md}'
|
||||||
},
|
},
|
||||||
|
mask: {
|
||||||
|
transitionDuration: '0.15s'
|
||||||
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
list: {
|
list: {
|
||||||
padding: '0.25rem 0.25rem',
|
padding: '0.25rem 0.25rem',
|
||||||
|
|
|
@ -171,6 +171,9 @@ export default {
|
||||||
content: {
|
content: {
|
||||||
borderRadius: '{border.radius.md}'
|
borderRadius: '{border.radius.md}'
|
||||||
},
|
},
|
||||||
|
mask: {
|
||||||
|
transitionDuration: '0.15s'
|
||||||
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
list: {
|
list: {
|
||||||
padding: '0.5rem 0',
|
padding: '0.5rem 0',
|
||||||
|
|
|
@ -171,6 +171,9 @@ export default {
|
||||||
content: {
|
content: {
|
||||||
borderRadius: '{border.radius.xs}'
|
borderRadius: '{border.radius.xs}'
|
||||||
},
|
},
|
||||||
|
mask: {
|
||||||
|
transitionDuration: '0.15s'
|
||||||
|
},
|
||||||
navigation: {
|
navigation: {
|
||||||
list: {
|
list: {
|
||||||
padding: '0.125rem 0',
|
padding: '0.125rem 0',
|
||||||
|
|
Loading…
Reference in New Issue