Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

1.6 KB
Raw Blame
// ============================================
// SSL CERTIFICATES PAGE
// ============================================
//
// The page is a ResourceListPage now, so the table chrome comes from the shared
// `.wp-list` scaffold and only the cell-level tone rules live here. The old
// stat-card row and certificate cards are gone: a KPI restating "3 expiring"
// above a table that can show exactly those three is a second, weaker copy of
// the "Expiring soon" view.

// Leading icon in the Domain cell.
.ssl-row__ico {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px; // geometry: icon tile
    flex-shrink: 0;
    border-radius: $radius-control;
    @include status-variant($success, $success-bg);

    // Same four states the Status column reports, so the row does not say
    // "healthy" on its left and "expired" on its right.
    &.is-expiring { @include status-variant($warning, $warning-bg); }
    &.is-expired { @include status-variant($danger, $danger-bg); }
    &.is-unknown { background: $bg-tertiary; color: $text-tertiary; }
}

// Expiry, coloured by urgency (tones come from formatExpiry).
.ssl-expiry {
    font-size: $text-xs;
    font-weight: $font-weight-semibold;

    &--green { color: $success; }
    &--amber { color: $warning; }
    &--red { color: $danger; }
}

.ssl-dash {
    color: $text-tertiary;
}

// Spinning icon — used well beyond this page (Servers, Deployments, backups…),
// so it stays global despite living in a page partial.

@keyframes ssl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}