EditListingPage secondary navigation (tabs) styled for mobile

This commit is contained in:
Vesa Luusua 2017-07-05 13:26:24 +03:00
parent 73f7450b6b
commit 6e785c5737
5 changed files with 42 additions and 2 deletions

View file

@ -1,10 +1,23 @@
@import '../../marketplace.css';
.root {
/* Layout */
width: 100%;
height: 100%;
}
.nav {
margin: 1rem;
/* Layout */
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 11px 24px 0 24px;
border-top-width: 1px;
border-top-color: var(--matterColorNegative);
border-top-style: solid;
background-color: var(--matterColorLight);
box-shadow: var(--boxShadow);
}
.panel {

View file

@ -1,6 +1,8 @@
@import '../../marketplace.css';
.root {
overflow-x: auto;
&::after {
content: ".";
visibility: hidden;

View file

@ -1,3 +1,27 @@
@import '../../marketplace.css';
.mobileTopbar {
/* Size */
width: 100%;
height: var(--topbarHeight);
/* Layout for child components */
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
/* fill */
background-color: var(--matterColorLight);
/* shadows */
box-shadow: none;
@media (--desktopViewport) {
display: none;
}
}
.wizard {
flex-grow: 1;
}

View file

@ -91,7 +91,7 @@ export const EditListingPageComponent = props => {
return (
<PageLayout title={title} scrollingDisabled={scrollingDisabled}>
<Topbar history={history} location={location} />
<Topbar mobileRootClassName={css.mobileTopbar} history={history} location={location} />
<EditListingWizard
className={css.wizard}
disabled={disableForm}

View file

@ -33,6 +33,7 @@
border-top-width: 1px;
border-top-color: var(--matterColorNegative);
border-top-style: solid;
background-color: var(--matterColorLight);
box-shadow: var(--boxShadow);
}