Jump to content

Template:Subject banner/styles.css

From Mathepedia, the mathematical encyclopedia

Revision as of 12:09, 11 July 2026 by {{GENDER:InfernalAtom683|

Mathepedia render error: ! Extra }, or forgotten $. l.8 '"2} } No pages of output. Transcript written on /var/lib/mathepedia-renderer/cache/mathepedia-cbb0e139328 50b9fe4e18f60e540979921293739af0280a15eb127d1c1c6428f-zawy582j/diagram.log.

'"7

.mp-subject-banner {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 270px;
  padding: 28px 44px 24px;
  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: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mp-subject-banner.mw-collapsed {
  min-height: 0;
}

.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: 18px;
  right: 22px;
  z-index: 4;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  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__kicker {
  margin-bottom: 2px;
  font-size: 19px;
  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: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.05;
  white-space: nowrap;
}

.mp-subject-banner__count {
  color: #56c7ee;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.mp-subject-banner__rule {
  width: 520px;
  max-width: 100%;
  height: 2px;
  margin: 12px 0 18px;
  background: rgba(255, 255, 255, 0.88);
}

.mp-subject-banner__description {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.4;
}

.mp-subject-banner__actions {
  margin-top: 25px;
}

.mp-subject-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 48px;
  padding: 10px 22px;
  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: 18px;
  font-weight: 700;
}

.mp-subject-banner__button:hover,
.mp-subject-banner__button:focus {
  background: #fff;
  color: #000;
}

.mp-subject-banner__breadcrumbs {
  margin-top: 28px;
}

.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: 760px;
  max-width: none;
  display: block;
}

.mp-subject-banner__art-file img {
  width: 760px;
  height: 270px;
  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: 24px 22px 20px;
  }

  .mp-subject-banner__art {
    width: 100%;
    min-width: 0;
    opacity: 0.34;
  }

  .mp-subject-banner__art-file {
    right: -245px;
    width: 650px;
  }

  .mp-subject-banner__art-file img {
    width: 650px;
    height: 245px;
  }

  .mp-subject-banner__title-row {
    display: block;
  }

  .mp-subject-banner__title {
    white-space: normal;
    font-size: 44px;
  }

  .mp-subject-banner__count {
    margin-top: 6px;
    font-size: 18px;
  }

  .mp-subject-banner__rule {
    width: 100%;
  }

  .mp-subject-banner__description {
    font-size: 16px;
  }
}