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,10 +1,112 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-inputgroup {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.p-inputgroup-addon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
background: ${dt('inputgroup.addon.background')};
|
||||
color: ${dt('inputgroup.addon.color')};
|
||||
border-top: 1px solid ${dt('inputgroup.addon.border.color')};
|
||||
border-left: 1px solid ${dt('inputgroup.addon.border.color')};
|
||||
border-bottom: 1px solid ${dt('inputgroup.addon.border.color')};
|
||||
padding: 0.5rem 0.75rem;
|
||||
min-width: 2.5rem;
|
||||
}
|
||||
|
||||
.p-inputgroup .p-float-label {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.p-inputgroup .p-inputtext,
|
||||
.p-fluid .p-inputgroup .p-inputtext,
|
||||
.p-inputgroup .p-inputwrapper,
|
||||
.p-fluid .p-inputgroup .p-input {
|
||||
flex: 1 1 auto;
|
||||
width: 1%;
|
||||
}
|
||||
|
||||
.p-inputgroup-addon:last-child {
|
||||
border-right: 1px solid ${dt('inputgroup.addon.border.color')};
|
||||
}
|
||||
|
||||
.p-inputgroup > .p-component,
|
||||
.p-inputgroup > .p-inputwrapper > .p-inputtext,
|
||||
.p-inputgroup > .p-float-label > .p-component {
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.p-inputgroup > .p-component + .p-inputgroup-addon,
|
||||
.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,
|
||||
.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {
|
||||
border-left: 0 none;
|
||||
}
|
||||
|
||||
.p-inputgroup > .p-component:focus,
|
||||
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,
|
||||
.p-inputgroup > .p-float-label > .p-component:focus {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.p-inputgroup > .p-component:focus ~ label,
|
||||
.p-inputgroup > .p-inputwrapper > .p-inputtext:focus~label,
|
||||
.p-inputgroup > .p-float-label > .p-component:focus~label {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.p-inputgroup-addon:first-child,
|
||||
.p-inputgroup button:first-child,
|
||||
.p-inputgroup input:first-child,
|
||||
.p-inputgroup > .p-inputwrapper:first-child,
|
||||
.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {
|
||||
border-top-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
}
|
||||
|
||||
.p-inputgroup .p-float-label:first-child input {
|
||||
border-top-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
}
|
||||
|
||||
.p-inputgroup-addon:last-child,
|
||||
.p-inputgroup button:last-child,
|
||||
.p-inputgroup input:last-child,
|
||||
.p-inputgroup > .p-inputwrapper:last-child,
|
||||
.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.p-inputgroup .p-float-label:last-child input {
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.p-fluid .p-inputgroup .p-button {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.p-fluid .p-inputgroup .p-button.p-button-icon-only {
|
||||
width: 2.5rem;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: 'p-inputgroup'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'inputgroup',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue