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
 
(10 intermediate revisions by the same user not shown)
Line 3: Line 3:
   overflow: hidden;
   overflow: hidden;
   box-sizing: border-box;
   box-sizing: border-box;
   min-height: 270px;
   min-height: 186px;
   padding: 28px 44px 24px;
   padding: 18px 32px 16px;
   color: #fff;
   color: #fff;
   background:
   background:
     radial-gradient(circle at 74% 18%, rgba(118, 220, 168, 0.2), transparent 29%),
     radial-gradient(ellipse at 72% 12%, rgba(147, 216, 170, 0.24) 0%, rgba(147, 216, 170, 0.08) 24%, transparent 48%),
     linear-gradient(103deg, #00763f 0%, #006337 47%, #004626 100%);
    radial-gradient(ellipse at 18% 100%, rgba(18, 120, 76, 0.58) 0%, transparent 52%),
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
     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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
 
.mp-subject-banner.mw-collapsed {
  min-height: 0;
  padding: 9px 54px 9px 22px;
}
}


.mp-subject-banner * {
.mp-subject-banner * {
   box-sizing: border-box;
   box-sizing: border-box;
}
.mp-subject-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(2, 45, 33, 0.16) 58%, rgba(2, 38, 30, 0.28) 100%);
}
.mp-subject-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 128, 73, 0.92) 0%, rgba(12, 128, 73, 0.88) 42%, rgba(8, 90, 55, 0.48) 64%, rgba(3, 47, 36, 0.34) 100%),
    radial-gradient(ellipse at 28% 18%, rgba(79, 181, 121, 0.18) 0%, transparent 44%),
    linear-gradient(180deg, rgba(2, 31, 24, 0.24) 0%, transparent 28%, transparent 70%, rgba(2, 31, 24, 0.3) 100%);
}
}


Line 19: Line 44:
   color: inherit;
   color: inherit;
   text-decoration: none;
   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 {
.mp-subject-banner__content {
   position: relative;
   position: relative;
   z-index: 2;
   z-index: 3;
   max-width: 730px;
  width: 52%;
   max-width: 760px;
  min-width: 500px;
}
 
.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 {
.mp-subject-banner__kicker {
   margin-bottom: 2px;
   margin-bottom: 1px;
   font-size: 19px;
   font-size: 15px;
   line-height: 1.25;
   line-height: 1.25;
}
}
Line 36: Line 98:
   display: flex;
   display: flex;
   align-items: baseline;
   align-items: baseline;
   gap: 28px;
   gap: 22px;
   min-width: 0;
   min-width: 0;
}
}


.mp-subject-banner__title {
.mp-subject-banner__title {
   font-family: Georgia, "Times New Roman", serif;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
   font-size: 58px;
  font-weight: 400;
   font-size: 42px;
   line-height: 1.05;
   line-height: 1.05;
   white-space: nowrap;
   white-space: nowrap;
Line 48: Line 111:


.mp-subject-banner__count {
.mp-subject-banner__count {
   color: #56c7ee;
   color: #67d0ed;
   font-size: 20px;
   font-size: 16px;
   line-height: 1;
   line-height: 1;
   white-space: nowrap;
   white-space: nowrap;
Line 55: Line 118:


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


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


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


Line 76: Line 139:
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   min-width: 130px;
   min-width: 104px;
   min-height: 48px;
   min-height: 36px;
   padding: 10px 22px;
   padding: 7px 16px;
   border: 1px solid #a9a9a9;
   border: 1px solid #a9a9a9;
   color: #111;
   color: #111;
   background: linear-gradient(#fff, #f3f3f3);
   background: linear-gradient(#ffffff, #f6f6f6);
   box-shadow: inset 0 0 0 1px #ececec, 0 1px 1px rgba(0, 0, 0, 0.28);
   box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
   font-size: 18px;
   font-size: 15px;
   font-weight: 700;
   font-weight: 700;
}
}
Line 93: Line 156:
}
}


.mp-subject-banner__crumbs {
.mp-subject-banner__breadcrumbs {
  display: flex;
   margin-top: 18px;
  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;
}
}


Line 120: Line 165:
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;
   left: auto;
   left: 42%;
   z-index: 1;
   z-index: 1;
   width: 48%;
   width: auto;
   min-width: 430px;
   min-width: 0;
   opacity: 0.78;
   opacity: 0.78;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 10%, #000 30%);
}
}


