/* Box sizing */ *, *:before, *:after { box-sizing: border-box; } /* Colors */ :root { --color-header: #333333; } /* Layout */ body { margin: 0; } .g-Layout__Header { background-color: var(--color-header); color: white; font-size: 2rem; height: 3rem; line-height: 3rem; padding: 0 0.5rem; } .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; } /* Modal */ #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: 1rem; padding: 2rem 4rem; width: 50%; } .g-Modal__Close { position: absolute; top: 2rem; right: 2rem; cursor: pointer; border: none; background-color: transparent; font-size: 200%; } .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; } /* 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; } /* Button */ .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; } .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; } /* 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__Icon { width: 1rem; border: 1px solid #EEEEEE; } /* 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); }