/*
 * 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-text-helpers';
@use '../scss-shared/nx-dark-mode-helpers';

.nx-counter {
  @include nx-text-helpers.semi-bold;

  background-color: var(--nx-color-component-background);
  border: 1px solid var(--nx-color-counter);
  border-radius: 12px;
  color: var(--nx-color-text-stark);
  display: inline-block;
  font-size: 14px;
  line-height: var(--nx-line-height);
  margin-left: var(--nx-spacing-6x);
  padding: 0 calc(var(--nx-spacing-2x) - 1px) 1px calc(var(--nx-spacing-2x) - 1px);
  text-align: center;
  min-width: 8px;

  &.nx-counter--active {
    background-color: var(--nx-color-counter);
    border-color: var(--nx-color-counter);
    color: var(--nx-color-counter-active-text);
  }
}
