// Ink by ZURB
// zurb.com/ink/
// Licensed under MIT Open Source
@import "global";

//
// @variables
//
$include-html-normalize-classes: $include-html-classes !default;
$include-hyphens: false !default;

// We use these to style the <hr> element
$hr-color: #d9d9d9 !default;
$hr-height: 1px !default;

@include exports("normalize") {
  @if $include-html-normalize-classes {
    /* Client-specific Styles and Reset */

    #outlook a {
      padding: 0;
    }

    body {
      width: 100% !important;
      min-width: 100%;
      -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
      margin: 0;
      padding: 0;
    }

    /* .ExternalClass applies to Outlook.com (the artist formerly known as Hotmail)  */

    .ExternalClass {
      width: 100%;

      &,
      p,
      span,
      font,
      td,
      div {
        line-height: 100%;
      }
    }

    #backgroundTable {
      margin: 0;
      padding: 0;
      width: 100% !important;
      line-height: 100% !important;
    }

    img {
      outline: none;
      text-decoration: none;
      -ms-interpolation-mode: bicubic;
      width: auto;
      height: auto;
      max-width: 100%;
      float: left;
      clear: both;
      display: block;
    }

    center {
      width: 100%;
      min-width: $container-width;
    }

    a img {
      border: none;
    }

    p {
      margin: 0 0 0 $paragraph-margin-bottom;
    }

    table {
      border-spacing: 0;
      border-collapse: collapse;
    }

    td {
      word-wrap: break-word;
      @if $include-hyphens == true {
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
      } @else {
        -webkit-hyphens: none;
        -moz-hyphens: none;
        hyphens: none;
      }
      border-collapse: collapse !important;
    }

    table, tr, td {
      padding: 0;
      vertical-align: top;
      text-align: left;
    }

    hr {
      color: color2hex($hr-color);
      background-color: color2hex($hr-color);
      height: $hr-height;
      border: none;
    }
  }
}
