Vorlage:LandingFeatures/styles.css

Aus Lost Dreams Of Tomorrow Wiki
/* Container */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #0a0a0a;
  padding: 1em;
  border: none;
}

/* Tabs */
.landing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 1em;
}

.tab-button {
  padding: 0.5em 1em;
  background-color: #000;
  color: #eee;
  border: 1px solid #222;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.tab-button img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4em;
  margin-bottom: 0;
}

.tab-button:hover {
  background-color: #111;
}

.tab-button.active {
  background-color: #222;
  color: #ffd966;
  border-color: #ffd966;
}

/* Grid */
.landing-grid-container {
  display: block;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1em;
  display: none;
}

.landing-grid.active {
  display: grid;
}

/* Boxes - genau wie npc-box */
.landing-box {
  display: block;
  text-align: center;
}

.landing-image {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4em auto;
  overflow: hidden;
}

.landing-image img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: none !important;
}

.landing-image .mw-file-description {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.landing-image:hover {
  opacity: 0.7;
}

.landing-name {
  font-size: 0.85em;
  text-align: center;
  line-height: 1.3;
  color: #eee;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.landing-name a {
  color: #eee;
  text-decoration: none;
}

.landing-name a:hover {
  color: #ffd966;
}