Halve the height of vital cards to ultra-slim horizontal telemetry bars with nested layout to perfectly fit dashboard iframe widgets
This commit is contained in:
@@ -385,7 +385,7 @@
|
||||
.vitals-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@@ -397,23 +397,22 @@
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 1px 2px rgba(0, 0, 0, 0.02),
|
||||
0 2px 4px rgba(0, 0, 0, 0.03);
|
||||
0 1px 3px rgba(0, 0, 0, 0.01),
|
||||
0 2px 4px rgba(0, 0, 0, 0.02);
|
||||
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"header header"
|
||||
"value waveform";
|
||||
grid-template-columns: 80px 1fr;
|
||||
grid-template-rows: auto 26px;
|
||||
gap: 4px 8px;
|
||||
grid-template-areas: "header value waveform";
|
||||
grid-template-columns: 85px 65px 1fr;
|
||||
grid-template-rows: 32px;
|
||||
align-items: center;
|
||||
gap: 0 8px;
|
||||
}
|
||||
|
||||
.vital-card:hover {
|
||||
background: var(--bg-card-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow:
|
||||
0 4px 8px -3px rgba(0, 0, 0, 0.04),
|
||||
0 4px 8px -2px rgba(0, 0, 0, 0.04),
|
||||
0 0 0 1px rgba(0, 0, 0, 0.01);
|
||||
}
|
||||
|
||||
@@ -465,52 +464,40 @@
|
||||
.vital-card.map-card::after { background: radial-gradient(circle, var(--map-glow), transparent 70%); }
|
||||
|
||||
.vital-card.has-value::after {
|
||||
opacity: 0.2;
|
||||
opacity: 0.15;
|
||||
}
|
||||
|
||||
.vital-card.has-value:hover::after {
|
||||
opacity: 0.35;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
grid-area: header;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-bottom: 0px;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.card-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 10px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.vital-card.hr .card-icon { background: rgba(220, 38, 38, 0.05); }
|
||||
.vital-card.spo2 .card-icon { background: rgba(8, 145, 178, 0.05); }
|
||||
.vital-card.bp .card-icon { background: rgba(124, 58, 237, 0.05); }
|
||||
.vital-card.rr .card-icon { background: rgba(22, 163, 74, 0.05); }
|
||||
.vital-card.temp .card-icon { background: rgba(234, 88, 12, 0.05); }
|
||||
.vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); }
|
||||
|
||||
.card-name {
|
||||
font-size: 9px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
|
||||
.vital-card.hr .card-name { color: var(--hr-color); }
|
||||
@@ -521,48 +508,7 @@
|
||||
.vital-card.map-card .card-name { color: var(--map-color); }
|
||||
|
||||
.status-badge {
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.status-badge.normal {
|
||||
background: rgba(22, 163, 74, 0.05);
|
||||
color: var(--status-ok);
|
||||
border: 1px solid rgba(22, 163, 74, 0.08);
|
||||
}
|
||||
|
||||
.status-badge.warning {
|
||||
background: rgba(202, 138, 4, 0.05);
|
||||
color: var(--status-warn);
|
||||
border: 1px solid rgba(202, 138, 4, 0.08);
|
||||
animation: warningFlash 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.status-badge.critical {
|
||||
background: rgba(220, 38, 38, 0.05);
|
||||
color: var(--status-critical);
|
||||
border: 1px solid rgba(220, 38, 38, 0.08);
|
||||
animation: criticalFlash 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.status-badge.offline {
|
||||
background: rgba(100, 116, 139, 0.03);
|
||||
color: var(--status-offline);
|
||||
border: 1px solid rgba(100, 116, 139, 0.06);
|
||||
}
|
||||
|
||||
@keyframes warningFlash {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
@keyframes criticalFlash {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* === Vital Value Display === */
|
||||
@@ -578,10 +524,10 @@
|
||||
|
||||
.vital-value {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 22px;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.3px;
|
||||
letter-spacing: -0.5px;
|
||||
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
@@ -608,7 +554,7 @@
|
||||
}
|
||||
|
||||
.vital-value .slash {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
opacity: 0.3;
|
||||
margin: 0;
|
||||
color: var(--text-secondary);
|
||||
@@ -620,14 +566,14 @@
|
||||
}
|
||||
|
||||
@keyframes valueFlash {
|
||||
0% { transform: scale(1.03); filter: brightness(1.1); }
|
||||
0% { transform: scale(1.02); filter: brightness(1.08); }
|
||||
100% { transform: scale(1); filter: brightness(1); }
|
||||
}
|
||||
|
||||
/* === Waveform Canvas === */
|
||||
.waveform-container {
|
||||
grid-area: waveform;
|
||||
height: 100%;
|
||||
height: 32px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
@@ -641,7 +587,7 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* === Normal Range Footer (Hidden for compact bedside mode) === */
|
||||
/* === Normal Range Footer === */
|
||||
.card-footer {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@
|
||||
.vitals-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@@ -397,23 +397,22 @@
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
0 1px 2px rgba(0, 0, 0, 0.02),
|
||||
0 2px 4px rgba(0, 0, 0, 0.03);
|
||||
0 1px 3px rgba(0, 0, 0, 0.01),
|
||||
0 2px 4px rgba(0, 0, 0, 0.02);
|
||||
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"header header"
|
||||
"value waveform";
|
||||
grid-template-columns: 80px 1fr;
|
||||
grid-template-rows: auto 26px;
|
||||
gap: 4px 8px;
|
||||
grid-template-areas: "header value waveform";
|
||||
grid-template-columns: 85px 65px 1fr;
|
||||
grid-template-rows: 32px;
|
||||
align-items: center;
|
||||
gap: 0 8px;
|
||||
}
|
||||
|
||||
.vital-card:hover {
|
||||
background: var(--bg-card-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow:
|
||||
0 4px 8px -3px rgba(0, 0, 0, 0.04),
|
||||
0 4px 8px -2px rgba(0, 0, 0, 0.04),
|
||||
0 0 0 1px rgba(0, 0, 0, 0.01);
|
||||
}
|
||||
|
||||
@@ -465,52 +464,40 @@
|
||||
.vital-card.map-card::after { background: radial-gradient(circle, var(--map-glow), transparent 70%); }
|
||||
|
||||
.vital-card.has-value::after {
|
||||
opacity: 0.2;
|
||||
opacity: 0.15;
|
||||
}
|
||||
|
||||
.vital-card.has-value:hover::after {
|
||||
opacity: 0.35;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
grid-area: header;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-bottom: 0px;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.card-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 10px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.vital-card.hr .card-icon { background: rgba(220, 38, 38, 0.05); }
|
||||
.vital-card.spo2 .card-icon { background: rgba(8, 145, 178, 0.05); }
|
||||
.vital-card.bp .card-icon { background: rgba(124, 58, 237, 0.05); }
|
||||
.vital-card.rr .card-icon { background: rgba(22, 163, 74, 0.05); }
|
||||
.vital-card.temp .card-icon { background: rgba(234, 88, 12, 0.05); }
|
||||
.vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); }
|
||||
|
||||
.card-name {
|
||||
font-size: 9px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
letter-spacing: 0.3px;
|
||||
}
|
||||
|
||||
.vital-card.hr .card-name { color: var(--hr-color); }
|
||||
@@ -521,48 +508,7 @@
|
||||
.vital-card.map-card .card-name { color: var(--map-color); }
|
||||
|
||||
.status-badge {
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
|
||||
.status-badge.normal {
|
||||
background: rgba(22, 163, 74, 0.05);
|
||||
color: var(--status-ok);
|
||||
border: 1px solid rgba(22, 163, 74, 0.08);
|
||||
}
|
||||
|
||||
.status-badge.warning {
|
||||
background: rgba(202, 138, 4, 0.05);
|
||||
color: var(--status-warn);
|
||||
border: 1px solid rgba(202, 138, 4, 0.08);
|
||||
animation: warningFlash 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.status-badge.critical {
|
||||
background: rgba(220, 38, 38, 0.05);
|
||||
color: var(--status-critical);
|
||||
border: 1px solid rgba(220, 38, 38, 0.08);
|
||||
animation: criticalFlash 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.status-badge.offline {
|
||||
background: rgba(100, 116, 139, 0.03);
|
||||
color: var(--status-offline);
|
||||
border: 1px solid rgba(100, 116, 139, 0.06);
|
||||
}
|
||||
|
||||
@keyframes warningFlash {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.6; }
|
||||
}
|
||||
|
||||
@keyframes criticalFlash {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* === Vital Value Display === */
|
||||
@@ -578,10 +524,10 @@
|
||||
|
||||
.vital-value {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 22px;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.3px;
|
||||
letter-spacing: -0.5px;
|
||||
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
@@ -608,7 +554,7 @@
|
||||
}
|
||||
|
||||
.vital-value .slash {
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
opacity: 0.3;
|
||||
margin: 0;
|
||||
color: var(--text-secondary);
|
||||
@@ -620,14 +566,14 @@
|
||||
}
|
||||
|
||||
@keyframes valueFlash {
|
||||
0% { transform: scale(1.03); filter: brightness(1.1); }
|
||||
0% { transform: scale(1.02); filter: brightness(1.08); }
|
||||
100% { transform: scale(1); filter: brightness(1); }
|
||||
}
|
||||
|
||||
/* === Waveform Canvas === */
|
||||
.waveform-container {
|
||||
grid-area: waveform;
|
||||
height: 100%;
|
||||
height: 32px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
@@ -641,7 +587,7 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* === Normal Range Footer (Hidden for compact bedside mode) === */
|
||||
/* === Normal Range Footer === */
|
||||
.card-footer {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user