Sha256: e36f939673658212cf0a37acbfe59146ccaf1d9485b1c10314fca6531ae7acb5

Contents?: true

Size: 978 Bytes

Versions: 20

Compression:

Stored size: 978 Bytes

Contents

ul, ol {
  margin: {
    top: 2em;
    bottom: 2em;
  }

  li {
    line-height: $base-line-height;
    margin: {
      top: .75em;
      bottom: .75em;
    }
  }
}

h1, h2, h3, h4, h5, h6, p {
  + ul,
  + ol {
    margin: {
      top: 0;
    }
  }
}

ul, ol {
  list-style: none;
  padding-left: 0;
  display: table;

  li:after {
    content: "";
    display: block;
    margin-bottom: 0.5em;
  }
}

ul li {
  display: table-row;

  &:before {
    content: "•";
    display: table-cell;
    padding-right: 0.4em;
  }
}

ol li {
  display: table-row;
  counter-increment: table-ol;

  &:before {
    content: counter(table-ol) ".";
    display: table-cell;
    padding-right: 0.4em;
    text-align: right;
  }
}

li {
  margin-bottom: 0.5em;
}

// Unstyled lists

.usa-unstyled-list {
  margin: 0;
  padding: 0;
  list-style-type: none;

  li {
    display: list-item;
    margin: 0;

    &:before {
      display: none;
    }

    &:after {
      display: none;
    }
  }
}

Version data entries

20 entries across 19 versions & 2 rubygems

Version Path
va_common-0.4.4 app/assets/stylesheets/elements/_list.scss
va_common-0.4.3 app/assets/stylesheets/elements/_list.scss
va_common-0.4.1 app/assets/stylesheets/elements/_list.scss
va_common-0.4.0 app/assets/stylesheets/elements/_list.scss
va_common-0.3.6 app/assets/stylesheets/elements/_list.scss
va_common-0.3.5 app/assets/stylesheets/elements/_list.scss
va_common-0.3.4 app/assets/stylesheets/elements/_list.scss
va_common-0.3.3 app/assets/stylesheets/elements/_list.scss
va_common-0.3.2 app/assets/stylesheets/elements/_list.scss
va_common-0.3.0 app/assets/stylesheets/elements/_list.scss
va_common-0.2.5 app/assets/stylesheets/elements/_list.scss
va_common-0.2.4 app/assets/stylesheets/elements/_list.scss
va_common-0.2.3 app/assets/stylesheets/elements/_list.scss
va_common-0.2.2 app/assets/stylesheets/elements/_list.scss
va_common-0.2.1 app/assets/stylesheets/elements/_list.scss
va_common-0.2.0 app/assets/stylesheets/elements/_list.scss
va_common-0.1.0 app/assets/stylesheets/elements/_list.scss
us_web_design_standards-0.0.2 app/assets/stylesheets/elements/_list.scss
us_web_design_standards-0.0.2 assets/_scss/elements/_list.scss
us_web_design_standards-0.0.0 assets/_scss/elements/_list.scss