Another mobile hotfix

This commit is contained in:
Justin Edmund 2022-12-26 14:28:53 -08:00
parent a725dd7274
commit f1f776119d
7 changed files with 53 additions and 3 deletions

View file

@ -35,4 +35,10 @@
.push { .push {
margin-left: auto; margin-left: auto;
} }
@media (max-width: $phone) {
.Button .Text {
display: none;
}
}
} }

View file

@ -3,6 +3,10 @@
flex-direction: column; flex-direction: column;
margin-top: $unit-4x; margin-top: $unit-4x;
@media (max-width: $phone) {
padding: 0 $unit;
}
.PartyDetails { .PartyDetails {
display: none; display: none;
margin: 0 auto; margin: 0 auto;

View file

@ -1,4 +1,5 @@
.PartyNavigation { .PartyNavigation {
align-items: center;
display: flex; display: flex;
gap: 58px; gap: 58px;
justify-content: center; justify-content: center;
@ -6,6 +7,20 @@
margin-bottom: $unit * 3; margin-bottom: $unit * 3;
max-width: 760px; max-width: 760px;
position: relative; position: relative;
@media (max-width: $phone) {
gap: $unit;
justify-content: flex-start;
margin-left: 0;
margin-right: 0;
padding: 0 $unit;
max-width: auto;
width: 100%;
.SegmentedControl {
flex-grow: 1;
}
}
} }
.ExtraSwitch { .ExtraSwitch {
@ -17,4 +32,12 @@
height: 100%; height: 100%;
position: absolute; position: absolute;
right: 0px; right: 0px;
@media (max-width: $phone) {
position: static;
.Text {
display: none;
}
}
} }

View file

@ -53,7 +53,7 @@ const PartySegmentedControl = (props: Props) => {
const extraToggle = ( const extraToggle = (
<div className="ExtraSwitch"> <div className="ExtraSwitch">
Extra <span className="Text">Extra</span>
<ToggleSwitch <ToggleSwitch
name="ExtraSwitch" name="ExtraSwitch"
editable={party.editable} editable={party.editable}

View file

@ -33,4 +33,8 @@
background: #fff; background: #fff;
} }
} }
@media (max-width: $phone) {
min-width: auto;
}
} }

View file

@ -14,7 +14,7 @@ body {
sans-serif; sans-serif;
font-size: 1.4rem; font-size: 1.4rem;
height: 100%; height: 100%;
padding: $unit * 2 !important; padding: $unit-2x !important;
&.no-scroll { &.no-scroll {
overflow: hidden; overflow: hidden;
@ -303,3 +303,9 @@ i.tag {
transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1);
} }
} }
@media (max-width: $phone) {
body {
padding: $unit !important;
}
}

View file

@ -6,7 +6,14 @@ $breakpoints: (
medium: 800px, medium: 800px,
large: 1024px, large: 1024px,
); );
$medium-screen: 800px;
$desktop: 1920px;
$laptop: 1280px;
$tablet: 768px;
$phone: 375px;
// Legacy
$medium-screen: 768px;
// Sizing // Sizing
$unit: 8px; $unit: 8px;