MediaWiki:Common.css: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/ | /* 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. | ||
* Vorlage:GorUhr und JavaScript bleiben unverändert. | |||
*/ | */ | ||
/* | /* 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: | justify-content: flex-start; | ||
gap: 0. | gap: 0.8rem; | ||
margin: 0. | margin: 0.85rem 0 0.65rem; | ||
text-align: center; | text-align: center; | ||
color: #3b3128; | |||
} | } | ||
/* | /* 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: | width: 270px; | ||
height: | height: 270px; | ||
max-width: 100%; | |||
border: 5px solid #66533f; | |||
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 | box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55), 0 3px 8px rgba(52,38,24,0.13); | ||
box-shadow: | |||
} | } | ||
/* Zeiger: | /* 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: # | background: #44372b; | ||
} | } | ||
.gor-clock-wrapper .hand-ehn { | .gor-clock-wrapper .hand-ehn { | ||
width: 4px; | width: 4px; | ||
height: 40%; | height: 40%; | ||
background: # | background: #665647; | ||
} | } | ||
.gor-clock-wrapper .hand-ihn { | .gor-clock-wrapper .hand-ihn { | ||
width: 2px; | width: 2px; | ||
height: 45%; | height: 45%; | ||
background: # | background: #a65244; | ||
} | } | ||
.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: # | background: #44372b; | ||
box-shadow: 0 0 2px rgba(0,0,0,0.25); | |||
box-shadow: 0 0 2px rgba( | |||
} | } | ||
.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: # | color: #483e33; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); | ||
pointer-events: none; | pointer-events: none; | ||
} | } | ||
.gor-clock-wrapper .gor-number-inner { | .gor-clock-wrapper .gor-number-inner { | ||
font-size: 0. | font-size: 0.65rem; | ||
color: # | color: #907963; | ||
} | } | ||
/* | /* 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. | justify-items: stretch; | ||
column-gap: 0.5rem; | |||
row-gap: 0.45rem; | row-gap: 0.45rem; | ||
flex: | flex: none; | ||
width: | width: 320px; | ||
max-width: 100%; | |||
min-width: 0; | min-width: 0; | ||
padding: | margin: 0; | ||
border: 1px solid # | padding: 0.9rem 1rem; | ||
border: 1px solid #d0bea4; | |||
border-radius: 8px; | border-radius: 8px; | ||
background: | background: #faf6ee; | ||
box-shadow: none; | box-shadow: none; | ||
color: # | color: #44382d; | ||
font- | font-size: 0.95rem; | ||
font-variant-numeric: tabular-nums; | font-variant-numeric: tabular-nums; | ||
} | } | ||
.gor-clock-wrapper .digital | /* Verhindert die schmalen, ineinander geschachtelten Spalten aus alten Regeln */ | ||
.gor-clock-wrapper > .gor-digital > span { | |||
display: block; | box-sizing: border-box; | ||
margin: 0; | display: block !important; | ||
flex: none !important; | |||
width: auto !important; | |||
max-width: none !important; | |||
min-width: 0 !important; | |||
margin: 0 !important; | |||
line-height: 1. | 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 > | .gor-clock-wrapper > .gor-digital > .digital-label { | ||
grid-column: 1 / -1; | |||
color: #705b45; | |||
color: # | font-size: 0.78rem; | ||
font-size: 0. | font-weight: 700; | ||
font-weight: | letter-spacing: 0.035em; | ||
margin-bottom: 0.1rem !important; | |||
} | } | ||
/* | /* Ahn-Hinweis separat unter der Digitalbox */ | ||
.gor-clock-wrapper .gor-info { | .gor-clock-wrapper > .gor-info { | ||
flex: none; | |||
width: 100%; | width: 100%; | ||
min-width: 0; | |||
margin: 0; | margin: 0; | ||
color: # | padding: 0; | ||
border: 0; | |||
color: #7b6b59; | |||
font-size: 0.8rem; | font-size: 0.8rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
@media (max-width: | @media (max-width: 380px) { | ||
.gor-clock-wrapper { | .gor-clock-wrapper .gor-clock { | ||
width: 240px; | |||
height: 240px; | |||
} | } | ||
.gor-clock-wrapper > .gor-digital { | |||
.gor-clock-wrapper .gor-digital { | width: 100%; | ||
width: | 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;
}
}