Small preact-based (like React.js) project https://inga-lovinde.github.io/static/komoot-demo/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

104 lines
1.8 KiB

section.route-planner {
width: 100%;
display: grid;
column-gap: 1rem;
row-gap: 1rem;
grid-template-columns: 1fr 2fr;
grid-template-rows: min-content 1fr min-content;
grid-template-areas:
"header map"
"markers map"
"export map";
}
section.route-planner > section.header {
grid-area: header;
}
section.route-planner > section.markers {
grid-area: markers;
}
section.route-planner > section.markers ol {
padding: 0;
}
section.route-planner > section.markers li::before {
content: '↕';
}
section.route-planner > section.markers li {
list-style-type: none;
width: 100%;
text-align: left;
cursor: grab;
}
section.route-planner > section.markers li:active {
cursor: grabbing;
}
section.route-planner > section.markers li .buttons {
float: right;
}
section.route-planner > section.markers li button {
background: transparent;
border: 0;
color: white;
cursor: pointer;
}
section.route-planner > section.markers li button[disabled] {
visibility: hidden;
}
section.route-planner > section.export {
grid-area: export;
}
section.route-planner > section.export > button {
width: 100%;
background-color: lime;
padding: 0.5em;
font-weight: bold;
}
section.route-planner > section.export > button[disabled] {
visibility: hidden;
}
section.route-planner > section.map {
grid-area: map;
}
section.route-planner .map-container {
width: 700px;
height: 700px;
}
section.route-planner .map-container .leaflet-tooltip-pane .text {
background: transparent;
border: 0;
box-shadow: none;
color: white;
font-weight: bold;
}
@media (max-width: 1000px) {
section.route-planner {
grid-template-columns: 1fr;
grid-template-rows: 1fr min-content 2fr;
grid-template-areas:
"header"
"markers"
"export"
"map";
}
section.route-planner .map-container {
width: 90vw;
height: 70vh;
}
}