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

89 lines
2.3 KiB
JavaScript
Raw Normal View History

2024-02-05 21:20:00 +00:00
export default {
2024-02-10 14:09:54 +00:00
variables: {
2024-02-10 21:17:32 +00:00
colorScheme: {
light: {
root: {
2024-02-11 21:49:51 +00:00
background: '{surface.0}',
2024-02-12 15:03:19 +00:00
borderColor: '{surface.200}',
textColor: '{surface.700}'
2024-02-11 21:49:51 +00:00
},
headerIcon: {
color: '{surface.500}',
colorHover: '{surface.600}',
backgroundHover: '{surface.100}'
2024-02-10 21:17:32 +00:00
}
},
dark: {
root: {
2024-02-11 21:49:51 +00:00
background: '{surface.900}',
2024-02-12 15:03:19 +00:00
borderColor: '{surface.700}',
textColor: '{surface.0}'
2024-02-11 21:49:51 +00:00
},
headerIcon: {
color: '{surface.400}',
colorHover: '{surface.300}',
backgroundHover: '{surface.800}'
2024-02-10 21:17:32 +00:00
}
}
}
2024-02-10 14:09:54 +00:00
},
2024-02-05 21:20:00 +00:00
css: `
2024-02-07 14:17:00 +00:00
.p-panel {
2024-02-11 22:11:23 +00:00
border: 1px solid var(--p-panel-border-color);
2024-02-12 15:03:19 +00:00
border-radius: var(--p-rounded-base);
2024-02-11 21:49:51 +00:00
background: var(--p-panel-background);
color: var(--p-panel-text-color);
2024-02-07 14:17:00 +00:00
}
2024-02-05 21:20:00 +00:00
.p-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
2024-02-07 14:17:00 +00:00
padding: 1.125rem;
}
.p-panel-toggleable .p-panel-header {
padding: 0.75rem 1.125rem;
2024-02-05 21:20:00 +00:00
}
2024-02-07 14:17:00 +00:00
2024-02-05 21:20:00 +00:00
.p-panel-title {
line-height: 1;
2024-02-07 14:17:00 +00:00
font-weight: 600;
2024-02-05 21:20:00 +00:00
}
2024-02-07 14:17:00 +00:00
2024-02-05 21:20:00 +00:00
.p-panel-header-icon {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
width: 1.75rem;
height: 1.75rem;
2024-02-07 14:17:00 +00:00
position: relative;
2024-02-11 21:49:51 +00:00
color: var(--p-panel-header-icon-color);
2024-02-05 21:20:00 +00:00
border: 0 none;
background: transparent;
border-radius: 50%;
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-05 21:20:00 +00:00
outline-color: transparent;
}
2024-02-07 14:17:00 +00:00
.p-panel-header-icon:enabled:hover {
2024-02-11 21:49:51 +00:00
color: var(--p-panel-header-icon-color-hover);
background: var(--p-panel-header-icon-background-hover);
2024-02-05 21:20:00 +00:00
}
2024-02-07 14:17:00 +00:00
.p-panel-header-icon: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);
2024-02-05 21:20:00 +00:00
}
2024-02-07 14:17:00 +00:00
2024-02-12 10:17:41 +00:00
.p-panel-content {
2024-02-05 21:20:00 +00:00
padding: 0 1.125rem 1.125rem 1.125rem;
}
2024-02-07 14:17:00 +00:00
2024-02-12 10:17:41 +00:00
.p-panel-footer {
2024-02-05 21:20:00 +00:00
padding: 0 1.125rem 1.125rem 1.125rem;
}
`
};