2024-02-07 21:06:00 +00:00
|
|
|
export default {
|
2024-02-12 15:03:19 +00:00
|
|
|
variables: {
|
|
|
|
colorScheme: {
|
|
|
|
light: {
|
|
|
|
root: {
|
|
|
|
background: '{surface.0}',
|
|
|
|
borderColor: '{surface.200}',
|
|
|
|
textColor: '{surface.700}'
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
backgroundHover: '{surface.100}',
|
|
|
|
textColor: '{surface.700}',
|
|
|
|
textColorHover: '{surface.800}'
|
|
|
|
},
|
|
|
|
toggleIcon: {
|
|
|
|
color: '{surface.500}',
|
|
|
|
colorHover: '{surface.600}'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
dark: {
|
|
|
|
root: {
|
|
|
|
background: '{surface.900}',
|
|
|
|
borderColor: '{surface.700}',
|
|
|
|
textColor: '{surface.0}'
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
backgroundHover: '{surface.800}',
|
|
|
|
textColor: '{surface.0}',
|
|
|
|
textColorHover: '{surface.0}'
|
|
|
|
},
|
|
|
|
toggleIcon: {
|
|
|
|
color: '{surface.400}',
|
|
|
|
colorHover: '{surface.300}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-02-07 21:06:00 +00:00
|
|
|
css: `
|
|
|
|
.p-fieldset {
|
2024-02-12 15:03:19 +00:00
|
|
|
border: 1px solid var(--p-fieldset-border-color);
|
|
|
|
background: var(--p-fieldset-background);
|
|
|
|
color: var(--p-fieldset-text-color);
|
|
|
|
border-radius: var(--p-rounded-base);
|
2024-02-07 21:06:00 +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-02-12 15:03:19 +00:00
|
|
|
color: var(--p-legend-text-color);
|
|
|
|
border-radius: var(--p-rounded-base);
|
2024-02-10 08:57:04 +00:00
|
|
|
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
|
2024-02-07 21:06:00 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a:focus-visible {
|
|
|
|
outline: var(--p-focus-ring-width) var(--p-focus-ring-style) var(--p-focus-ring-color);
|
|
|
|
outline-offset: var(--p-focus-ring-offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a:hover {
|
2024-02-12 15:03:19 +00:00
|
|
|
color: var(--p-fieldset-legend-text-color-hover);
|
|
|
|
background: var(--p-fieldset-legend-background-hover);
|
2024-02-07 21:06:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggler {
|
2024-02-12 15:03:19 +00:00
|
|
|
color: var(--p-fieldset-toggle-icon-color);
|
2024-02-10 08:57:04 +00:00
|
|
|
transition: color var(--p-transition-duration);
|
2024-02-07 21:06:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset-toggleable > .p-fieldset-legend > a:hover > .p-fieldset-toggler {
|
2024-02-12 15:03:19 +00:00
|
|
|
color: var(--p-fieldset-toggle-icon-color-hover);
|
2024-02-07 21:06:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fieldset .p-fieldset-content {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|