forked from Disroot/Howto
center flex div automatically in all views
This commit is contained in:
parent
1d483a5b75
commit
59f902b074
|
@ -17,10 +17,7 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
#flex {
|
||||
width: 90vw;
|
||||
margin-left: 5vw;
|
||||
}
|
||||
|
||||
#flex .columns {
|
||||
width: 50%;
|
||||
}
|
||||
|
@ -113,9 +110,9 @@
|
|||
}
|
||||
|
||||
#flex {
|
||||
width: 110vw;
|
||||
margin-left: 0;
|
||||
}
|
||||
width: 100vw;
|
||||
left: auto;
|
||||
|
||||
|
||||
#flex .columns {
|
||||
height: auto;
|
||||
|
|
|
@ -74,8 +74,10 @@ a:hover {
|
|||
}
|
||||
|
||||
#flex {
|
||||
width: 80vw;
|
||||
margin-top: -50px;
|
||||
width: 80vw;
|
||||
position: relative;
|
||||
left: calc(-40vw + 50%);
|
||||
/* display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
|
Loading…
Reference in New Issue