Add ─ Ultrawide responsive breakpoints (1920px, 2560px, 3440px, 5120px) for grid layout, paragraph font-size and image max-width
This commit is contained in:
1 file changed
+51
@@ -138,4 +138,55 @@ body #div-content {
|
||||
body #div-content {
|
||||
padding: 2rem 0 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Ultrawide / Grand écran --- */
|
||||
|
||||
@media screen and (min-width: 1920px) {
|
||||
.grid {
|
||||
grid-template-columns: min(80%, 110rem);
|
||||
gap: 6rem;
|
||||
}
|
||||
|
||||
.grid-item p {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.grid-item img {
|
||||
max-width: 45%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2560px) {
|
||||
.grid {
|
||||
grid-template-columns: min(75%, 130rem);
|
||||
gap: 7rem;
|
||||
}
|
||||
|
||||
.grid-item p {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 3440px) {
|
||||
.grid {
|
||||
grid-template-columns: min(65%, 150rem);
|
||||
gap: 8rem;
|
||||
}
|
||||
|
||||
.grid-item p {
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Samsung Odyssey G9 — 5120x1440 */
|
||||
@media screen and (min-width: 5120px) {
|
||||
.grid {
|
||||
grid-template-columns: min(55%, 170rem);
|
||||
gap: 10rem;
|
||||
}
|
||||
|
||||
.grid-item p {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user