/**
 * Copyright (c) OpenLens Authors. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */

.badge {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

// might be used in a scrollable area with {overflow: auto}
.badge.scrollable {
  max-width: unset;

  &:not(.isExpanded) {
    white-space: unset;
    text-overflow: unset;
  }
}


.badge.interactive:hover {
  background-color: var(--mainBackground);
  cursor: pointer;
}

.badge:not(.scrollable):not(.isExpanded) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge:not(.flat) {
  background: var(--colorVague);
  border-radius: 3px;
  line-height: normal;
  padding: 0.2rem 0.4rem;
}

.small {
  font-size: var(--font-size-small);
}

.clickable {
  cursor: pointer;
}

.disabled {
  opacity: 0.5;
}
