feat: improve styling

This commit is contained in:
2025-08-30 15:57:25 +02:00
parent 7bac42c58e
commit dc46fc6ca2
3 changed files with 204 additions and 57 deletions

View File

@@ -229,17 +229,17 @@ p {
margin-top: 0.5rem;
}
.label-chip {
display: inline-flex;
align-items: center;
font-size: 0.75rem;
padding: 0.15rem 0.45rem;
border-radius: 9999px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: rgba(255, 255, 255, 0.9);
white-space: nowrap;
}
.label-chip {
display: inline-flex;
align-items: center;
font-size: 0.75rem;
padding: 0.25rem 0.6rem;
border-radius: 9999px;
background: rgba(30, 58, 138, 0.35);
border: 1px solid rgba(59, 130, 246, 0.4);
color: #dbeafe;
white-space: nowrap;
}
.member-card::before {
content: '';
@@ -2164,9 +2164,9 @@ p {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding-right: 0.25rem;
background: rgba(139, 92, 246, 0.15);
border: 1px solid rgba(139, 92, 246, 0.35);
padding-right: 0.35rem;
background: rgba(30, 58, 138, 0.35);
border: 1px solid rgba(59, 130, 246, 0.55);
}
.label-chip .chip-remove {
@@ -2491,12 +2491,12 @@ p {
}
.member-overlay-body .member-card .member-header {
padding: 20px 24px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 20px 24px 0px;
border-bottom: none;
}
.member-overlay-body .member-card .member-details {
padding: 20px 24px;
padding: 0px 24px;
}
/* Hide expand icon in overlay since card is always expanded */
@@ -2509,6 +2509,91 @@ p {
display: block;
}
/* Disable hover effects on topology dialog member cards */
.member-overlay-body .member-card:hover {
transform: none !important;
box-shadow: none !important;
}
.member-overlay-body .member-card::before {
display: none !important;
}
.member-overlay-body .member-card .member-header:hover {
background: none !important;
}
/* Label chips styling for overlay */
.member-overlay-body .member-labels {
margin-top: 16px;
}
/* unified with .label-chip */
.member-overlay-body .label-chip {
margin-right: 10px;
background: rgba(30, 58, 138, 0.35);
color: #dbeafe;
padding: 0.25rem 0.6rem;
border-radius: 9999px;
font-size: 0.75rem;
border: 1px solid rgba(59, 130, 246, 0.4);
font-family: inherit;
white-space: nowrap;
display: inline-flex;
}
/* Labels section styling in node details */
.detail-section {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-section-title {
color: rgba(255, 255, 255, 0.8);
font-size: 1rem;
font-weight: 600;
margin-bottom: 16px;
text-transform: capitalize;
}
/* Resource and API chips styling */
.member-resources, .member-api {
margin-top: 16px;
}
.resources-title, .api-title {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
margin-bottom: 12px;
font-weight: 500;
}
.resources-container, .api-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.resource-chip, .api-chip {
background: rgba(59, 130, 246, 0.2);
color: #60a5fa;
padding: 4px 12px;
border-radius: 16px;
font-size: 0.8rem;
border: 1px solid rgba(59, 130, 246, 0.3);
font-family: 'Courier New', monospace;
white-space: nowrap;
}
.api-chip {
background: rgba(16, 185, 129, 0.2);
color: #10b981;
border-color: rgba(16, 185, 129, 0.3);
}
/* Highlight animation for member cards */
.member-card.highlighted {
animation: highlight-pulse 2s ease-in-out;