fix: adapt modal header to look like design * fix: adapt modal header to look like design Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström
298 lines
5.4 KiB
CSS
298 lines
5.4 KiB
CSS
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--Space-x3);
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x3);
|
|
padding: var(--Space-x3) var(--Space-x9);
|
|
background-color: var(--Background-Secondary);
|
|
border-radius: var(--Corner-radius-lg);
|
|
box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.1);
|
|
margin-top: var(--Space-x9);
|
|
}
|
|
|
|
.highFive {
|
|
height: 110px;
|
|
width: 110px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
& > img {
|
|
position: absolute;
|
|
bottom: -5%;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.labelWithIcon {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--Space-x05);
|
|
color: var(--Text-Tertiary);
|
|
margin-bottom: var(--Space-x05);
|
|
}
|
|
|
|
.transferContainer {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
}
|
|
|
|
.transferFrom {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.transferTo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-align: right;
|
|
|
|
.labelWithIcon {
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
.noPointsWarning {
|
|
align-self: end;
|
|
color: var(--Surface-Feedback-Information);
|
|
}
|
|
|
|
.balanceLabel {
|
|
color: var(--Text-Tertiary);
|
|
margin-top: var(--Space-x3);
|
|
}
|
|
|
|
.formWrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x3);
|
|
width: 100%;
|
|
padding: var(--Space-x4);
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.slider {
|
|
color: var(--text-color);
|
|
width: 100%;
|
|
padding-top: 24px;
|
|
|
|
.sliderTrack {
|
|
position: relative;
|
|
height: 30px;
|
|
width: 100%;
|
|
|
|
&:before {
|
|
height: 10px;
|
|
width: 100%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
background-color: var(--Border-Divider-Accent);
|
|
border-radius: var(--Corner-radius-sm);
|
|
opacity: 0.3;
|
|
transition: background-color 300ms ease;
|
|
}
|
|
}
|
|
|
|
.sliderFill {
|
|
height: 10px;
|
|
background: linear-gradient(90deg, #8f4350 25.5%, #4d001b 100%);
|
|
position: relative;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
border-radius: var(--Corner-radius-sm);
|
|
}
|
|
|
|
.sliderOutput {
|
|
position: absolute;
|
|
top: -30px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(4px);
|
|
background-color: var(--Surface-Brand-Primary-1-OnSurface-Default);
|
|
color: var(--Text-Brand-OnPrimary-2-Accent);
|
|
padding: var(--Space-x05) var(--Space-x1);
|
|
border-radius: var(--Corner-radius-sm);
|
|
opacity: 0;
|
|
transition:
|
|
opacity 0.15s,
|
|
transform 0.15s;
|
|
transition-delay: 0.1s;
|
|
}
|
|
|
|
.sliderThumb {
|
|
position: relative;
|
|
top: 50%;
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
background-color: var(--Surface-Brand-Primary-1-OnSurface-Default);
|
|
box-shadow: 0px 0px 14px 6px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition: background-color 300ms ease;
|
|
|
|
& > svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
transition: opacity 300ms ease;
|
|
}
|
|
|
|
&[data-focus-visible] {
|
|
outline: 2px solid var(--Surface-Feedback-Neutral-light);
|
|
}
|
|
|
|
&[data-dragging] .sliderOutput {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0px);
|
|
}
|
|
}
|
|
|
|
&[data-disabled] {
|
|
.sliderTrack:before {
|
|
background-color: var(--Border-Interactive-Disabled);
|
|
}
|
|
.sliderThumb {
|
|
background-color: var(--Surface-UI-Fill-Disabled);
|
|
box-shadow: none;
|
|
|
|
& > svg {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.pointsInput {
|
|
width: 100%;
|
|
}
|
|
|
|
.conversionRate {
|
|
color: var(--Text-Tertiary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.inputsWrapper {
|
|
display: grid;
|
|
gap: 36px;
|
|
width: 100%;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
align-items: center;
|
|
}
|
|
|
|
.transferButton {
|
|
max-width: 260px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.modalContainer {
|
|
max-width: 512px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
gap: var(--Space-x3);
|
|
padding-inline: var(--Space-x1) var(--Space-x3) var(--Space-x3);
|
|
}
|
|
|
|
.expiryText {
|
|
color: var(--Text-Tertiary);
|
|
}
|
|
|
|
.divider {
|
|
background-color: var(--Border-Divider-Subtle);
|
|
width: calc(100% + var(--Space-x6) + var(--Space-x6));
|
|
height: 1px;
|
|
margin-inline: calc(var(--Space-x6) * -1);
|
|
}
|
|
|
|
.buttonContainer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x3);
|
|
}
|
|
|
|
.pointsOutput {
|
|
border-radius: var(--Corner-radius-md);
|
|
background-color: var(--Surface-Primary-Disabled);
|
|
height: 100%;
|
|
color: var(--Text-Tertiary);
|
|
padding: var(--Space-x1) var(--Space-x2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Space-x05);
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.card {
|
|
padding: var(--Space-x3);
|
|
padding-top: var(--Space-x6);
|
|
}
|
|
|
|
.highFive {
|
|
height: 75px;
|
|
width: 75px;
|
|
}
|
|
|
|
.transferContainer {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--Space-x4);
|
|
}
|
|
.transferFrom {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.transferTo {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
|
|
text-align: left;
|
|
|
|
.labelWithIcon {
|
|
flex-direction: row-reverse;
|
|
}
|
|
}
|
|
|
|
.noPointsWarning {
|
|
grid-row: 3;
|
|
}
|
|
|
|
.balanceLabel {
|
|
margin-top: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.inputsWrapper {
|
|
grid-template-columns: 1fr 1fr;
|
|
column-gap: var(--Space-x1);
|
|
}
|
|
|
|
.conversionRate {
|
|
grid-row: 2;
|
|
grid-column: span 2;
|
|
text-align: center;
|
|
}
|
|
|
|
.slider {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.modalContainer {
|
|
padding-inline: var(--Space-x2);
|
|
}
|
|
}
|