Initial commit of the Mado Motor admin dashboard.
This commit is contained in:
@@ -0,0 +1,441 @@
|
||||
.list-page {
|
||||
padding-top: 24px;
|
||||
padding-bottom: 88px;
|
||||
}
|
||||
|
||||
.list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.list-row {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 4px;
|
||||
border-bottom: 1px solid #efefef;
|
||||
}
|
||||
|
||||
.list-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.order-row {
|
||||
grid-template-columns: 1.4fr 1.2fr 0.7fr auto;
|
||||
}
|
||||
|
||||
.order-card {
|
||||
display: grid;
|
||||
grid-template-columns: 1.3fr 1.2fr auto auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid #e6e6e6;
|
||||
border-right: 3px solid var(--color-primary);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.order-card__id,
|
||||
.order-card__customer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.order-card__meta {
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.order-card__meta span {
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.order-card__date,
|
||||
.order-card__mobile {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.order-card__customer strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.order-card__items {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.order-row__id {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.order-row__id-num {
|
||||
font-size: 34px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
line-height: 1;
|
||||
min-width: 48px;
|
||||
}
|
||||
|
||||
.order-row__meta {
|
||||
font-size: 13px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.order-row__date {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
.order-row__customer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.order-row__customer strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.order-row__customer span {
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
.order-row__count {
|
||||
text-align: center;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.order-row__count strong {
|
||||
display: block;
|
||||
font-size: 30px;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.order-row__count span {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.order-row__actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.icon-action {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.icon-action svg {
|
||||
stroke-width: 2.2;
|
||||
}
|
||||
|
||||
.icon-action:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.icon-action--red {
|
||||
background: #fce4ec;
|
||||
color: #e91e63;
|
||||
}
|
||||
|
||||
.icon-action--red:hover {
|
||||
background: #f8bbd0;
|
||||
}
|
||||
|
||||
.icon-action--blue {
|
||||
background: #e3f2fd;
|
||||
color: #1565c0;
|
||||
}
|
||||
|
||||
.icon-action--blue:hover {
|
||||
background: #bbdefb;
|
||||
}
|
||||
|
||||
.icon-action--orange {
|
||||
background: #fff3e0;
|
||||
color: #ef6c00;
|
||||
}
|
||||
|
||||
.icon-action--orange:hover {
|
||||
background: #ffe0b2;
|
||||
}
|
||||
|
||||
.icon-action--teal {
|
||||
background: #e0f7fa;
|
||||
color: #00838f;
|
||||
}
|
||||
|
||||
.icon-action--teal:hover {
|
||||
background: #b2ebf2;
|
||||
}
|
||||
|
||||
.filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: end;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 16px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.filters__label {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.product-row,
|
||||
.simple-row {
|
||||
grid-template-columns: 1.5fr 1fr 1fr auto;
|
||||
}
|
||||
|
||||
.customer-list {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.customer-card {
|
||||
display: grid;
|
||||
grid-template-columns: 1.6fr 1fr 1fr auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.customer-card__info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.customer-card__info strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.customer-card__mobile {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.customer-card__city {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.customer-card__orders {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
justify-self: stretch;
|
||||
}
|
||||
|
||||
.order-chip {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: max-content;
|
||||
padding: 6px 16px;
|
||||
border-radius: 24px;
|
||||
background: #e3f2fd;
|
||||
color: #1976d2;
|
||||
line-height: 1.15;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.order-chip__count {
|
||||
font-size: 36px;
|
||||
font-weight: 400;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.order-chip__label {
|
||||
font-size: 13px;
|
||||
line-height: 1.2;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.request-card {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr 1.2fr 1.6fr auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.request-card--active {
|
||||
grid-template-columns: auto 1.2fr 1.8fr auto;
|
||||
}
|
||||
|
||||
.request-card--call {
|
||||
grid-template-columns: auto 1.2fr 1.4fr auto;
|
||||
}
|
||||
|
||||
.request-card__index {
|
||||
font-size: 34px;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
line-height: 1;
|
||||
min-width: 28px;
|
||||
}
|
||||
|
||||
.request-card__id,
|
||||
.request-card__person {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.request-card__id-label {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.request-card__id-label span {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.request-card__date,
|
||||
.request-card__mobile {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.request-card__person strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.request-card__place {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.place-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
max-width: 100%;
|
||||
width: max-content;
|
||||
padding: 8px 14px;
|
||||
border-radius: 8px;
|
||||
background: #e3f2fd;
|
||||
color: #1976d2;
|
||||
}
|
||||
|
||||
.place-chip strong {
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.place-chip span {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
.product-row strong,
|
||||
.simple-row strong {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.product-row .en,
|
||||
.simple-row .muted {
|
||||
font-size: 12px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
background: #eef5ff;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.badge--pending {
|
||||
background: #fff4e5;
|
||||
color: #c47a00;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: 40px 0;
|
||||
text-align: center;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
.login__error {
|
||||
color: #d32f2f;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.form-grid .full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.order-row,
|
||||
.product-row,
|
||||
.simple-row,
|
||||
.customer-card,
|
||||
.request-card,
|
||||
.order-card {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.order-row__actions,
|
||||
.list-row .order-row__actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user