Template:Subject banner/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
overflow: hidden; | overflow: hidden; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
min-height: | min-height: 220px; | ||
padding: | padding: 22px 36px 18px; | ||
color: #fff; | color: #fff; | ||
background: | background: | ||
radial-gradient(circle at 74% 18%, rgba(118, 220, 168, 0.2), transparent 29%), | radial-gradient(circle at 74% 18%, rgba(118, 220, 168, 0.2), transparent 29%), | ||
linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%); | linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%); | ||
font-family: - | font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | ||
} | } | ||
.mp-subject-banner.mw-collapsed { | .mp-subject-banner.mw-collapsed { | ||
min-height: 0; | min-height: 0; | ||
padding: 12px 58px 12px 24px; | |||
} | } | ||
| Line 27: | Line 28: | ||
.mp-subject-banner .mw-collapsible-toggle { | .mp-subject-banner .mw-collapsible-toggle { | ||
position: absolute; | position: absolute; | ||
top: | top: 12px; | ||
right: | right: 18px; | ||
z-index: 4; | z-index: 4; | ||
padding: | padding: 0; | ||
border: | border: 0; | ||
color: #fff; | color: #fff; | ||
background: | background: transparent; | ||
font-size: 13px; | font-size: 13px; | ||
line-height: 1.4; | line-height: 1.4; | ||
| Line 46: | Line 47: | ||
z-index: 2; | z-index: 2; | ||
max-width: 730px; | max-width: 730px; | ||
} | |||
.mp-subject-banner__collapsed-summary { | |||
display: none; | |||
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 .mp-subject-banner__head { | |||
display: none; | |||
} | |||
.mp-subject-banner.mw-collapsed .mw-collapsible-content { | |||
display: none; | |||
} | } | ||
.mp-subject-banner__kicker { | .mp-subject-banner__kicker { | ||
margin-bottom: 2px; | margin-bottom: 2px; | ||
font-size: | font-size: 18px; | ||
line-height: 1.25; | line-height: 1.25; | ||
} | } | ||
| Line 62: | Line 82: | ||
.mp-subject-banner__title { | .mp-subject-banner__title { | ||
font-family: Georgia, "Times New Roman", serif; | font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | ||
font-size: | font-size: 50px; | ||
line-height: 1.05; | line-height: 1.05; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 70: | Line 90: | ||
.mp-subject-banner__count { | .mp-subject-banner__count { | ||
color: #56c7ee; | color: #56c7ee; | ||
font-size: | font-size: 19px; | ||
line-height: 1; | line-height: 1; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 79: | Line 99: | ||
max-width: 100%; | max-width: 100%; | ||
height: 2px; | height: 2px; | ||
margin: | margin: 9px 0 14px; | ||
background: rgba(255, 255, 255, 0.88); | background: rgba(255, 255, 255, 0.88); | ||
} | } | ||
| Line 85: | Line 105: | ||
.mp-subject-banner__description { | .mp-subject-banner__description { | ||
max-width: 680px; | max-width: 680px; | ||
font-size: | font-size: 17px; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
.mp-subject-banner__actions { | .mp-subject-banner__actions { | ||
margin-top: | margin-top: 18px; | ||
} | } | ||
| Line 97: | Line 117: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
min-width: | min-width: 118px; | ||
min-height: | min-height: 42px; | ||
padding: | padding: 8px 19px; | ||
border: 1px solid #a9a9a9; | border: 1px solid #a9a9a9; | ||
color: #111; | color: #111; | ||
background: linear-gradient(#fff, #f3f3f3); | background: linear-gradient(#fff, #f3f3f3); | ||
box-shadow: inset 0 0 0 1px #ececec, 0 1px 1px rgba(0, 0, 0, 0.28); | box-shadow: inset 0 0 0 1px #ececec, 0 1px 1px rgba(0, 0, 0, 0.28); | ||
font-size: | font-size: 17px; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| Line 115: | Line 135: | ||
.mp-subject-banner__breadcrumbs { | .mp-subject-banner__breadcrumbs { | ||
margin-top: | margin-top: 22px; | ||
} | } | ||
| Line 134: | Line 154: | ||
top: 0; | top: 0; | ||
right: -18px; | right: -18px; | ||
width: | width: 660px; | ||
max-width: none; | max-width: none; | ||
display: block; | display: block; | ||
| Line 140: | Line 160: | ||
.mp-subject-banner__art-file img { | .mp-subject-banner__art-file img { | ||
width: | width: 660px; | ||
height: | height: 220px; | ||
max-width: none; | max-width: none; | ||
object-fit: contain; | object-fit: contain; | ||
| Line 161: | Line 181: | ||
.mp-subject-banner { | .mp-subject-banner { | ||
min-height: 0; | min-height: 0; | ||
padding: | padding: 20px 18px 18px; | ||
} | |||
.mp-subject-banner.mw-collapsed { | |||
padding: 12px 58px 12px 18px; | |||
} | } | ||
| Line 171: | Line 195: | ||
.mp-subject-banner__art-file { | .mp-subject-banner__art-file { | ||
right: - | right: -230px; | ||
width: | width: 600px; | ||
} | } | ||
.mp-subject-banner__art-file img { | .mp-subject-banner__art-file img { | ||
width: | width: 600px; | ||
height: | height: 210px; | ||
} | } | ||
| Line 186: | Line 210: | ||
.mp-subject-banner__title { | .mp-subject-banner__title { | ||
white-space: normal; | white-space: normal; | ||
font-size: | font-size: 40px; | ||
} | } | ||
Revision as of 14:06, 11 July 2026
.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;
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 .mp-subject-banner__head {
display: none;
}
.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;
}
}