/*
 * Copyright (c) 2019-present Sonatype, Inc.
 * This program and the accompanying materials are made available under
 * the terms of the Eclipse Public License 2.0 which accompanies this
 * distribution and is available at https://www.eclipse.org/legal/epl-2.0/.
 */
@use '../scss-shared/nx-container-helpers';
@use '../scss-shared/nx-text-helpers';
@use '../scss-shared/nx-dark-mode-helpers';

$-nx-scrollable-default-height: 400px;

/*
  #Basic links
*/
.nx-clickable {
  cursor: pointer;
}

/*
  #Helper Classes
*/
.nx-pull-left {
  float: left;
}

.nx-pull-right {
  float: right;
}

.nx-scrollable {
  @include nx-container-helpers.vertically-scrollable($-nx-scrollable-default-height);
  @include nx-container-helpers.container-vertical;
}

.nx-truncate-ellipsis {
  @include nx-text-helpers.truncate-ellipsis;
}

.nx-code {
  @extend %nx-code;
}

.nx-pre {
  @extend %nx-pre;
}

.nx-blockquote {
  @extend %nx-blockquote;
}

:root {
  @include nx-dark-mode-helpers.dark-mode {
    // turn native controls like scrollbars dark
    color-scheme: dark;
  }
}
