Template:Content/styles.css: Difference between revisions

From Delanor Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Row layout for tiles */
.tile-row {
.tile-row {
     display: flex;
     display: flex;
Line 8: Line 9:
}
}


/* Each tile card */
/* Each tile (wrapped in a wiki link) */
.tile-row > div {
.tile {
     background: #fdfaf3;
     background: #fdfaf3;
     border: 1px solid #c8b68e;
     border: 1px solid #c8b68e;
Line 21: Line 22:
     align-items: center;
     align-items: center;
     text-align: center;
     text-align: center;
    text-decoration: none;
    color: #222;
     transition: transform 0.2s, box-shadow 0.2s;
     transition: transform 0.2s, box-shadow 0.2s;
}
}


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


/* Image container (auto size, no cutting) */
/* Image inside tile */
.tile-top {
.tile img {
    width: 100%;
    min-height: 100px;
    margin-bottom: 0.8em;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
/* Image scaling without clipping */
.tile-top img {
     max-width: 100%;
     max-width: 100%;
     height: auto;
     height: auto;
     object-fit: contain;
     object-fit: contain;
     display: block;
     display: block;
    margin-bottom: 0.8em;
}
}


/* Label under the image */
/* Text inside tile */
.tile-bottom {
.tile span {
     font-size: 1.05em;
     font-size: 1.05em;
     font-weight: 600;
     font-weight: 600;
     color: #222;
     color: #222;
     display: block;
     line-height: 1.4;
    width: 100%;
    text-align: center;
}
}


/* Kill all skin-inherited link styles */
/* Reset default link styling */
.tile-bottom a {
.tile a,
     all: unset;
.tile span a {
     font-size: 1.05em;
     background: none;
     font-weight: 600;
    border: none;
    padding: 0;
     margin: 0;
     text-decoration: none;
     color: #222;
     color: #222;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}
}


.tile-bottom a:hover {
.tile a:hover,
.tile span a:hover {
     text-decoration: underline;
     text-decoration: underline;
     color: #000;
     color: #000;
}
}


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

Revision as of 05:38, 26 July 2025

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

/* Each tile (wrapped in a wiki link) */
.tile {
    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;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Image inside tile */
.tile img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0.8em;
}

/* Text inside tile */
.tile span {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

/* Reset default link styling */
.tile a,
.tile span a {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: #222;
}

.tile a:hover,
.tile span a:hover {
    text-decoration: underline;
    color: #000;
}

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