MediaWiki:Common.css: Porovnání verzí
Vzhled
Bez shrnutí editace značka: ruční vrácení zpět |
Bez shrnutí editace značka: revertováno |
||
| Řádek 108: | Řádek 108: | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Force sidebar visible on desktop only */ | |||
@media (min-width: 1000px) { | |||
body.vector-main-menu-hidden .vector-main-menu-container, | |||
body.vector-main-menu-collapsed .vector-main-menu-container { | |||
display: block !important; | |||
visibility: visible !important; | |||
transform: none !important; | |||
} | |||
body.vector-main-menu-hidden .mw-page-container, | |||
body.vector-main-menu-collapsed .mw-page-container { | |||
margin-left: 14rem !important; | |||
} | |||
} | } | ||
Verze z 21. 2. 2026, 22:11
/* Zde uvedené CSS bude ovlivňovat všechny vzhledy */
/* Default tables: no borders, background, shadows unless specified */
table {
border: none;
background: transparent;
box-shadow: none;
border-collapse: collapse;
text-align: center;
vertical-align: middle;
}
/* Table cells default */
table td, table th {
border: none;
background: transparent;
box-shadow: none;
}
/* Only apply styles if explicitly defined */
table[style*="border"],
table[style*="background"],
td[style*="border"],
td[style*="background"],
th[style*="border"],
th[style*="background"] {
all: revert;
}
.centered-table {
margin-left: auto;
margin-right: auto;
}
/* Center shrink-to-fit tables (e.g. image-only tables) */
table.center-table {
width: auto !important;
margin-left: auto !important;
margin-right: auto !important;
}
/* Center text in all wikitable cells */
.wikitable th,
.wikitable td {
text-align: center;
vertical-align: middle;
}
/* Center images in tables */
.wikitable img {
display: block;
margin: 0 auto;
}
/* Keep text and links inline */
.wikitable td,
.wikitable th {
text-align: center;
vertical-align: middle;
}
.wikitable td a,
.wikitable th a,
.wikitable td span,
.wikitable th span {
display: inline;
}
.lk-sections {
display: grid;
grid-template-columns: repeat(2, 1fr); /* default: 2 columns */
gap: 16px;
margin-top: 20px;
}
/* Wide desktop: 4 columns */
@media (min-width: 1200px) {
.lk-sections {
grid-template-columns: repeat(4, 1fr);
}
}
/* Mobile: 1 column */
@media (max-width: 700px) {
.lk-sections {
grid-template-columns: 1fr;
}
}
.lk-card {
border: 1px solid #aaa;
border-radius: 10px;
padding: 12px;
background: var(--background-color-base);
text-align: center;
}
.lk-card h3 {
margin-top: 6px;
font-family: Georgia, Palatino, serif;
}
.lk-card ul {
text-align: left;
margin-top: 10px;
}
/* Hide site title next to logo */
.mw-logo-wordmark {
display: none !important;
}
/* Force sidebar visible on desktop only */
@media (min-width: 1000px) {
body.vector-main-menu-hidden .vector-main-menu-container,
body.vector-main-menu-collapsed .vector-main-menu-container {
display: block !important;
visibility: visible !important;
transform: none !important;
}
body.vector-main-menu-hidden .mw-page-container,
body.vector-main-menu-collapsed .mw-page-container {
margin-left: 14rem !important;
}
}