Template:Content/styles.css

From Delanor Wiki
Jump to navigation Jump to search
.tile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin: 2em auto;
    max-width: 1200px;
}

/* Tile container */
.tile {
    width: 180px;
    min-height: 240px;
    padding: 0.5em;
    background: #fdfaf3;
    border: 1px solid #c8b68e;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    overflow: hidden;
}

.tile:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image container */
.tile-top {
    width: 100%;
    flex-grow: 1; /* Expand to fill available vertical space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    box-sizing: border-box;
    overflow: hidden;
}

/* Images inside the tile */
.tile-top img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Label under the image */
.tile-bottom {
    font-size: 1em;
    font-weight: 500;
    color: #222;
    text-align: center;
    width: 100%;
    padding: 0.5em 0 0.3em 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
    background: none;
}

/* Remove skin styles from links */
.tile-bottom a,
.tile-top a {
    all: unset;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* Optional underline effect */
.tile-bottom a:hover,
.tile-top a:hover {
    text-decoration: underline;
    color: #000;
}

/* Mobile responsiveness */
@media (max-width: 800px) {
    .tile {
        width: 45%;
        min-height: auto;
    }

}