* Small refactor to CharLimitedFieldset Some methods were renamed for clarity. <input> props are actually put on the input properly. * Add tabindex to Popover trigger * Add tabindex to Switch and SwitchTableField * Add tabindex to DurationInput * Add new properties * Added guidebooks to RaidGroup * Added auto_summon to Party * Conditionally render description in TableField * Improve SwitchTableField * Add support for passing in classes * Add support for passing a disabled prop * Pass description to TableField * Right-align switch * Add support for Extra color switch * Align SliderTableField input to right * Align SelectTableField input to right * Update placeholder styles * Fix empty state on DurationInput * Remove tabindex from DurationInput * Update InputTableField Allow for passing down input properties and remove fixed width * Fix dialog footer styles * Update dialog and overlay z-index * Add styles to TableField Added styles for numeric inputs, disabled inputs, and generally cleaning things up * Add guidebooks to RaidCombobox + styles * Added guidebooks to the dummy raid group * Fix background color * Make less tall * Implement EditPartyModal EditPartyModal takes functionality that was in PartyHeader and puts it in a modal dialog. This lets us add fields and reduces the complexity of other components. Translations were also added. * Remove edit functionality * Add darker shadow to Select * Properly send raid ID to server * Show Extra grids based on selected raid * Fix EX badge colors * Use child as value in normal textarea * Remove toggle ability from Extra grids * Remove edit functionality from PartyDetails
100 lines
1.7 KiB
SCSS
100 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;
|
|
z-index: 40;
|
|
min-width: var(--radix-select-trigger-width);
|
|
.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);
|
|
}
|
|
}
|