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

162 lines
5.4 KiB
JavaScript
Raw Normal View History

2024-01-02 10:18:28 +00:00
export default {
variables: {
common: {
header: {
2024-01-02 14:05:23 +00:00
borderWidth: '1px',
borderStyle: 'solid',
paddingX: '{p.5}',
paddingY: '{p.5}',
2024-01-02 14:05:23 +00:00
fontWeight: 700
},
headerIcon: {
width: '2rem',
height: '2rem',
borderWidth: '0',
borderStyle: 'none',
borderRadius: '50%'
},
toggleableHeader: {
paddingX: '{p.5}',
paddingY: '{p.3}'
2024-01-02 14:05:23 +00:00
},
content: {
paddingX: '{p.5}',
paddingY: '{p.5}',
2024-01-02 14:05:23 +00:00
borderWidth: '1px',
borderStyle: 'solid'
},
footer: {
paddingX: '{p.5}',
paddingY: '{p.3}',
2024-01-02 14:05:23 +00:00
borderWidth: '1px',
borderStyle: 'solid'
2024-01-02 10:18:28 +00:00
}
},
light: {
header: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.50}',
color: '{surface.700}'
2024-01-02 14:05:23 +00:00
},
headerIcon: {
2024-01-02 16:52:32 +00:00
color: '{surface.600}',
2024-01-02 14:05:23 +00:00
borderColor: 'transparent',
2024-01-02 16:52:32 +00:00
background: 'transparent',
states: {
hover: {
color: '{surface.800}',
borderColor: 'transparent',
background: '{surface.100}'
},
focus: {}
2024-01-02 16:52:32 +00:00
}
2024-01-02 14:05:23 +00:00
},
content: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.0}',
color: '{surface.700}'
2024-01-02 14:05:23 +00:00
},
footer: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.0}',
color: '{surface.700}'
2024-01-02 10:18:28 +00:00
}
},
dark: {
header: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.50}',
color: '{surface.700}'
2024-01-02 14:05:23 +00:00
},
headerIcon: {
2024-01-02 16:52:32 +00:00
color: '{surface.600}',
2024-01-02 14:05:23 +00:00
borderColor: 'transparent',
2024-01-02 16:52:32 +00:00
background: 'transparent',
states: {
hover: {
color: '{surface.800}',
borderColor: 'transparent',
background: '{surface.100}'
}
}
2024-01-02 14:05:23 +00:00
},
content: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.0}',
color: '{surface.700}'
2024-01-02 14:05:23 +00:00
},
footer: {
2024-01-02 16:52:32 +00:00
borderColor: '{surface.200}',
background: '{surface.0}',
color: '{surface.700}'
2024-01-02 10:18:28 +00:00
}
}
},
css: `
.p-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
2024-01-02 14:05:23 +00:00
border: var(--p-panel-header-border-width) var(--p-panel-header-border-style) var(--p-panel-header-border-color);
padding: var(--p-panel-header-padding-y) var(--p-panel-header-padding-x);
background: var(--p-panel-header-background);
color: var(--p-panel-header-color);
2024-01-02 10:18:28 +00:00
border-top-right-radius: var(--p-border-radius);
border-top-left-radius: var(--p-border-radius);
}
.p-panel-title {
line-height: 1;
font-weight: var(--p-panel-header-font-weight);
}
.p-panel-header-icon {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-decoration: none;
overflow: hidden;
position: relative;
2024-01-02 14:05:23 +00:00
width: var(--p-panel-header-icon-width);
height: var(--p-panel-header-icon-height);
color: var(--p-panel-header-icon-color);
border: var(--p-panel-header-icon-border-width) var(--p-panel-header-icon-border-style) var(--p-panel-header-icon-border-color);
background: var(--p-panel-header-icon-background);
border-radius: var(--p-panel-header-icon-border-radius);
2024-01-02 14:05:23 +00:00
transition: var(--p-transition);
2024-01-02 10:18:28 +00:00
}
.p-panel-header-icon:enabled:hover {
2024-01-02 14:05:23 +00:00
color: var(--p-panel-header-icon-hover-color);
border-color: var(--p-panel-header-icon-hover-border-color);
background: var(--p-panel-header-icon-hover-background);
2024-01-02 10:18:28 +00:00
}
.p-panel-header-icon:focus-visible {
2024-01-02 14:05:23 +00:00
outline: var(--p-focus-outline); /* @todo */
2024-01-02 10:18:28 +00:00
outline-offset: var(--p-focus-outline-offset);
box-shadow: var(--p-focus-shadow);
}
2024-01-02 14:05:23 +00:00
.p-panel-toggleable > .p-panel-header {
padding: var(--p-panel-toggleable-header-padding-y) var(--p-panel-toggleable-header-padding-x);
2024-01-02 10:18:28 +00:00
}
.p-panel-content {
2024-01-02 14:05:23 +00:00
padding: var(--p-panel-content-padding-y) var(--p-panel-content-padding-x);
border: var(--p-panel-content-border-width) var(--p-panel-content-border-style) var(--p-panel-content-border-color);
background: var(--p-panel-content-background);
color: var(--p-panel-content-color);
2024-01-02 10:18:28 +00:00
border-top: 0;
}
.p-panel-content:last-child {
border-bottom-right-radius: var(--p-border-radius);
border-bottom-left-radius: var(--p-border-radius);
}
.p-panel-footer {
2024-01-02 14:05:23 +00:00
padding: var(--p-panel-footer-padding-y) var(--p-panel-footer-padding-x);
border: var(--p-panel-footer-border-width) var(--p-panel-footer-border-style) var(--p-panel-footer-border-color);
background: var(--p-panel-footer-background);
color: var(--p-panel-footer-color);
2024-01-02 10:18:28 +00:00
border-bottom-right-radius: var(--p-border-radius);
border-bottom-left-radius: var(--p-border-radius);
border-top: 0;
}
`
};