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

Aus Lost Dreams Of Tomorrow Wiki
Die Seite wurde neu angelegt: „ Container: .landing-container { max-width: 1200px; margin: 0 auto; background-color: #0a0a0a; border: 1px solid #222; padding: 1em; font-family: sans-serif; } 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:h…“
 
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Container */
/* Container */
.landing-container {
.landing-container {
Zeile 5: Zeile 4:
   margin: 0 auto;
   margin: 0 auto;
   background-color: #0a0a0a;
   background-color: #0a0a0a;
  border: 1px solid #222;
   padding: 1em;
   padding: 1em;
   font-family: sans-serif;
   border: none;
}
 
/* Tabs Container mit Pfeilen */
.landing-tabs-wrapper {
  position: relative;
  margin-bottom: 1em;
}
}


/* Tabs */
.landing-tabs {
.landing-tabs {
   display: flex;
   display: flex;
  flex-wrap: wrap;
   gap: 0.5em;
   gap: 0.5em;
   margin-bottom: 1em;
   overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 0 2.5em;
}
 
.tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #111;
  border: 1px solid #333;
  color: #ffd966;
  width: 2em;
  height: 2em;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
  font-size: 1.5em;
  line-height: 1;
}
 
.tab-arrow:hover {
  background-color: #222;
  border-color: #ffffff;
}
 
.tab-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
 
.tab-arrow-left {
  left: 0;
}
 
.tab-arrow-right {
  right: 0;
}
 
.tab-arrow.visible {
  display: flex;
}
}


Zeile 26: Zeile 71:
   font-weight: bold;
   font-weight: bold;
   transition: 0.2s;
   transition: 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-button img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4em;
  margin-bottom: 0;
}
}


Zeile 34: Zeile 88:
.tab-button.active {
.tab-button.active {
   background-color: #222;
   background-color: #222;
   color: #ffd966;
   color: #ffffff;
  border-color: #ffffff;
}
}


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


/* Boxes */
/* Boxes - genau wie npc-box */
.landing-box {
.landing-box {
  display: block;
   text-align: center;
   text-align: center;
  background-color: #111;
  border: 1px solid #222;
  padding: 0.5em;
  border-radius: 8px;
  transition: 0.2s;
}
.landing-box:hover {
  background-color: #1a1a1a;
}
}


Zeile 70: Zeile 117:
   width: 64px;
   width: 64px;
   height: 64px;
   height: 64px;
  margin: 0 auto 0.5em auto;
  background-color: #222;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
  margin: 0 auto 0.4em auto;
   overflow: hidden;
   overflow: hidden;
}
}


.landing-image img {
.landing-image img {
   image-rendering: pixelated; /* moderne Browser */
  max-width: 100%;
   image-rendering: crisp-edges; /* allgemeiner Fallback */
  max-height: 100%;
   image-rendering: pixelated;
   image-rendering: crisp-edges;
   border: none !important;
   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 {
.landing-name {
   font-size: 0.85em;
   font-size: 0.85em;
  text-align: center;
  line-height: 1.3;
   color: #eee;
   color: #eee;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
}



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

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

/* Tabs Container mit Pfeilen */
.landing-tabs-wrapper {
  position: relative;
  margin-bottom: 1em;
}

.landing-tabs {
  display: flex;
  gap: 0.5em;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 0 2.5em;
}

.tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #111;
  border: 1px solid #333;
  color: #ffd966;
  width: 2em;
  height: 2em;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
  font-size: 1.5em;
  line-height: 1;
}

.tab-arrow:hover {
  background-color: #222;
  border-color: #ffffff;
}

.tab-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tab-arrow-left {
  left: 0;
}

.tab-arrow-right {
  right: 0;
}

.tab-arrow.visible {
  display: flex;
}

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

.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: #ffffff;
  border-color: #ffffff;
}

/* 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;
}