primevue-mirror/components/lib/themes/primeone/base/fieldset/index.js

65 lines
1.7 KiB
JavaScript

export default {
css: `
.p-fieldset {
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);
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-legend-text-color);
border-radius: var(--p-rounded-base);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), outline-color var(--p-transition-duration);
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-fieldset-legend-text-color-hover);
background: var(--p-fieldset-legend-background-hover);
}
.p-fieldset-toggler {
color: var(--p-fieldset-toggle-icon-color);
transition: color var(--p-transition-duration);
}
.p-fieldset-toggleable > .p-fieldset-legend > a:hover > .p-fieldset-toggler {
color: var(--p-fieldset-toggle-icon-color-hover);
}
.p-fieldset .p-fieldset-content {
padding: 0;
}
`
};