This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Specify that we want to hide the content so we can print our fields individually #} | |
{{ content|without('field_sl','field_sli', 'field_wi', 'field_bg') }} | |
{# In the normal Boostrap carousel markup, we add our conditional fields as classes: #} | |
{# If Width field (field_wi) has value, add the class #} | |
{# If Background Color field (field_bg) has value, add the class #} | |
{# If Slide Interval field (field_sli) has value, add the data interval #} | |
{# We also add the Paragraph's id as the carousel id so we can allow multiple carousel on one page. (paragraph.id.value)" #} | |
<div class="element element--layout-slideshow carousel slide{% if content.field_wi %} {{content.field_wi}}{% endif %}{% if content.field_bg %} {{content.field_bg}}{% endif %}" id="myCarousel-{{ paragraph.id.value }}" data-ride="carousel"{% if content.field_sli %} data-interval="{{content.field_sli}}"{% endif %}> | |
{# For the carousel indicators, we loop through the slide field #} | |
{# We use Twig loop.first to set the active class, and the key to set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
/** | |
* @file | |
* Theme override for a select element. | |
* | |
* Available variables: | |
* - attributes: HTML attributes for the select tag. | |
* - options: The option element children. | |
* | |
* @see template_preprocess_select() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* More customized to actual project. Added Row and Columns to elements to make them more responsive */ | |
/* Exposed Views Form */ | |
.views-exposed-form { | |
/* Adds separation between filter of results */ | |
.make-row(); | |
/* Floats Label to the left and aligns */ | |
label { | |
.text-muted(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------------------------------------------------------------------------- */ | |
/* Base Paragraph Styling. This is the BEM Block */ | |
/* -------------------------------------------------------------------------- */ | |
.element { | |
padding-top: @jumbotron-padding; | |
.make-sm-column(10); | |
.make-sm-column-offset(1); | |
.make-md-column(8); | |
.make-md-column-offset(2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- for item in items -%} | |
<div class="element--layout-columns__{{ loop.length }}col">{{ item.content }}</div> | |
{%- endfor -%} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="element element--layout-columns"> | |
{{ content }} | |
</div> |