MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
(uporządkowanie arkusza css) |
(modernizacja szablonu) |
||
| Linia 183: | Linia 183: | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
| + | } | ||
| + | /* --------------------------------------------------------- | ||
| + | Karta katalogowa artykułu: | ||
| + | przyciski akcji i eksport spisu treści numeru do XLSX/CSV | ||
| + | --------------------------------------------------------- */ | ||
| + | |||
| + | .art-actions { | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | gap: 6px; | ||
| + | align-items: center; | ||
| + | } | ||
| + | |||
| + | /* Linki generowane przez zapytania SMW dla eksportu XLSX i CSV */ | ||
| + | .art-export-button a { | ||
| + | display: inline-block; | ||
| + | padding: 5px 10px; | ||
| + | border: 1px solid #a2a9b1; | ||
| + | border-radius: 2px; | ||
| + | background-color: #f8f9fa; | ||
| + | color: #202122; | ||
| + | text-decoration: none; | ||
| + | cursor: pointer; | ||
| + | } | ||
| + | |||
| + | /* Stan po najechaniu na przycisk eksportu */ | ||
| + | .art-export-button a:hover { | ||
| + | background-color: #ffffff; | ||
| + | border-color: #72777d; | ||
| + | text-decoration: none; | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
Wersja z 23:50, 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;
}
.art-actions {
margin-top: 10px;
margin-bottom: 10px;
}
/* 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 i eksport spisu treści numeru do XLSX/CSV
--------------------------------------------------------- */
.art-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
/* Linki generowane przez zapytania SMW dla eksportu XLSX i CSV */
.art-export-button a {
display: inline-block;
padding: 5px 10px;
border: 1px solid #a2a9b1;
border-radius: 2px;
background-color: #f8f9fa;
color: #202122;
text-decoration: none;
cursor: pointer;
}
/* Stan po najechaniu na przycisk eksportu */
.art-export-button a:hover {
background-color: #ffffff;
border-color: #72777d;
text-decoration: none;
}
/* =========================================================
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;
}