html, body, #mapContainer { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; } form, p, input, button, select { margin: 0; padding: 0; box-sizing: content-box; } #addMarker, #removeMarker, #markerArea { cursor: pointer; color: #fff; border: 0; position: absolute; top: 50px; padding: 5px 10px; border-radius: 5px; z-index: 999; outline: none; } #addMarker { left: 130px; background-color: #409EFF; } #removeMarker { left: 250px; background-color: #E6A23C; } #markerArea { left: 370px; background-color: #909399; } #setProperty { position: absolute; top: 0; right: 200px; z-index: 999; background-color: #fff; font-size: 14px; padding: 8px 8px 5px 5px; border-radius: 5px; } #setProperty>form>#gradient { border: 1px solid green; border-radius: 5px; padding: 3px; } #setProperty>form>p, #setProperty>form>#gradient>p { display: flex; justify-content: space-between; align-items: center; padding: 5px 5px; } #setProperty>form>p>input, #setProperty>form>#gradient>p>input { text-align: center; border: 0; border: 1px solid #ccc; border-radius: 5px; padding: 3px; width: 100px; outline: none; } #setProperty>form>:nth-child(2)>input { text-align: left; } #setProperty>form>:last-child { color: #fff; justify-content: center; } #setProperty>form>:last-child>span { padding: 5px 10px; background-color: #E6A23C; border-radius: 5px; cursor: pointer; } #setProperty>form>#close { background-color: #ccc; width: 16px; height: 16px; text-align: center; line-height: 16px; position: absolute; top: 0; right: 0; cursor: pointer; border-radius: 8px; } @media (min-width: 768px) and (max-width: 991px) { #addMarker { left: 20px; } #removeMarker { left: 140px; } #markerArea { left: 260px; } #setProperty { right: 0; } } @media (max-width: 767px) { #addMarker, #removeMarker, #markerArea { left: 15px; } #addMarker { top: 10px; } #removeMarker { top: 50px; } #markerArea { top: 90px; } #setProperty { top: unset; bottom: 0; right: 0; } #setProperty>form>p, #setProperty>form>#gradient>p { padding: 2px; } #setProperty>form>p>input, #setProperty>form>#gradient>p>input { width: 75px; } }