* 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
199 lines
3.4 KiB
SCSS
199 lines
3.4 KiB
SCSS
.Combobox.Raid {
|
|
box-sizing: border-box;
|
|
|
|
.Header {
|
|
background: var(--dialog-bg);
|
|
border-top-left-radius: $card-corner;
|
|
border-top-right-radius: $card-corner;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: $unit;
|
|
padding: $unit;
|
|
width: 100%;
|
|
|
|
.Clear.Button {
|
|
background: none;
|
|
padding: ($unit * 0.75) $unit-half $unit-half;
|
|
display: none;
|
|
|
|
&:hover svg {
|
|
fill: var(--text-primary);
|
|
}
|
|
|
|
&.Visible {
|
|
display: block;
|
|
}
|
|
|
|
svg {
|
|
fill: var(--text-tertiary);
|
|
width: $unit-2x;
|
|
height: $unit-2x;
|
|
}
|
|
}
|
|
|
|
.Controls {
|
|
display: flex;
|
|
gap: $unit;
|
|
|
|
.Button.Blended.small {
|
|
padding: $unit ($unit * 1.25);
|
|
|
|
&:hover {
|
|
background: var(--button-contained-bg);
|
|
}
|
|
|
|
@include breakpoint(phone) {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.Flipped {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.SegmentedControlWrapper {
|
|
flex-grow: 1;
|
|
|
|
.SegmentedControl {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.Raids {
|
|
border-bottom-left-radius: $card-corner;
|
|
border-bottom-right-radius: $card-corner;
|
|
height: 36vh;
|
|
overflow-y: scroll;
|
|
padding: 0 $unit;
|
|
|
|
@include breakpoint(phone) {
|
|
height: 28vh;
|
|
}
|
|
|
|
&.Searching {
|
|
.CommandGroup {
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
|
|
.Label {
|
|
display: none;
|
|
}
|
|
|
|
.SelectItem {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.CommandGroup.Hidden {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.CommandGroup {
|
|
&.Hidden {
|
|
display: none;
|
|
}
|
|
|
|
.Label {
|
|
align-items: center;
|
|
color: var(--text-tertiary);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-shrink: 0;
|
|
font-size: $font-small;
|
|
font-weight: $medium;
|
|
gap: $unit;
|
|
padding: $unit $unit-2x $unit-half ($unit * 1.5);
|
|
|
|
.Separator {
|
|
background: var(--select-separator);
|
|
border-radius: 1px;
|
|
display: block;
|
|
flex-grow: 1;
|
|
height: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.DetailsWrapper .PartyDetails.Editable .Raid.SelectTrigger,
|
|
.EditTeam .Raid.SelectTrigger {
|
|
background: var(--input-bound-bg);
|
|
display: flex;
|
|
padding-top: 10px;
|
|
padding-bottom: 11px;
|
|
min-height: 51px;
|
|
|
|
.Value {
|
|
display: flex;
|
|
gap: $unit-half;
|
|
width: 100%;
|
|
|
|
.Info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: $unit-half;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.ExtraIndicator {
|
|
background: var(--extra-purple-secondary);
|
|
border-radius: $full-corner;
|
|
color: $grey-100;
|
|
display: flex;
|
|
font-weight: $bold;
|
|
font-size: $font-tiny;
|
|
width: $unit-3x;
|
|
height: $unit-3x;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.Group,
|
|
.Separator {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.Raid.wind {
|
|
color: var(--wind-text);
|
|
}
|
|
|
|
.Raid.fire {
|
|
color: var(--fire-text);
|
|
}
|
|
|
|
.Raid.water {
|
|
color: var(--water-text);
|
|
}
|
|
|
|
.Raid.earth {
|
|
color: var(--earth-text);
|
|
}
|
|
|
|
.Raid.dark {
|
|
color: var(--dark-text);
|
|
}
|
|
|
|
.Raid.light {
|
|
color: var(--light-text);
|
|
}
|
|
}
|
|
}
|
|
|
|
.Filters .SelectTrigger.Raid {
|
|
& > span {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.Raid {
|
|
display: block;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
}
|