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;
12 months ago
grid-template-rows: min-content 1fr min-content;
grid-template-areas:
12 months ago
"header map"
"markers map"
"export map";
}
12 months ago
section.route-planner > section.header {
grid-area: header;
}
section.route-planner > section.markers {
grid-area: markers;
}
12 months ago
section.route-planner > section.markers ol {
padding: 0
}
section.route-planner > section.markers li::before {
12 months ago
content: '↕';
12 months ago
}
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;
12 months ago
cursor: pointer;
12 months ago
}
section.route-planner > section.markers li button[disabled] {
visibility: hidden;
}
section.route-planner > section.export {
grid-area: export;
}
12 months ago
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 {
12 months ago
width: 700px;
height: 700px;
}
section.route-planner .map-container .leaflet-tooltip-pane .text {
background: transparent;
12 months ago
border: 0;
box-shadow: none;
color: white;
font-weight: bold;
}
12 months ago
@media (max-width: 1000px) {
section.route-planner {
grid-template-columns: 1fr;
grid-template-rows: 1fr min-content 2fr;
grid-template-areas:
12 months ago
"header"
"markers"
"export"
"map";
}
section.route-planner .map-container {
width: 90vw;
height: 70vh;
}
}