MediaWiki:Common.css

Z Enkol
Wersja z dnia 20:38, 15 wrz 2026 autorstwa Paweł Niemczuk (dyskusja | edycje) (modernizacja szablonu)
Przejdź do nawigacji Przejdź do wyszukiwania

Uwaga: aby zobaczyć zmiany po zapisaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.

  • Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5 lub Ctrl+R (⌘-R na komputerze Mac)
  • Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
  • Internet Explorer: Przytrzymaj Ctrl, jednocześnie klikając Odśwież, lub naciśnij klawisze Ctrl+F5
  • Opera: Przejdź do Menu → Ustawienia (Opera → Preferencje w Mac), a następnie Prywatność i bezpieczeństwo → Wyczyść dane przeglądania → Opróżnij pamięć podręczną.
/* 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;
	}
}
/* =========================================================
   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;
}
@media screen and (max-width: 900px) {
    .lw-history-grid {
        grid-template-columns: 1fr;
    }

    .lw-history-item {
        width: 100%;
    }
}
/* ---------------------------------------------------------
   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-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;
}


/* ---------------------------------------------------------
   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;
	}

}