UNPKG

geopf-extensions-openlayers

Version:

French Geoportal Extensions for OpenLayers libraries

233 lines (188 loc) 5.04 kB
/* LAYER SWITCHER */ div[id^=GPlayerSwitcher-] { top: 8px; right: 8px; } div[id^=GPlayerSwitcher-] [draggable] { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; /* Required to make elements draggable in old WebKit */ -khtml-user-drag: element; -webkit-user-drag: element; } div[id^=GPlayerSwitcher_ID_][disabled] { pointer-events: none; opacity: 0.5; } /* Manage opening of the components through hiden checkboxes */ div[id^=GPlayerSwitcher-] input[type="checkbox"] + button + dialog { max-height: 0px; } input[id^=GPshowLayersList-] { display: none; } /* Showing/hiding layers list */ button[id^=GPshowLayersListPicto][aria-pressed="false"] + dialog { display: none; visibility: hidden; opacity: 0%; } button[id^="GPshowLayersListPicto-"][aria-pressed="true"] + dialog { display: flex; flex-direction: column; visibility: visible; justify-content: flex-start; opacity: 100%; } /* Layers list */ /* positionnement actif */ .position > div[id^=GPlayerSwitcher-] > dialog[id^=GPlayersList] { position: absolute; } .position > div[id^=GPlayerSwitcher-] > button[id^=GPshowLayersListPicto-] { float: unset; } /* positionnement inactif */ dialog[id^=GPlayersList] { position: relative; float: left; } button[id^=GPshowLayersListPicto-] { float: right; } dialog[id^=GPlayersList] { border-bottom-right-radius: 0; opacity: 0; } button[id^=GPshowLayersListPicto][aria-pressed="true"] + dialog[id^=GPlayersList] { max-height: inherit; opacity: 1; } .GPlayerCounter { position: relative; background: #fff; color: #000; padding: 2px 0px 1px; border-radius: 100px; min-width: 15px; text-align: center; font-size: 12px; line-height: 1; top: -15px; left: 15px; display: inline-block; } /* Layer : general */ .GPlayerSwitcher_layer { position: relative; top: 0; overflow: hidden; } dialog[id^=GPlayersList] .GPlayerSwitcher_layer:last-child { border-bottom: none; } /* Showing layer advanced tools */ .GPlayerAdvancedTools { display: block; max-height: 0; opacity: 0; transition: max-height 0.5s ease-out 0s, opacity 0.5s ease-out 0s; } .GPlayerSwitcher_layer:has(button[id^=GPshowAdvancedTools_ID_][aria-pressed="true"]) > .GPlayerAdvancedTools { opacity: 1; max-height: unset; } [id^="GPlayerStylePanel"], [id^="GPlayerInfoPanel"] { left: unset; right: 100%; } [id^="GPlayerStyleList"] { display: flex; flex-direction: column; } div[id^=GPlayerStyleContent], div[id^=GPlayerInfoContent] { position: relative; max-height: 200px; overflow-y: auto; padding-left: 10px; padding-right: 10px; } div[id^=GPlayerStyleContent] { max-height: 500px; } /* Refonte */ div[id^=GPbasicTools_ID_] { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; flex-direction: row-reverse; width: 100%; } div[id^=GPadvancedTools_ID_] { display: flex; flex-direction: column; align-content: center; align-items: flex-start; flex-wrap: nowrap; justify-content: center; } div[id^="GPbasicToolButtons_ID_"] { display: flex; flex-direction: row-reverse; flex: 0 0 auto; align-items: center; } div[id^=GPtitle_ID_] { display: flex; align-items: center; align-self: stretch; min-width: 150px; flex: 1; } div[id^=GPlayerTitle_ID_] { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: calc(100% - 52px); flex: 1 1 auto; } div[id^=GPlayerTitle_ID_] > * { overflow: hidden; text-overflow: ellipsis; display: block; white-space: nowrap; width: 100%; } .GPtitleImage { border-radius: 4px; margin-right: 8px; } .GPtitleDefaultImage { content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFvSURBVHgB7ZfBisIwEIb/aIWKHsXH8OCT+lBevHgRjwp6EBEREdRqTbKZLN3FXT20yRyK80FIqJR8mf4drDqfjUWNaKBmiDA3IsyNCHMjwtyIMDcizI0Ic/O5wsYA7bZCkjxfb7UQlWjCnY7CaJRhNtM/0nSAyUQjTRViEU3Yug+t8Tj3ws2mcpVVWCw0Gm4Hmv9Wvioq1jcdRaLbVX6+XCyUK+p0ql2VgevVYjhM/LVQolSYqni7AVlm/aB4UKXT9LvyFI35PE40goVJ9nSiYb0cPfrVyvh1Aa21BjYb4+KCIIKFiwhQNzgcSFphvTb/ugMdZLnULhbq6TBlCcowSex2v7dTRvd74+PxLq90kMEg8dGpQuUKF1GgR01VpvF4AP1+A3lu/frVOB4ttltT+QWsXGHakN7+V5mkQ9zv7++l33s95efS+4ZEIqRNVc1xUDu3UTp4OeTfGjcizI0IcyPC3IgwNyLMjQhzUzvhL49qosB5TImnAAAAAElFTkSuQmCC'); } div[id^=GPlayerProducer_ID_]:empty { display: none; } /* Opacité */ div[id^=GPopacityContainer_ID_] { display: flex; flex-direction: row; justify-content: space-between; align-items: center; height:40px; gap: 8px; width: 100%; padding: 0 8px; } .GPlayerOpacityValue { color: var(--text-mention-grey) } div[id^=GPopacityContainer_ID_] > .GPlayerOpacity { flex: auto; }