Sha256: 1ceb9c38c7ce96eff89dfd912a6e5580aa659f685b5bbd1232cba0eb43b8dbd5

Contents?: true

Size: 1.39 KB

Versions: 15

Compression:

Stored size: 1.39 KB

Contents

// stylelint-disable selector-max-type
.markdown-body {
  // Inline code snippets
  code,
  tt {
    // stylelint-disable-next-line primer/spacing
    padding: 0.2em 0.4em;
    margin: 0;
    // stylelint-disable-next-line primer/typography
    font-size: 85%;
    // stylelint-disable-next-line primer/colors
    background-color: rgba($black, 0.05);
    border-radius: $border-radius;

    br {
      display: none;
    }
  }

  del code {
    text-decoration: inherit;
  }

  pre {
    word-wrap: normal;

    // Code tags within code blocks (<pre>s)
    > code {
      padding: 0;
      margin: 0;
      // stylelint-disable-next-line primer/typography
      font-size: 100%;
      word-break: normal;
      white-space: pre;
      background: transparent;
      border: 0;
    }
  }

  .highlight {
    margin-bottom: $spacer-3;

    pre {
      margin-bottom: 0;
      word-break: normal;
    }
  }

  .highlight pre,
  pre {
    padding: $spacer-3;
    overflow: auto;
    // stylelint-disable-next-line primer/typography
    font-size: 85%;
    // stylelint-disable-next-line primer/typography
    line-height: 1.45;
    background-color: $bg-gray;
    border-radius: $border-radius;
  }

  pre code,
  pre tt {
    display: inline;
    max-width: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0;
  }
}

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
truesight-rtd-theme-1.0.1 _sass/lib/@primer/css/markdown/code.scss
truesight-rtd-theme-1.0.0 _sass/lib/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.10 _sass/lib/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.9 _sass/lib/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.8 _sass/lib/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.7 _sass/lib/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.6 _sass/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.5 _sass/@primer/css/markdown/code.scss
jekyll-rtd-theme-2.0.4 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.3 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.2 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.1 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.0 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.0.pre.beta1 _sass/@primer/markdown/code.scss
jekyll-rtd-theme-2.0.0.pre.beta _sass/@primer/markdown/code.scss