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.

2.2 KB
Raw Blame
.contribution-graph-container {
    padding: $space-4;
    background: $bg-card;
    border: 1px solid $border-default;
    border-radius: $radius-control;
    margin-bottom: $space-6;

    .graph-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: $space-4;

        h4 {
            margin: 0;
            font-size: $text-md;
            font-weight: $font-weight-semibold;

            .username {
                color: $accent-primary;
                margin-left: $space-2;
                font-weight: $font-weight-medium;
            }
        }

        .graph-legend {
            display: flex;
            align-items: center;
            gap: $space-2;
            font-size: $text-xs;
            color: $text-tertiary;

            .legend-cells {
                display: flex;
                gap: $space-hair;

                .cell {
                    width: 10px;
                    height: 10px;
                    border-radius: $radius-badge;
                }
            }
        }
    }

    .graph-grid-wrapper {
        overflow-x: auto;
        padding-bottom: $space-2;

        &::-webkit-scrollbar {
            height: 6px;
        }
        &::-webkit-scrollbar-track {
            background: transparent;
        }
        &::-webkit-scrollbar-thumb {
            background: $bg-hover;
            border-radius: $radius-full;
        }
    }

    .graph-grid {
        display: flex;
        gap: $space-1;
        min-width: fit-content;
    }

    .graph-week {
        display: flex;
        flex-direction: column;
        gap: $space-1;
    }

    .graph-cell {
        width: 12px;
        height: 12px;
        border-radius: $radius-badge;
        transition: transform 0.1s ease;

        &:hover {
            transform: scale(1.2);
            z-index: 10;
        }
    }

    .level-0 { background-color: $bg-hover; }
    .level-1 { background-color: fade($accent-primary-raw, 30%); }
    .level-2 { background-color: fade($accent-primary-raw, 55%); }
    .level-3 { background-color: fade($accent-primary-raw, 80%); }
    .level-4 { background-color: $accent-primary; }
}