primevue-mirror/components/lib/card/style/CardStyle.js

52 lines
1.0 KiB
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
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')};
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')};
}
.p-card-body {
2024-05-11 13:20:02 +00:00
padding: ${dt('card.body.padding')};
display: flex;
flex-direction: column;
2024-05-11 13:20:02 +00:00
gap: ${dt('card.body.gap')};
}
.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')};
}
.p-card-subtitle {
color: ${dt('card.subtitle.color')};
}
`;
const classes = {
root: 'p-card p-component',
header: 'p-card-header',
body: 'p-card-body',
caption: 'p-card-caption',
title: 'p-card-title',
subtitle: 'p-card-subtitle',
content: 'p-card-content',
footer: 'p-card-footer'
};
export default BaseStyle.extend({
name: 'card',
theme,
2023-10-04 09:20:15 +00:00
classes
});