2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-metergroup {
|
|
|
|
display: flex;
|
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-meters {
|
|
|
|
display: flex;
|
2024-04-01 08:46:59 +00:00
|
|
|
background: ${dt('metergroup.meters.background')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-meter {
|
|
|
|
border: 0 none;
|
|
|
|
}
|
|
|
|
|
2024-04-08 11:13:22 +00:00
|
|
|
.p-metergroup-label-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-label {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-label-marker {
|
|
|
|
display: inline-flex;
|
|
|
|
width: 0.5rem;
|
|
|
|
height: 0.5rem;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-label-icon {
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-horizontal {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2024-04-08 11:13:22 +00:00
|
|
|
.p-metergroup-label-list-horizontal {
|
2024-02-19 22:53:42 +00:00
|
|
|
gap: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-horizontal .p-metergroup-meters {
|
|
|
|
height: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-horizontal .p-metergroup-meter:first-of-type {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-left-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-metergroup-horizontal .p-metergroup-meter:last-of-type {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-right-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-vertical {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-04-08 11:13:22 +00:00
|
|
|
.p-metergroup-label-list-vertical {
|
2024-02-19 22:53:42 +00:00
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-vertical .p-metergroup-meters {
|
|
|
|
flex-direction: column;
|
|
|
|
width: 0.5rem;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2024-04-08 11:13:22 +00:00
|
|
|
.p-metergroup-vertical .p-metergroup-label-list {
|
2024-02-19 22:53:42 +00:00
|
|
|
align-items: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-metergroup-vertical .p-metergroup-meter:first-of-type {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-top-left-radius: ${dt('rounded.base')};
|
|
|
|
border-top-right-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
.p-metergroup-vertical .p-metergroup-meter:last-of-type {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-bottom-left-radius: ${dt('rounded.base')};
|
|
|
|
border-bottom-right-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|