agmission/Development/client/src/app/dashboard/components/operations-today/operations-today.component.scss

112 lines
2.2 KiB
SCSS

.operations-today-strip {
background: #fff;
border-radius: 20px;
box-shadow: 0 2px 8px 0 rgba(44,62,80,0.06), 0 1.5px 4px 0 rgba(44,62,80,0.03);
padding: 2rem 2.5rem 1.5rem 2.5rem;
.row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 0;
}
.metric {
flex: 1 1 0;
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 0;
padding: 0 1.5rem;
box-sizing: border-box;
.icon {
font-size: 1.3rem;
color: #232a2f;
margin-bottom: 0.2rem;
display: inline-block;
}
.label {
font-size: 0.9rem;
color: #6b7680;
margin-bottom: 0.5rem;
font-weight: 500;
display: block;
}
.value {
font-size: 1.6rem;
font-weight: 700;
color: #1a211c;
margin-bottom: 0.2rem;
display: block;
letter-spacing: -0.01em;
}
}
.title-metric {
align-items: flex-start;
justify-content: center;
.operations-today-title {
font-size: 1.3rem;
font-weight: 600;
color: #1a211c;
letter-spacing: 0.01em;
margin-bottom: 0;
text-align: left;
}
}
}
// Tablet ≤1024px
@media (max-width: 1024px) {
.operations-today-strip {
padding: 1.5rem 2rem;
.metric .value { font-size: 1.45rem; }
}
}
// Mobile ≤768px
@media (max-width: 768px) {
.operations-today-strip {
padding: 1.25rem 1.5rem;
.row {
flex-wrap: wrap;
gap: 0.75rem;
}
.title-metric {
flex: 1 1 100%;
padding: 0;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 0.5rem;
margin-bottom: 0;
.operations-today-title { font-size: 0.95rem; }
}
.metric {
flex: 1 1 0;
padding: 0 0.5rem;
.icon { font-size: 1.1rem; }
.label { font-size: 0.8rem; margin-bottom: 0.25rem; }
.value { font-size: 1.35rem; }
}
}
}
// Small mobile ≤480px
@media (max-width: 480px) {
.operations-today-strip {
padding: 1rem;
border-radius: 16px;
.metric {
padding: 0 0.25rem;
.label { font-size: 0.75rem; }
.value { font-size: 1.2rem; }
}
}
}