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;
     flex-wrap: wrap;
     flex-wrap: wrap;
     justify-content: center;
     justify-content: center;
     gap: 1.5em;
     gap: 2em;
     margin: 1em auto 2em auto;
     margin: 2em auto;
     max-width: 1200px;
     max-width: 1200px;
}
}


/* Individual tile container */
.tile-row > div {
.tile-row > div {
    background: #fdfaf3; /* match beige background if needed */
    border: 1px solid #c8b68e;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
     flex: 1 1 180px;
     flex: 1 1 180px;
     max-width: 220px;
     max-width: 200px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
    text-align: center;
    transition: transform 0.2s;
}
.tile-row > div:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
}


/* Image container */
.tile-top {
.tile-top {
     text-align: center;
     margin-bottom: 0.6em;
     width: 100%;
}
 
.tile-top img {
     max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
 
.tile-bottom h2 {
    margin: 0;
    font-size: 1.05em;
    font-weight: bold;
    color: #222;
}
 
@media (max-width: 800px) {
    .tile-row > div {
        flex: 1 1 45%;
    }
}
}



Revision as of 05:24, 26 July 2025

.tile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin: 2em auto;
    max-width: 1200px;
}

.tile-row > div {
    background: #fdfaf3; /* match beige background if needed */
    border: 1px solid #c8b68e;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1 1 180px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.tile-row > div:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tile-top {
    margin-bottom: 0.6em;
}

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

.tile-bottom h2 {
    margin: 0;
    font-size: 1.05em;
    font-weight: bold;
    color: #222;
}

@media (max-width: 800px) {
    .tile-row > div {
        flex: 1 1 45%;
    }
}

/* 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%;
    }
}