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

Z WikiPasy.pl - Encyklopedia KS Cracovia
Przejdź do nawigacji Przejdź do wyszukiwania
 
Linia 1: Linia 1:
/* Umieszczony tutaj kod CSS wpłynie na wygląd skórki Wektor */
.img-fluid {
.img-fluid {
   max-width: 100px;
   max-width: 50%;
  width: auto;
   height: auto;
   height: auto;
}
}
Linia 8: Linia 7:
.main-page-scores {
.main-page-scores {
   display: grid;
   display: grid;
   grid-template-columns: repeat(1, minmax(0, 1fr));
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 0.5rem;
   gap: 0.5rem;
}
/* Media query dla ekranów o szerokości maksymalnie 768px (np. tablety) */
@media only screen and (max-width: 768px) {
  .img-fluid {
    max-width: 80px;
    height: auto;
  }
  .main-page-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}
/* Media query dla ekranów o szerokości maksymalnie 480px (np. smartfony) */
@media only screen and (max-width: 480px) {
  .img-fluid {
    max-width: 40px;
    height: auto;
  }
  .main-page-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}
}

Aktualna wersja na dzień 22:54, 3 sie 2024

.img-fluid {
  max-width: 50%;
  width: auto;
  height: auto;
}

.main-page-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}