MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
(modernizacja szablonu) |
(modernizacja szablonu) |
||
| (Nie pokazano 13 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
| Linia 122: | Linia 122: | ||
/* Formularz "Tr" */ | /* Formularz "Tr" */ | ||
.tr { | .tr { | ||
| − | border: 2px solid red | + | border: 2px solid red; |
} | } | ||
| Linia 166: | Linia 166: | ||
flex: 1 1 200px; | flex: 1 1 200px; | ||
min-width: 180px; | min-width: 180px; | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
} | } | ||
| Linia 184: | Linia 179: | ||
} | } | ||
} | } | ||
| + | /* --------------------------------------------------------- | ||
| + | Karta katalogowa artykułu: | ||
| + | przyciski akcji oraz eksport spisu treści numeru do XLSX/CSV | ||
| + | --------------------------------------------------------- */ | ||
| + | |||
| + | /* | ||
| + | * Kontener przycisków: | ||
| + | * - „Spis treści numeru” generowany przez Page Forms, | ||
| + | * - „Wygeneruj XLSX” i „Wygeneruj CSV” generowane przez SMW. | ||
| + | */ | ||
| + | .art-actions { | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | gap: 6px; | ||
| + | align-items: center; | ||
| + | margin-top: 10px; | ||
| + | margin-bottom: 10px; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | * Wspólny wygląd wszystkich przycisków i linków w sekcji akcji. | ||
| + | * Celowo obejmuje zarówno zwykłe linki <a>, jak i elementy | ||
| + | * <button>/<input>, ponieważ Page Forms i SMW generują różny HTML. | ||
| + | */ | ||
| + | .art-actions a, | ||
| + | .art-actions button, | ||
| + | .art-actions input[type="button"], | ||
| + | .art-actions input[type="submit"] { | ||
| + | box-sizing: border-box; | ||
| + | min-height: 34px; | ||
| + | padding: 5px 10px; | ||
| + | border: 1px solid #a2a9b1; | ||
| + | border-radius: 2px; | ||
| + | background-color: #f8f9fa; | ||
| + | color: #202122; | ||
| + | font: inherit; | ||
| + | line-height: 1.4; | ||
| + | text-decoration: none; | ||
| + | vertical-align: middle; | ||
| + | cursor: pointer; | ||
| + | -webkit-appearance: none; | ||
| + | appearance: none; | ||
| + | } | ||
| + | |||
| + | /* Linki eksportu XLSX/CSV są wyrównane tak samo jak przyciski formularza. */ | ||
| + | .art-export-button a { | ||
| + | display: inline-flex; | ||
| + | align-items: center; | ||
| + | } | ||
| + | |||
| + | /* Stan po najechaniu na dowolny przycisk w sekcji akcji. */ | ||
| + | .art-actions a:hover, | ||
| + | .art-actions button:hover, | ||
| + | .art-actions input[type="button"]:hover, | ||
| + | .art-actions input[type="submit"]:hover { | ||
| + | background-color: #ffffff; | ||
| + | border-color: #72777d; | ||
| + | color: #202122; | ||
| + | text-decoration: none; | ||
| + | } | ||
| + | |||
| + | /* Zachowanie czytelnego obramowania podczas nawigacji klawiaturą. */ | ||
| + | .art-actions a:focus, | ||
| + | .art-actions button:focus, | ||
| + | .art-actions input[type="button"]:focus, | ||
| + | .art-actions input[type="submit"]:focus { | ||
| + | outline: 2px solid #36c; | ||
| + | outline-offset: 1px; | ||
| + | } | ||
| + | |||
/* ========================================================= | /* ========================================================= | ||
Karty taborowe Lw | Karty taborowe Lw | ||
| Linia 214: | Linia 279: | ||
.lw-status { | .lw-status { | ||
| − | + | display: grid; | |
| − | + | grid-template-columns: minmax(0, 45%) minmax(0, 55%); | |
| − | + | width: 100%; | |
| − | + | margin: 4px 0 8px; | |
| − | + | border-radius: 5px; | |
| − | + | overflow: hidden; | |
| + | color: #004d80; | ||
| + | font-size: 120%; | ||
| + | font-weight: bold; | ||
} | } | ||
.lw-status-title { | .lw-status-title { | ||
| − | + | min-width: 0; | |
| + | padding: 5px 3px; | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
} | } | ||
.lw-status-info { | .lw-status-info { | ||
| − | + | min-width: 0; | |
| + | padding: 5px 3px; | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | .lw-status-sprawna { | ||
| + | background-color: #aeeaae; | ||
| + | } | ||
| + | |||
| + | .lw-status-odstawiona { | ||
| + | background-color: #ffb84d; | ||
| + | } | ||
| + | |||
| + | .lw-status-zlom { | ||
| + | background-color: #ff6666; | ||
| + | } | ||
| + | |||
| + | .lw-status-eksponat { | ||
| + | background-color: #ff66d9; | ||
| + | } | ||
| + | |||
| + | .lw-status-pomnik { | ||
| + | background-color: #cc99ff; | ||
| + | } | ||
| + | |||
| + | .lw-status-remont { | ||
| + | background-color: #99ffff; | ||
| + | } | ||
| + | |||
| + | .lw-status-zagranica { | ||
| + | background-color: #ffff80; | ||
| + | } | ||
| + | |||
| + | .lw-status-przebudowana { | ||
| + | background-color: #000000; | ||
| + | color: #ffffff; | ||
| + | } | ||
| + | |||
| + | .lw-status-wrak { | ||
| + | background-color: #cc4400; | ||
| + | color: #ffffff; | ||
| + | } | ||
| + | |||
| + | .lw-status-nieznany { | ||
| + | background-color: #d9d9d9; | ||
} | } | ||
| Linia 254: | Linia 370: | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Małe kafelki z podstawowymi danymi | Małe kafelki z podstawowymi danymi | ||
| + | Flexbox zamiast gridu: | ||
| + | brakujące pola nie pozostawiają pustych miejsc. | ||
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
.lw-data-grid { | .lw-data-grid { | ||
| − | display: | + | display: flex; |
| − | + | flex-wrap: wrap; | |
gap: 6px; | gap: 6px; | ||
margin-top: 10px; | margin-top: 10px; | ||
| + | align-items: stretch; | ||
} | } | ||
.lw-data-box { | .lw-data-box { | ||
| + | flex: 1 1 210px; | ||
min-width: 0; | min-width: 0; | ||
border-radius: 5px; | border-radius: 5px; | ||
| Linia 285: | Linia 405: | ||
text-align: center; | text-align: center; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| − | background: linear-gradient(to bottom, #dddddd 0%, #ffffff 100%); | + | background: linear-gradient( |
| + | to bottom, | ||
| + | #dddddd 0%, | ||
| + | #ffffff 100% | ||
| + | ); | ||
} | } | ||
| Linia 294: | Linia 418: | ||
.lw-history-grid { | .lw-history-grid { | ||
| − | + | display: grid; | |
| − | + | grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); | |
| − | + | gap: 8px; | |
| − | + | width: 100%; | |
| − | + | margin-top: 10px; | |
| + | align-items: start; | ||
| + | } | ||
| + | |||
| + | .lw-history-item { | ||
| + | min-width: 0; | ||
} | } | ||
.lw-history-box { | .lw-history-box { | ||
| − | + | width: 100%; | |
| − | + | min-width: 0; | |
| − | + | border-radius: 5px; | |
| − | + | overflow: hidden; | |
| + | text-align: center; | ||
} | } | ||
.lw-history-header { | .lw-history-header { | ||
| − | + | padding: 3px 5px; | |
| − | + | background-color: #004d80; | |
| − | + | color: #fff; | |
| − | + | font-size: 90%; | |
| − | + | font-weight: bold; | |
| − | + | text-align: center; | |
} | } | ||
.lw-history-table { | .lw-history-table { | ||
| − | + | width: 100%; | |
| − | + | border-collapse: collapse; | |
| − | + | border-spacing: 0; | |
| − | + | table-layout: auto; | |
| + | background: linear-gradient(to bottom, #ddd 0%, #fff 100%); | ||
} | } | ||
.lw-history-table th, | .lw-history-table th, | ||
.lw-history-table td { | .lw-history-table td { | ||
| − | + | padding: 4px 6px; | |
| − | + | vertical-align: top; | |
| − | + | text-align: center; | |
| − | |||
} | } | ||
.lw-history-table th { | .lw-history-table th { | ||
| − | + | font-weight: bold; | |
| + | } | ||
| + | |||
| + | /* pierwsza kolumna: stacja / rozstaw / oznaczenie */ | ||
| + | .lw-history-table td:first-child { | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | /* daty i separator nie mogą się łamać */ | ||
| + | .lw-history-table td:nth-child(2), | ||
| + | .lw-history-table td:nth-child(3), | ||
| + | .lw-history-table td:nth-child(4) { | ||
| + | white-space: nowrap; | ||
} | } | ||
.lw-history-table tbody tr:nth-child(even) { | .lw-history-table tbody tr:nth-child(even) { | ||
| − | + | background-color: rgba(255, 255, 255, .30); | |
} | } | ||
| + | .lw-history-value { | ||
| + | width: 76%; | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | .lw-history-date { | ||
| + | width: 10%; | ||
| + | text-align: center; | ||
| + | white-space: nowrap; | ||
| + | } | ||
| + | |||
| + | .lw-history-separator { | ||
| + | width: 4%; | ||
| + | text-align: center; | ||
| + | white-space: nowrap; | ||
| + | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Duże sekcje: | Duże sekcje: | ||
| Linia 366: | Linia 525: | ||
padding: 6px; | padding: 6px; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| − | background: linear-gradient(to bottom, #dddddd 0%, #ffffff 100%); | + | background: linear-gradient( |
| + | to bottom, | ||
| + | #dddddd 0%, | ||
| + | #ffffff 100% | ||
| + | ); | ||
} | } | ||
| Linia 441: | Linia 604: | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| − | Tablety | + | Tablety i węższe ekrany |
--------------------------------------------------------- */ | --------------------------------------------------------- */ | ||
@media screen and (max-width: 900px) { | @media screen and (max-width: 900px) { | ||
| − | .lw-data- | + | .lw-data-box { |
| − | + | flex-basis: 180px; | |
} | } | ||
.lw-history-grid { | .lw-history-grid { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
| + | } | ||
| + | |||
| + | .lw-history-item { | ||
| + | width: 100%; | ||
} | } | ||
} | } | ||
| − | |||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
| Linia 463: | Linia 629: | ||
@media screen and (max-width: 600px) { | @media screen and (max-width: 600px) { | ||
| − | .lw-data- | + | .lw-data-box { |
| − | + | flex: 1 1 100%; | |
| + | width: 100%; | ||
} | } | ||
| − | |||
.lw-history-box { | .lw-history-box { | ||
width: 100%; | width: 100%; | ||
| Linia 484: | Linia 650: | ||
} | } | ||
| + | } | ||
| + | |||
| + | /* ========================================================= | ||
| + | STRONA GŁÓWNA ENKOLU | ||
| + | ========================================================= */ | ||
| + | |||
| + | /* --- Główny układ strony: zawsze dwie równe kolumny --- */ | ||
| + | |||
| + | .enkol-main-grid { | ||
| + | display: grid; | ||
| + | grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); | ||
| + | gap: 4px; | ||
| + | width: 100%; | ||
| + | margin-top: 4px; | ||
| + | align-items: start; | ||
| + | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | .enkol-main-column { | ||
| + | min-width: 0; | ||
| + | box-sizing: border-box; | ||
| + | border: 1px solid #aaaaaa; | ||
| + | background-color: #ebe6d1; | ||
| + | padding: 5px; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Pojedynczy panel strony głównej --- */ | ||
| + | |||
| + | .main-panel { | ||
| + | width: 100%; | ||
| + | min-width: 0; | ||
| + | margin-bottom: 5px; | ||
| + | box-sizing: border-box; | ||
| + | } | ||
| + | |||
| + | .main-panel:last-child { | ||
| + | margin-bottom: 0; | ||
| + | } | ||
| + | |||
| + | .main-panel-header { | ||
| + | box-sizing: border-box; | ||
| + | padding: 7px 4px; | ||
| + | border: 1px solid #a3bfb1; | ||
| + | font-family: Arial, Helvetica, sans-serif; | ||
| + | font-size: 120%; | ||
| + | font-weight: bold; | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | .main-panel-content { | ||
| + | min-width: 0; | ||
| + | padding: 5px 4px; | ||
| + | box-sizing: border-box; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | .main-panel-content img { | ||
| + | max-width: 100%; | ||
| + | height: auto; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Wyróżnione grafiki / ilustracje w panelach --- */ | ||
| + | |||
| + | .main-featured-image { | ||
| + | text-align: center; | ||
| + | } | ||
| + | |||
| + | .main-featured-image img { | ||
| + | max-width: 100%; | ||
| + | height: auto; | ||
| + | } | ||
| + | |||
| + | .main-featured-caption { | ||
| + | margin-top: 4px; | ||
| + | font-size: 90%; | ||
| + | text-align: center; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Linki akcji w dolnej części panelu --- */ | ||
| + | |||
| + | .main-panel-actions { | ||
| + | margin-top: 4px; | ||
| + | text-align: right; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Sekcja „Czy wiesz” --- */ | ||
| + | |||
| + | .main-didyouknow ul { | ||
| + | margin-top: 0; | ||
| + | margin-bottom: 0.5em; | ||
| + | padding-left: 1.4em; | ||
| + | } | ||
| + | |||
| + | .main-didyouknow li { | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Lista „Najnowsze w archiwum” --- */ | ||
| + | |||
| + | .main-archive-list ul { | ||
| + | margin-top: 0; | ||
| + | margin-bottom: 0.5em; | ||
| + | padding-left: 1.25em; | ||
| + | } | ||
| + | |||
| + | .main-archive-list li { | ||
| + | margin-bottom: 0.3em; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* --- Górny baner strony głównej --- */ | ||
| + | |||
| + | .main-banner { | ||
| + | display: grid; | ||
| + | grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); | ||
| + | width: 100%; | ||
| + | box-sizing: border-box; | ||
| + | padding: 6px; | ||
| + | background-color: #cfc28d; | ||
| + | gap: 8px; | ||
| + | } | ||
| + | |||
| + | .main-banner-intro { | ||
| + | min-width: 0; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | .main-banner-title { | ||
| + | margin-bottom: 2px; | ||
| + | font-size: 120%; | ||
| + | font-weight: bold; | ||
| + | } | ||
| + | |||
| + | .main-banner-stats { | ||
| + | margin-top: 3px; | ||
| + | } | ||
| + | |||
| + | .main-banner-links { | ||
| + | min-width: 0; | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | align-content: center; | ||
| + | justify-content: center; | ||
| + | gap: 4px 10px; | ||
| + | text-align: center; | ||
| + | overflow-wrap: break-word; | ||
| + | } | ||
| + | |||
| + | .main-banner-links span { | ||
| + | white-space: normal; | ||
} | } | ||
Aktualna wersja na dzień 23:59, 15 wrz 2026
/* Umieszczony tutaj kod CSS zostanie zastosowany we wszystkich skórkach */
/* Style dla infoboksów */
.infobox {
border: 1px solid #aaa;
background-color: #f8f8f8;
border-collapse: collapse;
color: black;
font-size: 90%;
text-align:left;
margin-bottom: 0.5em;
margin-left: 1em;
border-spacing: 0;
float: right;
clear: right;
width: 250px;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox caption {
font-size: larger;
margin-left: inherit;
}
/* Article message box styles */
table.ambox { /* 10% = Will not overlap with other */
margin: -1px 10% 0px; /* elements; -1px = Single border */
background: #fbfbfb; /* between stacked boxes in all */
border: 1px solid #aaa; /* browsers */
border-left: 10px solid #1e90ff; /* Default "notice" blue */
}
.ambox th.mbox-text,
.ambox td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.5em; /* 0.5em left/right */
}
.ambox td.mbox-image { /* The left image cell */
padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright { /* The right image cell */
padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */
}
table.ambox-notice {
border-left: 10px solid #1e90ff; /* Blue */
}
table.ambox-speedy {
border-left: 10px solid #b22222; /* Red */
background: #fee; /* Pink */
}
table.ambox-delete {
border-left: 10px solid #b22222; /* Red */
}
table.ambox-content {
border-left: 10px solid #f28500; /* Orange */
}
table.ambox-style {
border-left: 10px solid #f4c430; /* Yellow */
}
table.ambox-move {
border-left: 10px solid #9932cc; /* Purple */
}
table.ambox-protection {
border-left: 10px solid #bba; /* Gray-gold */
}
/* Mój ambox */
.myambox {
margin: -1px 10% 0px; /* elements; -1px = Single border */
background: #fbfbfb; /* between stacked boxes in all */
border: 1px solid #aaa; /* browsers */
border-left: 10px solid #9932cc; /* Default "notice" purple */
}
/* Klasa dokumentacji */
.template-documentation {
background-color:#ECFCF4;
border:1px solid #a2a9b1;
clear:both;
margin:1em 0pt 0pt;
padding:5px;
}
/* Przycisk kwerendy */
.przycisk-kw {
background-color: #e3e7ed;
border: 0.5px solid #bdc1c9;
color: white;
text-align: center;
padding: 5px 10px;
display: inline-block;
}
/* Formularz Lw metryka pojazdu */
div.lw-form {
width: 80%;
background-color: lightgrey;
text-align: center;
margin: 0 auto 10px auto;
}
div.lw-form div {
width: 100%;
background-color: lightblue;
text-align: left;
}
div.lw-form div p {
font-weight: bold;
}
div.lw-form > p {
text-align: left;
font-style: italic;
border-bottom: 1px solid blue;
}
div.lw-form p+p {
text-align: center;
border: none;
}
/* Formularz "Tr" */
.tr {
border: 2px solid red;
}
/* =========================================================
Karty katalogowe artykułów prasowych
Szablon: Art karta katalogowa
========================================================= */
.art-card-title {
font-size: 150%;
margin-bottom: 10px;
}
.art-box {
border: 2px solid #006622;
margin-bottom: 3px;
border-radius: 5px;
overflow: hidden;
}
.art-box-header {
color: #006622;
font-size: 120%;
font-weight: bold;
padding: 2px 3px;
background-color: #ccffdc;
border-radius: 5px 5px 0 0;
}
.art-box-content {
margin: 1em 0;
padding: 0 5px;
}
.art-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
}
.art-meta-box {
flex: 1 1 200px;
min-width: 180px;
}
/* Węższe ekrany */
@media screen and (max-width: 700px) {
.art-meta {
display: block;
}
.art-meta-box {
width: auto;
min-width: 0;
}
}
/* ---------------------------------------------------------
Karta katalogowa artykułu:
przyciski akcji oraz eksport spisu treści numeru do XLSX/CSV
--------------------------------------------------------- */
/*
* Kontener przycisków:
* - „Spis treści numeru” generowany przez Page Forms,
* - „Wygeneruj XLSX” i „Wygeneruj CSV” generowane przez SMW.
*/
.art-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
}
/*
* Wspólny wygląd wszystkich przycisków i linków w sekcji akcji.
* Celowo obejmuje zarówno zwykłe linki <a>, jak i elementy
* <button>/<input>, ponieważ Page Forms i SMW generują różny HTML.
*/
.art-actions a,
.art-actions button,
.art-actions input[type="button"],
.art-actions input[type="submit"] {
box-sizing: border-box;
min-height: 34px;
padding: 5px 10px;
border: 1px solid #a2a9b1;
border-radius: 2px;
background-color: #f8f9fa;
color: #202122;
font: inherit;
line-height: 1.4;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
/* Linki eksportu XLSX/CSV są wyrównane tak samo jak przyciski formularza. */
.art-export-button a {
display: inline-flex;
align-items: center;
}
/* Stan po najechaniu na dowolny przycisk w sekcji akcji. */
.art-actions a:hover,
.art-actions button:hover,
.art-actions input[type="button"]:hover,
.art-actions input[type="submit"]:hover {
background-color: #ffffff;
border-color: #72777d;
color: #202122;
text-decoration: none;
}
/* Zachowanie czytelnego obramowania podczas nawigacji klawiaturą. */
.art-actions a:focus,
.art-actions button:focus,
.art-actions input[type="button"]:focus,
.art-actions input[type="submit"]:focus {
outline: 2px solid #36c;
outline-offset: 1px;
}
/* =========================================================
Karty taborowe Lw
Szablon: Lw metryka pojazdu i szablony podrzędne
========================================================= */
/* ---------------------------------------------------------
Kontener całej karty
--------------------------------------------------------- */
.lw-card,
.lw-card * {
box-sizing: border-box;
}
.lw-card {
width: 100%;
}
.lw-back-link {
margin-bottom: 4px;
font-size: 90%;
}
/* ---------------------------------------------------------
Belka typu / numeru / stanu pojazdu
--------------------------------------------------------- */
.lw-status {
display: grid;
grid-template-columns: minmax(0, 45%) minmax(0, 55%);
width: 100%;
margin: 4px 0 8px;
border-radius: 5px;
overflow: hidden;
color: #004d80;
font-size: 120%;
font-weight: bold;
}
.lw-status-title {
min-width: 0;
padding: 5px 3px;
text-align: left;
overflow-wrap: break-word;
}
.lw-status-info {
min-width: 0;
padding: 5px 3px;
text-align: left;
overflow-wrap: break-word;
}
.lw-status-sprawna {
background-color: #aeeaae;
}
.lw-status-odstawiona {
background-color: #ffb84d;
}
.lw-status-zlom {
background-color: #ff6666;
}
.lw-status-eksponat {
background-color: #ff66d9;
}
.lw-status-pomnik {
background-color: #cc99ff;
}
.lw-status-remont {
background-color: #99ffff;
}
.lw-status-zagranica {
background-color: #ffff80;
}
.lw-status-przebudowana {
background-color: #000000;
color: #ffffff;
}
.lw-status-wrak {
background-color: #cc4400;
color: #ffffff;
}
.lw-status-nieznany {
background-color: #d9d9d9;
}
/* ---------------------------------------------------------
Główna fotografia
--------------------------------------------------------- */
.lw-main-image {
margin: 10px 0;
text-align: center;
}
.lw-main-image img {
max-width: 100%;
height: auto;
}
.lw-main-image-caption {
margin-top: 4px;
font-size: 90%;
text-align: center;
}
/* ---------------------------------------------------------
Małe kafelki z podstawowymi danymi
Flexbox zamiast gridu:
brakujące pola nie pozostawiają pustych miejsc.
--------------------------------------------------------- */
.lw-data-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
align-items: stretch;
}
.lw-data-box {
flex: 1 1 210px;
min-width: 0;
border-radius: 5px;
overflow: hidden;
text-align: center;
}
.lw-data-header {
padding: 3px 5px;
background-color: #004d80;
color: #ffffff;
font-size: 90%;
font-weight: bold;
text-align: center;
}
.lw-data-value {
margin: 0;
padding: 6px 5px;
min-height: 2.2em;
text-align: center;
overflow-wrap: anywhere;
background: linear-gradient(
to bottom,
#dddddd 0%,
#ffffff 100%
);
}
/* ---------------------------------------------------------
Dane historyczne
--------------------------------------------------------- */
.lw-history-grid {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
gap: 8px;
width: 100%;
margin-top: 10px;
align-items: start;
}
.lw-history-item {
min-width: 0;
}
.lw-history-box {
width: 100%;
min-width: 0;
border-radius: 5px;
overflow: hidden;
text-align: center;
}
.lw-history-header {
padding: 3px 5px;
background-color: #004d80;
color: #fff;
font-size: 90%;
font-weight: bold;
text-align: center;
}
.lw-history-table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
table-layout: auto;
background: linear-gradient(to bottom, #ddd 0%, #fff 100%);
}
.lw-history-table th,
.lw-history-table td {
padding: 4px 6px;
vertical-align: top;
text-align: center;
}
.lw-history-table th {
font-weight: bold;
}
/* pierwsza kolumna: stacja / rozstaw / oznaczenie */
.lw-history-table td:first-child {
text-align: left;
overflow-wrap: break-word;
}
/* daty i separator nie mogą się łamać */
.lw-history-table td:nth-child(2),
.lw-history-table td:nth-child(3),
.lw-history-table td:nth-child(4) {
white-space: nowrap;
}
.lw-history-table tbody tr:nth-child(even) {
background-color: rgba(255, 255, 255, .30);
}
.lw-history-value {
width: 76%;
text-align: left;
overflow-wrap: break-word;
}
.lw-history-date {
width: 10%;
text-align: center;
white-space: nowrap;
}
.lw-history-separator {
width: 4%;
text-align: center;
white-space: nowrap;
}
/* ---------------------------------------------------------
Duże sekcje:
informacje dodatkowe, opis, galeria, źródła
--------------------------------------------------------- */
.lw-section {
width: 100%;
margin-top: 10px;
border-radius: 5px;
overflow: hidden;
}
.lw-section-header {
margin: 0;
padding: 4px 6px;
background-color: #004d80;
color: #ffffff;
font-size: 90%;
font-weight: bold;
text-align: center;
}
.lw-section-content {
padding: 6px;
overflow-wrap: anywhere;
background: linear-gradient(
to bottom,
#dddddd 0%,
#ffffff 100%
);
}
.lw-section-content > :first-child {
margin-top: 0;
}
.lw-section-content > :last-child {
margin-bottom: 0;
}
/* ---------------------------------------------------------
Opisy wielowierszowe
--------------------------------------------------------- */
.lw-description {
line-height: 1.45;
text-align: left;
}
.lw-description ul,
.lw-description ol {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
/* ---------------------------------------------------------
Galeria
--------------------------------------------------------- */
.lw-gallery {
width: 100%;
text-align: center;
}
.lw-gallery .gallery {
margin: 0;
}
.lw-gallery img {
max-width: 100%;
height: auto;
}
/* ---------------------------------------------------------
Źródła
--------------------------------------------------------- */
.lw-references {
font-size: 90%;
text-align: left;
}
.lw-references ol.references {
margin-top: 0;
}
/* ---------------------------------------------------------
Klasy pomocnicze
--------------------------------------------------------- */
.lw-hidden {
display: none;
}
.lw-nowrap {
white-space: nowrap;
}
/* ---------------------------------------------------------
Tablety i węższe ekrany
--------------------------------------------------------- */
@media screen and (max-width: 900px) {
.lw-data-box {
flex-basis: 180px;
}
.lw-history-grid {
grid-template-columns: 1fr;
}
.lw-history-item {
width: 100%;
}
}
/* ---------------------------------------------------------
Telefony
--------------------------------------------------------- */
@media screen and (max-width: 600px) {
.lw-data-box {
flex: 1 1 100%;
width: 100%;
}
.lw-history-box {
width: 100%;
}
.lw-status-title {
font-size: 125%;
}
.lw-history-table {
font-size: 90%;
}
.lw-section-content {
padding: 5px;
}
}
/* =========================================================
STRONA GŁÓWNA ENKOLU
========================================================= */
/* --- Główny układ strony: zawsze dwie równe kolumny --- */
.enkol-main-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 4px;
width: 100%;
margin-top: 4px;
align-items: start;
box-sizing: border-box;
}
.enkol-main-column {
min-width: 0;
box-sizing: border-box;
border: 1px solid #aaaaaa;
background-color: #ebe6d1;
padding: 5px;
}
/* --- Pojedynczy panel strony głównej --- */
.main-panel {
width: 100%;
min-width: 0;
margin-bottom: 5px;
box-sizing: border-box;
}
.main-panel:last-child {
margin-bottom: 0;
}
.main-panel-header {
box-sizing: border-box;
padding: 7px 4px;
border: 1px solid #a3bfb1;
font-family: Arial, Helvetica, sans-serif;
font-size: 120%;
font-weight: bold;
text-align: left;
overflow-wrap: break-word;
}
.main-panel-content {
min-width: 0;
padding: 5px 4px;
box-sizing: border-box;
overflow-wrap: break-word;
}
.main-panel-content img {
max-width: 100%;
height: auto;
}
/* --- Wyróżnione grafiki / ilustracje w panelach --- */
.main-featured-image {
text-align: center;
}
.main-featured-image img {
max-width: 100%;
height: auto;
}
.main-featured-caption {
margin-top: 4px;
font-size: 90%;
text-align: center;
overflow-wrap: break-word;
}
/* --- Linki akcji w dolnej części panelu --- */
.main-panel-actions {
margin-top: 4px;
text-align: right;
overflow-wrap: break-word;
}
/* --- Sekcja „Czy wiesz” --- */
.main-didyouknow ul {
margin-top: 0;
margin-bottom: 0.5em;
padding-left: 1.4em;
}
.main-didyouknow li {
overflow-wrap: break-word;
}
/* --- Lista „Najnowsze w archiwum” --- */
.main-archive-list ul {
margin-top: 0;
margin-bottom: 0.5em;
padding-left: 1.25em;
}
.main-archive-list li {
margin-bottom: 0.3em;
overflow-wrap: break-word;
}
/* --- Górny baner strony głównej --- */
.main-banner {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
width: 100%;
box-sizing: border-box;
padding: 6px;
background-color: #cfc28d;
gap: 8px;
}
.main-banner-intro {
min-width: 0;
overflow-wrap: break-word;
}
.main-banner-title {
margin-bottom: 2px;
font-size: 120%;
font-weight: bold;
}
.main-banner-stats {
margin-top: 3px;
}
.main-banner-links {
min-width: 0;
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: center;
gap: 4px 10px;
text-align: center;
overflow-wrap: break-word;
}
.main-banner-links span {
white-space: normal;
}