* Add Awakening type and remove old defs We remove the flat list of awakening data, as we will be pulling data from the database * Update types to use new Awakening type * Update WeaponUnit for Grand weapon awakenings * Update object modals We needed to update CharacterModal and WeaponModal to display awakenings from the new data format. However, the component used (`SelectWithInput`) was tied to AX Skills in a way that would take exponentially more time to resolve. Instead, we forked `SelectWithInput` into `AwakeningSelectWithInput` and did our work there. `AwakeningSelect` was found to be redundant, so it was removed. * Update hovercards * Add max-height to Select * Allow styling of Select modal with className prop * Add Job class to Job select * Add localizations for removing job skills * Add endpoint for removing job skills * Implement removing job skills We added a (...) button next to each editable job skill that opens a context menu that will allow the user to remove the job skill. An alert is presented to make sure the user is sure before proceeding. As part of this change, some minor restyling of JobSkillItem was necessary
102 lines
1.7 KiB
SCSS
102 lines
1.7 KiB
SCSS
.SelectTrigger {
|
|
align-items: center;
|
|
background-color: var(--input-bg);
|
|
border-radius: $input-corner;
|
|
border: 2px solid transparent;
|
|
display: flex;
|
|
gap: $unit;
|
|
padding: ($unit * 1.5) $unit-2x;
|
|
|
|
&.modal {
|
|
background-color: var(--select-modal-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-modal-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.hidden {
|
|
display: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--input-bg-hover);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
|
|
&[data-placeholder] > span:not(.SelectIcon) {
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
&.Disabled:hover {
|
|
background-color: var(--input-bg);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&[data-placeholder='true'] > span:not(.SelectIcon) {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
& > span:not(.SelectIcon) {
|
|
color: var(--text-primary);
|
|
flex-grow: 1;
|
|
font-size: $font-regular;
|
|
text-align: left;
|
|
}
|
|
|
|
&.Bound {
|
|
background-color: var(--select-contained-bg);
|
|
|
|
&:hover {
|
|
background-color: var(--select-contained-bg-hover);
|
|
}
|
|
}
|
|
|
|
&.Table {
|
|
min-width: $unit * 30;
|
|
}
|
|
|
|
img {
|
|
width: $unit-4x;
|
|
height: auto;
|
|
}
|
|
|
|
.SelectIcon {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg {
|
|
fill: var(--icon-secondary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.Select {
|
|
background: var(--dialog-bg);
|
|
border-radius: $card-corner;
|
|
border: 1px solid rgba(0, 0, 0, 0.24);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
|
|
padding: 0 $unit;
|
|
min-width: var(--radix-select-trigger-width);
|
|
max-height: 40vh;
|
|
z-index: 40;
|
|
|
|
.Scroll.Up,
|
|
.Scroll.Down {
|
|
padding: $unit 0;
|
|
text-align: center;
|
|
|
|
&:hover svg {
|
|
fill: var(--icon-secondary-hover);
|
|
}
|
|
|
|
svg {
|
|
fill: var(--icon-secondary);
|
|
}
|
|
}
|
|
|
|
.Scroll.Up {
|
|
transform: scale(1, -1);
|
|
}
|
|
}
|