Template:Content/styles.css: Difference between revisions

From Delanor Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* Wrap each group of tiles in a responsive row */
.tile-row {
.tile-row {
     display: flex;
     display: flex;
Line 8: Line 9:
}
}


/* Individual tile container */
.tile-row > div {
.tile-row > div {
     flex: 1 1 180px;
     flex: 1 1 180px;
Line 16: Line 18:
}
}


/* Image container */
.tile-top {
.tile-top {
     text-align: center;
     text-align: center;
Line 21: Line 24:
}
}


/* Title under the image */
.tile-bottom h2 {
.tile-bottom h2 {
     margin: 0.4em 0 0;
     margin: 0.4em 0 0;
Line 27: Line 31:
}
}


/* Prevent large images from overflowing their tile */
.tile-top img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* Responsive behavior for mobile */
@media (max-width: 800px) {
@media (max-width: 800px) {
     .tile-row {
     .tile-row {

Revision as of 05:23, 26 July 2025

/* Wrap each group of tiles in a responsive row */
.tile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    margin: 1em auto 2em auto;
    max-width: 1200px;
}

/* Individual tile container */
.tile-row > div {
    flex: 1 1 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image container */
.tile-top {
    text-align: center;
    width: 100%;
}

/* Title under the image */
.tile-bottom h2 {
    margin: 0.4em 0 0;
    text-align: center;
    font-size: 1.1em;
}

/* Prevent large images from overflowing their tile */
.tile-top img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Responsive behavior for mobile */
@media (max-width: 800px) {
    .tile-row {
        gap: 1em;
    }
    .tile-row > div {
        flex: 1 1 45%;
    }
}