Sha256: a4f8b7876410e9d7c84d7e062dc6a19f1b3395d3ec48c08ef8729bbbda33d828

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

// stylelint-disable selector-no-type
.markdown-body {
  // Inline code snippets
  code,
  tt {
    padding: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 3px; // don't add padding, gives scrollbars

    &::before,
    &::after {
      letter-spacing: -0.2em; // this creates padding
      content: "\00a0";
    }

    br { display: none; }
  }

  del code { text-decoration: inherit; }

  pre {
    word-wrap: normal;

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

  .highlight {
    margin-bottom: $margin;

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

  .highlight pre,
  pre {
    padding: $margin;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f7f7f7;
    border-radius: 3px;
  }

  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;

    &::before,
    &::after {
      content: normal;
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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