2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-speeddial {
|
2024-03-18 10:29:19 +00:00
|
|
|
position: static;
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
gap: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-button {
|
|
|
|
z-index: 1;
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-button.p-speeddial-rotate {
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt(
|
|
|
|
'transition.duration'
|
|
|
|
)}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-list {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: top 0s linear ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
pointer-events: none;
|
|
|
|
outline: 0 none;
|
|
|
|
z-index: 2;
|
|
|
|
gap: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-item {
|
|
|
|
transform: scale(0);
|
|
|
|
opacity: 0;
|
|
|
|
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, opacity 0.8s;
|
|
|
|
will-change: transform;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-item.p-focus > .p-speeddial-action {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-action {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border-radius: 50%;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
2024-03-13 08:36:59 +00:00
|
|
|
background: ${dt('speeddial.item.background')};
|
|
|
|
color: ${dt('speeddial.item.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-action:hover {
|
2024-03-13 08:36:59 +00:00
|
|
|
background: ${dt('speeddial.item.hover.background')};
|
|
|
|
color: ${dt('speeddial.item.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-circle .p-speeddial-item,
|
|
|
|
.p-speeddial-semi-circle .p-speeddial-item,
|
|
|
|
.p-speeddial-quarter-circle .p-speeddial-item {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-mask {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
opacity: 0;
|
2024-03-13 08:36:59 +00:00
|
|
|
background-color: ${dt('mask.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
border-radius: 6px;
|
|
|
|
transition: opacity 150ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-mask-visible {
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 150ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-opened .p-speeddial-list {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-opened .p-speeddial-item {
|
|
|
|
transform: scale(1);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-speeddial-opened .p-speeddial-rotate {
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|