This file contains 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> |
This file contains 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 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 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
/* -------------------------------------------------------------------------- */ | |
/* Extends: */ | |
/* https://gist.github.com/thejimbirch/5b6b9ceb6e597a48f330e02edd8bcb49 */ */ | |
/* -------------------------------------------------------------------------- */ | |
/* -------------------------------------------------------------------------- */ | |
/* Here we add Width Modifiers */ | |
/* -------------------------------------------------------------------------- */ | |
/* Adds Width Element -- Medium */ |
This file contains 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 |
OlderNewer