This is just a start template for my eaaching examples
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
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
.theme-magazine .nice-menu | |
top: 5px | |
left: 195px | |
position: absolute | |
.admin-menu & |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
p { | |
a { | |
color: red; | |
.footer & { | |
color: purple; |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
.read-more-button | |
display: inline-block | |
padding: 8px 25px | |
color: white | |
text-decoration: none |
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="container"> | |
<header role="header">Header</header> | |
<div class="content-wrapper"> | |
<section class="main-content"> | |
Main Content | |
</section> | |
<aside class="sidebar"> | |
Sidebar | |
</aside> | |
</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
{ | |
"image": "<img src='assets/miriam-werner.png' alt='Miriam B. Werner' />", | |
"name":"Miriam B. Werner", | |
"bio":"Miriam B. Weiner is an experienced travel writer and editor based in Washington, D.C. She has traveled all around Europe, as well as to countries in Africa and the Middle East. Now she’s set her sights on visiting the U.S. National Parks while providing the inspiration and information others need to make the most of America’s wilderness.", | |
"showBio": "View full biography", | |
"hideBio": "Hide biography", | |
"socialLinks": [ | |
{ | |
"icon": "instagram", | |
"url": "http://instagram.com" |
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
(function ($) { | |
'use strict'; | |
Drupal.behaviors.card = { | |
attach: function (context, settings) { | |
var $bioButton = $('.card__view-bio', context); | |
var $bioDrawer = $('.card__bio', context); | |
var showBio = 'View full biography'; | |
var hideBio = 'Hide biography'; |
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
{# set a variable for social media icons | |
to later pass to the component template #} | |
{% | |
set social = [ | |
{ | |
url: content.field_card_social_link.0['#url'].uri, | |
icon: content.field_card_social_link.0['#title'], | |
}, | |
{ | |
url: content.field_card_social_link.1['#url'].uri, |
OlderNewer