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

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

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

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

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

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

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

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