Template:Content/styles.css: Difference between revisions

From Delanor Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
}
}


/* Each tile card - same size, no borders or effects */
/* Each tile card (image + text container) */
.tile-row > div {
.tile-row > div {
     width: 180px;
     width: 180px;
     height: 220px;
     height: 220px;
     padding: 0.5em;
     padding: 0.5em;
     background: none;
     background: #fdfaf3;
     border: none;
     border: 1px solid #c8b68e; /* ✅ Visible border around the whole tile */
     border-radius: 0;
     border-radius: 6px;
     box-shadow: none;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* optional soft shadow */
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
     text-align: center;
     text-align: center;
     transition: none;
     transition: transform 0.2s;
}
}


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


/* Image container - fixed height */
/* Image container */
.tile-top {
.tile-top {
     width: 100%;
     width: 100%;
Line 48: Line 47:
}
}


/* Label under the image */
/* Label styling */
.tile-bottom {
.tile-bottom {
     font-size: 1em;
     font-size: 1em;
Line 60: Line 59:
}
}


/* Unstyle links */
/* Remove MediaWiki default link styles */
.tile-bottom a {
.tile-bottom a {
     all: unset;
     all: unset;
Line 72: Line 71:
}
}


/* Optional hover for links only */
.tile-bottom a:hover {
.tile-bottom a:hover {
     text-decoration: underline;
     text-decoration: underline;
}
}


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

Revision as of 06:00, 26 July 2025

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

/* Each tile card (image + text container) */
.tile-row > div {
    width: 180px;
    height: 220px;
    padding: 0.5em;
    background: #fdfaf3;
    border: 1px solid #c8b68e;  /* ✅ Visible border around the whole tile */
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* optional soft shadow */
    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 12px rgba(0, 0, 0, 0.1);
}

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

/* Image scaling */
.tile-top img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Label styling */
.tile-bottom {
    font-size: 1em;
    font-weight: 500;
    color: #222;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
}

/* Remove MediaWiki default link styles */
.tile-bottom a {
    all: unset;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

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

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