2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
const theme = ({ dt }) => `
|
|
|
|
.p-card {
|
|
|
|
background: ${dt('card.background')};
|
|
|
|
color: ${dt('card.color')};
|
|
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 12px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-caption {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-body {
|
|
|
|
padding: 1.5rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-title {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-subtitle {
|
|
|
|
font-weight: 400;
|
|
|
|
color: ${dt('card.subtitle.color')};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2023-10-02 10:46:09 +00:00
|
|
|
const classes = {
|
|
|
|
root: 'p-card p-component',
|
|
|
|
header: 'p-card-header',
|
|
|
|
body: 'p-card-body',
|
2024-01-03 11:06:19 +00:00
|
|
|
caption: 'p-card-caption',
|
2023-10-02 10:46:09 +00:00
|
|
|
title: 'p-card-title',
|
|
|
|
subtitle: 'p-card-subtitle',
|
|
|
|
content: 'p-card-content',
|
|
|
|
footer: 'p-card-footer'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'card',
|
2024-05-01 08:26:48 +00:00
|
|
|
theme,
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|