Sha256: 31cb23f908ade93c9b63f3aee3e36d07fd83e29c6a0c1c99b6e8be2535116047

Contents?: true

Size: 1.3 KB

Versions: 7

Compression:

Stored size: 1.3 KB

Contents

// Base styles
// stylelint-disable selector-no-qualifying-type
// stylelint-disable selector-no-type
.markdown-body {

  // Lists, Blockquotes & Such
  ul,
  ol {
    padding-left: 2em;

    &.no-list {
      padding: 0;
      list-style-type: none;
    }
  }

  // Did someone complain about list spacing? Encourage them
  // to create the spacing with their markdown formatting.
  // List behavior should be controled by the markup, not the css.
  //
  // For lists with padding between items, use blank
  // lines between items. This will generate paragraphs with
  // padding to space things out.
  //
  // - item
  //
  // - item
  //
  // - item
  //
  // For list without padding, don't use blank lines.
  //
  // - item
  // - item
  // - item
  //
  // Modifying the css to emulate these behaviors merely brakes
  // one case in the process of solving another. Don't change
  // this unless it's really really a bug.
  ul ul,
  ul ol,
  ol ol,
  ol ul {
    margin-top: 0;
    margin-bottom: 0;
  }

  li > p {
    margin-top: $margin;
  }

  li + li {
    margin-top: 0.25em;
  }

  dl {
    padding: 0;

    dt {
      padding: 0;
      margin-top: $margin;
      font-size: 1em;
      font-style: italic;
      font-weight: bold;
    }

    dd {
      padding: 0 $margin;
      margin-bottom: $margin;
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-theme-primer-0.1.7 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.6 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.5 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.4 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.3 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.2 _sass/primer-markdown/lib/lists.scss
jekyll-theme-primer-0.1.1 _sass/primer-markdown/lib/lists.scss