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

// Items hidden by search.
.searchHidden {
  opacity: 0.2;
  transform: scale(0.85);
}

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

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

// 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 image within the overall item. Global because it's referenced by other styles.
:global(.item-img) {
  display: block;
  width: var(--item-size);
  height: var(--item-size);
  box-sizing: border-box;
  border: $item-border-width solid #ddd;

  &:focus {
    outline: none;
  }

  // Used by vendors
  &:global(.transparent) {
    border-color: transparent;
  }
}

// Masterwork item image
.masterwork {
  border-color: $masterwork-border-color;
}

// Subclass items and engrams image
.borderless {
  border-color: transparent;
}

// Completed items or capped stackables image
.complete {
  border-color: $gold;
}

// 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 overlay image for masterworks
.masterworkOverlay {
  box-sizing: border-box;
  top: $item-border-width;
  left: $item-border-width;
  border-width: 0px;
  height: calc(var(--item-size) - #{2 * $item-border-width});
  width: calc(var(--item-size) - #{2 * $item-border-width});
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc((var(--item-size) - #{2 * $item-border-width}) * (96 / 90))
    calc((var(--item-size) - #{2 * $item-border-width}) * (96 / 90));

  background-image: url('../../images/masterwork.png');
}
.exotic {
  background-image: url('../../images/exotic-masterwork.png');
}

// 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 {
  pointer-events: none;
  display: block;
  position: static;
  width: calc(var(--item-size) / 5);
  height: calc(var(--item-size) / 5);
  margin-right: 1px;
  color: #29f36a; // #5eff92;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.8));

  :global(.ms-edge .item) & {
    // https://github.com/DestinyItemManager/DIM/issues/3291
    filter: none !important;
  }
}
<commit_msg>Disable drag on inventory image<commit_after>@import '../variables.scss';

// Items hidden by search.
.searchHidden {
  opacity: 0.2;
  transform: scale(0.85);
}

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

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

// 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 image within the overall item. Global because it's referenced by other styles.
:global(.item-img) {
  display: block;
  width: var(--item-size);
  height: var(--item-size);
  box-sizing: border-box;
  border: $item-border-width solid #ddd;
  -webkit-user-drag: none;

  &:focus {
    outline: none;
  }

  // Used by vendors
  &:global(.transparent) {
    border-color: transparent;
  }
}

// Masterwork item image
.masterwork {
  border-color: $masterwork-border-color;
}

// Subclass items and engrams image
.borderless {
  border-color: transparent;
}

// Completed items or capped stackables image
.complete {
  border-color: $gold;
}

// 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 overlay image for masterworks
.masterworkOverlay {
  box-sizing: border-box;
  top: $item-border-width;
  left: $item-border-width;
  border-width: 0px;
  height: calc(var(--item-size) - #{2 * $item-border-width});
  width: calc(var(--item-size) - #{2 * $item-border-width});
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc((var(--item-size) - #{2 * $item-border-width}) * (96 / 90))
    calc((var(--item-size) - #{2 * $item-border-width}) * (96 / 90));

  background-image: url('../../images/masterwork.png');
}
.exotic {
  background-image: url('../../images/exotic-masterwork.png');
}

// 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 {
  pointer-events: none;
  display: block;
  position: static;
  width: calc(var(--item-size) / 5);
  height: calc(var(--item-size) / 5);
  margin-right: 1px;
  color: #29f36a; // #5eff92;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.8));

  :global(.ms-edge .item) & {
    // https://github.com/DestinyItemManager/DIM/issues/3291
    filter: none !important;
  }
}

{'fraction_non_alphanumeric': 0.1646691840420292, 'fraction_numerical': 0.019044491873255624, 'mean_word_length': 3.2780898876404496, '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': '5986650', 'n_tokens_mistral': 2253, 'n_tokens_neox': 2137, 'n_words': 550}