Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
/* Gor-Wiki: gezielte Korrektur der Digitalanzeige (31.10.2026)
/* ============================================================
* GANZ AN DAS ENDE von MediaWiki:Common.css setzen.
  GorUhr – Bereinigtes Pergamentdesign
* Hebt die zu breite Regel auf, die [class*="digital"] und
  Stand: 2026-10-31
* [id*="digital"] mit Hintergrund + Rahmen versieht.
  ERSETZT sämtliche bisherigen CSS-Regeln für die Gor-Uhr.
* HTML und JavaScript von Vorlage:GorUhr bleiben unverändert.
  Wichtig: Den alten Originalblock sowie alle bisherigen
*/
  Ergänzungen/Fixes vorher aus MediaWiki:Common.css entfernen.
  HTML der Vorlage und JavaScript bleiben unverändert.
  ============================================================ */


.gor-home .gor-clock-panel .gor-clock-wrapper > .gor-digital {
/* Nur die Gor-Uhr, nicht andere Elemente der Hauptseite */
     display: grid !important;
.gor-clock-wrapper {
     grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    display: flex;
     justify-items: stretch !important;
    flex-direction: column;
     align-items: center !important;
    flex-wrap: nowrap;
     gap: 0.45rem 0.55rem !important;
    align-items: center;
     box-sizing: border-box !important;
    justify-content: flex-start;
     width: min(100%, 320px) !important;
    gap: 13px;
     min-width: 0 !important;
    margin: 12px 0 8px;
     max-width: 100% !important;
    text-align: center;
     height: auto !important;
    color: #40362b;
     margin: 0 auto !important;
}
     padding: 0.9rem 1rem !important;
 
     border: 1px solid #d0bea4 !important;
/* Zeiger und die vom JavaScript erzeugten Zahlen benötigen
     border-radius: 8px !important;
  zwingend einen positionierten, runden Elterncontainer. */
     background: #faf6ee !important;
.gor-clock-wrapper > .gor-clock {
     box-shadow: none !important;
    position: relative;
     display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 270px;
    height: 270px;
     max-width: 100%;
    overflow: hidden;
    border: 5px solid #685642;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5eddc 64%, #ebe0ca 100%);
    box-shadow: 0 3px 8px rgba(54, 39, 24, .15), inset 0 0 0 2px rgba(255,255,255,.42);
}
 
/* Zeiger-Geometrie exakt wie im ursprünglichen funktionierenden CSS.
  Die Drehung aktualisiert weiterhin das bestehende JavaScript. */
.gor-clock-wrapper .gor-clock .hand {
     position: absolute;
     left: 50%;
     top: 50%;
     transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 5px;
}
.gor-clock-wrapper .gor-clock .hand-ahn {
     width: 6px;
    height: 30%;
     background: #40352b;
}
.gor-clock-wrapper .gor-clock .hand-ehn {
    width: 4px;
    height: 40%;
     background: #6a5947;
}
.gor-clock-wrapper .gor-clock .hand-ihn {
    width: 2px;
    height: 45%;
    background: #a24d43;
}
 
.gor-clock-wrapper .gor-clock .center-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
     height: 14px;
     box-sizing: content-box;
     transform: translate(-50%, -50%);
     border: 2px solid #faf5ec;
     border-radius: 50%;
     background: #40352b;
     box-shadow: 0 0 3px rgba(0,0,0,.24);
    z-index: 2;
}
 
/* Diese zwei Regeln sind wesentlich: Sonst erscheinen die
  Ziffern 1–20 als lange Liste untereinander. */
.gor-clock-wrapper .gor-clock .gor-number {
    position: absolute;
    width: 2em;
    text-align: center;
    font-size: .76rem;
    line-height: 1.2;
    color: #4b4034;
    transform: translate(-50%, -50%);
    pointer-events: none;
     font-variant-numeric: tabular-nums;
     font-variant-numeric: tabular-nums;
}
.gor-clock-wrapper .gor-clock .gor-number-inner {
    font-size: .65rem;
    color: #947d63;
}
}


/* Wichtig: id="digitalAhn" usw. dürfen KEINE eigenen Rahmen erhalten. */
/* Ein Raster, vier direkte span-Kinder: Titel + drei Zeitwerte.
.gor-home .gor-clock-panel .gor-clock-wrapper > .gor-digital > span {
  Keine allgemeinen [id*=digital]-Selektoren verwenden! */
     display: block !important;
.gor-clock-wrapper > .gor-digital {
    float: none !important;
    display: grid;
    position: static !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
     box-sizing: border-box !important;
    justify-items: stretch;
     width: auto !important;
    align-items: center;
     min-width: 0 !important;
    gap: 9px 8px;
     max-width: none !important;
    flex: 0 0 auto;
    height: auto !important;
    box-sizing: border-box;
     margin: 0 !important;
    width: 300px;
     padding: 0 !important;
    max-width: 100%;
     border: 0 !important;
    min-width: 0;
     border-radius: 0 !important;
    margin: 0;
     background: transparent !important;
    padding: 13px 14px 15px;
     box-shadow: none !important;
    border: 1px solid #d0bea4;
     text-align: center !important;
    border-radius: 8px;
     line-height: 1.5 !important;
    background: #faf6ee;
     white-space: nowrap !important;
    color: #40352b;
     word-break: normal !important;
    box-shadow: none;
     overflow-wrap: normal !important;
    font-variant-numeric: tabular-nums;
     color: #44382d !important;
}
     font-size: 0.95rem !important;
