Jump to content

Template:Subject banner/styles.css: Difference between revisions

From Mathepedia, the mathematical encyclopedia
Created page with ".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 { colo..."
 
No edit summary
Line 10: Line 10:
     linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%);
     linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%);
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mp-subject-banner.mw-collapsed {
  min-height: 0;
}
}


Line 19: Line 23:
   color: inherit;
   color: inherit;
   text-decoration: none;
   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;
}
}


Line 93: Line 114:
}
}


.mp-subject-banner__crumbs {
.mp-subject-banner__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
   margin-top: 28px;
   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;
}
}


Line 124: Line 127:
   width: 48%;
   width: 48%;
   min-width: 430px;
   min-width: 430px;
   opacity: 0.78;
   opacity: 0.86;
}
}


.mp-subject-banner__formulae {
.mp-subject-banner__art-file {
   position: absolute;
   position: absolute;
   top: 13px;
   top: 0;
   right: 33px;
   right: -18px;
   width: 560px;
   width: 760px;
  transform: rotate(10deg);
   max-width: none;
   color: rgba(220, 244, 224, 0.68);
   display: block;
  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__art-file img {
.mp-subject-banner__loop::after {
   width: 760px;
  content: "";
   height: 270px;
  position: absolute;
   max-width: none;
  border: 1px dashed rgba(215, 243, 223, 0.28);
   object-fit: contain;
  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);
}
}


Line 228: Line 170:
   }
   }


   .mp-subject-banner__formulae {
   .mp-subject-banner__art-file {
     right: -110px;
     right: -245px;
     width: 430px;
     width: 650px;
     font-size: 20px;
  }
 
  .mp-subject-banner__art-file img {
    width: 650px;
     height: 245px;
   }
   }


Line 252: Line 198:
   }
   }


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

Revision as of 12:09, 11 July 2026

.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;
  }
}