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:
/* Row layout for tiles */
.tile-row {
.tile-row {
    display: flex;
  display: flex;
    flex-wrap: wrap;
  flex-wrap: wrap;
    justify-content: center;
  justify-content: center;
    gap: 2em;
  gap: 30px;
    margin: 2em auto;
  margin-bottom: 40px;
    max-width: 1200px;
}
}


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


/* Image inside tile */
.tile-inner:hover {
.tile img {
  transform: scale(1.03);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0.8em;
}
}


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


/* Reset default link styling */
.tile-inner span {
.tile a,
  display: block;
.tile span a {
  font-weight: bold;
    background: none;
  font-size: 1.1em;
    border: none;
  margin-top: 8px;
    padding: 0;
  color: #222;
    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%;
    }
}
}

Revision as of 05:44, 26 July 2025

.tile-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.tile {
  width: 200px;
  text-decoration: none;
  color: inherit;
}

.tile-inner {
  background-color: #fefaf1;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.2s ease;
}

.tile-inner:hover {
  transform: scale(1.03);
}

.tile-inner img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.tile-inner span {
  display: block;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 8px;
  color: #222;
}