Address some layout issues with odd content spacing on mobile, and footer position (#3022)
* - set vars for player container height and status bar height - use them to calculate mobile top spacing to adjust for tab content positioning * give main content section a min height, place footer absolutely at bottom; rm all the fixed footer styling * cleanup; restructure tabbed display logic and css a bit * Prettified Code! * cleanup * fix(story): footer story needs to be wrapped in RecoilRoot if it is to use Recoil * revert adding footer to mobile about section * prevent double scrolling --------- Co-authored-by: gingervitis <gingervitis@users.noreply.github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com>
This commit is contained in:
@@ -4,22 +4,23 @@
|
||||
padding: var(--content-padding);
|
||||
}
|
||||
|
||||
.lowerSectionMobile {
|
||||
.lowerSectionMobileTabbed {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
position: absolute;
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
@include screen(tablet) {
|
||||
@include screen(tablet) {
|
||||
top: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@include screen(mobile) {
|
||||
//sets the position of tabbed content for online mode
|
||||
top: 280px;
|
||||
&.online {
|
||||
position: absolute;
|
||||
top: calc(var(--player-container-height) + var(--status-bar-height) + var(--header-height));
|
||||
}
|
||||
}
|
||||
|
||||
:global(.ant-tabs-nav) {
|
||||
@@ -29,15 +30,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.online {
|
||||
@include screen(tablet) {
|
||||
//sets the position of tabbed content for online mode
|
||||
position: absolute;
|
||||
top: 430px;
|
||||
}
|
||||
}
|
||||
|
||||
.mobileNoTabs {
|
||||
.lowerSectionMobileNoTabs {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user