@import "constants";

apim-assembler {

  .ui-match {
    background: $highlight-color;
    border-radius: 4px;
    color: black;
    padding: 2px 0 2px 0;
  }

  .boundedText {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  /** buttons **/

  button {
    background-color: white;
    border: 1px solid #4b68fa;
    color: #4b68fa;
    padding: 0px 5px;
    border-radius: 0px;
    font-weight: bold;
  }
  .helpDialog button {
    background-color: transparent;
    border: 1px solid white;
    color: white;

    &:not(:disabled):hover,
    &:not(:disabled):focus {
      background-color: white;
      color: #3f3f3f;
    }
  }

  button {
    &.dangerous {
      border: 1px solid #fd2493;
      color: #fd2493;
    }

    min-width: 60px;
    min-height: 28px;
    line-height: 26px;

    &.slimline {
      min-height: 20px;
      min-width: 20px;
      line-height: 20px;
    }

    &:not(:disabled):hover,
    &:not(:disabled):focus {
      background-color: #4b68fa;
      color: white;
    }

    &:disabled {
      border-color: rgba(0,0,0,0.1);
      color: rgba(0,0,0,0.1);
      cursor: not-allowed;
    }

    &.textOnlyButton,
    &.buttonAndLabel,
    &.iconOnlyButton {
      background: none;
      border: none;
      min-width: 0px;
      font-weight: normal;
    }

    &.textOnlyButton:not(:disabled),
    &.buttonAndLabel:not(:disabled),
    &.iconOnlyButton:not(:disabled) {
      cursor: pointer;
      color: $icon-color;
    }

    &.iconOnlyButton:disabled {
      color: rgb(200, 200, 200);
      cursor: not-allowed;
    }

    &.iconOnlyButton:focus {
      outline: none;
    }

    &.textOnlyButton:not(:disabled):hover,
    &.buttonAndLabel:not(:disabled):hover,
    &.iconOnlyButton:not(:disabled):hover,
    &.textOnlyButton:not(:disabled):focus,
    &.buttonAndLabel:not(:disabled):focus,
    &.iconOnlyButton:not(:disabled):focus {
      background-color: transparent;
      color: black;
    }

    &.iconOnlyButton.whiteButton:not(:disabled),
    &.textOnlyButton.whiteButton:not(:disabled) {
      color: rgba(255, 255, 255, 0.7);
    }

    &.iconOnlyButton.whiteButton:not(:disabled):hover,
    &.textOnlyButton.whiteButton:not(:disabled):focus {
      color: white;
    }
  }

  .bannerActions button.iconOnlyButton:not(:disabled) {
    &:hover {
      background-color: inherit;
    }

    &:focus {
      background-color: inherit;
      outline: 1px dotted white;
    }
  }

  button {
    &.textOnlyButton {
      padding: 0px;
      .buttonLabel {
        font-size: medium;
        margin-left: 5px;
      }

      img {
        height: 0px;
        width: 0px;
        padding: 12px;
      }

      div {
        display: inline-block;
        vertical-align: middle;
      }
    }

    &.iconOnlyButton {
      img {
        height: 0px;
        width: 0px;
        padding: 8px;

        &.searchIcon {
          height: 0px;
          width: 0px;
          padding: 13px;
        }
      }

      div {
        display: inline-block;
        vertical-align: middle;
      }
    }
  }

  .searchBanner button {
    margin: 0 20px;
  }

  button {
    &.labelledIcon div {
      display: inline-block;
      vertical-align: middle;
      &.material-icons {
        margin-right: 5px;
      }
    }
  }

  md-dialog .cancelButton {
    border: 0;
    color: grey;

    &:hover {
      border: grey 1px solid;
      background-color: white;
      color: black;
    }
  }

  /** end buttons **/
}
