convert a site template to a drupal 7 theme using sass or less and zurb foundation or twitter...

13
Adapting a Site Template Using Drupal Themes and SASS/LESS

Upload: carlos-ospina

Post on 05-Dec-2014

2.112 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Adapting a Site Template

Using Drupal Themes and SASS/LESS

Page 2: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Responsive Design

• Screen size

• Reorder, show or hide

Page 3: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Some Tools to Use• SASS

• What are pre-processors

• Mixins!

• Little example

• Semantic CSS Vs. Non-semantic

• Frameworks

• Bootstrap

• Zurb Foundation

• Zen Grids

Page 4: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Remember!• Get a template

• Use same framework or similar

• Start locally

• Easy Vs not so easy

• Using classes

• Using Mixins

Page 5: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

What we use• Fences

• Block Class

• Node Class

• Views

• DS & Extras

• Field Groups

• Panels

• Views Responsive Grid

• Flexslider / Nivo Slider

• Title

• Blockify

• Extra Modules

Page 6: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

First Things First, Will It Look Nice?

• The Template search.

• What should I look for.

• My rationale.

• You are not alone.

Page 7: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Try To M.I.S.S. This

• Keep it in the front end.

• Fix page.tpl.php only if needed (we want to avoid this)

• Why I’ve done it and where

Page 8: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

And The Force May Be With Us If…

• Start Top to bottom

• Attack one section - Feature at a time

• Convert to SASS / LESS when possible.

• Use variables as crazy (Theme Colors, Fonts)

Page 9: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Plan Wisely• Design Content types

• What is in place.

• Manage Display (DS).

• Create Views (Global Text)..

• Panels.

• Existing Modules

• JQuery Scripts

Page 10: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

The Grid Is The Backbone

Design the Grid per device

• Adding grid clases

• Using Mixins

Page 11: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Fill It Nicely

• Apply the “Prettiness”.

• Use SASS Changes and create mixins as desired

• Applying the javascripts.

• Remember, You Are Not Alone.

Page 12: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

Check progress

• Using Firebug to debug

• Mobile debugging

• Screen size vs remote debugging.

Page 13: Convert a Site Template to a Drupal 7 Theme using SASS or LESS and Zurb Foundation or Twitter Bootstrap

What Am I Missing?Shoot your questions and comments!