Skip to content

Commit

Permalink
[4.0] Move options from grid to column layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ciar4n committed Nov 24, 2019
1 parent ac3eb85 commit 18c603a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions administrator/templates/atum/scss/blocks/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,47 @@
display: none;
visibility: hidden;
}


// Column Count

[class^='column-'],
[class*=' column-'] {
display: block !important; // This can be removed if grid forms removed globally
column-gap: 2rem;
padding-bottom: 1rem;

> div {
break-inside: avoid;
}
}

@include media-breakpoint-up(sm) {
.column-count-sm-2 {
column-count: 2;
}

.column-count-sm-3 {
column-count: 3;
}
}

@include media-breakpoint-up(md) {
.column-count-md-2 {
column-count: 2;
}

.column-count-md-3 {
column-count: 3;
}
}

@include media-breakpoint-up(lg) {
.column-count-lg-2 {
column-count: 2;
}

.column-count-lg-3 {
column-count: 3;
}
}
4 changes: 2 additions & 2 deletions layouts/joomla/edit/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
{
echo '<fieldset id="fieldset-' . $name . '" class="form-no-margin options-grid-form ' . (!empty($fieldSet->class) ? $fieldSet->class : '') . '">';
echo '<legend>' . $label . '</legend>';
echo '<div>';
echo '<div class="column-count-md-2 column-count-lg-3">';
}
// Tabs
elseif (!$hasParent)
Expand All @@ -145,7 +145,7 @@
{
echo '<fieldset id="fieldset-' . $name . '" class="form-no-margin options-grid-form ' . (!empty($fieldSet->class) ? $fieldSet->class : '') . '">';
echo '<legend>' . $label . '</legend>';
echo '<div>';
echo '<div class="column-count-md-2 column-count-lg-3">';

$opentab = 2;
}
Expand Down

0 comments on commit 18c603a

Please sign in to comment.