/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@import "variables";

.nz-toolbar-button-icon {
  font-size: $mls-icon-size;

  > .nz-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    > * {
      width: $mls-icon-size;
      height: $mls-icon-size;
      color: $icon-color;
      filter: $icon-shadow;
      display: inline-block;
    }
  }

  &.nz-toolbar-button-icon-small {
    font-size: $mls-small-button-icon-size;
    > .nz-icon {
       > * {
        width: $mls-small-button-icon-size;
        height: $mls-small-button-icon-size;
      }
    }

    &:active {
      > .nz-icon {
        > * {
          color: $hovered-icon-color;
        }
      }
    }
  }

  &:hover {
    > .nz-icon {
      > * {
        color: $hovered-icon-color;
      }
    }
  }

  &:active {
    > .nz-icon {
      > * {
        color: $pressed-icon-color;
        filter: $no-shadow;
      }
    }
  }
}
