MediaWiki:Common.css: Unterschied zwischen den Versionen

Aus Phoenix-Larp Wiki

Keine Bearbeitungszusammenfassung
testwiki>Admin
Darstellung der Piktogramme in Portalkacheln ergänzt
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Gestaltung der Phoenix-Wiki-Portale */
 
.phoenix-hero {
#p-personal {
  padding: 2.2rem;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>');
  margin: 0 0 1.5rem;
    background-position: top right;
  color: #f8f0dc;
    background-repeat: no-repeat;
  background: linear-gradient(135deg, #182433, #394b58);
    padding-right: 20px;
  border: 1px solid #9b8356;
  border-radius: 4px;
}
.phoenix-kicker {
  color: #d2bb83;
  font-size: .85rem;
  letter-spacing: .16em;
}
.phoenix-title {
  margin: .25rem 0;
  font-family: Georgia, serif;
  font-size: 2.4rem;
}
.phoenix-lead {
  max-width: 52rem;
  font-size: 1.05rem;
}
}
 
.phoenix-portal-grid {
#footer {
  display: grid;
z-index: auto;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
height: 120px;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
}
 
.phoenix-portal-card {
.mw-body-content img {
  padding: 1rem 1.1rem;
max-width: 100%;
  background: #f7f2e7;
height: auto;
  border: 1px solid #c8b98f;
  border-left: 5px solid #735c32;
  border-radius: 3px;
}
}
 
.phoenix-portal-card h3 {
#mw-navigation {
  margin-top: 0;
    width: 160px;
  font-family: Georgia, serif;
}
}
 
.phoenix-portal-card .mw-editsection {
/* Breite der linken Sidebar anpassen */
  display: none;
#mw-panel {
    width: 220px; /* Standard sind ca. 160px */
}
}
 
@media (max-width: 720px) {
@media screen and (min-width: 751px) {
  .phoenix-title { font-size: 1.8rem; }
#column-navigation {
width: 13em;
}
}
}


@media screen and (max-width: 960px) {
a#p-banner {
margin-left: 0;
min-width: 300px;
}


#p-search {
/* Vollflächig klickbare Kacheln */
padding: 0 0 0.5rem 0;
.phoenix-click-card {
width: 100%;
  position: relative;
display: flex;
  cursor: pointer;
position: relative;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
top: inherit;
}
right: inherit;
.phoenix-click-card:hover,
}
.phoenix-click-card:focus-within {
 
  background: #efe6d5;
#searchInput {
  border-color: #a58e60;
flex: 15em 1 1;
  box-shadow: 0 3px 10px rgba(61, 48, 30, .16);
}
  transform: translateY(-1px);
 
}
#searchGoButton {
.phoenix-portal-card h3 a::after,
flex: 1.5rem 0 0;
.phoenix-religion-card .phoenix-card-link a::after {
margin: 0 10px;
  content: "";
}
  position: absolute;
  inset: 0;
  z-index: 2;
}
.phoenix-portal-card h3 a:focus-visible,
.phoenix-religion-card .phoenix-card-link a:focus-visible {
  outline: 2px solid #735c32;
  outline-offset: 3px;
}
.phoenix-religion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: stretch;
}
.phoenix-religion-card {
  display: flex;
  align-items: center;
  gap: .9em;
  box-sizing: border-box;
  flex: 1 1 360px;
  min-height: 118px;
  padding: .9em;
  border: 1px solid #c8ccd1;
  border-radius: 6px;
  background: #fff;
}
.phoenix-religion-symbol {
  flex: 0 0 88px;
  text-align: center;
}
}
 
.phoenix-religion-content {
@media screen and (max-width: 1024px) {
  flex: 1 1 auto;
#page-tools {
display: flex;
flex-wrap: wrap;
line-height: 1.2rem;
}
}
}
 
