decompose structure
This commit is contained in:
210
src/styles/dashboard/edge-card.css
Normal file
210
src/styles/dashboard/edge-card.css
Normal file
@@ -0,0 +1,210 @@
|
||||
.edge-card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 520px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 18px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.18);
|
||||
border-radius: 10px;
|
||||
background:
|
||||
radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 26%),
|
||||
linear-gradient(145deg, rgba(23, 30, 42, 0.92), rgba(4, 9, 16, 0.84)),
|
||||
var(--panel-strong);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 18px 34px rgba(0, 0, 0, 0.22);
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
transform 160ms ease,
|
||||
box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||||
0 24px 44px rgba(0, 0, 0, 0.28);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.edge-card__logo {
|
||||
flex: 0 0 auto;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid rgba(212, 165, 116, 0.22);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.edge-card__logo img {
|
||||
width: 46px;
|
||||
height: 52px;
|
||||
object-fit: contain;
|
||||
filter:
|
||||
sepia(1)
|
||||
saturate(1.25)
|
||||
hue-rotate(342deg)
|
||||
brightness(0.86)
|
||||
contrast(1.1);
|
||||
}
|
||||
|
||||
.edge-card__title {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.edge-card__title h2 {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
font-size: 1.08rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__title span {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
overflow: hidden;
|
||||
color: var(--muted);
|
||||
font-size: 0.77rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.edge-card__actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.edge-card__actions button,
|
||||
.edge-card__maintenance button {
|
||||
min-width: 0;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.24);
|
||||
color: #cbd5e1;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
border-color 160ms ease,
|
||||
background 160ms ease,
|
||||
color 160ms ease;
|
||||
}
|
||||
|
||||
.edge-card__actions button {
|
||||
min-height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
color: #b8c3d3;
|
||||
font-size: 0.76rem;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.edge-card__actions button:hover,
|
||||
.edge-card__maintenance button:hover {
|
||||
border-color: rgba(212, 165, 116, 0.42);
|
||||
background: rgba(201, 122, 61, 0.1);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.edge-card__maintenance {
|
||||
padding: 12px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(2, 6, 23, 0.2);
|
||||
}
|
||||
|
||||
.edge-card__maintenance > span {
|
||||
display: block;
|
||||
margin-bottom: 9px;
|
||||
color: var(--muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__maintenance div {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.edge-card__maintenance button {
|
||||
min-height: 34px;
|
||||
padding: 0 8px;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.edge-card__details {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 44px;
|
||||
margin-top: auto;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(212, 165, 116, 0.28);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(135deg, rgba(201, 122, 61, 0.14), rgba(212, 165, 116, 0.06)),
|
||||
rgba(201, 122, 61, 0.08);
|
||||
color: #f8fafc;
|
||||
cursor: pointer;
|
||||
font-size: 0.76rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.edge-card__details:hover {
|
||||
border-color: var(--line-strong);
|
||||
background: rgba(201, 122, 61, 0.16);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.edge-card-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.edge-card-grid {
|
||||
gap: 16px;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card {
|
||||
min-height: 0;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.edge-card__actions,
|
||||
.edge-card__maintenance div {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.edge-card__header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
116
src/styles/dashboard/layout.css
Normal file
116
src/styles/dashboard/layout.css
Normal file
@@ -0,0 +1,116 @@
|
||||
.dashboard-shell {
|
||||
width: min(1440px, 100%);
|
||||
min-height: 100vh;
|
||||
margin: 0 auto;
|
||||
padding: 26px 24px 36px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dashboard-search {
|
||||
width: min(360px, 100%);
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.dashboard-stat {
|
||||
min-height: 112px;
|
||||
padding: 16px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.16);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(145deg, rgba(17, 24, 39, 0.78), rgba(2, 6, 23, 0.62)),
|
||||
rgba(2, 6, 23, 0.38);
|
||||
}
|
||||
|
||||
.dashboard-stat span {
|
||||
display: block;
|
||||
min-height: 34px;
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.dashboard-stat strong {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.dashboard-stat--success {
|
||||
border-color: rgba(34, 197, 94, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--success strong {
|
||||
color: #86efac;
|
||||
}
|
||||
|
||||
.dashboard-stat--danger {
|
||||
border-color: rgba(239, 68, 68, 0.28);
|
||||
}
|
||||
|
||||
.dashboard-stat--danger strong {
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.dashboard-stat--warning {
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.dashboard-stat--warning strong {
|
||||
color: #facc15;
|
||||
}
|
||||
|
||||
.dashboard-stat--accent {
|
||||
border-color: rgba(212, 165, 116, 0.32);
|
||||
}
|
||||
|
||||
.dashboard-stat--accent strong {
|
||||
color: var(--accent-soft);
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dashboard-stats {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.dashboard-shell {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.dashboard-header {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dashboard-actions,
|
||||
.dashboard-search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dashboard-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user