11.26c09v10 Team 03 S04: Numbered Items (01, 02, 03) with a Top Line

Description

  • adding a thin line and an automatic number (01, 02, 03…) above each List Section item, giving it a clean editorial look without typing any numbers
  • buy me a coffee

11 26c09v10

#1. Install Code

#1.1. First, hover on top right of section > Click EDIT SECTION

11 26c08v5

#1.2. at Format > Anchor Link > enter word: team03-s04

11 26c09v10

#1.3. Next, use this code to Custom CSS

#team03-s04 {
  --item-number-size: 18px;
  --item-number-color: var(--sqsp-palette-accent-color);
  --item-number-space-above: 16px;
  --item-number-space-below: 16px;
  --item-line-color: var(--sqsp-palette-darkest-color);
  --item-line-height: 1px;
  --item-line-width: 100%;
  --item-line-space-above: 0px;
  --item-line-space-below: 10px;
  .user-items-list-item-container {
    counter-reset: item-number;
  }
  .list-item {
    counter-increment: item-number;
  }
  .list-item::before {
    content: "";
    display: block;
    flex: none;
    align-self: flex-start;
    width: var(--item-line-width);
    height: var(--item-line-height);
    margin-top: var(--item-line-space-above);
    margin-bottom: var(--item-line-space-below);
    background-color: var(--item-line-color);
  }
  .list-item-content__title::before {
    content: counter(item-number, decimal-leading-zero);
    display: block;
    margin-top: var(--item-number-space-above);
    margin-bottom: var(--item-number-space-below);
    font-family: var(--heading-font-font-family);
    font-size: var(--item-number-size);
    font-weight: var(--heading-font-font-weight);
    font-style: italic;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--item-number-color);
  }
}

11 26c09v10

#1.4. Customize

To change Top Line Style

11 26c09v10

Change these lines

--item-line-color: var(--sqsp-palette-darkest-color);
 --item-line-height: 1px;
 --item-line-width: 100%;
 --item-line-space-above: 0px;
 --item-line-space-below: 10px;

To change number style

11 26c09v10

Change these lines

--item-number-size: 18px;
  --item-number-color: var(--sqsp-palette-accent-color);
  --item-number-space-above: 16px;
  --item-number-space-below: 16px;

 

Buy me a coffee