SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
THE FOUNDATIONS OF BEING
“SASSY” IN DRUPAL

Utilizing the Foundation framework and Sass
together in Drupal harmony
2
NorthPoint Digital
www.northps.com
@northps

Ellie Roepken
Senior Consultant
elizabeth_roepken@northps.com
@ellieroepken
Shawn Mealey
Consultant
shawn_mealey@northps.com
@mealeyst
3
What is Foundation?
4
What is Foundation?
§  Responsive Grid-based CSS Framework
§  Developed using Sass
§  Compass/Gem Instructions:
§ http://foundation.zurb.com/docs/sass.html
§  Customizable:
§ http://foundation.zurb.com/download.php
§  Standalone Sass version:
§ https://github.com/zurb/foundation/tree/scss-standalone
§  Latest Version: 5.2.1
5
Why Use Foundation?
§  Strong baseline for building pages and prototypes
§ Example templates: http://foundation.zurb.com/templates.php
§  Easy-to-understand CSS class naming conventions
§  Useful Javascript libraries
§  Includes customizable UI components
§ Buttons, forms, typography, menus, alert boxes, etc.
6
Foundation Basics
7
Using Foundation: Default Settings
§  Breakpoints:
§ Small: 0px – 640px
§ Medium: 641px – 1024px
§ Large: 1025px – 1440px
§ Extra Large: 1441px – 1920px
§ Extra Extra Large: 1921+
§  Grid:
§ Rem/Em base: 16px
§ Gutter: 30px
§ Columns: 12
8
Using Foundation: Grid Classes
§  Row
§ Clears all columns and default side margins in columns.
§  Columns
§ Identifies how many columns an element should span
§ Layout can differ based on screen size
§ Pushing/Pulling
9
Using Foundation: Block Grid Classes
§  Responsive block grid for lists.
10
Using Foundation: Visibility Classes
§  Screen Resolution
§  Screen Orientation
§  Touch
11
Using Foundation: Utility Classes
§  Block alignment
§  Border radius
§  Text alignment
12
Foundation + Drupal
13
Using Sass in Drupal
1.  Download Sassy, Prepro and Libraries from Drupal.org
§ http://www.drupal.org/project/prepro
§ http://www.drupal.org/project/sassy
§ http://www.drupal.org/project/libraries
2.  Download PHPSass library to sites/all/libraries
§ https://github.com/richthegeek/phpsass
3.  Configure at /admin/config/media/prepro
4.  List SCSS/Sass files in theme .info file
§ Compiled by PHPSass library, cached by Drupal.
14
Using Foundation in Drupal - Themes
§  Base themes available:
§ ZURB Foundation
§  7.x-5.0-alpha3 – Foundation 5
§  7.x-4.0 – Foundation 4
§ Others currently in development:
§  Cogito
§  Zoundation
§  Build your own theme!
15
Using Foundation in Drupal: Custom Theme
§  Use jQuery Update
§  http://drupal.org/project/jquery_update
§  Include a newer version of jQuery
§  http://drupal.org/node/1058168
§  Optional: jQuery Migrate
§  https://github.com/jquery/jquery-migrate
16
Using Foundation in Drupal: Modules
§  Views Foundation
§  Adds Views output for Clearing, Orbit, Top Bar and pricing tables.
§  Zurb Orbit
§  Leverages the Media (7.x-2.x-dev) module to add images or videos to
a slideshow.
§  Zurb Clearing
§  Leverages the Media (7.x-2.x-dev) module to provide a gallery-type
layout with a responsive lightbox.
§  Zurb Section
§  Extends the Field Group module to include output for Foundation
Sections.
17
Using Foundation in Drupal: Modules
§  Zurb Interchange
§  Adds Interchange functionality to image fields in content type display
management.
§  Zurb Twenty Twenty
§  A sliding comparison tool for image fields.
§  Not included with Foundation by default, but can be added.
18
Foundation 4 Browser Support
19
Foundation 5 Browser Support
20
Demo
21
We lead
with experience.

Más contenido relacionado

La actualidad más candente

Using Bootstrap in Drupal 7
Using Bootstrap in Drupal 7Using Bootstrap in Drupal 7
Using Bootstrap in Drupal 7
Ivan Zugec
 
Introduction to Drupal Basics
Introduction to Drupal BasicsIntroduction to Drupal Basics
Introduction to Drupal Basics
Juha Niemi
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Acquia
 

La actualidad más candente (20)

Using Bootstrap in Drupal 7
Using Bootstrap in Drupal 7Using Bootstrap in Drupal 7
Using Bootstrap in Drupal 7
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
 
Deployer - Deployment tool for PHP
Deployer - Deployment tool for PHPDeployer - Deployment tool for PHP
Deployer - Deployment tool for PHP
 
