More actions
No edit summary |
No edit summary |
||
| Line 706: | Line 706: | ||
.main-banner { | .main-banner { | ||
position: relative; | position: relative; | ||
height: 450px; | height: 450px; | ||
max-width: 2440px; /* stop growing beyond image width */ | |||
margin: 1em auto; /* centre the container */ | |||
margin: 1em auto; | overflow: hidden; /* crop sides */ | ||
background-color: var(--color-surface-2); | background-color: var(--color-surface-2); | ||
| Line 716: | Line 715: | ||
border-radius: var(--border-radius-large); | border-radius: var(--border-radius-large); | ||
color: var(--color-emphasized); | color: var(--color-emphasized); | ||
padding: 0; | |||
} | } | ||
/* | /* centre ANY img inside (not just mw-file-element) */ | ||
.main-banner img { | |||
.main-banner img | |||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
height: 100%; | height: 100%; | ||
width: auto; | width: auto; | ||
max-width: none; | max-width: none; | ||
} | } | ||
.main-banner > a { display:block; height:100%; } | |||
.main-banner a { display:block; height:100%; } | |||
.mainpage-wrapper .lower-row { | .mainpage-wrapper .lower-row { | ||