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: 186px; | ||
padding: | padding: 18px 32px 16px; | ||
color: #fff; | color: #fff; | ||
background: | background: | ||
radial-gradient( | radial-gradient(ellipse at 72% 12%, rgba(147, 216, 170, 0.24) 0%, rgba(147, 216, 170, 0.08) 24%, transparent 48%), | ||
linear-gradient( | radial-gradient(ellipse at 18% 100%, rgba(18, 120, 76, 0.58) 0%, transparent 52%), | ||
linear-gradient(116deg, rgba(12, 133, 76, 0.95) 0%, rgba(7, 103, 61, 0.98) 43%, rgba(5, 70, 45, 1) 100%); | |||
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | ||
} | } | ||
| Line 14: | Line 15: | ||
.mp-subject-banner.mw-collapsed { | .mp-subject-banner.mw-collapsed { | ||
min-height: 0; | min-height: 0; | ||
padding: | padding: 9px 54px 9px 22px; | ||
} | } | ||
| Line 28: | Line 29: | ||
.mp-subject-banner .mw-collapsible-toggle { | .mp-subject-banner .mw-collapsible-toggle { | ||
position: absolute; | position: absolute; | ||
top: | top: 9px; | ||
right: | right: 16px; | ||
z-index: 4; | z-index: 4; | ||
padding: 0; | padding: 0; | ||
| Line 35: | Line 36: | ||
color: #fff; | color: #fff; | ||
background: transparent; | background: transparent; | ||
font-size: | font-size: 12px; | ||
line-height: 1.4; | line-height: 1.4; | ||
opacity: 0.86; | |||
} | } | ||
| Line 53: | Line 55: | ||
position: relative; | position: relative; | ||
z-index: 3; | z-index: 3; | ||
font-size: | font-size: 16px; | ||
line-height: 1.25; | line-height: 1.25; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 67: | Line 69: | ||
.mp-subject-banner__kicker { | .mp-subject-banner__kicker { | ||
margin-bottom: | margin-bottom: 1px; | ||
font-size: | font-size: 15px; | ||
line-height: 1.25; | line-height: 1.25; | ||
} | } | ||
| Line 75: | Line 77: | ||
display: flex; | display: flex; | ||
align-items: baseline; | align-items: baseline; | ||
gap: | gap: 22px; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
| Line 81: | Line 83: | ||
.mp-subject-banner__title { | .mp-subject-banner__title { | ||
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif; | ||
font-size: | font-size: 42px; | ||
line-height: 1.05; | line-height: 1.05; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 87: | Line 89: | ||
.mp-subject-banner__count { | .mp-subject-banner__count { | ||
color: # | color: #67d0ed; | ||
font-size: | font-size: 16px; | ||
line-height: 1; | line-height: 1; | ||
white-space: nowrap; | white-space: nowrap; | ||
| Line 94: | Line 96: | ||
.mp-subject-banner__rule { | .mp-subject-banner__rule { | ||
width: | width: 460px; | ||
max-width: 100%; | max-width: 100%; | ||
height: | height: 1px; | ||
margin: | margin: 8px 0 12px; | ||
background: rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.82); | ||
} | } | ||
.mp-subject-banner__description { | .mp-subject-banner__description { | ||
max-width: 680px; | max-width: 680px; | ||
font-size: | font-size: 15px; | ||
line-height: 1.4; | line-height: 1.4; | ||
} | } | ||
.mp-subject-banner__actions { | .mp-subject-banner__actions { | ||
margin-top: | margin-top: 15px; | ||
} | } | ||
| Line 115: | Line 117: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
min-width: | min-width: 104px; | ||
min-height: | min-height: 36px; | ||
padding: | padding: 7px 16px; | ||
border: 1px solid #a9a9a9; | border: 1px solid #a9a9a9; | ||
color: #111; | color: #111; | ||
background: linear-gradient(# | background: linear-gradient(#ffffff, #f6f6f6); | ||
box-shadow: | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18); | ||
font-size: | font-size: 15px; | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| Line 133: | Line 135: | ||
.mp-subject-banner__breadcrumbs { | .mp-subject-banner__breadcrumbs { | ||
margin-top: | margin-top: 18px; | ||
} | } | ||
| Line 145: | Line 147: | ||
width: 48%; | width: 48%; | ||
min-width: 430px; | min-width: 430px; | ||
opacity: 0. | opacity: 0.72; | ||
} | } | ||
| Line 152: | Line 154: | ||
top: 0; | top: 0; | ||
right: -18px; | right: -18px; | ||
width: | width: 590px; | ||
max-width: none; | max-width: none; | ||
display: block; | display: block; | ||
| Line 158: | Line 160: | ||
.mp-subject-banner__art-file img { | .mp-subject-banner__art-file img { | ||
width: | width: 590px; | ||
height: | height: 186px; | ||
max-width: none; | max-width: none; | ||
object-fit: contain; | object-fit: contain; | ||
| Line 166: | Line 168: | ||
.mp-subject-banner--blue { | .mp-subject-banner--blue { | ||
background: | background: | ||
radial-gradient( | radial-gradient(ellipse at 72% 12%, rgba(135, 205, 233, 0.22) 0%, rgba(135, 205, 233, 0.08) 24%, transparent 48%), | ||
linear-gradient( | radial-gradient(ellipse at 18% 100%, rgba(21, 101, 146, 0.55) 0%, transparent 52%), | ||
linear-gradient(116deg, #075f89 0%, #064d72 43%, #06304d 100%); | |||
} | } | ||
.mp-subject-banner--red { | .mp-subject-banner--red { | ||
background: | background: | ||
radial-gradient( | radial-gradient(ellipse at 72% 12%, rgba(255, 190, 174, 0.18) 0%, rgba(255, 190, 174, 0.06) 24%, transparent 48%), | ||
linear-gradient( | radial-gradient(ellipse at 18% 100%, rgba(128, 38, 60, 0.55) 0%, transparent 52%), | ||
linear-gradient(116deg, #8a2636 0%, #6c2032 43%, #471522 100%); | |||
} | } | ||
| Line 179: | Line 183: | ||
.mp-subject-banner { | .mp-subject-banner { | ||
min-height: 0; | min-height: 0; | ||
padding: | padding: 17px 16px 15px; | ||
} | } | ||
.mp-subject-banner.mw-collapsed { | .mp-subject-banner.mw-collapsed { | ||
padding: | padding: 9px 54px 9px 16px; | ||
} | } | ||
| Line 193: | Line 197: | ||
.mp-subject-banner__art-file { | .mp-subject-banner__art-file { | ||
right: - | right: -220px; | ||
width: | width: 540px; | ||
} | } | ||
.mp-subject-banner__art-file img { | .mp-subject-banner__art-file img { | ||
width: | width: 540px; | ||
height: | height: 186px; | ||
} | } | ||
| Line 208: | Line 212: | ||
.mp-subject-banner__title { | .mp-subject-banner__title { | ||
white-space: normal; | white-space: normal; | ||
font-size: | font-size: 34px; | ||
} | } | ||
.mp-subject-banner__count { | .mp-subject-banner__count { | ||
margin-top: 6px; | margin-top: 6px; | ||
font-size: | font-size: 15px; | ||
} | } | ||
| Line 221: | Line 225: | ||
.mp-subject-banner__description { | .mp-subject-banner__description { | ||
font-size: | font-size: 14px; | ||
} | } | ||
} | } | ||
Revision as of 14:29, 11 July 2026
.mp-subject-banner {
position: relative;
overflow: hidden;
box-sizing: border-box;
min-height: 186px;
padding: 18px 32px 16px;
color: #fff;
background:
radial-gradient(ellipse at 72% 12%, rgba(147, 216, 170, 0.24) 0%, rgba(147, 216, 170, 0.08) 24%, transparent 48%),
radial-gradient(ellipse at 18% 100%, rgba(18, 120, 76, 0.58) 0%, transparent 52%),
linear-gradient(116deg, rgba(12, 133, 76, 0.95) 0%, rgba(7, 103, 61, 0.98) 43%, rgba(5, 70, 45, 1) 100%);
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif;
}
.mp-subject-banner.mw-collapsed {
min-height: 0;
padding: 9px 54px 9px 22px;
}
.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: 9px;
right: 16px;
z-index: 4;
padding: 0;
border: 0;
color: #fff;
background: transparent;
font-size: 12px;
line-height: 1.4;
opacity: 0.86;
}
.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: 16px;
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: 1px;
font-size: 15px;
line-height: 1.25;
}
.mp-subject-banner__title-row {
display: flex;
align-items: baseline;
gap: 22px;
min-width: 0;
}
.mp-subject-banner__title {
font-family: "lmroman10-regular", "Latin Modern Roman", Georgia, "Times New Roman", serif;
font-size: 42px;
line-height: 1.05;
white-space: nowrap;
}
.mp-subject-banner__count {
color: #67d0ed;
font-size: 16px;
line-height: 1;
white-space: nowrap;
}
.mp-subject-banner__rule {
width: 460px;
max-width: 100%;
height: 1px;
margin: 8px 0 12px;
background: rgba(255, 255, 255, 0.82);
}
.mp-subject-banner__description {
max-width: 680px;
font-size: 15px;
line-height: 1.4;
}
.mp-subject-banner__actions {
margin-top: 15px;
}
.mp-subject-banner__button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 104px;
min-height: 36px;
padding: 7px 16px;
border: 1px solid #a9a9a9;
color: #111;
background: linear-gradient(#ffffff, #f6f6f6);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
font-size: 15px;
font-weight: 700;
}
.mp-subject-banner__button:hover,
.mp-subject-banner__button:focus {
background: #fff;
color: #000;
}
.mp-subject-banner__breadcrumbs {
margin-top: 18px;
}
.mp-subject-banner__art {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: auto;
z-index: 1;
width: 48%;
min-width: 430px;
opacity: 0.72;
}
.mp-subject-banner__art-file {
position: absolute;
top: 0;
right: -18px;
width: 590px;
max-width: none;
display: block;
}
.mp-subject-banner__art-file img {
width: 590px;
height: 186px;
max-width: none;
object-fit: contain;
}
.mp-subject-banner--blue {
background:
radial-gradient(ellipse at 72% 12%, rgba(135, 205, 233, 0.22) 0%, rgba(135, 205, 233, 0.08) 24%, transparent 48%),
radial-gradient(ellipse at 18% 100%, rgba(21, 101, 146, 0.55) 0%, transparent 52%),
linear-gradient(116deg, #075f89 0%, #064d72 43%, #06304d 100%);
}
.mp-subject-banner--red {
background:
radial-gradient(ellipse at 72% 12%, rgba(255, 190, 174, 0.18) 0%, rgba(255, 190, 174, 0.06) 24%, transparent 48%),
radial-gradient(ellipse at 18% 100%, rgba(128, 38, 60, 0.55) 0%, transparent 52%),
linear-gradient(116deg, #8a2636 0%, #6c2032 43%, #471522 100%);
}
@media (max-width: 760px) {
.mp-subject-banner {
min-height: 0;
padding: 17px 16px 15px;
}
.mp-subject-banner.mw-collapsed {
padding: 9px 54px 9px 16px;
}
.mp-subject-banner__art {
width: 100%;
min-width: 0;
opacity: 0.34;
}
.mp-subject-banner__art-file {
right: -220px;
width: 540px;
}
.mp-subject-banner__art-file img {
width: 540px;
height: 186px;
}
.mp-subject-banner__title-row {
display: block;
}
.mp-subject-banner__title {
white-space: normal;
font-size: 34px;
}
.mp-subject-banner__count {
margin-top: 6px;
font-size: 15px;
}
.mp-subject-banner__rule {
width: 100%;
}
.mp-subject-banner__description {
font-size: 14px;
}
}