MediaWiki:Common.css: Różnice pomiędzy wersjami

Z Enkol
Przejdź do nawigacji Przejdź do wyszukiwania
(+)
(test)
Linia 302: Linia 302:
  
 
.lw-history-grid {
 
.lw-history-grid {
display: grid;
+
    display: grid;
grid-template-columns: repeat(
+
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
auto-fit,
+
    gap: 8px;
minmax(280px, 1fr)
+
    margin-top: 10px;
);
+
    align-items: start;
gap: 8px;
 
margin-top: 10px;
 
align-items: start;
 
 
}
 
}
  
 
.lw-history-box {
 
.lw-history-box {
min-width: 0;
+
    width: 100%;
border-radius: 5px;
+
    min-width: 0;
overflow: hidden;
+
    border-radius: 5px;
text-align: center;
+
    overflow: hidden;
 +
    text-align: center;
 
}
 
}
  

Wersja z 09:37, 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;
	}
}
/* =========================================================
   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 {
	width: 100%;
	margin: 4px 0 8px;
	padding: 5px 8px;
	border-radius: 5px;
	font-weight: bold;
	overflow-wrap: anywhere;
}

.lw-status-title {
	font-size: 150%;
}

.lw-status-info {
	font-size: 90%;
}


/* ---------------------------------------------------------
   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;
    margin-top: 10px;
    align-items: start;
}

.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: #ffffff;
	font-size: 90%;
	font-weight: bold;
	text-align: center;
}

.lw-history-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background: linear-gradient(
		to bottom,
		#dddddd 0%,
		#ffffff 100%
	);
}

.lw-history-table th,
.lw-history-table td {
	padding: 4px 6px;
	vertical-align: top;
	text-align: center;
	overflow-wrap: anywhere;
}

.lw-history-table th {
	font-weight: bold;
}

.lw-history-table tbody tr:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.30);
}


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

}


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

}