Skip to content

Commit

Permalink
feat(css): panels à 100% de la hauteur de la carte + scrollbar si con…
Browse files Browse the repository at this point in the history
…tenu + haut que la carte, adapté au contenu sinon (#266)
  • Loading branch information
azarz authored Nov 18, 2024
1 parent cf9aa41 commit bc72164
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "geopf-extensions-openlayers",
"description": "French Geoportal Extensions for OpenLayers libraries",
"version": "1.0.0-beta.0-263",
"version": "1.0.0-beta.0-266",
"date": "15/11/2024",
"module": "src/index.js",
"directories": {},
Expand Down
5 changes: 3 additions & 2 deletions src/packages/CSS/Controls/Catalog/GPFcatalog.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ button[id^=GPshowCatalogPicto][aria-pressed="false"] + dialog {
}

button[id^="GPshowCatalogPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
width: 370px;
Expand All @@ -32,4 +33,4 @@ form[id^=GPcatalogForm] {

.catalog-container-tabs .fr-accordion .fr-collapse--expanded {
padding-bottom: 0;
}
}
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/Drawing/GPFdrawing.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ button[id^="GPshowDrawingPicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowDrawingPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
5 changes: 3 additions & 2 deletions src/packages/CSS/Controls/ElevationPath/GPFelevationPath.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ button[id^="GPshowElevationPathPicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowElevationPathPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down Expand Up @@ -55,4 +56,4 @@ button[id^=GPelevationPathPanelInfo] {
.tooltipFadeOut {
transition: opacity 500ms ease 0ms;
opacity: 0;
}
}
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/Isochron/GPFisochron.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ button[id^="GPshowIsochronPicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowIsochronPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
5 changes: 3 additions & 2 deletions src/packages/CSS/Controls/LayerImport/GPFlayerImport.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ button[id^="GPshowImportPicto-"][aria-pressed="false"] + dialog {
visibility: hidden;
opacity: 0%;
}

button[id^="GPshowImportPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/LayerSwitcher/GPFlayerSwitcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ button[id^=GPshowLayersListPicto][aria-pressed="false"] + dialog {


button[id^="GPshowLayersListPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/Legends/GPFlegends.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ button[id^=GPshowLegendsPicto][aria-pressed="false"] + dialog {
}

button[id^="GPshowLegendsPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
width: 350px;
Expand Down
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/MousePosition/GPFmousePosition.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ button[id^="GPshowMousePositionPicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowMousePositionPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ button[id^="GPshowReverseGeocodingPicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowReverseGeocodingPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
3 changes: 2 additions & 1 deletion src/packages/CSS/Controls/Route/GPFroute.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ button[id^="GPshowRoutePicto-"][aria-pressed="false"] + dialog {
}

button[id^="GPshowRoutePicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
}
Expand Down
5 changes: 3 additions & 2 deletions src/packages/CSS/Controls/Territories/GPFterritories.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ button[id^=GPshowTerritoriesPicto][aria-pressed="false"] + dialog {
}

button[id^="GPshowTerritoriesPicto-"][aria-pressed="true"] + dialog {
display: block;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 100%;
max-width: 470px;
Expand All @@ -22,4 +23,4 @@ button[id^="GPshowTerritoriesPicto-"][aria-pressed="true"] + dialog {

dialog[id^="GPterritoriesPanel-"] {
position: absolute;
}
}
10 changes: 8 additions & 2 deletions src/packages/CSS/DSFRgeneralWidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
position: relative;
background-color: unset;
width: max-content;
max-height: 100%;
}

/* FIXME A remplacer avec gestion des collisions */
.gpf-panel form {
max-height: 400px;
overflow: auto;
padding: 0 2rem 2rem 2rem;
}
Expand All @@ -36,6 +35,11 @@
.gpf-panel__body {
overflow: unset;
position: relative;
max-height: 100% !important;
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}

.gpf-panel__header {}
Expand Down Expand Up @@ -328,10 +332,12 @@

.gpf-panel::after {
height: unset;
flex: 0;
}

.gpf-panel::before {
height: unset;
flex: 0;
}

/***********/
Expand Down

0 comments on commit bc72164

Please sign in to comment.