Template:Content/styles.css: Difference between revisions

From Delanor Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
.tile-row {
.tile-row {
  display: flex;
    display: flex;
  flex-wrap: wrap;
    flex-wrap: wrap;
  justify-content: center;
    justify-content: center;
  gap: 2em;
    gap: 2em;
  margin: 2em auto;
    margin: 2em auto;
  max-width: 1200px;
    max-width: 1200px;
}
}


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


.tile:hover {
.tile-row > div: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);
}
}


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


.tile-label {
/* Image scaling without clipping */
  font-size: 1.05em;
.tile-top img {
  font-weight: 600;
    max-width: 100%;
  color: #222;
    height: auto;
  display: block;
    object-fit: contain;
  line-height: 1.4;
    display: block;
}
}


/* Label under the image */
.tile-bottom {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    display: block;
    width: 100%;
    text-align: center;
}
/* Kill all skin-inherited link styles */
.tile-bottom a {
    all: unset;
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}
.tile-bottom a:hover {
    text-decoration: underline;
    color: #000;
}
/* Mobile */
@media (max-width: 800px) {
@media (max-width: 800px) {
  .tile {
    .tile-row > div {
    width: 45%;
        flex: 1 1 45%;
  }
    }
}
}

Revision as of 05:56, 26 July 2025

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

/* Each tile card */
.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 (auto size, no cutting) */
.tile-top {
    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%;
    height: auto;
    object-fit: contain;
    display: block;
}

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

/* Kill all skin-inherited link styles */
.tile-bottom a {
    all: unset;
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

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

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