@import 'settings';
// @MIXIN
// $alignment - Alignment options. Default: false. Options: [right, inline, false]
// $base-style - Control whether or not the base styles come through. Default: true.
@mixin form-label($alignment: false, $base-style: true) {
  // Control whether or not the base styles come through.
  @if $base-style {
    margin-bottom: rem-calc(4);
    font-family: $label__font-family;
    font-size: $label__font-size;
    line-height: $label__line-height;
    color: $label__font-color;

    .#{$dark-class} &,
    &.#{$label__class}--dark {
      color: $label__font-color--dark;
    }

    cursor: pointer;
  } // Alignment options

  @if $alignment==right {
    float: none !important;
    text-align: right;
  } @else if $alignment==inline {
    padding: $label__spacing / 2 + rem-calc($input__border-width) 0;
    margin: 0 0 $label__spacing 0;
  }
}
