Sha256: ed0b991c8a81f61a4229f7baa40ba068f410456606c5ab35c4e2bdfc90811760

Contents?: true

Size: 1.84 KB

Versions: 4

Compression:

Stored size: 1.84 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: $spacer-4;
    margin-bottom: $spacer-3;
    font-weight: $font-weight-bold;
    line-height: $lh-condensed;

    .octicon-link {
      color: var(--fgColor-default, var(--color-fg-default));
      vertical-align: middle;
      visibility: hidden;
    }

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

      .octicon-link {
        visibility: visible;
      }
    }

    tt,
    code {
      // stylelint-disable-next-line primer/spacing
      padding: 0 0.2em;
      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 var(--borderColor-muted, var(--color-border-muted));
  }

  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 var(--borderColor-muted, var(--color-border-muted));
  }

  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: var(--fgColor-muted, var(--color-fg-muted));
  }

  summary {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      display: inline-block;

      .anchor {
        // stylelint-disable-next-line primer/spacing
        margin-left: -40px;
      }
    }

    h1,
    h2 {
      padding-bottom: 0;
      border-bottom: 0;
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-v4-theme-primer-0.16.0 _sass/@primer/css/markdown/headings.scss
jekyll-v4-theme-primer-0.15.0 _sass/@primer/css/markdown/headings.scss
jekyll-v4-theme-primer-0.14.0 _sass/@primer/css/markdown/headings.scss
jekyll-v4-theme-primer-0.13.0 _sass/@primer/css/markdown/headings.scss