Skip to content

Commit

Permalink
Add title to template
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlnchv committed Feb 15, 2019
1 parent 886a2d6 commit 8a47123
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/css/element-carousel.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.element-carousel__header {
text-align: center;
padding-top: 4rem;
padding-bottom: 2rem;
}

.element-carousel__title {
font-size: 2.25rem;
line-height: 1.25;
margin: 0 0 2rem;
}

.element-carousel__container {
display: -webkit-box;
display: -ms-flexbox;
Expand Down
6 changes: 6 additions & 0 deletions templates/DNADesign/Elemental/Models/ElementCarousel.ss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<% if $Title && $ShowTitle %>
<div class="element-carousel__header">
<h2 class="element-carousel__title">{$Title}</h2>
</div>
<% end_if %>

<div class="element-carousel__container" data-element-carousel>
<div class="element-carousel__frame">
<ul class="element-carousel__slides">
Expand Down

0 comments on commit 8a47123

Please sign in to comment.