MediaWiki:Global.css: Skillnad mellan sidversioner

Från Sockipedia
Innehåll som raderades Innehåll som lades till
Ingen redigeringssammanfattning
Märke: Återställd
Ingen redigeringssammanfattning
Märke: Återställd
Rad 6: Rad 6:
}
}


/* Visa desktop, dölj mobilstora skärmar */
/* Visas baradator */
.only-mobile {
.desktop-only {
  display: none;
display: block;
}
}


/* Visas bara på mobil */
/* När skärmen är smal (t.ex. mobil): dölj desktop, visa mobil */
.mobile-only {
display: none;
}

/* På smala skärmar (mobil) */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {

  .only-desktop {
.desktop-only {
    display: none;
display: none;
  }
}
  .only-mobile {

    display: block;
.mobile-only {
  }
display: block;
}

}
}

Versionen från 25 juli 2026 kl. 18.52

.test_blå {
  color: blue;
}
.test_röd {
  color: red;
}

/* Visas bara på dator */
.desktop-only {
    display: block;
}

/* Visas bara på mobil */
.mobile-only {
    display: none;
}

/* På smala skärmar (mobil) */
@media screen and (max-width: 768px) {

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

}