/*
 * 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';

.nx-read-only {
  margin: 0 0 var(--nx-spacing-8x) 0;
  @include nx-container-helpers.container-vertical;
}

.nx-read-only--grid {
  display: grid;
  gap: var(--nx-spacing-8x) var(--nx-spacing-20x);
  margin: var(--nx-spacing-8x) 0;
  justify-content: start;

  .nx-read-only__data, .nx-read-only__label {
    max-width: unset;
  }
}

.nx-read-only__item {
  @include nx-container-helpers.container-vertical;
}

.nx-read-only__label {
  @include nx-text-helpers.bold;
  color: var(--nx-color-text-stark);
  margin: var(--nx-spacing-8x) 0 var(--nx-spacing-2x) 0;
  max-width: var(--nx-width-text-wrapping);
}

.nx-read-only__data {
  margin: 0 0 var(--nx-spacing-2x) 0;
  max-width: var(--nx-width-text-wrapping);
}
