/**
 * @license
 * Copyright Endlessjs. All Rights Reserved.
 * Licensed under the MIT License. See License.txt in the project root for license information.
 */

@mixin button-ghost() {
  [elButton].appearance-ghost {
    background-color: el-theme(button-ghost-background-color);
    border-color: el-theme(button-ghost-border-color);
    border-style: el-theme(button-ghost-border-style);
    border-width: el-theme(button-ghost-border-width);
    text-transform: el-theme(button-ghost-text-transform);

    @each $size in el-get-sizes() {
      &.size-#{$size} {
        padding: el-theme(button-ghost-#{$size}-padding);
      }
    }

    @each $status in el-get-statuses() {
      &.status-#{$status} {
        color: el-theme(button-ghost-#{$status}-text-color);

        &:focus {
          background-color: el-theme(button-ghost-#{$status}-focus-background-color);
          border-color: el-theme(button-ghost-#{$status}-focus-border-color);
          color: el-theme(button-ghost-#{$status}-focus-text-color);
        }

        &:hover {
          background-color: el-theme(button-ghost-#{$status}-hover-background-color);
          border-color: el-theme(button-ghost-#{$status}-hover-border-color);
          color: el-theme(button-ghost-#{$status}-hover-text-color);
        }

        &:active {
          background-color: el-theme(button-ghost-#{$status}-active-background-color);
          border-color: el-theme(button-ghost-#{$status}-active-border-color);
          color: el-theme(button-ghost-#{$status}-active-text-color);
        }

        &[disabled] {
          background-color: el-theme(button-ghost-#{$status}-disabled-background-color);
          border-color: el-theme(button-ghost-#{$status}-disabled-border-color);
          color: el-theme(button-ghost-#{$status}-disabled-text-color);
        }
      }
    }
  }
}
