Template:Main Page/styles.css: Difference between revisions

Main Page grid styles (2 columns, 1 on narrow screens)
 
Baal Shem Tov crop centered on the matzeivah
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
grid-template-columns: 1fr;
grid-template-columns: 1fr;
}
}
}
/* Rebbes of Chabad box: always 4 + 3, centered */
.mp-rebbes {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.6em 0.8em;
max-width: 30em;
margin: 0 auto;
}
.mp-rebbes > div {
width: calc(25% - 0.8em) !important;
}
/* 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);
}
}
/* Rebbes box pictures: one fixed frame (the width of the book covers), cropped to fit */
.mp-pic {
width: 52px;
height: 76px;
margin: 0 auto;
overflow: hidden;
}
.mp-pic img {
width: 52px !important;
height: 76px !important;
object-fit: cover;
object-position: center;
}
.mp-pic-left img {
object-position: 43% center;
}
}