Add header changes to Weapon and Character modals
This commit is contained in:
parent
78744d663b
commit
1d5822a0ab
4 changed files with 62 additions and 1 deletions
|
|
@ -1,14 +1,41 @@
|
||||||
.Character.DialogContent {
|
.Character.DialogContent {
|
||||||
|
gap: $unit;
|
||||||
min-width: 480px;
|
min-width: 480px;
|
||||||
|
|
||||||
@include breakpoint(phone) {
|
@include breakpoint(phone) {
|
||||||
min-width: inherit;
|
min-width: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.DialogHeader {
|
||||||
|
transition: 0.18s padding-top ease-in-out;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
|
&.Scrolled {
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
|
||||||
|
padding-top: $unit-2x;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
transition: 0.2s width ease-in-out;
|
||||||
|
width: $unit-6x !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DialogTitle {
|
||||||
|
font-size: $font-large;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SubTitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mods {
|
.mods {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $unit-4x;
|
gap: $unit-4x;
|
||||||
|
padding: 0 $unit-4x;
|
||||||
|
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ const CharacterModal = ({
|
||||||
onOpenAutoFocus={(event) => event.preventDefault()}
|
onOpenAutoFocus={(event) => event.preventDefault()}
|
||||||
onEscapeKeyDown={() => {}}
|
onEscapeKeyDown={() => {}}
|
||||||
>
|
>
|
||||||
<div className="DialogHeader">
|
<div className={headerClasses}>
|
||||||
<img
|
<img
|
||||||
alt={gridCharacter.object.name[locale]}
|
alt={gridCharacter.object.name[locale]}
|
||||||
className="DialogImage"
|
className="DialogImage"
|
||||||
|
|
@ -289,6 +289,8 @@ const CharacterModal = ({
|
||||||
{ringSelect()}
|
{ringSelect()}
|
||||||
{earringSelect()}
|
{earringSelect()}
|
||||||
{awakeningSelect()}
|
{awakeningSelect()}
|
||||||
|
</div>
|
||||||
|
<div className="DialogFooter">
|
||||||
<Button
|
<Button
|
||||||
contained={true}
|
contained={true}
|
||||||
onClick={updateCharacter}
|
onClick={updateCharacter}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,41 @@
|
||||||
.Weapon.DialogContent {
|
.Weapon.DialogContent {
|
||||||
|
gap: $unit;
|
||||||
min-width: 480px;
|
min-width: 480px;
|
||||||
|
|
||||||
@include breakpoint(phone) {
|
@include breakpoint(phone) {
|
||||||
min-width: inherit;
|
min-width: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.DialogHeader {
|
||||||
|
transition: 0.18s padding-top ease-in-out;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
|
&.Scrolled {
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
|
||||||
|
padding-top: $unit-2x;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
transition: 0.2s width ease-in-out;
|
||||||
|
width: $unit-6x !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DialogTitle {
|
||||||
|
font-size: $font-large;
|
||||||
|
}
|
||||||
|
|
||||||
|
.SubTitle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mods {
|
.mods {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $unit * 4;
|
gap: $unit * 4;
|
||||||
|
padding: 0 $unit-4x;
|
||||||
|
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -344,6 +344,11 @@ const WeaponModal = ({ gridWeapon, children }: Props) => {
|
||||||
onEscapeKeyDown={onEscapeKeyDown}
|
onEscapeKeyDown={onEscapeKeyDown}
|
||||||
>
|
>
|
||||||
<div className="DialogHeader">
|
<div className="DialogHeader">
|
||||||
|
<img
|
||||||
|
alt={gridWeapon.object.name[locale]}
|
||||||
|
className="DialogImage"
|
||||||
|
src={`${process.env.NEXT_PUBLIC_SIERO_IMG_URL}/weapon-square/${gridWeapon.object.granblue_id}.jpg`}
|
||||||
|
/>
|
||||||
<div className="DialogTop">
|
<div className="DialogTop">
|
||||||
<DialogTitle className="SubTitle">
|
<DialogTitle className="SubTitle">
|
||||||
{t('modals.weapon.title')}
|
{t('modals.weapon.title')}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue