/**
 * Copyright IBM Corp. 2016, 2023
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

@use '@carbon/styles/scss/utilities/convert' as *;

//-----------------------------
// Code snippet (expressive)
//-----------------------------

/// Code snippet styles (expressive)
/// @access private
/// @group code-snippet-expressive
@mixin code-snippet-expressive {
  // Single Line Snippet
  .#{$prefix}--snippet--single {
    block-size: $spacing-09;

    #{$prefix}--snippet-container {
      block-size: 100%;
      padding-inline-start: $spacing-05;
    }

    .bx--snippet__overflow-indicator--right {
      inset-inline-end: $spacing-09;
    }
  }

  button.#{$prefix}--btn.#{$prefix}--snippet-btn--expand {
    padding: 0.375rem 0.8125rem;
  }

  .#{$prefix}--snippet--multi .#{$prefix}--snippet-button {
    block-size: $spacing-09;
    inline-size: $spacing-09;
  }
}
