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: 30px;
    gap: 2em;
  margin-bottom: 40px;
    margin: 2em auto;
    max-width: 1200px;
}
}


.tile {
.tile {
  width: 200px;
    background: #fdfaf3;
  text-decoration: none;
    border: 1px solid #c8b68e;
  color: inherit;
    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-inner {
.tile:hover {
  background-color: #fefaf1;
    transform: scale(1.03);
  border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.2s ease;
}
}


.tile-inner:hover {
.tile-image {
  transform: scale(1.03);
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.8em auto;
}
}


.tile-inner img {
.tile-label {
  max-width: 100%;
    font-size: 1.05em;
  height: auto;
    font-weight: 600;
  object-fit: contain;
    color: #222;
  display: block;
    display: block;
  margin: 0 auto 10px;
    line-height: 1.4;
}
}


.tile-inner span {
@media (max-width: 800px) {
  display: block;
    .tile {
  font-weight: bold;
        width: 45%;
  font-size: 1.1em;
    }
  margin-top: 8px;
  color: #222;
}
}

Revision as of 05:50, 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%;
    }
}