// Copyright 2025 (c) MatteuSan and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

/// Line clamp mixin.
/// @param {string|int} $lines
/// @return {*} queried line clamp styles.
@mixin line-clamp($lines) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  @if $lines == 0 or $lines == 'none' {
    -webkit-line-clamp: unset;
  } @else {
    -webkit-line-clamp: $lines;
  }
}