// Ink by ZURB
// zurb.com/ink/
// Licensed under MIT Open Source
@import "global";

//
// @variables
//
$include-html-alignment-classes: $include-html-classes !default;

@include exports("alignment") {
  @if $include-html-alignment-classes {
    /* Alignment and Visibility Classes */

    table.center, td.center {
      text-align: center;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
      &.center {
        text-align: center;
      }

      .center & {
        text-align: center;
      }
    }

    span.center {
      display: block;
      width: 100%;
      text-align: center;
    }

    .text-left {
      text-align: left;
    }

    .text-right {
      &,
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p {
        text-align: right;
      }
    }

    img.center {
      margin: 0 auto;
      float: none;
    }

    .centered {
      display: inline-block;
      margin: 0 auto;
    }

    .show-for-small,
    .hide-for-desktop {
      display: none;
      width: 0;
      mso-hide: all;
      overflow: hidden;
    }

    .show-for-small *,
    .hide-for-desktop * {
      mso-hide: all;
    }
  }
}
