11.26c09v11 Team 03 S05: Title Left, Numbered List Right

Description

  • converts the items into a simple numbered list with divider lines, placed next to the section title in a two-column layout
  • buy me a coffee

11 26c09v11

#1. Install Code

#1.1. First, add a Section > Choose Team > Choose section with icon in top right

11 26c08v5

#1.2. Hover on top right of section > Click EDIT CONTENT

11 26c08v5

Choose Simple List

10.26c21v04 Team 267 Style 01 4 Columns

#1.3. Enable these options

11 26c09v11

#1.4. Enter text to Section Title, something like this

11 26c09v11

#1.5. Enter text on each item

11 26c09v11

#1.6. Hover on top right of section > Click EDIT SECTION

11 26c08v5

#1.7. at Format > Anchor Link > enter word: team03-s05

11 26c09v11

#1.8. Next, use this code to Custom CSS

#team03-s05 {
  --stitle-text-align: left;
  --stitle-line1-size: calc(var(--small-text-size-value) * 1rem);
  --stitle-line1-weight: 500;
  --stitle-line1-color: var(--sqsp-palette-accent-color);
  --stitle-line1-letter-spacing: .2em;
  --stitle-line1-text-transform: uppercase;
  --stitle-line1-space-below: 20px;
  --stitle-line2-line-height: 1;
  --stitle-line2-italic-color: var(--stitle-line1-color);
  --stitle-line3-size: calc(var(--normal-text-size-value) * 1rem);
  --stitle-line3-color: var(--paragraphMediumColor);
  --stitle-line3-space-above: 22px;

  --title-column-width: 5fr;
  --items-column-width: 7fr;
  --title-items-gap: 80px;

  --item-line-color: #B9AD98;
  --item-line-height: 1px;
  --item-space-above-text: 16px;
  --item-space-below-text: 16px;
  --item-number-font-family: var(--heading-font-font-family);
  --item-number-font-weight: var(--heading-font-font-weight);
  --item-number-size: 17px;
  --item-number-color: var(--sqsp-palette-accent-color);
  --item-number-width: 28px;
  --item-number-text-gap: 18px;
  --item-title-font-family: var(--body-font-font-family);
  --item-title-font-weight: var(--body-font-font-weight);

  .list-section-title {
    text-align: var(--stitle-text-align);
  }
  .list-section-title > p:nth-of-type(1) {
    margin-top: 0;
    margin-bottom: var(--stitle-line1-space-below);
    font-family: var(--body-font-font-family);
    font-size: var(--stitle-line1-size);
    font-weight: var(--stitle-line1-weight);
    font-style: var(--body-font-font-style);
    line-height: var(--body-font-line-height);
    letter-spacing: var(--stitle-line1-letter-spacing);
    text-transform: var(--stitle-line1-text-transform);
    color: var(--stitle-line1-color);
  }
  .list-section-title > p:nth-of-type(2) {
    margin-top: 0;
    margin-bottom: 0;
    line-height: var(--stitle-line2-line-height);
  }
  .list-section-title > p:nth-of-type(2) em {
    color: var(--stitle-line2-italic-color);
  }
  .list-section-title > p:nth-of-type(3) {
    margin-top: var(--stitle-line3-space-above);
    margin-bottom: 0;
    font-family: var(--body-font-font-family);
    font-size: var(--stitle-line3-size);
    font-weight: var(--body-font-font-weight);
    font-style: var(--body-font-font-style);
    line-height: var(--body-font-line-height);
    letter-spacing: var(--body-font-letter-spacing);
    text-transform: var(--body-font-text-transform);
    color: var(--stitle-line3-color);
  }

  .user-items-list-item-container {
    display: block !important;
    counter-reset: item-number;
  }
  .list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: var(--item-number-text-gap);
    width: 100% !important;
    margin: 0 !important;
    padding: var(--item-space-above-text) 0 var(--item-space-below-text) !important;
    border-bottom: var(--item-line-height) solid var(--item-line-color);
    counter-increment: item-number;
    text-align: left;
  }
  .list-item:first-child {
    border-top: var(--item-line-height) solid var(--item-line-color);
  }
  .list-item::before {
    content: counter(item-number) ".";
    flex: none;
    min-width: var(--item-number-width);
    font-family: var(--item-number-font-family);
    font-size: var(--item-number-size);
    font-weight: var(--item-number-font-weight);
    font-style: italic;
    line-height: 1;
    color: var(--item-number-color);
  }
  .list-item-content {
    flex: 1;
    min-width: 0;
    padding: 0 !important;
  }
  .list-item-content__title {
    margin: 0 !important;
    font-family: var(--item-title-font-family) !important;
    font-weight: var(--item-title-font-weight) !important;
  }

  @media (min-width: 768px) {
    .user-items-list {
      display: grid;
      grid-template-columns: var(--title-column-width) var(--items-column-width);
      column-gap: var(--title-items-gap);
      align-items: start;
    }
    .list-section-title {
      grid-column: 1;
      padding-bottom: 0 !important;
    }
    .user-items-list-item-container {
      grid-column: 2;
      margin: 0 !important;
    }
  }
}

#1.9. Customize

To change style of 3 Lines in Section Title

11 26c09v11

Change these

--stitle-text-align: left;
  --stitle-line1-size: calc(var(--small-text-size-value) * 1rem);
  --stitle-line1-weight: 500;
  --stitle-line1-color: var(--sqsp-palette-accent-color);
  --stitle-line1-letter-spacing: .2em;
  --stitle-line1-text-transform: uppercase;
  --stitle-line1-space-below: 20px;
  --stitle-line2-line-height: 1;
  --stitle-line2-italic-color: var(--stitle-line1-color);
  --stitle-line3-size: calc(var(--normal-text-size-value) * 1rem);
  --stitle-line3-color: var(--paragraphMediumColor);
  --stitle-line3-space-above: 22px;

To change width of Section Title, Items, Gap between both, change these

--title-column-width: 5fr;
  --items-column-width: 7fr;
  --title-items-gap: 80px;

To change line style (line between items on right side), change these

--item-line-color: #B9AD98;
 --item-line-height: 1px;
 --item-space-above-text: 16px;
 --item-space-below-text: 16px;

11 26c09v11

To change number style, change these

--item-number-font-family: var(--heading-font-font-family);
  --item-number-font-weight: var(--heading-font-font-weight);
  --item-number-size: 17px;
  --item-number-color: var(--sqsp-palette-accent-color);
  --item-number-width: 28px;
  --item-number-text-gap: 18px;

11 26c09v11

To change gap between Section Title – Items on Mobile, change this

11 26c09v11

Buy me a coffee