/* Box sizing */ *, *:before, *:after { box-sizing: border-box; } /* Colors */ :root { --color-header: #333333; } /* Layout */ body { margin: 0; } .g-Layout__Header { display: flex; align-items: center; justify-content: space-between; width: 100%; background-color: var(--color-header); color: white; font-size: 2rem; height: 3rem; padding: 0 0.5rem; } .g-Layout__HeaderImportExport { font-size: 1rem; } .g-Layout__Home { color: white; text-decoration: none; } .g-Layout__Home:visited { color: white; } .g-Layout__Section:not(:last-child) { margin-bottom: 2rem; } .g-Layout__Line { display: flex; align-items: center; } .g-Layout__Line > *:not(:last-child) { margin-right: 1.5rem; } /* Header */ #g-Header__ImportInput { display: none; } /* Modal */ :root { --modal-border-radius: 1rem; } #g-Modal { z-index: 1000; position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .g-Modal__Curtain { background-color: rgba(0,0,0,0.5); position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .g-Modal__Window { position: relative; background-color: white; border-radius: var(--modal-border-radius); padding: 2rem 4rem; width: 50%; } .g-Modal__Close { position: absolute; top: 0px; right: 0px; font-size: 2rem !important; border-top-right-radius: var(--modal-border-radius); } .g-Modal__Close:hover { background-color: #CCCCCC; } /* Context menu */ :root { --context-menu-border-radius: 2px; } #g-ContextMenu { z-index: 1000; position: absolute; background-color: white; border-radius: var(--context-menu-border-radius); border: 1px solid #333333; } .g-ContextMenu__Entry:first-child { border-top-left-radius: var(--context-menu-border-radius); border-top-right-radius: var(--context-menu-border-radius); } .g-ContextMenu__Entry:last-child { border-bottom-left-radius: var(--context-menu-border-radius); border-bottom-right-radius: var(--context-menu-border-radius); } .g-ContextMenu__Entry { padding: 0.5rem 1rem; } .g-ContextMenu__Entry:hover { background-color: #DDDDDD; cursor: pointer; } /* Form */ .g-Form__Field { margin-bottom: 1rem; } .g-Form__Label { margin-bottom: 0.5rem; } .g-Form__Textarea { width: 100%; height: 5rem; } .g-Form__DefaultColor { border: 1px solid #333333 !important; width: 20px; height: 20px; border-radius: 50%; } /* Autocomplete */ :root { --autocomplete-width: 500px; } .g-Autocomplete { position: relative; } .g-Autocomplete__Input { width: var(--autocomplete-width); } .g-Autocomplete__Completion { position: absolute; width: var(--autocomplete-width); background-color: white; max-height: 10rem; overflow-y: auto; border: 1px solid black; } .g-Autocomplete__Entry { display: block; width: 100%; text-align: left; background-color: transparent; border: none; cursor: pointer; } .g-Autocomplete__Entry:hover { background-color: #DDDDDD; } .g-Autocomplete__Clear { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); } /* Button */ .g-Button__Raw { cursor: pointer; background-color: transparent; border: none; color: inherit; font-size: inherit; } .g-Button__Text { cursor: pointer; background-color: transparent; border: none; color: inherit; font-size: inherit; } .g-Button__Text:hover { text-decoration: underline; } .g-Button__Action { background-color: green; color: white; padding: 0.5rem 1rem; border-radius: 0.2rem; border: 1px solid black; font-size: 1.1rem; cursor: pointer; font-size: inherit; } .g-Button__Cancel { background-color: gray; color: white; padding: 0.5rem 1rem; border-radius: 0.2rem; border: 1px solid black; font-size: 1.1rem; cursor: pointer; font-size: inherit; } /* Map */ .g-Map { position: absolute; top: 3rem; bottom: 0; left: 0; right: 0; } #g-Map__Content { width: 100%; height: 100%; cursor: default; } /* Marker form */ .g-MarkerForm__AutocompleteAndIcon { position: relative; } .g-MarkerForm__Autocomplete { padding-left: 1.5rem; } .g-MarkerForm__Icon { position: absolute; width: 1rem; text-align: center; left: 0.5rem; } .g-MarkerForm__IconEntry { margin-right: 0.5rem; width: 1rem; text-align: center; } /* Marker icon */ :root { --marker-box-size: 12px; --marker-width: 25px; --marker-peak-height: calc(var(--marker-width) * 1); --marker-border-width: 2px; --marker-border-color: #333333; --marker-icon-size: 14px; } .g-Marker { cursor: move; } .g-Marker__Round { position: absolute; bottom: calc(var(--marker-box-size) / 2 + var(--marker-peak-height) - var(--marker-width) * 15 / 40); left: calc((var(--marker-width) - var(--marker-box-size)) / -2); width: var(--marker-width); height: var(--marker-width); border-radius: 50%; border: var(--marker-border-width) solid var(--marker-border-color); cursor: move; } .g-Marker__Icon { position: absolute; bottom: calc(var(--marker-box-size) / 2 + var(--marker-peak-height) - var(--marker-width) * 15 / 40); left: calc((var(--marker-width) - var(--marker-box-size)) / -2); font-size: var(--marker-icon-size); display: flex; align-items: center; justify-content: center; width: var(--marker-width); height: var(--marker-width); } .g-Marker__PeakInner { position: absolute; bottom: calc(var(--marker-box-size) / 2 + var(--marker-border-width)); left: calc((var(--marker-width) - var(--marker-box-size)) / -2 + var(--marker-border-width)); width: 0; height: 0; border-left: calc(var(--marker-width) / 2 - var(--marker-border-width)) solid transparent; border-right: calc(var(--marker-width) / 2 - var(--marker-border-width)) solid transparent; border-top-width: calc(var(--marker-peak-height) - var(--marker-border-width)); border-top-style: solid; } .g-Marker__PeakBorder { position: absolute; bottom: calc(var(--marker-box-size) / 2); left: calc((var(--marker-width) - var(--marker-box-size)) / -2); width: 0; height: 0; border-left: calc(var(--marker-width) / 2) solid transparent; border-right: calc(var(--marker-width) / 2) solid transparent; border-top-width: var(--marker-peak-height); border-top-style: solid; border-top-color: var(--marker-border-color); }