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: Reverted
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 {
.tile {
    background: #fdfaf3;
  background: #fdfaf3;
    border: 1px solid #c8b68e;
  border: 1px solid #c8b68e;
    border-radius: 8px;
  border-radius: 8px;
    padding: 1em;
  padding: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 180px;
  width: 180px;
    text-align: center;
  text-align: center;
    text-decoration: none;
  text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  cursor: pointer;
}
}


.tile: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);
}
}


.tile-image {
.tile-image {
    width: 100%;
  width: 100%;
    height: 150px;
  height: 150px;
    object-fit: contain;
  object-fit: contain;
    display: block;
  display: block;
    margin: 0 auto 0.8em auto;
  margin: 0 auto 0.8em auto;
}
}


.tile-label {
.tile-label {
    font-size: 1.05em;
  font-size: 1.05em;
    font-weight: 600;
  font-weight: 600;
    color: #222;
  color: #222;
    display: block;
  display: block;
    line-height: 1.4;
  line-height: 1.4;
}
}


@media (max-width: 800px) {
@media (max-width: 800px) {
    .tile {
  .tile {
        width: 45%;
    width: 45%;
    }
  }
}
}

Revision as of 05:54, 26 July 2025

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

.tile {
  background: #fdfaf3;
  border: 1px solid #c8b68e;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 180px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.tile-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.8em auto;
}

.tile-label {
  font-size: 1.05em;
  font-weight: 600;
  color: #222;
  display: block;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .tile {
    width: 45%;
  }
}