MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* | |||
* Gor-Uhr – Gestaltung für wiki.gegenerde.net | |||
* Ersetzt ausschließlich die bisher gezeigten CSS-Regeln. | |||
* Vorlage:GorUhr und JavaScript bleiben unverändert. | |||
*/ | |||
/* Grundlayout: Uhr, Digitalanzeige und Erläuterung untereinander */ | |||
.gor-clock-wrapper { | .gor-clock-wrapper { | ||
display: flex; | display: flex; | ||
flex-direction: | flex-direction: column; | ||
flex-wrap: | flex-wrap: nowrap; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 0.85rem; | ||
margin: | margin: 0.75rem auto 0.35rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* | /* Analoge Uhr: warmes Zifferblatt und dezenter Rahmen */ | ||
.gor-clock-wrapper .gor-clock { | |||
.gor-clock { | |||
position: relative; | position: relative; | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
| Zeile 19: | Zeile 24: | ||
height: 260px; | height: 260px; | ||
border-radius: 50%; | border-radius: 50%; | ||
border: 6px solid # | border: 6px solid #64523f; | ||
background: radial-gradient(circle at 30% | background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5ecdc 56%, #e9dcc5 100%); | ||
box-shadow: 0 | 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 */ | ||
.gor-clock-wrapper .hand { | |||
.hand { | |||
position: absolute; | position: absolute; | ||
left: 50%; | left: 50%; | ||
top: 50%; | top: 50%; | ||
transform-origin: 50% 100%; | transform-origin: 50% 100%; | ||
transform: translate(-50%, -100%) rotate(0deg); | transform: translate(-50%, -100%) rotate(0deg); | ||
border-radius: 5px; | border-radius: 5px; | ||
} | } | ||
.hand-ahn { | .gor-clock-wrapper .hand-ahn { | ||
width: 6px; | width: 6px; | ||
height: 30%; | height: 30%; | ||
background: # | background: #43372e; | ||
} | } | ||
.hand-ehn { | .gor-clock-wrapper .hand-ehn { | ||
width: 4px; | width: 4px; | ||
height: 40%; | height: 40%; | ||
background: # | background: #6a5847; | ||
} | } | ||
.hand-ihn { | .gor-clock-wrapper .hand-ihn { | ||
width: 2px; | width: 2px; | ||
height: 45%; | height: 45%; | ||
background: # | background: #a35748; | ||
} | } | ||
/* Mittelpunkt | /* Mittelpunkt */ | ||
.center-dot { | .gor-clock-wrapper .center-dot { | ||
position: absolute; | position: absolute; | ||
width: 14px; | width: 14px; | ||
height: 14px; | height: 14px; | ||
border-radius: 50%; | border-radius: 50%; | ||
background: # | background: #43372e; | ||
border: 2px solid # | border: 2px solid #f7f0e4; | ||
left: 50%; | left: 50%; | ||
top: 50%; | top: 50%; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); | ||
box-shadow: 0 0 | 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-number { | |||
position: absolute; | position: absolute; | ||
width: 2em; | width: 2em; | ||
text-align: center; | text-align: center; | ||
font-size: 0. | font-size: 0.78rem; | ||
color: # | color: #504337; | ||
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-number-inner { | font-size: 0.66rem; | ||
font-size: 0. | color: #8b7964; | ||
color: # | |||
} | } | ||
/* ----------- | /* Digitale Zeit: eine schlichte Box unter dem Zifferblatt */ | ||
.gor-clock-wrapper .gor-digital { | |||
box-sizing: border-box; | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
align-items: center; | |||
column-gap: 0.75rem; | |||
row-gap: 0.45rem; | |||
flex: 0 1 auto; | |||
width: min(100%, 300px); | |||
min-width: 0; | |||
padding: 0.8rem 0.9rem; | |||
border: 1px solid #d5c2a6; | |||
border-radius: 8px; | |||
background: rgba(255, 251, 244, 0.72); | |||
box-shadow: none; | |||
color: #40352c; | |||
font-family: 'Lora', Georgia, serif; | |||
font-variant-numeric: tabular-nums; | font-variant-numeric: tabular-nums; | ||
} | } | ||
.digital-label { | .gor-clock-wrapper .digital-label { | ||
font-size: 0. | grid-column: 1 / -1; | ||
display: block; | |||
margin: 0; | |||
color: #756149; | |||
font-family: 'Cinzel', Georgia, serif; | |||
font-size: 0.72rem; | |||
font-weight: 600; | |||
letter-spacing: 0.065em; | |||
line-height: 1.35; | |||
} | } | ||
.gor-digital span { | .gor-clock-wrapper .gor-digital > span:not(.digital-label) { | ||
margin- | display: block; | ||
margin: 0; | |||
color: #40352c; | |||
font-size: 0.95rem; | |||
font-weight: 600; | |||
line-height: 1.5; | |||
text-align: center; | |||
white-space: nowrap; | |||
} | } | ||
/* - | /* Der laufend aktualisierte Ahn-Hinweis steht nicht mehr rechts daneben */ | ||
.gor-clock-wrapper .gor-info { | |||
width: 100%; | |||
.gor-info { | max-width: 320px; | ||
margin: 0; | |||
color: #786a5b; | |||
font-size: 0.8rem; | font-size: 0.8rem; | ||
line-height: 1.45; | |||
text-align: center; | text-align: center; | ||
} | |||
@media (max-width: 480px) { | |||
.gor-clock-wrapper { | |||
gap: 0.7rem; | |||
} | |||
.gor-clock-wrapper .gor-digital { | |||
width: min(100%, 290px); | |||
} | |||
} | } | ||
Version vom 31. Oktober 2026, 08:52 Uhr
/*
* Gor-Uhr – Gestaltung für wiki.gegenerde.net
* Ersetzt ausschließlich die bisher gezeigten CSS-Regeln.
* Vorlage:GorUhr und JavaScript bleiben unverändert.
*/
/* Grundlayout: Uhr, Digitalanzeige und Erläuterung untereinander */
.gor-clock-wrapper {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
gap: 0.85rem;
margin: 0.75rem auto 0.35rem;
text-align: center;
}
/* Analoge Uhr: warmes Zifferblatt und dezenter Rahmen */
.gor-clock-wrapper .gor-clock {
position: relative;
flex: 0 0 auto;
width: 260px;
height: 260px;
border-radius: 50%;
border: 6px solid #64523f;
background: radial-gradient(circle at 30% 28%, #fffaf1 0%, #f5ecdc 56%, #e9dcc5 100%);
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 */
.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: #43372e;
}
.gor-clock-wrapper .hand-ehn {
width: 4px;
height: 40%;
background: #6a5847;
}
.gor-clock-wrapper .hand-ihn {
width: 2px;
height: 45%;
background: #a35748;
}
/* Mittelpunkt */
.gor-clock-wrapper .center-dot {
position: absolute;
width: 14px;
height: 14px;
border-radius: 50%;
background: #43372e;
border: 2px solid #f7f0e4;
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 {
position: absolute;
width: 2em;
text-align: center;
font-size: 0.78rem;
color: #504337;
transform: translate(-50%, -50%);
pointer-events: none;
font-variant-numeric: tabular-nums;
}
.gor-clock-wrapper .gor-number-inner {
font-size: 0.66rem;
color: #8b7964;
}
/* Digitale Zeit: eine schlichte Box unter dem Zifferblatt */
.gor-clock-wrapper .gor-digital {
box-sizing: border-box;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items: center;
column-gap: 0.75rem;
row-gap: 0.45rem;
flex: 0 1 auto;
width: min(100%, 300px);
min-width: 0;
padding: 0.8rem 0.9rem;
border: 1px solid #d5c2a6;
border-radius: 8px;
background: rgba(255, 251, 244, 0.72);
box-shadow: none;
color: #40352c;
font-family: 'Lora', Georgia, serif;
font-variant-numeric: tabular-nums;
}
.gor-clock-wrapper .digital-label {
grid-column: 1 / -1;
display: block;
margin: 0;
color: #756149;
font-family: 'Cinzel', Georgia, serif;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.065em;
line-height: 1.35;
}
.gor-clock-wrapper .gor-digital > span:not(.digital-label) {
display: block;
margin: 0;
color: #40352c;
font-size: 0.95rem;
font-weight: 600;
line-height: 1.5;
text-align: center;
white-space: nowrap;
}
/* Der laufend aktualisierte Ahn-Hinweis steht nicht mehr rechts daneben */
.gor-clock-wrapper .gor-info {
width: 100%;
max-width: 320px;
margin: 0;
color: #786a5b;
font-size: 0.8rem;
line-height: 1.45;
text-align: center;
}
@media (max-width: 480px) {
.gor-clock-wrapper {
gap: 0.7rem;
}
.gor-clock-wrapper .gor-digital {
width: min(100%, 290px);
}
}