Skip to content

Commit

Permalink
Refine page date time styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Feb 22, 2024
1 parent 566f8f3 commit 6d32001
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/asset/css/page-blocks.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions application/asset/sass/page-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,18 @@

.page-date-time .property {
font-weight: bold;

&:after {
content: ": ";
}
}

.page-date-time > div,
.page-date-time .property,
.page-date-time .value {
display: inline-block;
margin: 0;
width: max-content;
}

.page-date-time > div {
margin-right: 1rem;
}

.block-blockGroup:after {
Expand Down
4 changes: 2 additions & 2 deletions application/view/common/block-layout/page-date-time.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ $modifiedFormatted = $modified ? $this->i18n()->dateFormat($modified, $dateForma
<div class="page-date-time">
<?php if (in_array($block->dataValue('display'), ['created', 'created_modified'])): ?>
<div class="created">
<span class="property"><?php echo $this->translate('Created'); ?></span>
<span class="property"><?php echo $this->translate('Created'); ?></span>:
<span class="value"><?php echo $createdFormatted; ?></span>
</div>
<?php endif; ?>
<?php if ($modified && in_array($block->dataValue('display'), ['modified', 'created_modified'])): ?>
<div class="modified">
<span class="property"><?php echo $this->translate('Modified'); ?></span>
<span class="property"><?php echo $this->translate('Modified'); ?></span>:
<span class="value"><?php echo $modifiedFormatted; ?></span>
</div>
<?php endif; ?>
Expand Down

0 comments on commit 6d32001

Please sign in to comment.