MediaWiki:Common.css: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
(test) |
(test) |
||
| Linia 303: | Linia 303: | ||
.lw-history-grid { | .lw-history-grid { | ||
display: flex; | display: flex; | ||
| + | width: 100%; | ||
gap: 8px; | gap: 8px; | ||
margin-top: 10px; | margin-top: 10px; | ||
align-items: flex-start; | align-items: flex-start; | ||
| + | justify-content: flex-start; | ||
} | } | ||
.lw-history-grid > .lw-history-box { | .lw-history-grid > .lw-history-box { | ||
flex: 1 1 0; | flex: 1 1 0; | ||
| + | width: 0; | ||
min-width: 0; | min-width: 0; | ||
| + | margin: 0; | ||
} | } | ||
.lw-history-grid > .lw-history-box:first-child { | .lw-history-grid > .lw-history-box:first-child { | ||
| − | flex: 2 | + | flex-grow: 2; |
} | } | ||
| Linia 325: | Linia 329: | ||
.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; | |
| − | + | } | |
| + | |||
| + | /* nazwa stacji / rozstaw / oznaczenie */ | ||
| + | .lw-history-table td:first-child { | ||
| + | text-align: left; | ||
| + | overflow-wrap: break-word; | ||
} | } | ||
| − | .lw-history-table | + | /* 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); | |
} | } | ||
| + | @media screen and (max-width: 900px) { | ||
| + | .lw-history-grid { | ||
| + | flex-direction: column; | ||
| + | } | ||
| + | |||
| + | .lw-history-grid > .lw-history-box, | ||
| + | .lw-history-grid > .lw-history-box:first-child { | ||
| + | width: 100%; | ||
| + | flex: none; | ||
| + | } | ||
| + | } | ||
/* --------------------------------------------------------- | /* --------------------------------------------------------- | ||
Wersja z 13:30, 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: flex;
width: 100%;
gap: 8px;
margin-top: 10px;
align-items: flex-start;
justify-content: flex-start;
}
.lw-history-grid > .lw-history-box {
flex: 1 1 0;
width: 0;
min-width: 0;
margin: 0;
}
.lw-history-grid > .lw-history-box:first-child {
flex-grow: 2;
}
.lw-history-box {
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;
}
/* nazwa stacji / 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);
}
@media screen and (max-width: 900px) {
.lw-history-grid {
flex-direction: column;
}
.lw-history-grid > .lw-history-box,
.lw-history-grid > .lw-history-box:first-child {
width: 100%;
flex: none;
}
}
/* ---------------------------------------------------------
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;
}
}