Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/*
/* Gor-Uhr – konsolidiertes Pergamentdesign
* Gor-Uhr – Gestaltung für wiki.gegenerde.net
  * Vollständiger Ersatz für ALLE bisherigen Uhr-Regeln in MediaWiki:Common.css.
  * Ersetzt ausschließlich die bisher gezeigten CSS-Regeln.
  * Vorlage:GorUhr und das JavaScript bleiben unverändert.
  * Vorlage:GorUhr und JavaScript bleiben unverändert.
  */
  */


/* Grundlayout: Uhr, Digitalanzeige und Erläuterung untereinander */
/* Gemeinsames Layout: Uhr, Digitalanzeige und Ahn-Info untereinander */
.gor-clock-wrapper {
.gor-clock-wrapper {
     display: flex;
     display: flex;
Zeile 11: Zeile 10:
     flex-wrap: nowrap;
     flex-wrap: nowrap;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: flex-start;
     gap: 0.85rem;
     gap: 0.8rem;
     margin: 0.75rem auto 0.35rem;
     margin: 0.85rem 0 0.65rem;
     text-align: center;
     text-align: center;
    color: #3b3128;
}
}


/* Analoge Uhr: warmes Zifferblatt und dezenter Rahmen */
/* Analoges Zifferblatt */
.gor-clock-wrapper .gor-clock {
.gor-clock-wrapper .gor-clock {
     position: relative;
     position: relative;
    box-sizing: border-box;
     flex: 0 0 auto;
     flex: 0 0 auto;
     width: 260px;
     width: 270px;
     height: 260px;
     height: 270px;
    max-width: 100%;
    border: 5px solid #66533f;
     border-radius: 50%;
     border-radius: 50%;
    border: 6px solid #64523f;
     background: radial-gradient(circle at 35% 30%, #fbf7ef 0%, #f2e9d8 75%, #e8dcc6 100%);
     background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5ecdc 56%, #e9dcc5 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:
        inset 0 0 0 2px rgba(195, 168, 126, 0.45),
        0 3px 9px rgba(54, 39, 24, 0.12);
}
}


/* Zeiger: Positionierung und Rotation wie bisher belassen */
/* Zeiger: Position und transform-origin nicht verändern, damit JS-Rotation passt */
.gor-clock-wrapper .hand {
.gor-clock-wrapper .hand {
     position: absolute;
     position: absolute;
Zeile 40: Zeile 40:
     border-radius: 5px;
     border-radius: 5px;
}
}
.gor-clock-wrapper .hand-ahn {
.gor-clock-wrapper .hand-ahn {
     width: 6px;
     width: 6px;
     height: 30%;
     height: 30%;
     background: #43372e;
     background: #44372b;
}
}
.gor-clock-wrapper .hand-ehn {
.gor-clock-wrapper .hand-ehn {
     width: 4px;
     width: 4px;
     height: 40%;
     height: 40%;
     background: #6a5847;
     background: #665647;
}
}
.gor-clock-wrapper .hand-ihn {
.gor-clock-wrapper .hand-ihn {
     width: 2px;
     width: 2px;
     height: 45%;
     height: 45%;
     background: #a35748;
     background: #a65244;
}
}
/* Mittelpunkt */
.gor-clock-wrapper .center-dot {
.gor-clock-wrapper .center-dot {
     position: absolute;
     position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
     width: 14px;
     width: 14px;
     height: 14px;
     height: 14px;
    box-sizing: content-box;
    border: 2px solid #fbf7ef;
     border-radius: 50%;
     border-radius: 50%;
     background: #43372e;
     background: #44372b;
    border: 2px solid #f7f0e4;
     box-shadow: 0 0 2px rgba(0,0,0,0.25);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
     box-shadow: 0 0 2px rgba(54, 39, 24, 0.35);
}
}
/* Zahlen: äußere 1–10 und innere 11–20 */
.gor-clock-wrapper .gor-number {
.gor-clock-wrapper .gor-number {
     position: absolute;
     position: absolute;
Zeile 79: Zeile 73:
     text-align: center;
     text-align: center;
     font-size: 0.78rem;
     font-size: 0.78rem;
     color: #504337;
     color: #483e33;
     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-number-inner {
     font-size: 0.66rem;
     font-size: 0.65rem;
     color: #8b7964;
     color: #907963;
}
}


/* Digitale Zeit: eine schlichte Box unter dem Zifferblatt */
/* Digitalanzeige: EINE Box mit dreispaltigem Raster */
.gor-clock-wrapper .gor-digital {
.gor-clock-wrapper > .gor-digital {
     box-sizing: border-box;
     box-sizing: border-box;
     display: grid;
     display: grid !important;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
     align-items: center;
     align-items: center;
     column-gap: 0.75rem;
    justify-items: stretch;
     column-gap: 0.5rem;
     row-gap: 0.45rem;
     row-gap: 0.45rem;
     flex: 0 1 auto;
     flex: none;
     width: min(100%, 300px);
     width: 320px;
    max-width: 100%;
     min-width: 0;
     min-width: 0;
     padding: 0.8rem 0.9rem;
    margin: 0;
     border: 1px solid #d5c2a6;
     padding: 0.9rem 1rem;
     border: 1px solid #d0bea4;
     border-radius: 8px;
     border-radius: 8px;
     background: rgba(255, 251, 244, 0.72);
     background: #faf6ee;
     box-shadow: none;
     box-shadow: none;
     color: #40352c;
     color: #44382d;
     font-family: 'Lora', Georgia, serif;
     font-size: 0.95rem;
     font-variant-numeric: tabular-nums;
     font-variant-numeric: tabular-nums;
}
}


.gor-clock-wrapper .digital-label {
/* Verhindert die schmalen, ineinander geschachtelten Spalten aus alten Regeln */
     grid-column: 1 / -1;
.gor-clock-wrapper > .gor-digital > span {
     display: block;
     box-sizing: border-box;
     margin: 0;
     display: block !important;
     color: #756149;
    flex: none !important;
     font-family: 'Cinzel', Georgia, serif;
    width: auto !important;
     font-size: 0.72rem;
    max-width: none !important;
     font-weight: 600;
    min-width: 0 !important;
     letter-spacing: 0.065em;
     margin: 0 !important;
     line-height: 1.35;
     padding: 0 !important;
     border: 0 !important;
     border-radius: 0 !important;
    background: transparent !important;
     box-shadow: none !important;
     text-align: center;
     line-height: 1.5;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
}


.gor-clock-wrapper .gor-digital > span:not(.digital-label) {
.gor-clock-wrapper > .gor-digital > .digital-label {
     display: block;
     grid-column: 1 / -1;
    margin: 0;
     color: #705b45;
     color: #40352c;
     font-size: 0.78rem;
     font-size: 0.95rem;
     font-weight: 700;
     font-weight: 600;
     letter-spacing: 0.035em;
     line-height: 1.5;
     margin-bottom: 0.1rem !important;
     text-align: center;
    white-space: nowrap;
}
}


/* Der laufend aktualisierte Ahn-Hinweis steht nicht mehr rechts daneben */
/* Ahn-Hinweis separat unter der Digitalbox */
.gor-clock-wrapper .gor-info {
.gor-clock-wrapper > .gor-info {
    flex: none;
     width: 100%;
     width: 100%;
     max-width: 320px;
     min-width: 0;
     margin: 0;
     margin: 0;
     color: #786a5b;
    padding: 0;
    border: 0;
     color: #7b6b59;
     font-size: 0.8rem;
     font-size: 0.8rem;
    line-height: 1.45;
     text-align: center;
     text-align: center;
}
}


@media (max-width: 480px) {
@media (max-width: 380px) {
     .gor-clock-wrapper {
     .gor-clock-wrapper .gor-clock {
         gap: 0.7rem;
         width: 240px;
        height: 240px;
     }
     }
 
     .gor-clock-wrapper > .gor-digital {
     .gor-clock-wrapper .gor-digital {
         width: 100%;
         width: min(100%, 290px);
        padding: 0.75rem 0.5rem;
        column-gap: 0.25rem;
        font-size: 0.85rem;
     }
     }
}
}

Version vom 31. Oktober 2026, 08:54 Uhr

/* Gor-Uhr – konsolidiertes Pergamentdesign
 * Vollständiger Ersatz für ALLE bisherigen Uhr-Regeln in MediaWiki:Common.css.
 * Vorlage:GorUhr und das JavaScript bleiben unverändert.
 */

/* Gemeinsames Layout: Uhr, Digitalanzeige und Ahn-Info untereinander */
.gor-clock-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    margin: 0.85rem 0 0.65rem;
    text-align: center;
    color: #3b3128;
}

/* Analoges Zifferblatt */
.gor-clock-wrapper .gor-clock {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 270px;
    height: 270px;
    max-width: 100%;
    border: 5px solid #66533f;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fbf7ef 0%, #f2e9d8 75%, #e8dcc6 100%);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55), 0 3px 8px rgba(52,38,24,0.13);
}

/* Zeiger: Position und transform-origin nicht verändern, damit JS-Rotation passt */
.gor-clock-wrapper .hand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 5px;
}
.gor-clock-wrapper .hand-ahn {
    width: 6px;
    height: 30%;
    background: #44372b;
}
.gor-clock-wrapper .hand-ehn {
    width: 4px;
    height: 40%;
    background: #665647;
}
.gor-clock-wrapper .hand-ihn {
    width: 2px;
    height: 45%;
    background: #a65244;
}
.gor-clock-wrapper .center-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    box-sizing: content-box;
    border: 2px solid #fbf7ef;
    border-radius: 50%;
    background: #44372b;
    box-shadow: 0 0 2px rgba(0,0,0,0.25);
}
.gor-clock-wrapper .gor-number {
    position: absolute;
    width: 2em;
    text-align: center;
    font-size: 0.78rem;
    color: #483e33;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.gor-clock-wrapper .gor-number-inner {
    font-size: 0.65rem;
    color: #907963;
}

/* Digitalanzeige: EINE Box mit dreispaltigem Raster */
.gor-clock-wrapper > .gor-digital {
    box-sizing: border-box;
    display: grid !important;
    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%;
    min-width: 0;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #d0bea4;
    border-radius: 8px;
    background: #faf6ee;
    box-shadow: none;
    color: #44382d;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

/* Verhindert die schmalen, ineinander geschachtelten Spalten aus alten Regeln */
.gor-clock-wrapper > .gor-digital > span {
    box-sizing: border-box;
    display: block !important;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.gor-clock-wrapper > .gor-digital > .digital-label {
    grid-column: 1 / -1;
    color: #705b45;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    margin-bottom: 0.1rem !important;
}

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

@media (max-width: 380px) {
    .gor-clock-wrapper .gor-clock {
        width: 240px;
        height: 240px;
    }
    .gor-clock-wrapper > .gor-digital {
        width: 100%;
        padding: 0.75rem 0.5rem;
        column-gap: 0.25rem;
        font-size: 0.85rem;
    }
}