Zum Inhalt springen

MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Pixopedia
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 27: Zeile 27:
   position: relative;
   position: relative;
   width: 100%;
   width: 100%;
   height: 140px;                 /* Höhe für Karten MIT Bild */
   height: 140px;
/*  border-radius: 25px; */
   background: transparent;
   background: transparent;
   overflow: hidden;
   overflow: hidden;
Zeile 41: Zeile 40:
   background: transparent;
   background: transparent;
   display: block;
   display: block;
  border: 0;
}
}


Zeile 62: Zeile 60:
   background: transparent !important;
   background: transparent !important;
   box-shadow: none !important;
   box-shadow: none !important;
}
/* Schwarzer Balken unter dem Hero-Bild */
.pixo-card-title-bar {
  display: block;
  width: 100%;
  height: 32px;          /* 10px Balken + etwas Platz für Text */
  background: #000;
  opacity: 0.7;
  padding: 4px 10px;    /* Innenabstand links/rechts/oben/unten */
  box-sizing: border-box;
}
}


/* TITEL zentriert oben, wie H2 */
/* Titel rechtsbündig auf der Title-Bar */
.pixo-card-title-text {
.pixo-card-title-text {
   position: absolute;
   position: static;     /* NICHT absolut */
  top: 75%;                /* Abstand von oben */
   display: block;
   left: 50%;
   font-size: 1.3rem;
  transform: translateX(-50%);   /* horizontal zentrieren */
   font-size: 1.5rem;       /* ähnlich h2 */
   font-weight: 700;
   font-weight: 700;
   color: #ca8600;
   color: #ca8600;
   text-shadow: 0 0 4px rgba(0,0,0,0.9);
   text-shadow: 0 0 4px rgba(0,0,0,0.9);
   white-space: nowrap;     /* optional: in einer Zeile lassen */
   white-space: nowrap;
   text-align: center;
   text-align: right;     /* rechtsbündig */
}
.pixo-card-title-bar {
  display: inline-block;
  width: 100%;
  height: 10px;
  background: #000;
  opacity: 0.8;
  margin-bottom: 4px; /* Abstand zum Titel */
}
}



Version vom 13. Februar 2026, 17:50 Uhr

/* ========================================
   Pixo-Kacheln (Spiel-Grid)
   ======================================== */
/* Grid-Container für Start-Kacheln */
.pixo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

/* BASIS-KARTE */
.pixo-card {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 25px; 
/* border: 2px solid #333; */
  background: transparent;
  box-shadow: 0 5px 16px rgba(0,0,0,0.5);
  overflow: hidden;
  font-family: inherit;
}

/* Normale Karte mit Hero-Bild */
.pixo-card-hero {
  position: relative;
  width: 100%;
  height: 140px;
  background: transparent;
  overflow: hidden;
}

/* Bild im Hero-Bereich */
.pixo-card-hero img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  background: transparent;
  display: block;
}

/* Karten OHNE Hero-Bild */
.pixo-card--nohero .pixo-card-hero {
  height: auto;                  /* keine feste Höhe */
  padding: 0;
  margin: 0;
  border-radius: 20px;
  background: transparent;
  border: 0;
}

/* Falls irgendwo Standard-Rand auf Bildern sitzt, hier nochmal hart entfernen */
.pixo-card-hero a,
.pixo-card-hero img {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Schwarzer Balken unter dem Hero-Bild */
.pixo-card-title-bar {
  display: block;
  width: 100%;
  height: 32px;          /* 10px Balken + etwas Platz für Text */
  background: #000;
  opacity: 0.7;
  padding: 4px 10px;     /* Innenabstand links/rechts/oben/unten */
  box-sizing: border-box;
}

/* Titel rechtsbündig auf der Title-Bar */
.pixo-card-title-text {
  position: static;      /* NICHT absolut */
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ca8600;
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  white-space: nowrap;
  text-align: right;     /* rechtsbündig */
}

.pixo-card-hero-inner {
  display: inline-block;
}