@use "../common/mixins.scss" as *;
@use "../common/variables.scss" as *;

@include b(speed-dial) {
  width: 0;

  @include e(content) {
    position: relative;
  }
}

@include b(speed-dial-button) {
  @include flex-row(center, center);
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 0;
  @include active-scale(0.9);

  @include m(rotate) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 0 6px rgba(0, 0, 0, .3);
    transition: all 0.3s;

    @include when(active) {
      transform: scale(1) rotate(360deg);
      &:active {
        transform: scale(0.9) rotate(360deg)
      }
    }
  }
}

@include b(speed-dial-item) {
  @include flex-row(center, center);
}

@include b(speed-dial-action-button) {
  @include flex-row(center, center);

  @include e(title) {
    @include flex-row(center, center);
    position: absolute;
  }

  @include e(text) {
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    white-space: nowrap;
    padding: 2px 5px;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 2px;
    @include active-scale(0.9);
  }
}
