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-fieldset {
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('fieldset.background')};
|
|
|
|
border: 1px solid ${dt('fieldset.border.color')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
color: ${dt('fieldset.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
padding: 0 1.125rem 1.125rem 1.125rem;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-legend {
|
|
|
|
font-weight: 600;
|
|
|
|
border-radius: 6px;
|
|
|
|
border: 0 none;
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
margin-bottom: 0.375rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a {
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
|
|
gap: 0.5rem;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0.5rem 0.75rem;
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('fieldset.legend.color')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a:focus-visible {
|
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-fieldset-toggleable > .p-fieldset-legend > a:hover {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('fieldset.legend.hover.color')};
|
|
|
|
background: ${dt('fieldset.legend.hover.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-08 15:41:16 +00:00
|
|
|
.p-fieldset-toggle-icon {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('fieldset.toggle.icon.color')};
|
|
|
|
transition: color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-08 15:41:16 +00:00
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a:hover > .p-fieldset-toggle-icon {
|
2024-03-12 08:19:23 +00:00
|
|
|
color: ${dt('fieldset.toggle.icon.hover.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset .p-fieldset-content {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|