<commit_before>@import '../variables.scss';

// Items hidden by search.
.searchHidden {
  opacity: 0.2;
  // TODO: Testing whether scale transform triggers slow sheet animations: https://github.com/DestinyItemManager/DIM/issues/7458
  // transform: scale(0.75);
}

// The top-level item container. Global because it's referenced by other styles.
:global(.item) {
  position: relative;
  contain: layout paint style;
  box-sizing: border-box;
  width: var(--item-size);
  // searchHidden will adjust opacity/transform, this transitions them
  transition: opacity 0.2s, transform 0.2s;
}

// The wrapper for draggable items. Global because it's referenced by other styles.
:global(.item-drag-container) {
  contain: layout paint style;
  box-sizing: border-box;
  width: var(--item-size);
  cursor: grab;
  &:global(.cant-drag) {
    cursor: pointer;
  }

  &:hover {
    @include draggable-hover-border;
  }
}

// Subclass items
.subclassBase {
  border-color: transparent !important;
}

// The bar we show for items that have some progress on them
.xpBar {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: auto;
  left: $item-border-width + 2px;
  right: $item-border-width + 2px;
  opacity: 1;
  top: $item-border-width + 2px;
  height: calc(var(--item-size) / 9);
}
.xpBarAmount {
  height: 100%;
  background-color: $xp;
}

// The container for the tag/notes/wishlist icons
.icons {
  position: absolute;
  left: $item-border-width + 2px;
  top: calc(var(--item-size) - #{$badge-height} - #{$item-border-width});
  display: flex;
  flex-direction: row;
}

// Individual icons in the icon tray
.icon {
  display: block;
  position: static;
  width: calc(var(--item-size) / 5);
  height: calc(var(--item-size) / 5);
  font-size: calc(var(--item-size) / 5);
  margin-right: 1px;
  color: #29f36a; // #5eff92;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.subclass {
  &::before {
    background-image: url('../../images/subclass-border.svg');
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}
.subclassSuperIcon {
  position: absolute;
  width: var(--item-size);
  height: var(--item-size);
  left: 0;
  top: 0;
}
@mixin subclass-with-path($rotation) {
  &::before {
    background-image: url('../../images/subclass-border-with-path.svg');
    transform: rotate($rotation);
  }
  .subclassSuperIcon {
    width: calc(var(--item-size) * 0.5);
    height: calc(var(--item-size) * 0.5);
    left: calc(var(--item-size) * 0.25);
    top: calc(var(--item-size) * 0.25);
  }
}
.subclassPathTop {
  @include subclass-with-path(0deg);
}
.subclassPathMiddle {
  @include subclass-with-path(90deg);
}
.subclassPathBottom {
  @include subclass-with-path(180deg);
}<commit_msg>Slightly reduce size of Subclass 3.0 super icons.<commit_after>@import '../variables.scss';

// Items hidden by search.
.searchHidden {
  opacity: 0.2;
  // TODO: Testing whether scale transform triggers slow sheet animations: https://github.com/DestinyItemManager/DIM/issues/7458
  // transform: scale(0.75);
}

// The top-level item container. Global because it's referenced by other styles.
:global(.item) {
  position: relative;
  contain: layout paint style;
  box-sizing: border-box;
  width: var(--item-size);
  // searchHidden will adjust opacity/transform, this transitions them
  transition: opacity 0.2s, transform 0.2s;
}

// The wrapper for draggable items. Global because it's referenced by other styles.
:global(.item-drag-container) {
  contain: layout paint style;
  box-sizing: border-box;
  width: var(--item-size);
  cursor: grab;
  &:global(.cant-drag) {
    cursor: pointer;
  }

  &:hover {
    @include draggable-hover-border;
  }
}

// Subclass items
.subclassBase {
  border-color: transparent !important;
}
.subclass {
  &::before {
    background-image: url('../../images/subclass-border.svg');
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}
.subclassSuperIcon {
  position: absolute;
  width: calc(var(--item-size) - 4px);
  height: calc(var(--item-size) - 4px);
  left: 2px;
  top: 2px;
}
@mixin subclass-with-path($rotation) {
  &::before {
    background-image: url('../../images/subclass-border-with-path.svg');
    transform: rotate($rotation);
  }
  .subclassSuperIcon {
    width: calc(var(--item-size) * 0.5);
    height: calc(var(--item-size) * 0.5);
    left: calc(var(--item-size) * 0.25);
    top: calc(var(--item-size) * 0.25);
  }
}
.subclassPathTop {
  @include subclass-with-path(0deg);
}
.subclassPathMiddle {
  @include subclass-with-path(90deg);
}
.subclassPathBottom {
  @include subclass-with-path(180deg);
}

// The bar we show for items that have some progress on them
.xpBar {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: auto;
  left: $item-border-width + 2px;
  right: $item-border-width + 2px;
  opacity: 1;
  top: $item-border-width + 2px;
  height: calc(var(--item-size) / 9);
}
.xpBarAmount {
  height: 100%;
  background-color: $xp;
}

// The container for the tag/notes/wishlist icons
.icons {
  position: absolute;
  left: $item-border-width + 2px;
  top: calc(var(--item-size) - #{$badge-height} - #{$item-border-width});
  display: flex;
  flex-direction: row;
}

// Individual icons in the icon tray
.icon {
  display: block;
  position: static;
  width: calc(var(--item-size) / 5);
  height: calc(var(--item-size) / 5);
  font-size: calc(var(--item-size) / 5);
  margin-right: 1px;
  color: #29f36a; // #5eff92;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}
{'fraction_non_alphanumeric': 0.16826141902870553, 'fraction_numerical': 0.02635854847445387, 'mean_word_length': 3.251726784343822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5380929', 'n_tokens_mistral': 2126, 'n_tokens_neox': 1981, 'n_words': 483}