Fix broken flex modal layouts (#7343)

This commit is contained in:
Jaco Greeff 2017-12-20 12:36:04 +01:00 committed by GitHub
parent 25a3c001ad
commit 2856305977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 17 deletions

View File

@ -20,7 +20,6 @@
background-color: rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 100%;
overflow: hidden; overflow: hidden;
transition: transform ease-out 0.1s; transition: transform ease-out 0.1s;
transform: scale(1); transform: scale(1);

View File

@ -105,9 +105,7 @@
} }
.inputContainer { .inputContainer {
display: flex; justify-content: flex-start;
flex-direction: column;
flex: 1;
.input { .input {
font-size: 1.5em; font-size: 1.5em;
@ -134,8 +132,6 @@
} }
.category { .category {
display: flex;
flex-direction: column;
margin: 0 0.5em; margin: 0 0.5em;
max-width: 35em; max-width: 35em;
@ -149,12 +145,8 @@
} }
.cards { .cards {
flex: 1;
overflow: auto; overflow: auto;
display: flex;
flex-direction: column;
margin: 1em 0; margin: 1em 0;
} }

View File

@ -335,7 +335,7 @@ class AddressSelect extends Component {
content = ( content = (
<div className={ styles.cards }> <div className={ styles.cards }>
<div>{ cards }</div> { cards }
</div> </div>
); );
} }

View File

@ -82,10 +82,9 @@ $popoverZ: 3600;
/* but may well be) will scretch to non-visible areas. /* but may well be) will scretch to non-visible areas.
*/ */
&.small { &.small {
margin: 1.5em auto; left: 50%;
max-width: 768px; margin: 1.5em -384px;
position: relative; width: 768px;
width: 75%;
} }
} }

View File

@ -19,7 +19,6 @@
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex: 1; flex: 1;
height: 100%;
position: relative; position: relative;
width: 100%; width: 100%;
@ -29,7 +28,6 @@
} }
.content { .content {
height: 100%;
width: 100%; width: 100%;
&:hover { &:hover {