Make menu stackable on mobile
This commit is contained in:
parent
df0466c6f1
commit
eda3bf2688
|
@ -120,6 +120,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media @mobile {
|
||||||
|
.menu.menu {
|
||||||
|
> :global(.ui.container) {
|
||||||
|
height: @menuHeightMobile;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
|
@ -95,7 +95,7 @@ const App = connect((state) => ({ login: state.login }))(function App({
|
||||||
<title>OpenBikeSensor Portal</title>
|
<title>OpenBikeSensor Portal</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{config?.banner && <Banner {...config.banner} />}
|
{config?.banner && <Banner {...config.banner} />}
|
||||||
<Menu className={styles.menu}>
|
<Menu className={styles.menu} stackable>
|
||||||
<Container>
|
<Container>
|
||||||
<Link
|
<Link
|
||||||
to="/"
|
to="/"
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
@media @mobile {
|
@media @mobile {
|
||||||
.mapContainer {
|
.mapContainer {
|
||||||
height: auto;
|
height: auto;
|
||||||
min-height: calc(100vh - @menuHeight);
|
min-height: calc(100vh - @menuHeightMobile);
|
||||||
|
&.hasBanner {
|
||||||
|
height: calc(100vh - @menuHeightMobile - 50px);
|
||||||
|
}
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
@borderColor: #e0e0e0;
|
@borderColor: #e0e0e0;
|
||||||
|
|
||||||
@menuHeight: 50px;
|
@menuHeight: 50px;
|
||||||
|
@menuHeightMobile: 220px;
|
||||||
|
|
||||||
@mobile: ~'screen and (max-width: 767px)';
|
@mobile: ~'screen and (max-width: 767px)';
|
||||||
@desktop: ~'screen and (min-width: 768px)';
|
@desktop: ~'screen and (min-width: 768px)';
|
||||||
|
|
Loading…
Reference in a new issue