Jump to content

Template:Subject banner/styles.css

From Mathepedia, the mathematical encyclopedia

Revision as of 12:00, 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-m3pf8m8m/diagram.log.

'"7

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.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 * {
  box-sizing: border-box;
}

.mp-subject-banner a {
  color: inherit;
  text-decoration: none;
}

.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__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #f5fff8;
  font-size: 17px;
  line-height: 1.35;
}

.mp-subject-banner__root {
  color: #d394ff;
  font-weight: 700;
}

.mp-subject-banner__chevron {
  color: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  line-height: 1;
}

.mp-subject-banner__art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1;
  width: 48%;
  min-width: 430px;
  opacity: 0.78;
}

.mp-subject-banner__formulae {
  position: absolute;
  top: 13px;
  right: 33px;
  width: 560px;
  transform: rotate(10deg);
  color: rgba(220, 244, 224, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.45;
  text-align: left;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.mp-subject-banner__loop {
  position: absolute;
  border: 1px dashed rgba(215, 243, 223, 0.35);
  border-radius: 45% 55% 52% 48%;
}

.mp-subject-banner__loop::before,
.mp-subject-banner__loop::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(215, 243, 223, 0.28);
  border-radius: inherit;
}

.mp-subject-banner__loop--one {
  right: -36px;
  top: 54px;
  width: 168px;
  height: 206px;
  transform: rotate(17deg);
}

.mp-subject-banner__loop--one::before {
  top: 20px;
  right: -28px;
  bottom: 78px;
  left: 18px;
  transform: rotate(-18deg);
}

.mp-subject-banner__loop--one::after {
  top: 72px;
  right: 22px;
  bottom: 15px;
  left: -24px;
  transform: rotate(24deg);
}

.mp-subject-banner__loop--two {
  right: 302px;
  bottom: -34px;
  width: 154px;
  height: 106px;
  transform: rotate(26deg);
}

.mp-subject-banner__loop--two::before {
  top: 18px;
  right: 20px;
  bottom: 22px;
  left: -22px;
  transform: rotate(-25deg);
}

.mp-subject-banner__loop--two::after {
  top: -26px;
  right: -18px;
  bottom: 30px;
  left: 48px;
  transform: rotate(18deg);
}

.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__formulae {
    right: -110px;
    width: 430px;
    font-size: 20px;
  }

  .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,
  .mp-subject-banner__crumbs {
    font-size: 16px;
  }
}