Template:Subject banner/styles.css
Appearance
.mp-subject-banner {
position: relative;
overflow: hidden;
box-sizing: border-box;
min-height: 220px;
padding: 22px 36px 18px;
color: #fff;
background:
radial-gradient(circle at 74% 18%, rgba(118, 220, 168, 0.2), transparent 29%),
linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%);
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif;
}
.mp-subject-banner.mw-collapsed {
min-height: 0;
padding: 12px 58px 12px 24px;
}
.mp-subject-banner * {
box-sizing: border-box;
}
.mp-subject-banner a {
color: inherit;
text-decoration: none;
}
.mp-subject-banner .mw-collapsible-toggle {
position: absolute;
top: 12px;
right: 18px;
z-index: 4;
padding: 0;
border: 0;
color: #fff;
background: transparent;
font-size: 13px;
line-height: 1.4;
}
.mp-subject-banner .mw-collapsible-toggle a {
color: #fff;
}
.mp-subject-banner__content {
position: relative;
z-index: 2;
max-width: 730px;
}
.mp-subject-banner__collapsed-summary {
display: none;
position: relative;
z-index: 3;
font-size: 18px;
line-height: 1.25;
white-space: nowrap;
}
.mp-subject-banner.mw-collapsed .mp-subject-banner__collapsed-summary {
display: block;
}
.mp-subject-banner.mw-collapsed .mw-collapsible-content {
display: none;
}
.mp-subject-banner__kicker {
margin-bottom: 2px;
font-size: 18px;
line-height: 1.25;
}
.mp-subject-banner__title-row {
display: flex;
align-items: baseline;
gap: 28px;
min-width: 0;
}
.mp-subject-banner__title {
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif;
font-size: 50px;
line-height: 1.05;
white-space: nowrap;
}
.mp-subject-banner__count {
color: #56c7ee;
font-size: 19px;
line-height: 1;
white-space: nowrap;
}
.mp-subject-banner__rule {
width: 520px;
max-width: 100%;
height: 2px;
margin: 9px 0 14px;
background: rgba(255, 255, 255, 0.88);
}
.mp-subject-banner__description {
max-width: 680px;
font-size: 17px;
line-height: 1.4;
}
.mp-subject-banner__actions {
margin-top: 18px;
}
.mp-subject-banner__button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 118px;
min-height: 42px;
padding: 8px 19px;
border: 1px solid #a9a9a9;
color: #111;
background: linear-gradient(#fff, #f3f3f3);
box-shadow: inset 0 0 0 1px #ececec, 0 1px 1px rgba(0, 0, 0, 0.28);
font-size: 17px;
font-weight: 700;
}
.mp-subject-banner__button:hover,
.mp-subject-banner__button:focus {
background: #fff;
color: #000;
}
.mp-subject-banner__breadcrumbs {
margin-top: 22px;
}
.mp-subject-banner__art {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: auto;
z-index: 1;
width: 48%;
min-width: 430px;
opacity: 0.86;
}
.mp-subject-banner__art-file {
position: absolute;
top: 0;
right: -18px;
width: 660px;
max-width: none;
display: block;
}
.mp-subject-banner__art-file img {
width: 660px;
height: 220px;
max-width: none;
object-fit: contain;
}
.mp-subject-banner--blue {
background:
radial-gradient(circle at 74% 18%, rgba(113, 199, 240, 0.22), transparent 29%),
linear-gradient(103deg, #075b86 0%, #04496e 48%, #062c4d 100%);
}
.mp-subject-banner--red {
background:
radial-gradient(circle at 74% 18%, rgba(255, 188, 168, 0.18), transparent 29%),
linear-gradient(103deg, #8a2636 0%, #6e1f31 48%, #471522 100%);
}
@media (max-width: 760px) {
.mp-subject-banner {
min-height: 0;
padding: 20px 18px 18px;
}
.mp-subject-banner.mw-collapsed {
padding: 12px 58px 12px 18px;
}
.mp-subject-banner__art {
width: 100%;
min-width: 0;
opacity: 0.34;
}
.mp-subject-banner__art-file {
right: -230px;
width: 600px;
}
.mp-subject-banner__art-file img {
width: 600px;
height: 210px;
}
.mp-subject-banner__title-row {
display: block;
}
.mp-subject-banner__title {
white-space: normal;
font-size: 40px;
}
.mp-subject-banner__count {
margin-top: 6px;
font-size: 18px;
}
.mp-subject-banner__rule {
width: 100%;
}
.mp-subject-banner__description {
font-size: 16px;
}
}