MediaWiki:Global.css: Skillnad mellan sidversioner
Från Sockipedia
Innehåll som raderades Innehåll som lades till
Sockadm (diskussion | bidrag) Ingen redigeringssammanfattning Märke: Återställd |
Sockadm (diskussion | bidrag) Ingen redigeringssammanfattning Märke: Återställd |
||
| Rad 6: | Rad 6: | ||
} |
} |
||
/* |
/* Visas bara på dator */ |
||
. |
.desktop-only { |
||
display: block; |
|||
} |
} |
||
/* Visas bara på mobil */ |
|||
/* När skärmen är smal (t.ex. mobil): dölj desktop, visa mobil */ |
|||
.mobile-only { |
|||
| ⚫ | |||
} |
|||
/* På smala skärmar (mobil) */ |
|||
@media screen and (max-width: 768px) { |
@media screen and (max-width: 768px) { |
||
.only-desktop { |
|||
.desktop-only { |
|||
| ⚫ | |||
| ⚫ | |||
} |
|||
} |
|||
.only-mobile { |
|||
| ⚫ | |||
.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;
}
}
