Toggle menu
14
236
69
27.4K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
/*
 * Kenshi Wiki - Main Page Navcards
 */

/* The main grid container for all the cards */
.navcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md, 1rem);
    padding: var(--space-xl, 1.5rem) var(--space-md, 1rem);
    max-width: var(--width-layout, 1080px);
    margin: 0 auto;
}

/* The container for a single card  */
.nav-card {
    position: relative;
    border-radius: var(--border-radius-medium, 8px);
    overflow: hidden; 
    line-height: 0;
}

/* The background container holds the image  */
.nav-card__background img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

/* On hover, we now target the image directly to make it grow */
.nav-card:hover .nav-card__background img {
    transform: scale(1.05); 
}

/* The foreground container for the text label  */
.nav-card__foreground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    color: var(--color-inverted, #fff);
    padding: var(--space-sm, 0.75rem);
    text-align: center;
    line-height: 1.3;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    pointer-events: none;
}