/**
 *
 * @ai-apps/angular v2.152.0 | _menu-button.scss
 *
 * Copyright 2014, 2023 IBM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


@import '../../vendor/carbon-components/scss/components/menu/menu';
@import '../../globals/vars';

.#{$iot-prefix}--menu-button {
  .#{$iot-prefix}--menu-button__primary + .#{$iot-prefix}--menu-button__secondary {
    border-left: 1px solid $ui-01;
  }

  .#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only {
    color: $icon-01;
  }

  &--open {
    .#{$iot-prefix}--menu-button__trigger {
      background-color: $active-primary;
    }

    .#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only {
      background-color: $ui-01;
      @include box-shadow;
    }
  }
}

html[dir='rtl'] .#{$iot-prefix}--menu-button {
  .#{$prefix}--context-menu-option__icon {
    margin-right: 0;
    margin-left: $spacing-03;
  }

  .#{$prefix}--context-menu-option__info {
    margin-left: 0;
    margin-right: $spacing-05;
    transform: rotate(180deg);
  }
}
