Sha256: 3f9f406de42dc1284236afb890666045236df3d7ac58a32595c07bd3489af873

Contents?: true

Size: 1.48 KB

Versions: 10

Compression:

Stored size: 1.48 KB

Contents

// Base styles
// stylelint-disable selector-no-qualifying-type
// stylelint-disable selector-max-type
.markdown-body {
  // Lists, Blockquotes & Such
  ul,
  ol {
    // stylelint-disable-next-line primer/spacing
    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 {
    // TODO@16.0.0: Remove this. See https://github.com/primer/css/pull/1137.
    word-wrap: break-all;
  }

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

  li + li {
    margin-top: $em-spacer-3;
  }

  dl {
    padding: 0;

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

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
truesight-rtd-theme-1.0.1 _sass/lib/@primer/css/markdown/lists.scss
truesight-rtd-theme-1.0.0 _sass/lib/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.10 _sass/lib/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.9 _sass/lib/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.8 _sass/lib/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.7 _sass/lib/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.6 _sass/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.5 _sass/@primer/css/markdown/lists.scss
jekyll-rtd-theme-2.0.4 _sass/@primer/markdown/lists.scss
jekyll-rtd-theme-2.0.3 _sass/@primer/markdown/lists.scss