Template:Content/styles.css: Difference between revisions

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


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


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


/* Image container (auto size, no cutting) */
/* Image container - fixed height */
.tile-top {
.tile-top {
     width: 100%;
     width: 100%;
     min-height: 100px;
     height: 100px;
     margin-bottom: 0.8em;
     margin-bottom: 0.8em;
     display: flex;
     display: flex;
Line 39: Line 40:
}
}


/* Image scaling without clipping */
/* Image scaling */
.tile-top img {
.tile-top img {
    max-height: 100%;
     max-width: 100%;
     max-width: 100%;
    height: auto;
     object-fit: contain;
     object-fit: contain;
     display: block;
     display: block;
Line 49: Line 50:
/* Label under the image */
/* Label under the image */
.tile-bottom {
.tile-bottom {
     font-size: 1.05em;
     font-size: 1em;
     font-weight: 600;
     font-weight: 500;
     color: #222;
     color: #222;
    display: block;
     width: 100%;
     width: 100%;
     text-align: center;
     text-align: center;
    background: none;
    border: none;
    padding: 0;
}
}


/* Kill all skin-inherited link styles */
/* Unstyle links */
.tile-bottom a {
.tile-bottom a {
     all: unset;
     all: unset;
     font-size: 1.05em;
     font-size: inherit;
     font-weight: 600;
     font-weight: inherit;
     color: #222;
     color: inherit;
     cursor: pointer;
     cursor: pointer;
     display: inline-block;
     display: inline-block;
Line 69: Line 72:
}
}


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


/* Mobile */
/* Mobile responsiveness */
@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;
     }
     }
}
}

Revision as of 05:58, 26 July 2025

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

/* Each tile card - same size, no borders or effects */
.tile-row > div {
    width: 180px;
    height: 220px;
    padding: 0.5em;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: none;
}

/* Remove hover effects */
.tile-row > div:hover {
    transform: none;
    box-shadow: none;
}

/* Image container - fixed height */
.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 under the image */
.tile-bottom {
    font-size: 1em;
    font-weight: 500;
    color: #222;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    padding: 0;
}

/* Unstyle links */
.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;
}

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

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