hensei-web/components/common/TableField/index.scss
Justin Edmund 835cdfff6f
Implement Edit team modal (#312)
* 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
2023-06-18 01:29:53 -07:00

148 lines
2.3 KiB
SCSS

.TableField {
align-items: center;
display: grid;
gap: $unit-2x;
grid-template-columns: 1fr auto;
min-height: $unit-6x;
justify-content: space-between;
padding: $unit-half 0;
width: 100%;
@include breakpoint(phone) {
align-items: flex-start;
display: flex;
flex-direction: column;
}
&:hover .Left .Info h3 {
color: var(--accent-blue);
}
&.Numeric .Right > .Input,
&.Numeric .Right > .Duration {
text-align: right;
max-width: $unit-12x;
width: $unit-12x;
}
&.Numeric .Right > .Duration {
justify-content: flex-end;
box-sizing: border-box;
}
&.Disabled {
&:hover .Left .Info h3 {
color: var(--text-tertiary);
}
.Left .Info h3 {
color: var(--text-tertiary);
}
}
.Left {
align-items: center;
display: flex;
flex-direction: row;
gap: $unit;
width: 100%;
.Info {
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: center;
gap: $unit-half;
}
.Image {
display: none;
.preview {
$diameter: $unit-5x;
width: $diameter;
height: $diameter;
img {
width: $diameter;
height: $diameter;
}
}
@include breakpoint(phone) {
display: block;
}
}
label {
color: var(--text-tertiary);
font-size: $font-regular;
}
p {
color: var(--text-secondary);
font-size: $font-small;
line-height: 1.1;
&.jp {
max-width: 270px;
}
}
}
.Right {
align-items: center;
display: flex;
flex-direction: row;
justify-content: flex-end;
gap: $unit-2x;
width: 100%;
@include breakpoint(phone) {
.Image {
display: none;
}
}
.SelectTrigger {
width: 100%;
}
}
.preview {
$diameter: $unit * 6;
background-color: $grey-90;
border-radius: 999px;
height: $diameter;
width: $diameter;
img {
height: $diameter;
width: $diameter;
}
&.fire {
background: $fire-bg-20;
}
&.water {
background: $water-bg-20;
}
&.wind {
background: $wind-bg-20;
}
&.earth {
background: $earth-bg-20;
}
&.dark {
background: $dark-bg-10;
}
&.light {
background: $light-bg-20;
}
}
}