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')};
|
2024-05-11 13:20:02 +00:00
|
|
|
box-shadow: ${dt('card.shadow')};
|
|
|
|
border-radius: ${dt('card.border.radius')};
|
2024-05-01 08:26:48 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-caption {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-05-11 13:20:02 +00:00
|
|
|
gap: ${dt('card.caption.gap')};
|
2024-05-01 08:26:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-body {
|
2024-05-11 13:20:02 +00:00
|
|
|
padding: ${dt('card.body.padding')};
|
2024-05-01 08:26:48 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-05-11 13:20:02 +00:00
|
|
|
gap: ${dt('card.body.gap')};
|
2024-05-01 08:26:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-title {
|
2024-05-11 13:20:02 +00:00
|
|
|
font-size: ${dt('card.title.font.size')};
|
|
|
|
font-weight: ${dt('card.title.font.weight')};
|
2024-05-01 08:26:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-card-subtitle {
|
|
|
|
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
|
|
|
});
|