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:
/* Container for each row of tiles */
.tile-row {
.tile-row {
     display: flex;
     display: flex;
Line 8: Line 9:
}
}


/* Individual tile box */
.tile-row > div {
.tile-row > div {
     background: #fdfaf3;
     background: #fdfaf3;
Line 28: Line 30:
}
}


/* Image container with fixed height */
.tile-top {
.tile-top {
     width: 100%;
     width: 100%;
Line 38: Line 41:
}
}


/* Image itself: scale to fit inside box */
.tile-top img {
.tile-top img {
     max-height: 100%;
     max-height: 100%;
Line 45: Line 49:
}
}


/* Label under the image (clean, no border) */
.tile-bottom {
.tile-bottom {
     font-size: 1.05em;
     font-size: 1.05em;
Line 51: Line 56:
}
}


/* Clean up any link styles applied by MediaWiki */
.tile-bottom a {
.tile-bottom a {
     text-decoration: none;
    all: unset;
     border: none;
    font-weight: 600;
     color: inherit;
    font-size: 1.05em;
    color: #222;
    cursor: pointer;
    display: inline-block;
     text-align: center;
     width: 100%;
     padding-top: 0.25em;
}
 
.tile-bottom a:hover {
    text-decoration: underline;
}
}


/* Mobile responsiveness */
@media (max-width: 800px) {
@media (max-width: 800px) {
     .tile-row > div {
     .tile-row > div {

Revision as of 05:33, 26 July 2025

/* Container for each row of tiles */
.tile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin: 2em auto;
    max-width: 1200px;
}

/* Individual tile box */
.tile-row > div {
    background: #fdfaf3;
    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, box-shadow 0.2s;
}

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

/* Image container with fixed height */
.tile-top {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8em;
    overflow: hidden;
}

/* Image itself: scale to fit inside box */
.tile-top img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Label under the image (clean, no border) */
.tile-bottom {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
}

/* Clean up any link styles applied by MediaWiki */
.tile-bottom a {
    all: unset;
    font-weight: 600;
    font-size: 1.05em;
    color: #222;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    width: 100%;
    padding-top: 0.25em;
}

.tile-bottom a:hover {
    text-decoration: underline;
}

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