add base for location and route details in map.html

This commit is contained in:
Laura Klünder 2017-11-21 22:14:09 +01:00
parent a69d762fe1
commit 5bdd6caf9c
2 changed files with 18 additions and 2 deletions

View file

@ -56,7 +56,7 @@ main.map {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
top: 0; top: 0;
padding: 10px 10px 16px; padding: 10px 10px 32px;
width: 100%; width: 100%;
bottom: 0; bottom: 0;
max-width: 420px; max-width: 420px;
@ -77,7 +77,6 @@ main.map {
border-radius: 2px; border-radius: 2px;
overflow: hidden; overflow: hidden;
margin-bottom: 10px; margin-bottom: 10px;
flex-shrink: 0;
} }
#sidebar section > div { #sidebar section > div {
border: 0 #dddddd solid; border: 0 #dddddd solid;
@ -97,6 +96,7 @@ main.map {
min-width: 54px; min-width: 54px;
width: 100%; width: 100%;
transition: width 150ms; transition: width 150ms;
flex-shrink: 0;
} }
#search.loading { #search.loading {
width: 5%; width: 5%;
@ -117,10 +117,24 @@ main:not([data-view=route-result]) #route-result-buttons {
} }
#resultswrapper { #resultswrapper {
flex-grow: 1; flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: column;
} }
#resultswrapper section { #resultswrapper section {
max-height: 100%; max-height: 100%;
overflow: auto; overflow: auto;
margin: 0;
}
#location-details, #route-details {
padding: 10px;
}
main:not([data-view$=search]) #autocomplete,
main:not([data-view=location]) #location-details,
main:not(.show-details) #location-details,
main:not([data-view=route-result]) #route-details,
main:not(.show-details) #route-details {
display:none;
} }
.location { .location {

View file

@ -87,6 +87,8 @@
</section> </section>
<div id="resultswrapper"> <div id="resultswrapper">
<section id="autocomplete"></section> <section id="autocomplete"></section>
<section id="location-details"></section>
<section id="route-details"></section>
</div> </div>
</section> </section>
</main> </main>