.mp-subject-banner__formulae {
.mp-subject-banner__art::before,
  position: absolute;
.mp-subject-banner__art::after {
  top: 13px;
   display: none;
  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 {
.mp-subject-banner__art-file,
.mp-subject-banner__art-file a,
.mp-subject-banner__art-file img,
img.mp-subject-banner__art-file {
   position: absolute;
   position: absolute;
   border: 1px dashed rgba(215, 243, 223, 0.35);
   top: 0;
   border-radius: 45% 55% 52% 48%;
   right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  z-index: 1;
}
}


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


.mp-subject-banner__loop--one {
.mp-subject-banner__art-file img,
  right: -36px;
img.mp-subject-banner__art-file {
  top: 54px;
   width: 100%;
  width: 168px;
   height: 100%;
  height: 206px;
   max-width: 100%;
  transform: rotate(17deg);
   min-width: 0;
}
   object-fit: cover;
 
   object-position: right center;
.mp-subject-banner__loop--one::before {
   filter: saturate(0.86) contrast(0.9) brightness(0.95);
   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 {
.mp-subject-banner--blue {
   background:
   background:
     radial-gradient(circle at 74% 18%, rgba(113, 199, 240, 0.22), transparent 29%),
     radial-gradient(ellipse at 72% 12%, rgba(135, 205, 233, 0.22) 0%, rgba(135, 205, 233, 0.08) 24%, transparent 48%),
     linear-gradient(103deg, #075b86 0%, #04496e 48%, #062c4d 100%);
    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(circle at 74% 18%, rgba(255, 188, 168, 0.18), transparent 29%),
     radial-gradient(ellipse at 72% 12%, rgba(255, 190, 174, 0.18) 0%, rgba(255, 190, 174, 0.06) 24%, transparent 48%),
     linear-gradient(103deg, #8a2636 0%, #6e1f31 48%, #471522 100%);
    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 219: Line 227:
   .mp-subject-banner {
   .mp-subject-banner {
     min-height: 0;
     min-height: 0;
     padding: 24px 22px 20px;
     padding: 17px 16px 15px;
  }
 
  .mp-subject-banner.mw-collapsed {
    padding: 9px 54px 9px 16px;
   }
   }


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


   .mp-subject-banner__formulae {
   .mp-subject-banner__art-file {
     right: -110px;
     right: 0;
     width: 430px;
    width: 100%;
     font-size: 20px;
    height: 100%;
  }
 
  .mp-subject-banner__art-file img {
    width: 100%;
    height: 100%;
  }
 
  .mp-subject-banner__content {
     width: 100%;
     min-width: 0;
   }
   }


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


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


Line 252: Line 275:
   }
   }


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

Latest revision as of 19:47, 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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mp-subject-banner.mw-collapsed {
  min-height: 0;
  padding: 9px 54px 9px 22px;
}

.mp-subject-banner * {
  box-sizing: border-box;
}

.mp-subject-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 38%, rgba(2, 45, 33, 0.16) 58%, rgba(2, 38, 30, 0.28) 100%);
}

.mp-subject-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 128, 73, 0.92) 0%, rgba(12, 128, 73, 0.88) 42%, rgba(8, 90, 55, 0.48) 64%, rgba(3, 47, 36, 0.34) 100%),
    radial-gradient(ellipse at 28% 18%, rgba(79, 181, 121, 0.18) 0%, transparent 44%),
    linear-gradient(180deg, rgba(2, 31, 24, 0.24) 0%, transparent 28%, transparent 70%, rgba(2, 31, 24, 0.3) 100%);
}

.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: 3;
  width: 52%;
  max-width: 760px;
  min-width: 500px;
}

.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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  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: 72%;
  max-width: 100%;
  height: 1px;
  margin: 8px 0 12px;
  background: rgba(255, 255, 255, 0.82);
}

.mp-subject-banner__description {
  max-width: 640px;
  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: 42%;
  z-index: 1;
  width: auto;
  min-width: 0;
  opacity: 0.78;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 10%, #000 30%);
}

.mp-subject-banner__art::before,
.mp-subject-banner__art::after {
  display: none;
}

.mp-subject-banner__art-file,
.mp-subject-banner__art-file a,
.mp-subject-banner__art-file img,
img.mp-subject-banner__art-file {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  z-index: 1;
}

.mp-subject-banner__art-file a {
  overflow: hidden;
}

.mp-subject-banner__art-file img,
img.mp-subject-banner__art-file {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.86) contrast(0.9) brightness(0.95);
}

.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 {
    left: 0;
    width: 100%;
    min-width: 0;
    opacity: 0.3;
  }

  .mp-subject-banner__art-file {
    right: 0;
    width: 100%;
    height: 100%;
  }

  .mp-subject-banner__art-file img {
    width: 100%;
    height: 100%;
  }

  .mp-subject-banner__content {
    width: 100%;
    min-width: 0;
  }

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