mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5203 - MeterGroup Refactor
This commit is contained in:
parent
ed82bfd238
commit
9a29cbc990
87 changed files with 2007 additions and 1792 deletions
|
@ -3,48 +3,40 @@ import BaseStyle from 'primevue/base/style';
|
|||
const css = `
|
||||
@layer primevue {
|
||||
.p-metergroup {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.p-metergroup-vertical.p-metergroup {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.p-metergroup-vertical .p-metergroup-meter-container {
|
||||
.p-metergroup-meters {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.p-metergroup-vertical .p-metergroup-meters {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.p-metergroup-meter-container {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.p-metergroup-label-list {
|
||||
.p-metergroup-labels {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.p-metergroup-vertical .p-metergroup-label-list {
|
||||
.p-metergroup-vertical .p-metergroup-labels {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.p-metergroup-horizontal .p-metergroup-label-list-vertical {
|
||||
.p-metergroup-labels-vertical {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.p-metergroup-vertical .p-metergroup-label-list-horizontal {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.p-metergroup-label-list-item {
|
||||
.p-metergroup-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.p-metergroup-label-type {
|
||||
display: inline-block;
|
||||
.p-metergroup-label-marker {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -57,22 +49,19 @@ const classes = {
|
|||
'p-metergroup-vertical': props.orientation === 'vertical'
|
||||
}
|
||||
],
|
||||
metercontainer: 'p-metergroup-meter-container',
|
||||
metercontainer: 'p-metergroup-meters',
|
||||
meter: 'p-metergroup-meter',
|
||||
labellist: ({ props }) => [
|
||||
'p-metergroup-label-list',
|
||||
|
||||
'p-metergroup-labels',
|
||||
{
|
||||
'p-metergroup-label-list-start': props.labelPosition === 'start',
|
||||
'p-metergroup-label-list-end': props.labelPosition === 'end',
|
||||
'p-metergroup-label-list-vertical': props.labelOrientation === 'vertical',
|
||||
'p-metergroup-label-list-horizontal': props.labelOrientation === 'horizontal'
|
||||
'p-metergroup-labels-vertical': props.labelOrientation === 'vertical',
|
||||
'p-metergroup-labels-horizontal': props.labelOrientation === 'horizontal'
|
||||
}
|
||||
],
|
||||
labellistitem: 'p-metergroup-label-list-item',
|
||||
labellistitem: 'p-metergroup-label',
|
||||
labelicon: 'p-metergroup-label-icon',
|
||||
labellisttype: 'p-metergroup-label-type',
|
||||
label: 'p-metergroup-label'
|
||||
labellisttype: 'p-metergroup-label-marker',
|
||||
label: 'p-metergroup-label-text'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue