Vorlage:MainMenuNpc/styles.css: Unterschied zwischen den Versionen

Aus Lost Dreams Of Tomorrow Wiki
Die Seite wurde neu angelegt: „ -------------------------------- NPC Grid Template --------------------------------: ========================================== TEIL 1: CSS - MediaWiki:Common.css ==========================================: .npc-grid-container { max-width: 1200px; margin: 0 auto; background-color: #0a0a0a; padding: 1em; border: none; } .npc-category { font-size: 1.3em; font-weight: bold; margin: 1.5em 0 1em 0; color: #ffd966; backgroun…“
 
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 17: Zeile 17:
   font-weight: bold;
   font-weight: bold;
   margin: 1.5em 0 1em 0;
   margin: 1.5em 0 1em 0;
   color: #ffd966;
   color: #ffffff !important;
   background-color: #000000;
   background-color: #000000;
   border: 1px solid #222;
   border: 1px solid #222;
Zeile 23: Zeile 23:
   text-align: center;
   text-align: center;
}
}
 
.npc-category .category-icon {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.npc-category .category-icon img {
  vertical-align: middle;
  margin-right: 0.3em;
}
.npc-category:first-child {
.npc-category:first-child {
   margin-top: 0;
   margin-top: 0;
}
.npc-category img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 0;
}
}


Zeile 39: Zeile 53:
   text-align: center;
   text-align: center;
}
}
.npc-image {
.npc-image {
   width: 64px;
   width: 64px;
Zeile 86: Zeile 99:
   text-decoration: none;
   text-decoration: none;
}
}
.npc-name a:hover {
.npc-name a:hover {
   color: #ffd966;
   color: #ffd966;
}
}

Aktuelle Version vom 12. Januar 2026, 02:36 Uhr

/*-------------------------------- NPC Grid Template --------------------------------*/
/* ==========================================
   TEIL 1: CSS - MediaWiki:Common.css
   ========================================== */

.npc-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #0a0a0a;
  padding: 1em;
  border: none;
}

.npc-category {
  font-size: 1.3em;
  font-weight: bold;
  margin: 1.5em 0 1em 0;
  color: #ffffff !important;
  background-color: #000000;
  border: 1px solid #222;
  padding: 0.5em;
  text-align: center;
}
.npc-category .category-icon {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.npc-category .category-icon img {
  vertical-align: middle;
  margin-right: 0.3em;
}
.npc-category:first-child {
  margin-top: 0;
}
.npc-category img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.3em;
  margin-bottom: 0;
}

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

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

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

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

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

.npc-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;
}

.npc-name a {
  color: #eee;
  text-decoration: none;
}
.npc-name a:hover {
  color: #ffd966;
}