grenoble-metropole-2019: use flexbox to align forms categories in columns (#40132)
This commit is contained in:
parent
40431c530e
commit
10eded39fe
|
@ -212,16 +212,9 @@ img#hautDePage {
|
|||
div.left {
|
||||
width: 65%;
|
||||
div.categories {
|
||||
clear: both;
|
||||
column-count: 2;
|
||||
-moz-column-count: 2;
|
||||
-webkit-column-count: 2;
|
||||
column-gap: 1.35em;
|
||||
@media screen and ($max-mobile-viewport) {
|
||||
column-count: 1;
|
||||
-moz-column-count: 1;
|
||||
-webkit-column-count: 1;
|
||||
}
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
div.right, div.left {
|
||||
|
@ -238,14 +231,11 @@ img#hautDePage {
|
|||
}
|
||||
}
|
||||
div.wcsformsofcategorycell {
|
||||
page-break-inside: avoid;
|
||||
-webkit-column-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
break-inside: avoid-column;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
flex: 0 0 calc(50% - 0.5rem);
|
||||
margin: 0.3ex 0 1.35ex 0;
|
||||
@media screen and ($max-mobile-viewport) {
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
h2:first-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue