UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

186 lines (162 loc) • 2.94 kB
/* SPDX-License-Identifier: Apache-2.0 */ .hidden { display: none; } #searchbox { background-color: var(--bkg-color); height: 2.25rem; width: 100%; display: flex; flex-direction: row; align-items: center; min-width: 0; border: 1px solid #cfd6dd; border-radius: 4px; slot[name='search-tooltip'] { display: none; } } #search-filter { flex: 0 0 auto; min-width: 0; } #search { font-size: 1rem; outline: none; margin: 0 0 0 0.25rem; padding-left: 0.25rem; border: 0; height: 2.25rem; width: auto; flex: 1 1 auto; -ms-flex: 1 1 auto; -webkit-flex: 1 1 auto; -webkit-appearance: none; background: transparent; color: var(--text-color); } .search-icon, .close-icon, .theme-icon, .select-color-icon { width: 14px; color: var(--text-color); padding: 0 0.75rem; } .close-button, .select-color-button { border: none; padding: 0; background-color: transparent; cursor: pointer; } #results { z-index: 1000; margin-top: 0.1rem; margin-bottom: 0.5rem; position: absolute; top: 3.5rem; width: min(36rem, 50vw); max-height: 31rem; background-color: var(--bkg-color); overflow-x: hidden; scrollbar-width: thin; border: var(--app-standard-border); border-radius: 4px; } .entry { display: inline-block; padding: 0.3rem 1rem; width: calc(36rem - 2rem); line-height: 1.3rem; color: var(--text-color); } .entry img { margin-right: 1rem; width: 0.8em; } .entry span { text-transform: uppercase; } .provider, .group { font-weight: 600; line-height: 3rem; font-size: 1.2rem; } .provider { font-size: 1.5rem; margin-top: 1rem; background-color: color-mix(in srgb, var(--bkg-color-grad1) 75%, transparent); } #results > .provider:first-child { margin-top: 0; } .result { border-top: solid 1px #ccc; background: transparent; width: 100%; display: flex; align-items: stretch; padding: 0; } .result button { padding: 0.3rem 1rem; cursor: pointer; border: none; background: transparent; text-align: left; width: 100%; color: var(--text-color); } .result.selected, .result button:hover { background-color: var(--bkg-color-grad2) !important; color: var(--text-color); } .result .tools { width: 1.3rem; margin: 0; } .result .tools button { margin: 0; padding: 0 0.3rem; height: -webkit-fill-available; } .result .tools button img { margin: 0; padding: 0; } #no-result { position: absolute; background: var(--warning-color); top: 3.5rem; padding: 0.5rem 0; border-radius: 6px; opacity: 0.75; font-size: 1rem; width: fit-content; left: 0; right: 0; margin: auto; visibility: hidden; pointer-events: none; } #no-result > span { padding: 1.3rem; } @keyframes fadeOut { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } } .shown-then-fadeout { visibility: visible !important; animation: fadeOut 2s ease-in-out forwards; }