2024-02-16 09:16:05 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
2024-05-01 08:26:48 +00:00
|
|
|
const theme = ({ dt }) => `
|
|
|
|
.p-buttongroup .p-button {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttongroup .p-button:not(:last-child),
|
|
|
|
.p-buttongroup .p-button:not(:last-child):hover {
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttongroup .p-button:not(:first-of-type):not(:last-of-type) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttongroup .p-button:first-of-type:not(:only-of-type) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttongroup .p-button:last-of-type:not(:only-of-type) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-buttongroup .p-button:focus {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-02-16 09:16:05 +00:00
|
|
|
const classes = {
|
2024-04-07 21:22:21 +00:00
|
|
|
root: 'p-buttongroup p-component'
|
2024-02-16 09:16:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
2024-02-16 11:06:57 +00:00
|
|
|
name: 'buttongroup',
|
2024-05-01 08:26:48 +00:00
|
|
|
theme,
|
2024-02-16 09:16:05 +00:00
|
|
|
classes
|
|
|
|
});
|