primevue-mirror/components/lib/theme/aura/fieldset/index.js

65 lines
1.8 KiB
JavaScript
Raw Normal View History

2024-02-07 21:06:00 +00:00
export default {
css: `
.p-fieldset {
border: 1px solid var(--p-dark-surface-700, var(--p-surface-200));
background: var(--p-dark-surface-900, var(--p-surface-0));
color: var(--p-dark-surface-0, var(--p-surface-700));
border-radius: 6px;
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;
color: var(--p-dark-surface-0, var(--p-surface-700));
border-radius: 6px;
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 {
color: var(--p-dark-surface-0, var(--p-surface-800));
2024-02-10 08:57:04 +00:00
background: var(--p-dark-surface-800, var(--p-surface-100));
2024-02-07 21:06:00 +00:00
}
.p-fieldset-toggler {
color: var(--p-dark-surface-400, var(--p-surface-500));
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-10 08:57:04 +00:00
color: var(--p-dark-surface-300, var(--p-surface-600));
2024-02-07 21:06:00 +00:00
}
.p-fieldset .p-fieldset-content {
padding: 0;
}
`
};