2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-splitbutton {
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton-button:not(:disabled):hover,
|
|
|
|
.p-splitbutton-button:not(:disabled):active {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton-dropdown {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitbutton .p-menu {
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-splitbutton {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton.p-button-rounded .p-splitbutton-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-top-left-radius: 2rem;
|
|
|
|
border-bottom-left-radius: 2rem;;
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton.p-button-rounded .p-splitbutton-dropdown {
|
2024-02-19 22:53:42 +00:00
|
|
|
border-top-right-radius: 2rem;
|
|
|
|
border-bottom-right-radius: 2rem;;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitbutton.p-button-raised {
|
|
|
|
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton .p-splitbutton-button,
|
|
|
|
.p-splitbutton.p-button-rounded > .p-splitbutton-button.p-button,
|
|
|
|
.p-splitbutton.p-button-outlined > .p-splitbutton-button.p-button,
|
|
|
|
.p-splitbutton.p-button-outlined > .p-splitbutton-button.p-button-outlined.p-button:hover {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex: 1 1 auto;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
2024-04-07 21:28:04 +00:00
|
|
|
.p-splitbutton-dropdown,
|
|
|
|
.p-splitbutton.p-button-rounded > .p-splitbutton-dropdown.p-button,
|
|
|
|
.p-splitbutton.p-button-outlined > .p-splitbutton-dropdown.p-button {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
`
|
|
|
|
};
|