No notes defined.

<h1>Lists</h1>

<h2 class="h4">Unordered list:</h2>

<ul class="">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - inline</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--inline">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--inline">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - inline & spaced</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--inline-spaced">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--inline-spaced">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - compact</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--compact">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--compact">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - spaced</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--spaced">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--spaced">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - inline &amp; spaced</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--spaced  list--inline">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--spaced  list--inline">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - unbulleted</h2>

<h2 class="h4">Unordered list:</h2>

<ul class="  list--unbulleted">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ul>

<h2 class="h4">Ordered list:</h2>

<ol class="  list--unbulleted">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
    <li>Six</li>
</ol>

<hr>
<h2 class="h1">Lists - long copy</h2>

<ul>
    <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
    <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
        <ul>
            <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
            <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
        </ul>
    </li>
    <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
        <ol>
            <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
            <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
        </ol>
    </li>
    <li>Lipsum has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li>
</ul>

<hr>
<h2 class="h1">Lists - deeply nested</h2>

<ol>
    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
        <ul>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
                <ul>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
                        <ul>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                        </ul>
                    </li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                </ul>
            </li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
        </ul>
    </li>
    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
        <ol>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
                <ol>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry
                        <ol>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                        </ol>
                    </li>
                    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
                </ol>
            </li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
            <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
        </ol>
    </li>
    <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry</li>
</ol>
<h1>Lists</h1>
{% include '@list' %}
<hr>
<h2 class="h1">Lists - inline</h2>
{% include '@list' with {
    modifiers: ['inline']
} %}
<hr>
<h2 class="h1">Lists - inline & spaced</h2>
{% include '@list' with {
    modifiers: ['inline-spaced']
} %}
<hr>
<h2 class="h1">Lists - compact</h2>
{% include '@list' with {
    modifiers: ['compact']
} %}
<hr>
<h2 class="h1">Lists - spaced</h2>
{% include '@list' with {
    modifiers: ['spaced']
} %}
<hr>
<h2 class="h1">Lists - inline &amp; spaced</h2>
{% include '@list' with {
    modifiers: ['spaced', 'inline']
} %}
<hr>
<h2 class="h1">Lists - unbulleted</h2>
{% include '@list' with {
    modifiers: ['unbulleted']
} %}
<hr>
<h2 class="h1">Lists - long copy</h2>

<ul>
    <li>{{ lorem }}</li>
    <li>{{ lorem }}
        <ul>
            <li>{{ lorem }}</li>
            <li>{{ lorem }}</li>
        </ul>
    </li>
    <li>{{ lorem }}
        <ol>
            <li>{{ lorem }}</li>
            <li>{{ lorem }}</li>
        </ol>
    </li>
    <li>{{ lorem }}</li>
</ul>

<hr>
<h2 class="h1">Lists - deeply nested</h2>

<ol>
    <li>{{ loremShort }}</li>
    <li>{{ loremShort }}
        <ul>
            <li>{{ loremShort }}</li>
            <li>{{ loremShort }}
                <ul>
                    <li>{{ loremShort }}</li>
                    <li>{{ loremShort }}</li>
                    <li>{{ loremShort }}
                        <ul>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                        </ul>
                    </li>
                    <li>{{ loremShort }}</li>
                </ul>
            </li>
            <li>{{ loremShort }}</li>
            <li>{{ loremShort }}</li>
        </ul>
    </li>
    <li>{{ loremShort }}
        <ol>
            <li>{{ loremShort }}</li>
            <li>{{ loremShort }}
                <ol>
                    <li>{{ loremShort }}</li>
                    <li>{{ loremShort }}</li>
                    <li>{{ loremShort }}
                        <ol>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                            <li>{{ loremShort }}</li>
                        </ol>
                    </li>
                    <li>{{ loremShort }}</li>
                </ol>
            </li>
            <li>{{ loremShort }}</li>
            <li>{{ loremShort }}</li>
        </ol>
    </li>
    <li>{{ loremShort }}</li>
</ol>
  • Content:
    .list--unbulleted {
      list-style: none;
      padding-inline-start: 0;
    }
    
    .list--inline {
      list-style: none;
      padding-inline-start: 0;
      > li {
        display: inline-block;
        &:not(last-child) {
          margin-right: $spacing-3xs;
        }
      }
    }
    .list--inline-spaced {
      > li {
        &:not(last-child) {
          margin-right: $spacing-sm;
        }
      }
    }
    
    .list--buttons {
      list-style: none;
      padding-inline-start: 0;
    
      > li {
        display: inline-block;
        &:not(last-child) {
          margin-right: $spacing-2xs;
        }
    
        a, a:visited {
          padding: 0.25rem 0.55rem;
          background: $toolbar-button;
          color: #fff;
          @include typescale('sm', 'em');
          border-radius: 0.3rem;
          font-weight: 400;
          text-decoration: none;
    
          &.list--button-alt {
            background: $secondary;
          }
    
          &.list--button-light {
            background: $grey--light;
            color: $navy;
          }
    
          &.list--button-none {
            background: none;
            color: $navy;
            text-decoration: underline;
          }
    
          &.list--button-outline {
            background: none;
            color: $navy;
            box-shadow: inset 0 0 0 2px $primary;
          }
    
        }
      }
    
      &.list--buttons-light {
        > li {
          a, a:visited {
            background: $grey--light;
            color: $navy;
          }
        }
      }
    
      &.list--buttons-none {
        > li {
          a, a:visited {
            background: none;
            color: $navy;
            text-decoration: underline;
          }
        }
      }
    }
    
    
    
    .list--spaced {
      > li {
        padding-top: $spacing-xs;
        padding-bottom: $spacing-xs;
      }
    }
    
    .list--compact {
      > li {
        margin-bottom: 0;
      }
    }
    
    .list--spaced.list--inline {
      > li:not(last-child) {
        margin-right: $spacing-md;
      }
    }
    
    .list--icon-links {
      li {
        margin-bottom: 1em;
      }
      a {
        text-decoration: none;
      }
      .icon {
        margin-right: 0.5em;
      }
    }
    
  • URL: /components/raw/list/_lists.scss
  • Filesystem Path: app/components/02-components/list/_lists.scss
  • Size: 1.8 KB