MediaWiki:Common.css: Porovnání verzí
Vzhled
založena nová stránka s textem „→Zde uvedené CSS bude ovlivňovat všechny vzhledy: →Infopedia hlavní stránka: .infopedia-container { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; max-width: 1200px; margin: 1em auto; padding: 10px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #222; box-sizing: border-box; } .info-box { position: relative; background: #e6f0ff; padding: 1.5em; border-radius:…“ |
Bez shrnutí editace |
||
| Řádek 88: | Řádek 88: | ||
top: 5px; | top: 5px; | ||
right: 8px; | right: 8px; | ||
} | |||
} | |||
/* Banner responsivní pro mobily */ | |||
@media (max-width: 768px) { | |||
.mw-file-element { | |||
max-height: 150px !important; | |||
object-fit: cover; | |||
} | |||
} | |||
@media (max-width: 480px) { | |||
.mw-file-element { | |||
max-height: 100px !important; | |||
object-fit: cover; | |||
} | } | ||
} | } | ||
Verze z 6. 8. 2025, 23:18
/* Zde uvedené CSS bude ovlivňovat všechny vzhledy */
/* Infopedia hlavní stránka */
.infopedia-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: space-between;
max-width: 1200px;
margin: 1em auto;
padding: 10px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #222;
box-sizing: border-box;
}
.info-box {
position: relative;
background: #e6f0ff;
padding: 1.5em;
border-radius: 12px;
box-shadow: 0 0 8px rgba(0, 119, 204, 0.2);
box-sizing: border-box;
}
.edit-link {
position: absolute;
top: 8px;
right: 12px;
font-size: 0.9em;
}
.info-box h2 {
color: #005fa3;
margin-top: 0;
margin-bottom: 1em;
}
.box-full {
flex: 1 1 100%;
width: 100%;
}
.box-half {
flex: 1 1 calc(50% - 10px);
min-width: 280px;
}
.cta-button {
margin-top: 1em;
background: #0077cc;
color: white;
padding: 0.8em;
border-radius: 5px;
font-weight: bold;
text-align: center;
text-decoration: none;
display: block;
}
@media (max-width: 768px) {
.infopedia-container {
padding: 5px;
gap: 10px;
}
.box-half {
flex: 1 1 100%;
min-width: 100%;
}
.info-box {
padding: 1em;
}
}
@media (max-width: 480px) {
.infopedia-container {
margin: 0.5em auto;
}
.info-box h2 {
font-size: 1.2em;
}
.edit-link {
font-size: 0.8em;
top: 5px;
right: 8px;
}
}
/* Banner responsivní pro mobily */
@media (max-width: 768px) {
.mw-file-element {
max-height: 150px !important;
object-fit: cover;
}
}
@media (max-width: 480px) {
.mw-file-element {
max-height: 100px !important;
object-fit: cover;
}
}