Skip to content

Instantly share code, notes, and snippets.

View evanmwillhite's full-sized avatar

Evan Willhite evanmwillhite

  • ActiveCampaign
  • Nashville, TN
View GitHub Profile
{#
/**
* @file
* Default theme implementation to display a paragraph.
*
* Available variables:
* - paragraph: Full paragraph entity.
* - id: The paragraph ID.
* - bundle: The type of the paragraph, for example, "image" or "text".
* - authorid: The user ID of the paragraph author.
@evanmwillhite
evanmwillhite / menu.js
Last active September 27, 2017 18:20
Simple Menu Javascript Example
/**
* @file
* A JavaScript file containing menu functionality (small/large screen)
*
*/
(function (Drupal) {
Drupal.behaviors.mainMenu = {
attach: function (context) {
@evanmwillhite
evanmwillhite / menu.scss
Created September 29, 2017 17:53
Example SCSS/CSS
// Menu Breakpoint
$main-menu-medium: 43em;
// Nav
.main-nav {
display: none;
@include breakpoint($main-menu-medium) {
display: block;
}