MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* | /* ============================================================ | ||
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 { | .gor-clock-wrapper { | ||
display: flex; | display: flex; | ||
| Zeile 11: | Zeile 14: | ||
flex-wrap: nowrap; | flex-wrap: nowrap; | ||
align-items: center; | align-items: center; | ||
justify-content: | justify-content: flex-start; | ||
gap: | gap: 13px; | ||
margin: 0 | margin: 12px 0 8px; | ||
text-align: center; | text-align: center; | ||
color: #40362b; | |||
} | } | ||
/* | /* 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; | flex: 0 0 auto; | ||
width: | box-sizing: border-box; | ||
height: | width: 270px; | ||
height: 270px; | |||
max-width: 100%; | |||
overflow: hidden; | |||
border: 5px solid #685642; | |||
border-radius: 50%; | border-radius: 50%; | ||
background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5eddc 64%, #ebe0ca 100%); | |||
background: radial-gradient(circle at 30% 28%, #fffaf1 0%, # | box-shadow: 0 3px 8px rgba(54, 39, 24, .15), inset 0 0 0 2px rgba(255,255,255,.42); | ||
box-shadow: | |||
} | } | ||
/* Zeiger | /* 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 .gor-clock .hand-ahn { | |||
.gor-clock-wrapper .hand-ahn { | |||
width: 6px; | width: 6px; | ||
height: 30%; | height: 30%; | ||
background: # | background: #40352b; | ||
} | } | ||
.gor-clock-wrapper .gor-clock .hand-ehn { | |||
.gor-clock-wrapper .hand-ehn { | |||
width: 4px; | width: 4px; | ||
height: 40%; | height: 40%; | ||
background: # | background: #6a5947; | ||
} | } | ||
.gor-clock-wrapper .gor-clock .hand-ihn { | |||
.gor-clock-wrapper .hand-ihn { | |||
width: 2px; | width: 2px; | ||
height: 45%; | height: 45%; | ||
background: # | background: #a24d43; | ||
} | } | ||
.gor-clock-wrapper .gor-clock .center-dot { | |||
.gor-clock-wrapper .center-dot { | |||
position: absolute; | position: absolute; | ||
left: 50%; | |||
top: 50%; | |||
width: 14px; | width: 14px; | ||
height: 14px; | height: 14px; | ||
box-sizing: content-box; | |||
transform: translate(-50%, -50%); | |||
border: 2px solid #faf5ec; | |||
border-radius: 50%; | border-radius: 50%; | ||
background: # | background: #40352b; | ||
box-shadow: 0 0 3px rgba(0,0,0,.24); | |||
z-index: 2; | |||
box-shadow: 0 0 | |||
} | } | ||
/* | /* Diese zwei Regeln sind wesentlich: Sonst erscheinen die | ||
.gor-clock-wrapper .gor-number { | 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: | font-size: .76rem; | ||
color: # | 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; | font-variant-numeric: tabular-nums; | ||
} | } | ||
.gor-clock-wrapper .gor-clock .gor-number-inner { | |||
.gor-clock-wrapper .gor-number-inner { | font-size: .65rem; | ||
font-size: | color: #947d63; | ||
color: # | |||
} | } | ||
/* | /* Ein Raster, vier direkte span-Kinder: Titel + drei Zeitwerte. | ||
.gor-clock-wrapper .gor-digital { | Keine allgemeinen [id*=digital]-Selektoren verwenden! */ | ||
.gor-clock-wrapper > .gor-digital { | |||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
justify-items: stretch; | |||
align-items: center; | align-items: center; | ||
gap: 9px 8px; | |||
flex: 0 0 auto; | |||
box-sizing: border-box; | |||
width: | width: 300px; | ||
max-width: 100%; | |||
min-width: 0; | min-width: 0; | ||
padding: | margin: 0; | ||
border: 1px solid # | padding: 13px 14px 15px; | ||
border: 1px solid #d0bea4; | |||
border-radius: 8px; | border-radius: 8px; | ||
background: | background: #faf6ee; | ||
color: #40352b; | |||
box-shadow: none; | box-shadow: none; | ||
font-variant-numeric: tabular-nums; | font-variant-numeric: tabular-nums; | ||
} | } | ||
.gor-clock-wrapper > .gor-digital > span { | |||
.gor-clock-wrapper .digital | |||
display: block; | display: block; | ||
box-sizing: border-box; | |||
width: auto; | |||
min-width: 0; | |||
max-width: none; | |||
margin: 0; | margin: 0; | ||
padding: 0; | |||
border: 0; | |||
border-radius: 0; | |||
background: transparent; | |||
box-shadow: none; | |||
line-height: 1. | 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 { | |||
.gor-clock-wrapper .gor-digital > | grid-column: 1 / -1; | ||
font-size: .8rem; | |||
font-size: | |||
font-weight: 600; | font-weight: 600; | ||
color: #765f46; | |||
letter-spacing: .03em; | |||
} | } | ||
.gor-clock-wrapper > .gor-info { | |||
.gor-clock-wrapper .gor-info { | flex: 0 0 auto; | ||
width: | width: auto; | ||
max-width: | max-width: 100%; | ||
margin: 0; | margin: 0; | ||
color: # | padding: 0; | ||
font-size: | border: 0; | ||
background: transparent; | |||
color: #7d6c58; | |||
font-size: .8rem; | |||
line-height: 1.45; | line-height: 1.45; | ||
text-align: center; | text-align: center; | ||
} | } | ||
@media (max-width: | @media (max-width: 360px) { | ||
.gor-clock-wrapper { | .gor-clock-wrapper > .gor-clock { | ||
gap: | width: 240px; | ||
height: 240px; | |||
} | |||
.gor-clock-wrapper > .gor-digital { | |||
width: 100%; | |||
padding: 12px 6px; | |||
column-gap: 3px; | |||
} | } | ||
.gor-clock-wrapper > .gor-digital > span { | |||
.gor-clock-wrapper .gor-digital { | 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;
}
}