Template:Main Page/styles.css: Difference between revisions
Appearance
Main Page grid styles (2 columns, 1 on narrow screens) |
Rebbes 4+3; portals in one row on wide screens |
||
| Line 10: | Line 10: | ||
.mp-grid { | .mp-grid { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | |||
} | |||
/* Rebbes of Chabad box: 4 + 3, centered */ | |||
.mp-rebbes { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 0.6em 0.8em; | |||
max-width: 28em; | |||
margin: 0 auto; | |||
} | |||
/* Portals on the Main Page: one row of 10 on wide screens */ | |||
@media (min-width: 1400px) { | |||
.mp-portals .portals-grid { | |||
grid-template-columns: repeat(10, 1fr); | |||
} | } | ||
} | } | ||
Revision as of 14:44, 20 November 2026
/* Main Page grid: two equal columns, one column on narrow screens */
.mp-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1em;
align-items: stretch;
margin-bottom: 1em;
}
@media (max-width: 760px) {
.mp-grid {
grid-template-columns: 1fr;
}
}
/* Rebbes of Chabad box: 4 + 3, centered */
.mp-rebbes {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.6em 0.8em;
max-width: 28em;
margin: 0 auto;
}
/* Portals on the Main Page: one row of 10 on wide screens */
@media (min-width: 1400px) {
.mp-portals .portals-grid {
grid-template-columns: repeat(10, 1fr);
}
}