Přeskočit na obsah

MediaWiki:Common.css: Porovnání verzí

Z Infopedia
Bez shrnutí editace
Bez shrnutí editace
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádek 104: Řádek 104:
     object-fit: cover;
     object-fit: cover;
   }
   }
}
/* Banner - další varianty cílení */
@media (max-width: 768px) {
  .thumbinner img,
  .mw-file-description img,
  img[src*="Baner"] {
    max-height: 150px !important;
    object-fit: cover !important;
  }
}
@media (max-width: 480px) {
  .thumbinner img,
  .mw-file-description img, 
  img[src*="Baner"] {
    max-height: 100px !important;
    object-fit: cover !important;
  }
}
/* Obecná responzivní pravidla pro všechny obrázky */
img {
    max-width: 100%;
    height: auto;
}
/* Hlavní stránka - všechny obrázky */
.mw-body-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}
/* Banner a velké obrázky - rozšířené cílení */
@media (max-width: 768px) {
    img,
    .mw-file-element,
    .thumbinner img,
    .mw-file-description img,
    img[src*="Baner"],
    img[src*="baner"],
    img[src*="header"],
    img[src*="hlavni"] {
        max-width: 100% !important;
        max-height: 150px !important;
        object-fit: cover !important;
        width: auto !important;
    }
}
@media (max-width: 480px) {
    img,
    .mw-file-element,
    .thumbinner img,
    .mw-file-description img,
    img[src*="Baner"],
    img[src*="baner"],
    img[src*="header"],
    img[src*="hlavni"] {
        max-width: 100% !important;
        max-height: 100px !important;
        object-fit: cover !important;
        width: auto !important;
    }
}
}

Aktuální verze z 9. 8. 2025, 23:57

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

/* Banner - další varianty cílení */
@media (max-width: 768px) {
  .thumbinner img,
  .mw-file-description img,
  img[src*="Baner"] {
    max-height: 150px !important;
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  .thumbinner img,
  .mw-file-description img,  
  img[src*="Baner"] {
    max-height: 100px !important;
    object-fit: cover !important;
  }
}

/* Obecná responzivní pravidla pro všechny obrázky */
img {
    max-width: 100%;
    height: auto;
}

/* Hlavní stránka - všechny obrázky */
.mw-body-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Banner a velké obrázky - rozšířené cílení */
@media (max-width: 768px) {
    img,
    .mw-file-element,
    .thumbinner img,
    .mw-file-description img,
    img[src*="Baner"],
    img[src*="baner"],
    img[src*="header"],
    img[src*="hlavni"] {
        max-width: 100% !important;
        max-height: 150px !important;
        object-fit: cover !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    img,
    .mw-file-element,
    .thumbinner img,
    .mw-file-description img,
    img[src*="Baner"],
    img[src*="baner"],
    img[src*="header"],
    img[src*="hlavni"] {
        max-width: 100% !important;
        max-height: 100px !important;
        object-fit: cover !important;
        width: auto !important;
    }
}