ice-frontend-react-mobx
Version:
ICE Frontend REACT+MobX
166 lines (157 loc) • 2.9 kB
CSS
@import 'media.css';
.zoneCard {
margin-bottom: 1rem;
background: var(--color-background);
color: var(--color-text);
position: relative;
.titleWrapper {
display: flex;
.thresholdIndicator {
margin-top: 1.2rem;
margin-left: 1rem;
transition: background 0.2s;
&.normal {
background: var(--color-success);
}
&.warning {
background: var(--color-warning);
}
&.critical {
background: var(--color-error);
}
}
.cardTitle {
h5,
p {
display: inline;
}
h5 {
margin-right: 1rem;
}
}
}
.deviceToggle {
position: absolute;
right: 1.5rem;
top: 1rem;
* {
color: var(--color-text-inverse);
}
}
.collapseWrapper {
margin-top: -6rem;
}
.phaseData {
margin-top: 1rem;
margin-bottom: 1rem;
}
.zoneData {
width: 100%;
position: relative;
margin-bottom: 1.5rem;
.limits {
padding-top: 1rem;
display: flex;
.iconWrapper {
padding-right: 2rem;
.phaseBalanceWrapper {
width: 40px;
height: 40px;
}
.rowPowerIcon {
color: var(--color-background);
background-color: var(--color-primary);
}
}
.row {
position: relative;
width: 100%;
flex-grow: 1;
height: 4.5rem;
align-items: center;
margin-bottom: 1rem;
.rowSection {
display: flex;
flex-grow: 1;
height: 3rem;
> * {
width: 33%;
height: 5rem;
}
}
}
}
}
.rackIndicatorBlock {
display: flex;
justify-content: flex-start;
.rackIndicator {
padding: 0;
margin-right: 0.5rem;
width: 2.5rem;
min-width: 0;
&.normal {
background: var(--color-success);
}
&.warning {
background: var(--color-warning);
}
&.critical {
background: var(--color-error);
}
}
}
}
@media (--lg-screen) {
.zoneCard {
.phaseData {
width: 50%;
}
.zoneData {
.limits {
.row {
display: flex;
.rowSection {
width: 50%;
}
}
}
}
.rackCards {
.rackCardWrapper {
width: 49%;
}
}
.legends {
flex-direction: row;
justify-content: space-between;
}
}
}
@media (--sm-screen) {
.zoneCard {
.phaseData {
width: 100%;
}
.zoneData {
.limits {
.row {
display: block;
.rowSection {
width: 80%;
}
}
}
}
.rackCards {
.rackCardWrapper {
width: 100%;
margin-bottom: 1rem;
}
}
.legends {
flex-direction: column;
align-content: flex-start;
}
}
}