Skip to content

Commit

Permalink
Merge pull request #12444 from jdalsem/flex-shorthand
Browse files Browse the repository at this point in the history
chore(css): set a more explicit flex shorthand
  • Loading branch information
jdalsem committed Mar 13, 2019
2 parents f81adb1 + 4eeec4f commit f0ca9d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion views/default/elements/components/image_block.css
Expand Up @@ -20,7 +20,7 @@
}

.elgg-image-block > .elgg-body {
flex: 1;
flex: 1 1 auto;
}

.elgg-image-block.elgg-chip {
Expand Down
2 changes: 1 addition & 1 deletion views/default/elements/components/menus.css
Expand Up @@ -305,7 +305,7 @@
}

.elgg-menu-hover .elgg-menu {
flex: 1;
flex: 1 1 auto;
max-width: 20rem;

&.elgg-menu-hover-actions {
Expand Down
33 changes: 15 additions & 18 deletions views/default/elements/layout/columns.css
Expand Up @@ -12,33 +12,30 @@
border-top: 1px solid $(border-color-soft);
}

.elgg-layout-columns,
.elgg-layout-columns {
display: flex;
align-items: stretch;
flex-direction: column;
}

.elgg-layout-columns > .elgg-body,
.elgg-layout-columns > .elgg-body {
flex: 1;
}

.elgg-layout-columns > .elgg-sidebar {
float: none;
order: 1;
}

> .elgg-body {
flex: 1 1 0%;
}

> .elgg-sidebar {
float: none;
order: 1;
}

.elgg-layout-columns > .elgg-sidebar {
order: 2;
}
> .elgg-sidebar {
order: 2;
}

.elgg-layout-columns > .elgg-sidebar-alt {
order: 0;
> .elgg-sidebar-alt {
order: 0;
}
}

@media $(media-desktop-up) {
.elgg-layout-columns,
.elgg-layout-columns {
flex-direction: row;
}
Expand Down

0 comments on commit f0ca9d9

Please sign in to comment.