fix: add mobile design for details form
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
.form {
|
.form {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x1);
|
||||||
|
padding: var(--Spacing-x3) 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x1);
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
width: min(100%, 600px);
|
width: min(100%, 600px);
|
||||||
}
|
}
|
||||||
@@ -23,3 +24,30 @@
|
|||||||
justify-items: flex-start;
|
justify-items: flex-start;
|
||||||
margin-top: var(--Spacing-x1);
|
margin-top: var(--Spacing-x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1367px) {
|
||||||
|
.form {
|
||||||
|
gap: var(--Spacing-x2);
|
||||||
|
padding: var(--Spacing-x3) 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
gap: var(--Spacing-x2);
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
width: min(100%, 600px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.country,
|
||||||
|
.email,
|
||||||
|
.membershipNo,
|
||||||
|
.phone {
|
||||||
|
grid-column: 1/-1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
display: grid;
|
||||||
|
gap: var(--Spacing-x3);
|
||||||
|
justify-items: flex-start;
|
||||||
|
margin-top: var(--Spacing-x1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container[data-selected] .checkbox {
|
.container[data-selected] .checkbox {
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ export default function JoinScandicFriendsCard({
|
|||||||
]
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<label className={styles.cardContainer}>
|
<div className={styles.cardContainer}>
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<Checkbox name={name} className={styles.checkBox} />
|
<Checkbox name={name} className={styles.checkBox}>
|
||||||
<div>
|
<div>
|
||||||
<Caption type="label" textTransform="uppercase" color="red">
|
<Caption type="label" textTransform="uppercase" color="red">
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
@@ -57,6 +57,8 @@ export default function JoinScandicFriendsCard({
|
|||||||
{intl.formatMessage({ id: "Join Scandic Friends" })}
|
{intl.formatMessage({ id: "Join Scandic Friends" })}
|
||||||
</Caption>
|
</Caption>
|
||||||
</div>
|
</div>
|
||||||
|
</Checkbox>
|
||||||
|
|
||||||
<Footnote color="uiTextHighContrast">
|
<Footnote color="uiTextHighContrast">
|
||||||
{intl.formatMessage({ id: "Already a friend?" })}{" "}
|
{intl.formatMessage({ id: "Already a friend?" })}{" "}
|
||||||
<LoginButton
|
<LoginButton
|
||||||
@@ -103,6 +105,6 @@ export default function JoinScandicFriendsCard({
|
|||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
</Footnote>
|
</Footnote>
|
||||||
</label>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
border: 1px solid var(--Base-Border-Subtle);
|
border: 1px solid var(--Base-Border-Subtle);
|
||||||
border-radius: var(--Corner-radius-Large);
|
border-radius: var(--Corner-radius-Large);
|
||||||
display: grid;
|
display: grid;
|
||||||
cursor: pointer;
|
|
||||||
gap: var(--Spacing-x2);
|
gap: var(--Spacing-x2);
|
||||||
padding: var(--Spacing-x-one-and-half) var(--Spacing-x2);
|
padding: var(--Spacing-x-one-and-half) var(--Spacing-x2);
|
||||||
width: min(100%, 600px);
|
width: min(100%, 600px);
|
||||||
@@ -13,7 +12,7 @@
|
|||||||
.header {
|
.header {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--Spacing-x-one-and-half);
|
gap: var(--Spacing-x-one-and-half);
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkBox {
|
.checkBox {
|
||||||
|
|||||||
Reference in New Issue
Block a user