.gor-clock-wrapper > .gor-digital > span {
     display: block;
     box-sizing: border-box;
     width: auto;
     min-width: 0;
     max-width: none;
     margin: 0;
     padding: 0;
     border: 0;
     border-radius: 0;
     background: transparent;
     box-shadow: none;
     font-size: .93rem;
     line-height: 1.4;
    color: #40352b;
    text-align: center;
     white-space: nowrap;
    overflow-wrap: normal;
     word-break: normal;
}
.gor-clock-wrapper > .gor-digital > .digital-label {
    grid-column: 1 / -1;
    font-size: .8rem;
     font-weight: 600;
     color: #765f46;
     letter-spacing: .03em;
}
}


.gor-home .gor-clock-panel .gor-clock-wrapper > .gor-digital > .digital-label {
.gor-clock-wrapper > .gor-info {
     grid-column: 1 / -1 !important;
     flex: 0 0 auto;
     margin-bottom: 0.15rem !important;
    width: auto;
     font-size: 0.8rem !important;
    max-width: 100%;
     font-weight: 600 !important;
     margin: 0;
     color: #705b45 !important;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d6c58;
     font-size: .8rem;
     line-height: 1.45;
     text-align: center;
}
}


@media (max-width: 390px) {
@media (max-width: 360px) {
     .gor-home .gor-clock-panel .gor-clock-wrapper > .gor-digital {
     .gor-clock-wrapper > .gor-clock {
         gap: 0.3rem !important;
        width: 240px;
         padding: 0.75rem 0.45rem !important;
        height: 240px;
    }
    .gor-clock-wrapper > .gor-digital {
         width: 100%;
         padding: 12px 6px;
        column-gap: 3px;
     }
     }
     .gor-home .gor-clock-panel .gor-clock-wrapper > .gor-digital > span {
     .gor-clock-wrapper > .gor-digital > span {
         font-size: 0.82rem !important;
         font-size: .82rem;
     }
     }
}
}

Aktuelle Version vom 31. Oktober 2026, 09:01 Uhr

/* ============================================================
   GorUhr – Bereinigtes Pergamentdesign
   Stand: 2026-10-31
   ERSETZT sämtliche bisherigen CSS-Regeln für die Gor-Uhr.
   Wichtig: Den alten Originalblock sowie alle bisherigen
   Ergänzungen/Fixes vorher aus MediaWiki:Common.css entfernen.
   HTML der Vorlage und JavaScript bleiben unverändert.
   ============================================================ */

/* Nur die Gor-Uhr, nicht andere Elemente der Hauptseite */
.gor-clock-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    margin: 12px 0 8px;
    text-align: center;
    color: #40362b;
}

/* Zeiger und die vom JavaScript erzeugten Zahlen benötigen
   zwingend einen positionierten, runden Elterncontainer. */
.gor-clock-wrapper > .gor-clock {
    position: relative;
    display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 270px;
    height: 270px;
    max-width: 100%;
    overflow: hidden;
    border: 5px solid #685642;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5eddc 64%, #ebe0ca 100%);
    box-shadow: 0 3px 8px rgba(54, 39, 24, .15), inset 0 0 0 2px rgba(255,255,255,.42);
}

/* Zeiger-Geometrie exakt wie im ursprünglichen funktionierenden CSS.
   Die Drehung aktualisiert weiterhin das bestehende JavaScript. */
.gor-clock-wrapper .gor-clock .hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 5px;
}
.gor-clock-wrapper .gor-clock .hand-ahn {
    width: 6px;
    height: 30%;
    background: #40352b;
}
.gor-clock-wrapper .gor-clock .hand-ehn {
    width: 4px;
    height: 40%;
    background: #6a5947;
}
.gor-clock-wrapper .gor-clock .hand-ihn {
    width: 2px;
    height: 45%;
    background: #a24d43;
}

.gor-clock-wrapper .gor-clock .center-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    box-sizing: content-box;
    transform: translate(-50%, -50%);
    border: 2px solid #faf5ec;
    border-radius: 50%;
    background: #40352b;
    box-shadow: 0 0 3px rgba(0,0,0,.24);
    z-index: 2;
}

/* Diese zwei Regeln sind wesentlich: Sonst erscheinen die
   Ziffern 1–20 als lange Liste untereinander. */
.gor-clock-wrapper .gor-clock .gor-number {
    position: absolute;
    width: 2em;
    text-align: center;
    font-size: .76rem;
    line-height: 1.2;
    color: #4b4034;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.gor-clock-wrapper .gor-clock .gor-number-inner {
    font-size: .65rem;
    color: #947d63;
}

/* Ein Raster, vier direkte span-Kinder: Titel + drei Zeitwerte.
   Keine allgemeinen [id*=digital]-Selektoren verwenden! */
.gor-clock-wrapper > .gor-digital {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    align-items: center;
    gap: 9px 8px;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 13px 14px 15px;
    border: 1px solid #d0bea4;
    border-radius: 8px;
    background: #faf6ee;
    color: #40352b;
    box-shadow: none;
    font-variant-numeric: tabular-nums;
}
.gor-clock-wrapper > .gor-digital > span {
    display: block;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: .93rem;
    line-height: 1.4;
    color: #40352b;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}
.gor-clock-wrapper > .gor-digital > .digital-label {
    grid-column: 1 / -1;
    font-size: .8rem;
    font-weight: 600;
    color: #765f46;
    letter-spacing: .03em;
}

.gor-clock-wrapper > .gor-info {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d6c58;
    font-size: .8rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 360px) {
    .gor-clock-wrapper > .gor-clock {
        width: 240px;
        height: 240px;
    }
    .gor-clock-wrapper > .gor-digital {
        width: 100%;
        padding: 12px 6px;
        column-gap: 3px;
    }
    .gor-clock-wrapper > .gor-digital > span {
        font-size: .82rem;
    }
}