Creating a Reusable Drupal Website for Higher Education - at USG Tech Day
Creating a Reusable Drupal Website for Higher Education - at USG Tech DayCreating a Reusable Drupal Website for Higher Education - at USG Tech Day
Creating a Reusable Drupal Website for Higher Education - at USG Tech Day
 
Drupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with ZenDrupal Camp Manila 2014 - Theming with Zen
Drupal Camp Manila 2014 - Theming with Zen
 
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
Learn Drupal's Most Powerful Site-Building Modules: Display Suite, Context, V...
 
Responsive Design in Drupal with Zen and Zen Grids
Responsive Design in Drupal with Zen and Zen GridsResponsive Design in Drupal with Zen and Zen Grids
Responsive Design in Drupal with Zen and Zen Grids
 
Introduction to Drupal Basics
Introduction to Drupal BasicsIntroduction to Drupal Basics
Introduction to Drupal Basics
 
Drupal
DrupalDrupal
Drupal
 
Drupal 8 - A Brief Introduction
Drupal 8 - A Brief IntroductionDrupal 8 - A Brief Introduction
Drupal 8 - A Brief Introduction
 
Creating a Reusable Drupal Website for Higher Education - Webinar
Creating a Reusable Drupal Website for Higher Education - WebinarCreating a Reusable Drupal Website for Higher Education - Webinar
Creating a Reusable Drupal Website for Higher Education - Webinar
 
Drupal Overview For Techies
Drupal Overview For TechiesDrupal Overview For Techies
Drupal Overview For Techies
 
Introduction to Drupal
Introduction to DrupalIntroduction to Drupal
Introduction to Drupal
 
Top 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal projectTop 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal project
 
Drupal - Blocks vs Context vs Panels
Drupal - Blocks vs Context vs PanelsDrupal - Blocks vs Context vs Panels
Drupal - Blocks vs Context vs Panels
 
The Wonderful World of Drupal 8 Multilingual
The Wonderful World of Drupal 8 MultilingualThe Wonderful World of Drupal 8 Multilingual
The Wonderful World of Drupal 8 Multilingual
 
Bootstrap base theme for Drupal 7
Bootstrap base theme for Drupal 7Bootstrap base theme for Drupal 7
Bootstrap base theme for Drupal 7
 
Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2Drupal Step-by-Step: How We Built Our Training Site, Part 2
Drupal Step-by-Step: How We Built Our Training Site, Part 2
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
 
Site Building Checklist DrupalCamp Ottawa
Site Building Checklist DrupalCamp OttawaSite Building Checklist DrupalCamp Ottawa
Site Building Checklist DrupalCamp Ottawa
 

Similar a The Foundations of Being Sassy in Drupal

Object oriented css graeme blackwood
Object oriented css graeme blackwoodObject oriented css graeme blackwood
Object oriented css graeme blackwood
drupalconf
 
Ts drupal6 module development v0.2
Ts   drupal6 module development v0.2Ts   drupal6 module development v0.2
Ts drupal6 module development v0.2
Confiz
 

Similar a The Foundations of Being Sassy in Drupal (20)

BDUG Responsive Web Theming - 7/23/12
BDUG Responsive Web Theming - 7/23/12BDUG Responsive Web Theming - 7/23/12
BDUG Responsive Web Theming - 7/23/12
 
2-5-14 “DSpace User Interface Innovation” Presentation Slides
2-5-14 “DSpace User Interface Innovation” Presentation Slides2-5-14 “DSpace User Interface Innovation” Presentation Slides
2-5-14 “DSpace User Interface Innovation” Presentation Slides
 
Drupal, git and sanity
Drupal, git and sanityDrupal, git and sanity
Drupal, git and sanity
 
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style GuidesAdvanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
Advanced Front End Architecture in D8: Sass, Gulp, & Living Style Guides
 
Pure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkPure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talk
 
Drupal Multi-Site Setup
Drupal Multi-Site SetupDrupal Multi-Site Setup
Drupal Multi-Site Setup
 
Drupal: an Overview
Drupal: an OverviewDrupal: an Overview
Drupal: an Overview
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in Libraries
 
Framework
FrameworkFramework
Framework
 
Framework
FrameworkFramework
Framework
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
 
Drupal 8 Configuration Management with Features
Drupal 8 Configuration Management with FeaturesDrupal 8 Configuration Management with Features
Drupal 8 Configuration Management with Features
 
Bootstrap4XPages webinar
Bootstrap4XPages webinarBootstrap4XPages webinar
Bootstrap4XPages webinar
 
Drupal Multi-site for Fun and Profit
Drupal Multi-site for Fun and ProfitDrupal Multi-site for Fun and Profit
Drupal Multi-site for Fun and Profit
 
PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)PSD to a Drupal Theme (using a base theme)
PSD to a Drupal Theme (using a base theme)
 
Phase2 Large Drupal Multisites (gta case study)
Phase2   Large Drupal Multisites (gta case study)Phase2   Large Drupal Multisites (gta case study)
Phase2 Large Drupal Multisites (gta case study)
 
Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016Responsive themeworkshop wcneo2016
Responsive themeworkshop wcneo2016
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
Object oriented css graeme blackwood
Object oriented css graeme blackwoodObject oriented css graeme blackwood
Object oriented css graeme blackwood
 
Ts drupal6 module development v0.2
Ts   drupal6 module development v0.2Ts   drupal6 module development v0.2
Ts drupal6 module development v0.2
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

The Foundations of Being Sassy in Drupal

  • 1. THE FOUNDATIONS OF BEING “SASSY” IN DRUPAL Utilizing the Foundation framework and Sass together in Drupal harmony
  • 2. 2 NorthPoint Digital www.northps.com @northps Ellie Roepken Senior Consultant elizabeth_roepken@northps.com @ellieroepken Shawn Mealey Consultant shawn_mealey@northps.com @mealeyst
  • 4. 4 What is Foundation? §  Responsive Grid-based CSS Framework §  Developed using Sass §  Compass/Gem Instructions: § http://foundation.zurb.com/docs/sass.html §  Customizable: § http://foundation.zurb.com/download.php §  Standalone Sass version: § https://github.com/zurb/foundation/tree/scss-standalone §  Latest Version: 5.2.1
  • 5. 5 Why Use Foundation? §  Strong baseline for building pages and prototypes § Example templates: http://foundation.zurb.com/templates.php §  Easy-to-understand CSS class naming conventions §  Useful Javascript libraries §  Includes customizable UI components § Buttons, forms, typography, menus, alert boxes, etc.
  • 7. 7 Using Foundation: Default Settings §  Breakpoints: § Small: 0px – 640px § Medium: 641px – 1024px § Large: 1025px – 1440px § Extra Large: 1441px – 1920px § Extra Extra Large: 1921+ §  Grid: § Rem/Em base: 16px § Gutter: 30px § Columns: 12
  • 8. 8 Using Foundation: Grid Classes §  Row § Clears all columns and default side margins in columns. §  Columns § Identifies how many columns an element should span § Layout can differ based on screen size § Pushing/Pulling
  • 9. 9 Using Foundation: Block Grid Classes §  Responsive block grid for lists.
  • 10. 10 Using Foundation: Visibility Classes §  Screen Resolution §  Screen Orientation §  Touch
  • 11. 11 Using Foundation: Utility Classes §  Block alignment §  Border radius §  Text alignment
  • 13. 13 Using Sass in Drupal 1.  Download Sassy, Prepro and Libraries from Drupal.org § http://www.drupal.org/project/prepro § http://www.drupal.org/project/sassy § http://www.drupal.org/project/libraries 2.  Download PHPSass library to sites/all/libraries § https://github.com/richthegeek/phpsass 3.  Configure at /admin/config/media/prepro 4.  List SCSS/Sass files in theme .info file § Compiled by PHPSass library, cached by Drupal.
  • 14. 14 Using Foundation in Drupal - Themes §  Base themes available: § ZURB Foundation §  7.x-5.0-alpha3 – Foundation 5 §  7.x-4.0 – Foundation 4 § Others currently in development: §  Cogito §  Zoundation §  Build your own theme!
  • 15. 15 Using Foundation in Drupal: Custom Theme §  Use jQuery Update §  http://drupal.org/project/jquery_update §  Include a newer version of jQuery §  http://drupal.org/node/1058168 §  Optional: jQuery Migrate §  https://github.com/jquery/jquery-migrate
  • 16. 16 Using Foundation in Drupal: Modules §  Views Foundation §  Adds Views output for Clearing, Orbit, Top Bar and pricing tables. §  Zurb Orbit §  Leverages the Media (7.x-2.x-dev) module to add images or videos to a slideshow. §  Zurb Clearing §  Leverages the Media (7.x-2.x-dev) module to provide a gallery-type layout with a responsive lightbox. §  Zurb Section §  Extends the Field Group module to include output for Foundation Sections.
  • 17. 17 Using Foundation in Drupal: Modules §  Zurb Interchange §  Adds Interchange functionality to image fields in content type display management. §  Zurb Twenty Twenty §  A sliding comparison tool for image fields. §  Not included with Foundation by default, but can be added.

Notas del editor

  1. Talk about what browser versions it supports, too.
  2. Add slides after here as a walkthrough for getting Foundation 4 into Drupal as a theme.
  3. Show code for this. (Foundation 4 base theme)
  4. Mention v3 compatibility with IE 7 and 8 due to the fact that mobile first was introduced in v4.