Skip to content

Commit

Permalink
Introduce article heights for wrapperStart (article)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Mar 26, 2024
1 parent 8ac6e1b commit e4b7e1b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contao/templates/elements/ce_wrapperStart.html5
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
$sm->prepare('sliderL')->format(" data-slider-l='%s'",'json') .
$sm->prepare('sliderXL')->format(" data-slider-xl='%s'",'json');
?>
<div class="ce_wrapper block grid <?= $this->class ?>"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<div class="ce_wrapper article-wrapper block grid <?= $this->class ?>"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<div class="inside c_slider<?= $insideClasses ?>"<?= $sliderConfig ?>>
2 changes: 1 addition & 1 deletion contao/templates/elements/ce_wrapperStart_gridless.html5
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
$insideClasses = $sm->prepare('cSpacing')->format(' %s') .
$sm->prepare('cPadding')->format(' %s');
?>
<div class="ce_wrapper block <?= $this->class ?>"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<div class="ce_wrapper article-wrapper block <?= $this->class ?>"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<div class="inside<?= $insideClasses ?>">
4 changes: 4 additions & 0 deletions contao/templates/style-manager-core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,8 @@
<field title="chosen">1</field>
<field title="blankOption">1</field>
<field title="extendArticle">1</field>
<field title="extendContentElement">1</field>
<field title="contentElements">a:1:{i:0;s:12:"wrapperStart";}</field>
</child>
<child alias="hHeight">
<field title="pid">1020</field>
Expand All @@ -924,6 +926,8 @@
<field title="cssClasses">a:1:{i:0;a:2:{s:3:"key";s:6:"h-hght";s:5:"value";s:3:"Yes";}}</field>
<field title="blankOption">1</field>
<field title="extendArticle">1</field>
<field title="extendContentElement">1</field>
<field title="contentElements">a:1:{i:0;s:12:"wrapperStart";}</field>
</child>
</children>
</archive>
Expand Down
3 changes: 2 additions & 1 deletion public/framework/scss/ctm_layout/_article.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.mod_article {
.mod_article,
.article-wrapper {
--art-hght:auto;

> .inside {
Expand Down

0 comments on commit e4b7e1b

Please sign in to comment.