159 lines
2.8 KiB
SCSS
Executable File
159 lines
2.8 KiB
SCSS
Executable File
@import "../vars";
|
|
|
|
.PatientCard {
|
|
display: block;
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
height: auto;
|
|
margin-bottom: 16px;
|
|
|
|
border-radius: 16px;
|
|
box-shadow: 0px 3px 24px 0px rgba(0, 0, 0, 0.2);
|
|
color: #fff;
|
|
|
|
@include button;
|
|
|
|
transition: filter 0.2s;
|
|
|
|
&:active {
|
|
filter: brightness(120%);
|
|
}
|
|
|
|
&.unoccupied {
|
|
background-color: #5c6f78;
|
|
background: linear-gradient(-20deg, #2a373e, #6f8f9e);
|
|
|
|
.PatientCard-statusText { opacity: 0.6; }
|
|
}
|
|
|
|
&.disabled {
|
|
background-color: #5c6f78;
|
|
background: linear-gradient(-20deg, #0e1a25, #202b31);
|
|
|
|
.PatientCard-topSegment { opacity: 0.5; }
|
|
.PatientCard-statusText { opacity: 0.3; }
|
|
}
|
|
|
|
&.satisfied {
|
|
background-color: #558b2f;
|
|
background: linear-gradient(-20deg, #1B5E20, #8BC34A);
|
|
}
|
|
|
|
&.pending_discharge {
|
|
background-color: #a82c45;
|
|
background: linear-gradient(-20deg, #7b061c, #f43662);
|
|
|
|
.PatientCard-statusText { font-weight: 700; }
|
|
}
|
|
|
|
&.needs_attention {
|
|
background-color: #eb762d;
|
|
background: linear-gradient(-20deg, #dc4212, #ffa31b);
|
|
|
|
.status { opacity: 1; }
|
|
}
|
|
|
|
&.message {
|
|
background-color: #9234cf;
|
|
background: linear-gradient(-20deg, #4f11b3, #cd2ce8);
|
|
|
|
.PatientCard-statusText { font-weight: 700; }
|
|
}
|
|
|
|
&.to_clean {
|
|
background-color: #397fb5;
|
|
background: linear-gradient(-20deg, #044390, #50b1d6);
|
|
|
|
.PatientCard-statusText { font-weight: 700; }
|
|
}
|
|
}
|
|
|
|
.PatientCard-content {
|
|
position: relative;
|
|
padding: 8px;
|
|
}
|
|
|
|
.PatientCard-bedNumber {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
width: 36px;
|
|
height: 36px;
|
|
margin: 0;
|
|
padding: 9px 0px;
|
|
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
background-color: rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.PatientCard-statusText {
|
|
padding: 0px 0px 0px 48px;
|
|
margin: 9px 0px;
|
|
opacity: 0.8;
|
|
font-family: "Roboto", sans-serif;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.PatientCard-topSegment {
|
|
height: 56px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
overflow: hidden;
|
|
|
|
&::after {
|
|
content: " ";
|
|
position: absolute;
|
|
left: 8px;
|
|
top: 3px;
|
|
|
|
width: 64px;
|
|
height: 64px;
|
|
display: block;
|
|
background-image: url('/res/bed.svg');
|
|
background-size: 64px 64px;
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
.PatientCard-statusIcon {
|
|
display: inline-block;
|
|
margin-left: 8px;
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
border-radius: 50%;
|
|
background-size: 24px 24px;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
|
|
&.message {
|
|
background-image: url('/res/message.svg');
|
|
}
|
|
|
|
&.consult {
|
|
background-image: url('/res/consultation.svg');
|
|
}
|
|
|
|
&.bloodwork {
|
|
background-image: url('/res/bloodwork.svg');
|
|
}
|
|
|
|
&.imaging {
|
|
background-image: url('/res/imaging.svg');
|
|
}
|
|
|
|
&.sent {
|
|
filter: grayscale(100%) brightness(1000%);
|
|
opacity: 0.8;
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
}
|
|
|
|
.PatientCard-statusIconsWrap {
|
|
text-align: right;
|
|
padding: 8px 8px;
|
|
}
|