primevue-mirror/components/lib/themes/primeone/base/chips/index.js

86 lines
2.0 KiB
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
2024-04-07 08:12:56 +00:00
.p-inputchips {
display: inline-flex;
}
2024-04-07 08:12:56 +00:00
.p-inputchips-group {
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;
2024-03-13 18:50:24 +00:00
color: ${dt('chips.color')};
background: ${dt('chips.background')};
border: 1px solid ${dt('chips.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;
2024-03-13 18:50:24 +00:00
box-shadow: ${dt('chips.box.shadow')};
}
2024-04-07 08:12:56 +00:00
.p-inputchips:not(.p-disabled):hover .p-inputchips-group {
2024-03-13 18:50:24 +00:00
border-color: ${dt('chips.hover.border.color')};
}
2024-04-07 08:12:56 +00:00
.p-inputchips:not(.p-disabled).p-focus .p-inputchips-group {
2024-03-13 18:50:24 +00:00
border-color: ${dt('chips.focus.border.color')};
outline: 0 none;
}
2024-04-07 08:12:56 +00:00
.p-inputchips.p-invalid .p-inputchips-group {
2024-03-13 18:50:24 +00:00
border-color: ${dt('chips.invalid.border.color')};
}
2024-04-07 08:12:56 +00:00
.p-variant-filled.p-inputchips-group {
2024-03-13 18:50:24 +00:00
background: ${dt('chips.filled.background')};
}
2024-04-07 08:12:56 +00:00
.p-inputchips:not(.p-disabled).p-focus .p-variant-filled.p-inputchips-group {
2024-03-13 18:50:24 +00:00
background: ${dt('chips.filled.focus.background')};
}
2024-04-07 08:12:56 +00:00
.p-inputchips.p-disabled .p-inputchips-group {
opacity: 1;
2024-03-13 18:50:24 +00:00
background: ${dt('chips.disabled.background')};
color: ${dt('chips.disabled.color')};
}
2024-04-07 08:12:56 +00:00
.p-inputchips-input-item {
padding: 0.25rem 0;
margin-left: 0.5rem;
2024-04-06 20:24:27 +00:00
flex: 1 1 auto;
display: inline-flex;
}
2024-04-07 08:12:56 +00:00
.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;
}
2024-04-07 08:12:56 +00:00
.p-inputchips-input-item input::placeholder {
2024-03-13 18:50:24 +00:00
color: ${dt('chips.placeholder.color')};
}
2024-04-07 08:12:56 +00:00
.p-fluid .p-inputchips {
display: flex;
}
`
};