Skip to content

Commit

Permalink
MOar
Browse files Browse the repository at this point in the history
  • Loading branch information
powerbuoy committed Feb 27, 2024
1 parent 8b01492 commit dd134cc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
6 changes: 1 addition & 5 deletions components/module-header/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
<header class="<?php echo implode(' ', $classes) ?>">

<?php if (!empty($args['module_header']['kicker']) and !empty($args['module_header']['title'])) : ?>
<p class="text--kicker">
<strong>
<?php echo $args['module_header']['kicker'] ?>
</strong>
</p>
<p class="text--kicker"><?php echo $args['module_header']['kicker'] ?></p>
<?php endif ?>

<?php if (!empty($args['module_header']['title'])) : ?>
Expand Down
24 changes: 24 additions & 0 deletions modules/invise-example-module/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,28 @@
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: var(--spacing-large);
}

article {
display: flex;
flex-direction: column;
padding: var(--spacing-medium);
box-shadow: var(--shadow-small);
border-radius: 0.25rem;

> * {
width: 100%;
}

> figure {
margin: calc(var(--spacing-medium) * -1);
margin-bottom: var(--spacing-medium);
border-radius: 0.25rem 0.25rem 0 0;
width: calc(100% + var(--spacing-medium) * 2);
overflow: hidden;
}

> .links {
margin-top: auto;
}
}
}
6 changes: 6 additions & 0 deletions src/sass/components/text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@

.text--right {
text-align: right;
}

.text--kicker {
margin: 0;
text-transform: uppercase;
font-weight: bold;
}

0 comments on commit dd134cc

Please sign in to comment.