//////////////////////////////////////////////////////////////////////////////////////////
//   _  _ ____ _  _ ___  ____                                                           //
//   |_/  |__| |\ | |  \ |  |    This file belongs to Kando, the cross-platform         //
//   | \_ |  | | \| |__/ |__|    pie menu. Read more on github.com/kando-menu/kando     //
//                                                                                      //
//////////////////////////////////////////////////////////////////////////////////////////

// SPDX-FileCopyrightText: Simon Schneegans <code@simonschneegans.de>
// SPDX-License-Identifier: MIT

@use '../../variables.scss' as *;
@use '../../mixins.scss' as *;

.input {
  @include text-input;
  min-width: 0px;
  width: 100%;

  word-break: break-word;

  &.invisible {
    background-color: transparent;
    text-align: center;

    &:hover {
      background-color: $widget-normal;
    }
  }

  &.disabled {
    pointer-events: none;
    opacity: 0.5;
  }

  &.grouped:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  &.grouped:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}

textarea.input {
  field-sizing: content;
  resize: none;
  min-height: 50px;
}
