UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

282 lines (244 loc) 4.61 kB
/* SPDX-License-Identifier: Apache-2.0 */ html, body { margin: 0; padding: 0; font-family: var(--font-family); font-size: 0.9rem; max-width: 100vw; max-height: 100vh; overflow: hidden; } header { position: fixed; top: 0; left: 0; right: calc(var(--app-standard-height) - 0px); display: flex; flex-direction: row; align-items: center; border-bottom: var(--app-standard-border); background: var(--bkg-color); height: var(--app-standard-height); z-index: 101; justify-content: space-between; } .header-center-align { margin-left: auto; margin-right: auto; } img { filter: var(--svg-filter); } girafe-theme-select { z-index: 100; border-right: var(--app-standard-border); } .logo { margin: 0.2rem 1rem; height: var(--app-standard-height); opacity: 0.8; } girafe-search { width: 36rem; } #buttonbar { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; height: 100%; width: var(--app-standard-height); background-color: var(--bkg-color); border-left: var(--app-standard-border); z-index: 100; } #buttonbar .filler { flex-grow: 1; } #buttonbar-toggle { display: none; } #buttonbar-grid { display: contents; } /* Small screens */ @media (max-height: 700px) { #buttonbar { position: absolute; bottom: 0.75rem; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; } #buttonbar-toggle { display: inline-flex; } #buttonbar-grid { display: none; } #buttonbar.open #buttonbar-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem; padding: 0.5rem; margin-right: 0.75rem; border-radius: 0.5rem; background-color: var(--bkg-color); box-shadow: var(--bx-shdw); } #buttonbar.open .filler { display: none; } } /* Slightly smaller screens: use 3 columns */ @media (max-height: 500px) { #buttonbar.open #buttonbar-grid { grid-template-columns: repeat(3, auto); } } /* Full Screen Mode: Hide most of the Apps Components */ girafe-app.fullscreen-mode header, girafe-app.fullscreen-mode footer, girafe-app.fullscreen-mode #buttonbar { display: none; } girafe-app.fullscreen-mode #content { top: 0; right: 0; } #content { position: absolute; display: flex; flex-direction: column; top: var(--app-standard-height); bottom: 0; left: 0; right: var(--app-standard-height); } #main { display: flex; flex-direction: row; position: relative; width: 100%; height: 100%; overflow: hidden; } .panel-left, .panel-right { z-index: 1; flex: none; } .panel-left { width: 25rem; min-width: 20rem; max-width: 50rem; border-right: var(--app-standard-border); } .panel-right { width: fit-content; min-width: 20rem; max-width: 40rem; border-left: var(--app-standard-border); } #content-map { display: flex; flex-direction: column; position: relative; width: 100%; overflow: hidden; } #content-bottom { flex: 0; position: relative; } girafe-lr-panel > * { display: block; width: 100%; height: 100%; } girafe-map { position: relative; width: 100%; flex-grow: 1; } .info-area { z-index: 10; position: absolute; display: flex; flex-direction: row; gap: 1rem; align-items: flex-end; bottom: calc(var(--app-footer-height) + 1rem); margin: 0 1rem; } footer { border-top: solid 1px #bbb; display: flex; flex-direction: row; align-items: center; z-index: 10; background-color: var(--bkg-color); height: var(--app-footer-height); gap: 1rem; padding: 0 1rem; } footer .copyright { flex-grow: 1; padding-right: 0.5rem; text-align: right; font-size: 0.75rem; color: var(--link-color); } footer .copyright span { display: block; line-height: 0.9rem; } girafe-selection-grid, girafe-lidar-profile, girafe-cross-section-view { position: relative; display: block; } girafe-selection-window { position: absolute; bottom: 1rem; right: 25rem; z-index: 100; width: 400px; height: 240px; min-width: 200px; min-height: 100px; max-width: 90vw; max-height: 90vh; } girafe-nav-history { z-index: 10; } girafe-add-bookmark { z-index: 10; } girafe-info-window { position: absolute; z-index: 100; background: var(--bkg-color); } .border-top { border-top: solid 1px #fff; } girafe-prototype-banner { position: absolute; bottom: 75px; right: -80px; width: 300px; height: 40px; transform: rotate(-45deg); line-height: 40px; background: #d62f2fcc; text-align: center; font-size: 1.2rem; font-weight: bold; }