mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-28 23:20:26 +01:00
Styling fixes for firefox.
This commit is contained in:
parent
0d4449b9c2
commit
396022e8ea
3 changed files with 17 additions and 7 deletions
|
@ -132,7 +132,7 @@ class OpenModal extends React.Component {
|
|||
<Button className="maputnik-upload-button"><FileUploadIcon /> Upload</Button>
|
||||
</FileReaderInput>
|
||||
</section>
|
||||
<section className="maputnik-modal-section">
|
||||
<section className="maputnik-modal-section maputnik-modal-section--shrink">
|
||||
<h2>Gallery Styles</h2>
|
||||
<p>
|
||||
Open one of the publicly available styles to start from.
|
||||
|
|
|
@ -12,3 +12,10 @@
|
|||
|
||||
@include vendor-prefix(flex-direction, row);
|
||||
}
|
||||
|
||||
@mixin flex-column {
|
||||
display: flex;
|
||||
display: -ms-flexbox;
|
||||
|
||||
@include vendor-prefix(flex-direction, column);
|
||||
}
|
||||
|
|
|
@ -10,12 +10,15 @@
|
|||
.maputnik-modal-section {
|
||||
padding-top: $margin-3;
|
||||
padding-bottom: $margin-3;
|
||||
display: flex;
|
||||
@include flex-column;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
/* Bug fix: <http://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox> */
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.maputnik-modal-section--fill {
|
||||
flex: 1 1;
|
||||
.maputnik-modal-section--shrink {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.maputnik-modal-header {
|
||||
|
@ -36,7 +39,7 @@
|
|||
|
||||
.maputnik-modal-content {
|
||||
padding: $margin-3;
|
||||
display: flex;
|
||||
@include flex-column;
|
||||
flex-direction: column;
|
||||
max-height: 90vh;
|
||||
}
|
||||
|
@ -75,9 +78,8 @@
|
|||
}
|
||||
|
||||
.maputnik-style-gallery-container {
|
||||
max-height: 400px;
|
||||
overflow-y: scroll;
|
||||
flex: 1;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.maputnik-public-style {
|
||||
|
@ -221,6 +223,7 @@
|
|||
.maputnik-modal-error-close {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 8px;
|
||||
text-decoration: none;
|
||||
color: #ef5350;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue