Sha256: 45c3c833613e968c44dde9731dee0fcca3baba573acd8e8280ffd35d427e1ea6

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

// Needs refactoring
// stylelint-disable selector-max-compound-selectors, selector-max-specificity
// stylelint-disable selector-max-type
.markdown-body {
  // Headings
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-weight: $font-weight-bold;
    line-height: $lh-condensed;

    .octicon-link {
      color: $text-black;
      vertical-align: middle;
      visibility: hidden;
    }

    &:hover .anchor {
      text-decoration: none;

      .octicon-link {
        visibility: visible;
      }
    }

    tt,
    code {
      font-size: inherit;
    }
  }

  h1 {
    // stylelint-disable-next-line primer/spacing
    padding-bottom: 0.3em;
    // stylelint-disable-next-line primer/typography
    font-size: 2em;
    border-bottom: $border-width $border-style $border-gray-light;
  }

  h2 {
    // stylelint-disable-next-line primer/spacing
    padding-bottom: 0.3em;
    // stylelint-disable-next-line primer/typography
    font-size: 1.5em;
    border-bottom: $border-width $border-style $border-gray-light;
  }

  h3 {
    // stylelint-disable-next-line primer/typography
    font-size: 1.25em;
  }

  h4 {
    font-size: 1em;
  }

  h5 {
    // stylelint-disable-next-line primer/typography
    font-size: 0.875em;
  }

  h6 {
    // stylelint-disable-next-line primer/typography
    font-size: 0.85em;
    color: $text-gray-light;
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hardpool-flat-3.1.0 _sass/primer/markdown/headings.scss
hardpool-flat-3.0.0 _sass/primer/markdown/headings.scss