@media (prefers-reduced-motion: reduce) {
@media screen {
  .phoenix-click-card {
  #p-search input {
     transition: none;
    background-color: rgba(255,255,255,0.8);
    border: none;
    margin-right: 10px;
    border-radius: 10px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
     background-position: 5px;
    background-repeat: no-repeat;
    padding-left: 25px;
   }
   }
    
   .phoenix-click-card:hover,
  #p-search {
   .phoenix-click-card:focus-within {
      margin-right: -3em;
    transform: none;
   }
 
  #p-personal .mw-portlet-body {
        top: 0em !important;
   }
   }
}
}


 
/* Interaktive Markierungen der Länderkarte */
#p-search .searchButton {
.phoenix-map-marker {
display:none;
  color: #d01818 !important;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 5px #fff;
  transition: color .15s ease;
}
a:hover .phoenix-map-marker,
a:focus .phoenix-map-marker {
  color: #000 !important;
}
a:has(> .phoenix-map-marker) {
  text-decoration: none !important;
}
}




 
/* Einheitliche Navigation und Infoboxen */
 
.phoenix-backlink {
/* Breakpoint nach Bedarf anpassen */
  margin: .2rem 0 1rem;
@media (max-width: 768px) {
  padding: .45rem .7rem;
   /* Spalte mit Navigation als Off-Canvas von links */
  background: #f7f2e7;
   #column-navigation {
   border-left: 4px solid #735c32;
    position: fixed;
   color: #443a2a;
    inset: 0 auto 0 0;     /* top:0; left:0; bottom:0 */
}
    /*    width: 280px;         Sidebar-Breite */
.phoenix-infobox {
    transform: translateX(-100%);
  float: right;
    transition: transform .25s ease;
  clear: right;
    /* background: #eaecf0;     Kontrast zur Seite */
  width: 300px;
    background: #e0e4e4 url(/skins/Anisa/resources/images/bkgd.gif?97fa7) repeat;
  margin: 0 0 1rem 1.25rem;
    z-index: 1001;         /* über Content, unter Burger */
  background: #faf7ef;
    overflow-y: auto;
}
    box-shadow: 2px 0 12px rgba(0,0,0,.2);
.phoenix-infobox th {
     padding: .5rem 1rem .5rem .5rem;  
  width: 38%;
  background: #eee5d3;
  color: #3f3322;
}
.phoenix-infobox tr:first-child th {
  width: auto;
  background: #735c32;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  text-align: center;
}
.phoenix-infobox-image {
  text-align: center;
}
.phoenix-infobox-image img {
  max-width: 260px;
  height: auto;
}
.phoenix-infobox tr:has(> .phoenix-infobox-value:empty) {
  display: none;
}
@media (max-width: 720px) {
  .phoenix-infobox {
     float: none;
    width: 100%;
    margin: 0 0 1rem;
   }
   }
}


  /* Sichtbar, wenn geöffnet */
  body.nav-open #column-navigation {
    transform: translateX(0);
  }


  /* Overlay hinter dem Menü */
/* Piktogramme in Portalkacheln */
  .nav-overlay { display: none; }
.phoenix-icon-card {
   body.nav-open .nav-overlay {
   text-align: center;
    position: fixed;
}
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1000;
    display: block;
  }


  /* Burger-Button oben links */
.phoenix-icon-card .phoenix-portal-icon {
  .mw-burger {
  display: flex;
    position: fixed;       /* bleibt beim Scrollen sichtbar */
  align-items: center;
    top: .75rem;
  justify-content: center;
    left: .75rem;
  min-height: 120px;
    z-index: 1002;
  margin-bottom: .6rem;
    border: 0;
}
    background: #fff;
    padding: .5rem .65rem;
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    line-height: 1;
    color: inherit;        /* Linienfarbe von Text-/Iconfarbe ableiten */
  }


  /* exakt 3 Linien via box-shadow auf dem Mittelstrich */
.phoenix-icon-card .phoenix-portal-icon img {
  .mw-burger span {
  display: block;
    display: block;
  width: 112px;
    width: 24px;
  height: 112px;
    height: 2px;                 /* mittlere Linie */
  object-fit: contain;
    background: currentColor;
}
    margin: 6px 0;              /* Abstand nach oben/unten */
    box-shadow:
      0 -6px 0 0 currentColor,  /* obere Linie */
      0  6px 0 0 currentColor;   /* untere Linie */
  }


  /* evtl. vorhandene Pseudo-Elemente sicher deaktivieren */
.phoenix-icon-card h3 {
  .mw-burger span::before,
   margin-bottom: .15rem;
  .mw-burger span::after {
    display: none !important;
    content: none !important;
  }
 
 
   /* Optional: Verhindert Layout-Schieben im Header auf Mobile */
  #header { padding-left: 3.5rem; }
}
}
.klappbox-header { cursor: pointer; padding: .25em .4em; }
.mw-collapsible .mw-collapsible-content { padding: .4em .4em .6em; }

