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-toolbar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
2024-05-11 14:43:13 +00:00
|
|
|
padding: ${dt('toolbar.padding')};
|
2024-05-01 08:26:48 +00:00
|
|
|
background: ${dt('toolbar.background')};
|
|
|
|
border: 1px solid ${dt('toolbar.border.color')};
|
|
|
|
color: ${dt('toolbar.color')};
|
2024-05-11 14:43:13 +00:00
|
|
|
border-radius: ${dt('toolbar.border.radius')};
|
|
|
|
gap: ${dt('toolbar.gap')};
|
2024-05-01 08:26:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-toolbar-start,
|
|
|
|
.p-toolbar-center,
|
|
|
|
.p-toolbar-end {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2023-10-02 10:46:09 +00:00
|
|
|
const classes = {
|
|
|
|
root: 'p-toolbar p-component',
|
2024-04-08 15:44:54 +00:00
|
|
|
start: 'p-toolbar-start',
|
|
|
|
center: 'p-toolbar-center',
|
|
|
|
end: 'p-toolbar-end'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'toolbar',
|
2024-05-01 08:26:48 +00:00
|
|
|
theme,
|
2023-10-02 10:46:09 +00:00
|
|
|
classes
|
|
|
|
});
|