Template:Main Page/styles.css: Difference between revisions
Rebbes 4+3; portals in one row on wide screens |
Baal Shem Tov crop centered on the matzeivah |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
} | } | ||
/* Rebbes of Chabad box: 4 + 3, centered */ | /* Rebbes of Chabad box: always 4 + 3, centered */ | ||
.mp-rebbes { | .mp-rebbes { | ||
display: flex; | display: flex; | ||
| Line 19: | Line 19: | ||
justify-content: center; | justify-content: center; | ||
gap: 0.6em 0.8em; | gap: 0.6em 0.8em; | ||
max-width: | max-width: 30em; | ||
margin: 0 auto; | margin: 0 auto; | ||
} | |||
.mp-rebbes > div { | |||
width: calc(25% - 0.8em) !important; | |||
} | } | ||
| Line 28: | Line 31: | ||
grid-template-columns: repeat(10, 1fr); | 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; | |||
} | } | ||