Version vom 28. August 2026, 12:47 Uhr

/* Gestaltung der Phoenix-Wiki-Portale */
.phoenix-hero {
  padding: 2.2rem;
  margin: 0 0 1.5rem;
  color: #f8f0dc;
  background: linear-gradient(135deg, #182433, #394b58);
  border: 1px solid #9b8356;
  border-radius: 4px;
}
.phoenix-kicker {
  color: #d2bb83;
  font-size: .85rem;
  letter-spacing: .16em;
}
.phoenix-title {
  margin: .25rem 0;
  font-family: Georgia, serif;
  font-size: 2.4rem;
}
.phoenix-lead {
  max-width: 52rem;
  font-size: 1.05rem;
}
.phoenix-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.phoenix-portal-card {
  padding: 1rem 1.1rem;
  background: #f7f2e7;
  border: 1px solid #c8b98f;
  border-left: 5px solid #735c32;
  border-radius: 3px;
}
.phoenix-portal-card h3 {
  margin-top: 0;
  font-family: Georgia, serif;
}
.phoenix-portal-card .mw-editsection {
  display: none;
}
@media (max-width: 720px) {
  .phoenix-title { font-size: 1.8rem; }
}


/* Vollflächig klickbare Kacheln */
.phoenix-click-card {
  position: relative;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.phoenix-click-card:hover,
.phoenix-click-card:focus-within {
  background: #efe6d5;
  border-color: #a58e60;
  box-shadow: 0 3px 10px rgba(61, 48, 30, .16);
  transform: translateY(-1px);
}
.phoenix-portal-card h3 a::after,
.phoenix-religion-card .phoenix-card-link a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.phoenix-portal-card h3 a:focus-visible,
.phoenix-religion-card .phoenix-card-link a:focus-visible {
  outline: 2px solid #735c32;
  outline-offset: 3px;
}
.phoenix-religion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: stretch;
}
.phoenix-religion-card {
  display: flex;
  align-items: center;
  gap: .9em;
  box-sizing: border-box;
  flex: 1 1 360px;
  min-height: 118px;
  padding: .9em;
  border: 1px solid #c8ccd1;
  border-radius: 6px;
  background: #fff;
}
.phoenix-religion-symbol {
  flex: 0 0 88px;
  text-align: center;
}
.phoenix-religion-content {
  flex: 1 1 auto;
}
@media (prefers-reduced-motion: reduce) {
  .phoenix-click-card {
    transition: none;
  }
  .phoenix-click-card:hover,
  .phoenix-click-card:focus-within {
    transform: none;
  }
}

/* Interaktive Markierungen der Länderkarte */
.phoenix-map-marker {
  color: #d01818 !important;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 5px #fff;
  transition: color .15s ease;
}
a:hover .phoenix-map-marker,
a:focus .phoenix-map-marker {
  color: #000 !important;
}
a:has(> .phoenix-map-marker) {
  text-decoration: none !important;
}


/* Einheitliche Navigation und Infoboxen */
.phoenix-backlink {
  margin: .2rem 0 1rem;
  padding: .45rem .7rem;
  background: #f7f2e7;
  border-left: 4px solid #735c32;
  color: #443a2a;
}
.phoenix-infobox {
  float: right;
  clear: right;
  width: 300px;
  margin: 0 0 1rem 1.25rem;
  background: #faf7ef;
}
.phoenix-infobox th {
  width: 38%;
  background: #eee5d3;
  color: #3f3322;
}
.phoenix-infobox tr:first-child th {
  width: auto;
  background: #735c32;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  text-align: center;
}
.phoenix-infobox-image {
  text-align: center;
}
.phoenix-infobox-image img {
  max-width: 260px;
  height: auto;
}
.phoenix-infobox tr:has(> .phoenix-infobox-value:empty) {
  display: none;
}
@media (max-width: 720px) {
  .phoenix-infobox {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
}


/* Piktogramme in Portalkacheln */
.phoenix-icon-card {
  text-align: center;
}

.phoenix-icon-card .phoenix-portal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: .6rem;
}

.phoenix-icon-card .phoenix-portal-icon img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.phoenix-icon-card h3 {
  margin-bottom: .15rem;
}