Skip to content

Commit

Permalink
Merge pull request #2413 from fredj/displayquerywindow_extra_space
Browse files Browse the repository at this point in the history
Remove white space when no identifier attribute
  • Loading branch information
fredj committed Mar 8, 2017
2 parents 43fb139 + 3179dfb commit 39cfcda
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions contribs/gmf/less/displayquerywindow.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@
position: relative;
overflow: hidden;
// height with 2em: 1em per text (title, subtitle)
height: calc(3 * @app-margin + @half-app-margin ~"+ 2em");
max-height: 10 * @map-tools-size;
height: calc(4 * @app-margin + @half-app-margin ~"+ 2em");
margin: 0;
transition: 0.3s ease-in all;
.gmf-displayquerywindow-slide-animation {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
padding: @app-margin @app-margin 0;
padding: @app-margin;
text-align: left;
white-space: nowrap;
overflow: hidden;
Expand All @@ -60,6 +61,9 @@
}
.gmf-displayquerywindow-animation-container-detailed {
height: @displayquerywindow-detailed-header-height + @displayquerywindow-detailed-details-height + @app-margin * 3;
.gmf-displayquerywindow-details {
display: block;
}
}
.gmf-displayquerywindow-next {
.gmf-displayquerywindow-slide-animation {
Expand Down Expand Up @@ -89,21 +93,12 @@
}
}
}
.gmf-displayquerywindow-header {
height: @displayquerywindow-detailed-header-height;
margin-bottom: @app-margin;
p {
margin-bottom: @app-margin;
}
}
.gmf-displayquerywindow-title {
font-weight: bold;
}
.gmf-displayquerywindow-subtitle {
min-height: 1em;
}
.gmf-displayquerywindow-details {
height: @displayquerywindow-detailed-details-height;
display: none;
flex: 1;
line-height: @displayquerywindow-detailed-details-line-height;
overflow-x: hidden;
overflow-y: auto;
Expand All @@ -125,7 +120,6 @@
}
}
.gmf-displayquerywindow-navigate {
margin-top: @app-margin;
border-top: solid 1px @border-color;
height: @map-tools-size;
display: flex;
Expand Down Expand Up @@ -214,8 +208,5 @@
.gmf-displayquerywindow-animation-container-detailed {
height: (@displayquerywindow-detailed-header-height + @displayquerywindow-detailed-details-height / 2 + @app-margin * 3);
}
.gmf-displayquerywindow-details {
height: @displayquerywindow-detailed-details-height / 2;
}
}
}

0 comments on commit 39cfcda

Please sign in to comment.