Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
/* Gor-Uhr – konsolidiertes Pergamentdesign
/* ============================================================
* Vollständiger Ersatz für ALLE bisherigen Uhr-Regeln in MediaWiki:Common.css.
  GorUhr – Bereinigtes Pergamentdesign
* Vorlage:GorUhr und das JavaScript bleiben unverändert.
  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.
  ============================================================ */


/* Gemeinsames Layout: Uhr, Digitalanzeige und Ahn-Info untereinander */
/* Nur die Gor-Uhr, nicht andere Elemente der Hauptseite */
.gor-clock-wrapper {
.gor-clock-wrapper {
     display: flex;
     display: flex;
Zeile 11: Zeile 15:
     align-items: center;
     align-items: center;
     justify-content: flex-start;
     justify-content: flex-start;
     gap: 0.8rem;
     gap: 13px;
     margin: 0.85rem 0 0.65rem;
     margin: 12px 0 8px;
     text-align: center;
     text-align: center;
     color: #3b3128;
     color: #40362b;
}
}


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


/* Zeiger: Position und transform-origin nicht verändern, damit JS-Rotation passt */
/* Zeiger-Geometrie exakt wie im ursprünglichen funktionierenden CSS.
.gor-clock-wrapper .hand {
  Die Drehung aktualisiert weiterhin das bestehende JavaScript. */
.gor-clock-wrapper .gor-clock .hand {
     position: absolute;
     position: absolute;
     left: 50%;
     left: 50%;
Zeile 40: Zeile 48:
     border-radius: 5px;
     border-radius: 5px;
}
}
.gor-clock-wrapper .hand-ahn {
.gor-clock-wrapper .gor-clock .hand-ahn {
     width: 6px;
     width: 6px;
     height: 30%;
     height: 30%;
     background: #44372b;
     background: #40352b;
}
}
.gor-clock-wrapper .hand-ehn {
.gor-clock-wrapper .gor-clock .hand-ehn {
     width: 4px;
     width: 4px;
     height: 40%;
     height: 40%;
     background: #665647;
     background: #6a5947;
}
}
.gor-clock-wrapper .hand-ihn {
.gor-clock-wrapper .gor-clock .hand-ihn {
     width: 2px;
     width: 2px;
     height: 45%;
     height: 45%;
     background: #a65244;
     background: #a24d43;
}
}
.gor-clock-wrapper .center-dot {
 
.gor-clock-wrapper .gor-clock .center-dot {
     position: absolute;
     position: absolute;
     left: 50%;
     left: 50%;
     top: 50%;
     top: 50%;
    transform: translate(-50%, -50%);
     width: 14px;
     width: 14px;
     height: 14px;
     height: 14px;
     box-sizing: content-box;
     box-sizing: content-box;
     border: 2px solid #fbf7ef;
    transform: translate(-50%, -50%);
     border: 2px solid #faf5ec;
     border-radius: 50%;
     border-radius: 50%;
     background: #44372b;
     background: #40352b;
     box-shadow: 0 0 2px rgba(0,0,0,0.25);
     box-shadow: 0 0 3px rgba(0,0,0,.24);
    z-index: 2;
}
}
.gor-clock-wrapper .gor-number {
 
/* Diese zwei Regeln sind wesentlich: Sonst erscheinen die
  Ziffern 1–20 als lange Liste untereinander. */
.gor-clock-wrapper .gor-clock .gor-number {
     position: absolute;
     position: absolute;
     width: 2em;
     width: 2em;
     text-align: center;
     text-align: center;
     font-size: 0.78rem;
     font-size: .76rem;
     color: #483e33;
    line-height: 1.2;
     color: #4b4034;
     transform: translate(-50%, -50%);
     transform: translate(-50%, -50%);
     pointer-events: none;
     pointer-events: none;
    font-variant-numeric: tabular-nums;
}
}
.gor-clock-wrapper .gor-number-inner {
.gor-clock-wrapper .gor-clock .gor-number-inner {
     font-size: 0.65rem;
     font-size: .65rem;
     color: #907963;
     color: #947d63;
}
}


