// Lightning Design System 2.29.1
// Copyright (c) 2015-present, salesforce.com, inc. All rights reserved
// Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license

/**
 * @summary Initiates publisher that is specific to commenting in threads
 *
 * @name comment
 * @selector .slds-publisher_comment
 * @restrict .slds-publisher
 * @support dev-ready
 * @variant
 */
.slds-publisher_comment,
.slds-publisher--comment {
  @include form-input-container;
  position: relative;
  min-height: calc(#{$line-height-button} + 2px);
  max-height: calc(#{$line-height-button} + 2px);

  &.slds-is-active {
    min-height: $size-xx-small;
    max-height: $size-small;

    .slds-publisher__actions {
      display: flex;
    }
  }

  /**
   * Applies focus to comment publisher container when inside `textarea`
   *
   * @selector .slds-has-focus
   * @restrict .slds-publisher_comment
   * @notes Added through JavaScript
   * @modifier
   */
  &.slds-has-focus {
    box-shadow: var(--slds-g-shadow-outset-focus-1, #{$shadow-button-focus});
  }

  .slds-publisher__actions {
    display: none;
    padding: 0 $spacing-small $spacing-small;
  }

  .slds-attachments {
    padding: $spacing-x-small $spacing-small;
  }
}
