mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +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,89 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-inputchips {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.p-inputchips-input {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
cursor: text;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
padding: 0.25rem 0.25rem;
|
||||
gap: 0.25rem;
|
||||
color: ${dt('inputchips.color')};
|
||||
background: ${dt('inputchips.background')};
|
||||
border: 1px solid ${dt('inputchips.border.color')};
|
||||
border-radius: ${dt('rounded.base')};
|
||||
width: 100%;
|
||||
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
||||
outline-color: transparent;
|
||||
box-shadow: ${dt('inputchips.box.shadow')};
|
||||
}
|
||||
|
||||
.p-inputchips:not(.p-disabled):hover .p-inputchips-input {
|
||||
border-color: ${dt('inputchips.hover.border.color')};
|
||||
}
|
||||
|
||||
.p-inputchips:not(.p-disabled).p-focus .p-inputchips-input {
|
||||
border-color: ${dt('inputchips.focus.border.color')};
|
||||
outline: 0 none;
|
||||
}
|
||||
|
||||
.p-inputinputchips.p-invalid .p-inputchips-input {
|
||||
border-color: ${dt('inputchips.invalid.border.color')};
|
||||
}
|
||||
|
||||
.p-variant-filled.p-inputchips-input {
|
||||
background: ${dt('inputchips.filled.background')};
|
||||
}
|
||||
|
||||
.p-inputchips:not(.p-disabled).p-focus .p-variant-filled.p-inputchips-input {
|
||||
background: ${dt('inputchips.filled.focus.background')};
|
||||
}
|
||||
|
||||
.p-inputinputchips.p-disabled .p-inputchips-input {
|
||||
opacity: 1;
|
||||
background: ${dt('inputchips.disabled.background')};
|
||||
color: ${dt('inputchips.disabled.color')};
|
||||
}
|
||||
|
||||
.p-inputchips-input-item {
|
||||
padding: 0.25rem 0;
|
||||
margin-left: 0.5rem;
|
||||
flex: 1 1 auto;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.p-inputchips-input-item input {
|
||||
border: 0 none;
|
||||
outline: 0 none;
|
||||
background: transparent;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
font-family: inherit;
|
||||
font-feature-settings: inherit;
|
||||
font-size: 1rem;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.p-inputchips-input-item input::placeholder {
|
||||
color: ${dt('inputchips.placeholder.color')};
|
||||
}
|
||||
|
||||
.p-fluid .p-inputchips {
|
||||
display: flex;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ instance, props }) => [
|
||||
'p-inputchips p-component p-inputwrapper',
|
||||
|
@ -25,5 +109,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'inputchips',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue