Sha256: b041ac0dd3f6340e520431b77c88e2488213f3dac6211940cfedb45246ee7156

Contents?: true

Size: 857 Bytes

Versions: 3

Compression:

Stored size: 857 Bytes

Contents

// Needs refactoring
// stylelint-disable selector-max-type, selector-max-compound-selectors
.markdown-body {
  // Tables
  table {
    display: block;
    width: 100%; // keep for backwards compatibility
    width: max-content;
    max-width: 100%;
    overflow: auto;

    th {
      font-weight: $font-weight-bold;
    }

    th,
    td {
      // stylelint-disable-next-line primer/spacing
      padding: 6px 13px;
      border: $border-width $border-style var(--color-border-default);
    }

    td {
      > :last-child {
        margin-bottom: 0;
      }
    }

    tr {
      background-color: var(--color-canvas-default);
      border-top: $border-width $border-style var(--color-border-muted);

      &:nth-child(2n) {
        background-color: var(--color-canvas-subtle);
      }
    }

    img {
      background-color: transparent;
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-v4-theme-primer-0.12.0 _sass/@primer/css/markdown/tables.scss
jekyll-v4-theme-primer-0.11.0 _sass/@primer/css/markdown/tables.scss
jekyll-v4-theme-primer-0.10.0 _sass/@primer/css/markdown/tables.scss