/* Digitalanzeige: EINE Box mit dreispaltigem Raster */
/* Ein Raster, vier direkte span-Kinder: Titel + drei Zeitwerte.
  Keine allgemeinen [id*=digital]-Selektoren verwenden! */
.gor-clock-wrapper > .gor-digital {
.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;
     box-sizing: border-box;
    display: grid !important;
     width: 300px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center;
    justify-items: stretch;
    column-gap: 0.5rem;
    row-gap: 0.45rem;
    flex: none;
     width: 320px;
     max-width: 100%;
     max-width: 100%;
     min-width: 0;
     min-width: 0;
     margin: 0;
     margin: 0;
     padding: 0.9rem 1rem;
     padding: 13px 14px 15px;
     border: 1px solid #d0bea4;
     border: 1px solid #d0bea4;
     border-radius: 8px;
     border-radius: 8px;
     background: #faf6ee;
     background: #faf6ee;
    color: #40352b;
     box-shadow: none;
     box-shadow: none;
    color: #44382d;
    font-size: 0.95rem;
     font-variant-numeric: tabular-nums;
     font-variant-numeric: tabular-nums;
}
}
/* Verhindert die schmalen, ineinander geschachtelten Spalten aus alten Regeln */
.gor-clock-wrapper > .gor-digital > span {
.gor-clock-wrapper > .gor-digital > span {
    display: block;
     box-sizing: border-box;
     box-sizing: border-box;
    display: block !important;
     width: auto;
    flex: none !important;
     min-width: 0;
     width: auto !important;
     max-width: none;
     max-width: none !important;
     margin: 0;
     min-width: 0 !important;
     padding: 0;
     margin: 0 !important;
     border: 0;
     padding: 0 !important;
     border-radius: 0;
     border: 0 !important;
     background: transparent;
     border-radius: 0 !important;
     box-shadow: none;
     background: transparent !important;
    font-size: .93rem;
     box-shadow: none !important;
    line-height: 1.4;
    color: #40352b;
     text-align: center;
     text-align: center;
    line-height: 1.5;
     white-space: nowrap;
     white-space: nowrap !important;
     overflow-wrap: normal;
     overflow-wrap: normal !important;
     word-break: normal;
     word-break: normal !important;
}
}
.gor-clock-wrapper > .gor-digital > .digital-label {
.gor-clock-wrapper > .gor-digital > .digital-label {
     grid-column: 1 / -1;
     grid-column: 1 / -1;
    color: #705b45;
     font-size: .8rem;
     font-size: 0.78rem;
     font-weight: 600;
     font-weight: 700;
     color: #765f46;
     letter-spacing: 0.035em;
     letter-spacing: .03em;
     margin-bottom: 0.1rem !important;
}
}


/* Ahn-Hinweis separat unter der Digitalbox */
.gor-clock-wrapper > .gor-info {
.gor-clock-wrapper > .gor-info {
     flex: none;
     flex: 0 0 auto;
     width: 100%;
     width: auto;
     min-width: 0;
     max-width: 100%;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
     border: 0;
     border: 0;
     color: #7b6b59;
    background: transparent;
     font-size: 0.8rem;
     color: #7d6c58;
     font-size: .8rem;
    line-height: 1.45;
     text-align: center;
     text-align: center;
}
}


@media (max-width: 380px) {
@media (max-width: 360px) {
     .gor-clock-wrapper .gor-clock {
     .gor-clock-wrapper > .gor-clock {
         width: 240px;
         width: 240px;
         height: 240px;
         height: 240px;
Zeile 156: Zeile 168:
     .gor-clock-wrapper > .gor-digital {
     .gor-clock-wrapper > .gor-digital {
         width: 100%;
         width: 100%;
         padding: 0.75rem 0.5rem;
         padding: 12px 6px;
         column-gap: 0.25rem;
         column-gap: 3px;
         font-size: 0.85rem;
    }
    .gor-clock-wrapper > .gor-digital > span {
         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;
    }
}