Sha256: 29d3902b5101d04156acea919df6597610ac7e3202fdf1ac534397435c7001a4

Contents?: true

Size: 1.87 KB

Versions: 7

Compression:

Stored size: 1.87 KB

Contents

.markdown-body {
  // Images & Stuff
  img {
    max-width: 100%;
    // because we put padding on the images to hide header lines, and some people
    // specify the width of their images in their markdown.
    box-sizing: content-box;
    background-color: #fff;

    &[align=right] {
      padding-left: 20px;
    }

    &[align=left] {
      padding-right: 20px;
    }
  }
  .emoji {
    max-width: none;
    vertical-align: text-top;
    // Override `<img>` styles so Emjois don't clash with zebra striping in our tables
    background-color: transparent;
  }

  // Gollum Image Tags

  // Framed
  span.frame {
    display: block;
    overflow: hidden;
    > span {
      display: block;
      float: left;
      width: auto;
      padding: 7px;
      margin: 13px 0 0;
      overflow: hidden;
      border: 1px solid lighten($gray-300, 5%);
    }
    span img {
      display: block;
      float: left;
    }
    span span {
      display: block;
      padding: 5px 0 0;
      clear: both;
    }
  }
  span.align-center {
    display: block;
    overflow: hidden;
    clear: both;
    > span {
      display: block;
      margin: 13px auto 0;
      overflow: hidden;
      text-align: center;
    }
    span img {
      margin: 0 auto;
      text-align: center;
    }
  }
  span.align-right {
    display: block;
    overflow: hidden;
    clear: both;
    > span {
      display: block;
      margin: 13px 0 0;
      overflow: hidden;
      text-align: right;
    }
    span img {
      margin: 0;
      text-align: right;
    }
  }
  span.float-left {
    display: block;
    float: left;
    margin-right: 13px;
    overflow: hidden;
    span {
      margin: 13px 0 0;
    }
  }
  span.float-right {
    display: block;
    float: right;
    margin-left: 13px;
    overflow: hidden;
    > span {
      display: block;
      margin: 13px auto 0;
      overflow: hidden;
      text-align: right;
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github-docs-0.1.0 _sass/primer-markdown-custom/images.scss
github-docs-0.0.22 _sass/primer-markdown/images.scss
github-docs-0.0.21 _sass/primer-markdown/images.scss
github-docs-0.0.19 _sass/primer-markdown/images.scss
github-docs-0.0.18 _sass/primer-markdown/images.scss
github-docs-0.0.7 assets/css/primer-markdown/images.scss
github-docs-0.0.6 assets/css/primer-markdown/images.scss