mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5667 - Remove base option from theme config
This commit is contained in:
parent
6d688ef675
commit
0979dde96d
438 changed files with 10872 additions and 11957 deletions
|
@ -1,5 +1,51 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
background: ${dt('chip.background')};
|
||||
color: ${dt('chip.color')};
|
||||
border-radius: 16px;
|
||||
padding: 0.25rem 0.75rem;
|
||||
}
|
||||
|
||||
.p-chip-label {
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.p-chip-icon {
|
||||
line-height: 1.5;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.p-chip-image {
|
||||
border-radius: 50%;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
margin-left: -0.5rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.p-chip:has(.p-chip-remove-icon) {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
.p-chip-remove-icon {
|
||||
line-height: 1.5;
|
||||
cursor: pointer;
|
||||
margin-left: 0.375rem;
|
||||
border-radius: 6px;
|
||||
transition: outline-color ${dt('transition.duration')};
|
||||
outline-color: transparent;
|
||||
}
|
||||
|
||||
.p-chip-remove-icon:focus-visible {
|
||||
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
||||
outline-offset: ${dt('focus.ring.offset')};
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: 'p-chip p-component',
|
||||
image: 'p-chip-image',
|
||||
|
@ -10,5 +56,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'chip',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue