sendou.ink/app/features/comp-analyzer/components/SelectedWeapons.module.css
Kalle ab5cb9d91e
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled
Drag to reorder weapons in comp analyzer
2026-04-21 08:59:58 +03:00

150 lines
2.5 KiB
CSS

.selectedWeapons {
display: flex;
flex-direction: column;
gap: var(--s-3);
}
.selectedWeaponRow {
display: flex;
align-items: center;
gap: var(--s-2);
transition: opacity 0.2s;
&.isDragging {
opacity: 0.5;
}
}
.weaponImageContainer {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
background-color: var(--color-bg-high);
border: 2px solid var(--color-border);
border-radius: 50%;
flex-shrink: 0;
}
.weaponImageContainerEmpty {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
background-color: var(--color-bg-higher);
border: 2px dashed var(--color-border);
border-radius: 50%;
flex-shrink: 0;
opacity: 0.6;
}
.weaponNamePill {
display: flex;
align-items: center;
gap: var(--s-2);
padding: var(--s-2) var(--s-3);
padding-left: var(--s-5);
background-color: var(--color-bg-high);
border: 2px solid var(--color-border);
border-radius: var(--radius-full);
flex: 1;
min-width: 0;
}
.weaponName {
flex: 1;
font-weight: var(--weight-semi);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.weaponNamePillEmpty {
display: flex;
align-items: center;
padding: var(--s-2) var(--s-3);
padding-left: var(--s-5);
background-color: var(--color-bg-higher);
border: 2px dashed var(--color-border);
border-radius: var(--radius-full);
flex: 1;
min-width: 0;
opacity: 0.6;
}
.weaponNameEmpty {
flex: 1;
font-weight: var(--weight-semi);
font-style: italic;
color: var(--color-text-high);
}
.removeButton {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
background: none;
border: none;
cursor: pointer;
font-size: 18px;
font-weight: bold;
line-height: 1;
color: var(--color-text-high);
flex-shrink: 0;
&:hover {
color: var(--color-error);
}
}
.dragHandle {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
background: none;
border: none;
font-size: var(--font-md);
line-height: 1;
color: var(--color-text-high);
cursor: grab;
user-select: none;
touch-action: none;
flex-shrink: 0;
&:active {
cursor: grabbing;
}
}
.subSpecialContainer {
display: flex;
gap: var(--s-2);
flex-shrink: 0;
}
.subSpecialContainerSpacer {
width: 89px;
}
.kitIcon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: var(--color-bg-high);
border: 2px solid var(--color-border);
border-radius: 50%;
}