why-upgrade-xwiki

Version 1.5 by Agnease on 2026/05/12 14:48

/* ========== Resource / Article Pages ========== */

.resource-page {
  padding-top: 34px;
}

.resource-header {
  padding: 40px 0 30px;
  border-top: none;
  background:
    radial-gradient(42rem 14rem at 50% 0%, @brand-bg 0%, transparent 70%);

  .resource-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: @brand;
    background: fade(@brand, 8%);
    border: 1px solid fade(@brand, 18%);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
  }

  h1 {
    max-width: 820px;
    margin: 0 auto 14px;
    text-align: center;
    line-height: 1.18;
  }

  .resource-summary {
    max-width: 780px;
    margin: 0 auto;
    color: @muted;
    text-align: center;
    font-size: 18px;
    line-height: 1.55;
  }
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 42px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.resource-content {
  color: @text;
  font-size: 16px;
  line-height: 1.68;

  h2 {
    text-align: left;
    margin: 34px 0 12px;
    line-height: 1.28;
  }

  h3 {
    margin: 24px 0 8px;
    line-height: 1.3;
  }

  p {
    margin: 0 0 16px;
  }

  ul,
  ol {
    margin: 0 0 18px;
    padding-left: 22px;
  }

  li {
    margin: 6px 0;
  }

  strong {
    color: @text;
  }
}

.resource-note {
  border-left: 4px solid @brand;
  background: @brand-bg;
  padding: 16px 18px;
  margin: 22px 0;
  border-radius: 0 @radius @radius 0;

  p:last-child {
    margin-bottom: 0;
  }
}

.resource-checklist {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;

  li {
    position: relative;
    padding: 10px 0 10px 34px;
    border-bottom: 1px solid @line;

    &:before {
      content: "\f00c";
      font-family: FontAwesome;
      position: absolute;
      left: 0;
      top: 11px;
      color: @brand;
    }
  }
}

.resource-sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid @line;
  border-radius: @radius;
  padding: 18px;
  background: #fff;
  box-shadow: @shadow-sm;

  h4 {
    margin: 0 0 10px;
  }

  ul {
    margin: 0;
    padding-left: 18px;
    color: @muted;
  }

  li {
    margin: 8px 0;
  }

  a {
    color: @brand;
    font-weight: 600;
  }
}

.resource-cta {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid fade(@brand, 20%);
  border-radius: @radius;
  background: @brand-bg;

  h3 {
    margin-top: 0;
  }

  p {
    color: @muted;
  }
}

@media (max-width: 900px) {
  .resource-layout {
    grid-template-columns: 1fr;
  }

  .resource-sidebar {
    position: static;
  }
}