SlideShare a Scribd company logo
Let's Dig Into the
Omega Theme
October 27, 2012




             http://bit.ly/omega-training
               http://bit.ly/omega-tips
brought to you by
Kendall Totten
● Bachelors in
  Communication Technology
  & Graphic Design from
  Eastern Michigan University
● Drupal Designer & Theme
  Specialist at Mediacurrent
● Web Design = 7+ years
● Drupal = 4+ years             @Starryeyez024
Welcome!
● What’s Responsive Design?
● What are Media Queries?
● How does Omega use
  Media Queries?
● How do I use Omega to
  layout my site?
The Why
Mobile pageviews in May 2011: 5.8%

Mobile pageviews in May 2012: 10.1%

         Today in US and Western Europe,
         90% of mobile subscribers have
         an Internet-ready phone.

                   source: http://mobithinking.com/
The What
So we know we need a mobile-friendly site.
How do we make our bulky website look
good on a mobile device?
Responsive Web
Design (RWD)
means designing a
website in a manner
that changes the
layout of the site
based on the width
of the user’s device
or screen.
Responsive Design
The How
CSS media queries allow us to inspect the
physical characteristics of the device
rendering our work.

Specifically, how wide
(in pixels) is it?
CSS Media Queries
@media screen and
(min-device-width: 700px) {
   body { font-size: 13px }
 }

@media only screen and
(min-width: 700px) and (max-width:
980px) and (orientation: landscape){
   body { line-height: 1.2 }
 }
Great! How do I make
Drupal Responsive?

The Omega
Theme!
The Omega Theme
● The Omega Base Theme for Drupal 7 is an
  HTML5/960 grid base theme that is 100%
  configurable.
● It can be configured for content-first layouts.
● Each region can be resized and rearranged
  within its zone, based on the width of the
  screen.
Omega Theory
● The global.css contains the basic design
  elements of the site and is always loaded.

                    Then, CSS3 Media queries
                    determine what the size
                    of the window is and
                    additional stylesheets will
                    be tacked on.
Omega Stylesheets
● Mobile = global.css
● Tablet = global.css + default.css + narrow.css
● Normal = global.css + default.css + narrow.css
  + normal.css
● Wide = global.css + default.css + narrow.css +
  normal.css + wide.css
Modified Queries
●   Mobile = global.css
●   Tablet = global.css + default.css + narrow.css
●   Normal = global.css + default.css + normal.css
●   Wide = global.css + default.css + wide.css

Example of my narrow layout media query:
all and (min-width: 740px) and
(max-width: 980px)
Omega Breakpoints
●   small (mobile) - 0px to 740px wide
●   narrow (tablet) - 741px to 979px wide
●   normal (laptop) - 980px to 1219px wide
●   wide (monitor) - 1220px and wider
Omega Layout 101
●   3 Sections: Header, Content, Footer
●   Each Section holds Zones
●   Each Zone holds Regions
●   Each Region can hold blocks
●   Blocks hold your content!
The Grid System
● Each Omega Zone can be a
  24, 16, or 12 column grid.
The Grid System
  Your 12 Column Grid System is like a lego.




Region:                              Region:
Sidebar First                   Sidebar Second
                  Region:
                  Content
The Grid System
Your 12-column grid layout on a monitor.
The Grid System
Your 12-column grid layout on a tablet.
The Grid System
Your 12-column grid layout on drugs.
Site Layout
So... what happens on mobile?




                         The regions stack.
Site Layout
● Use "Position" to arrange Regions
  on tablets & desktops
  left to right -> [ 1 ] [ 2 ] [ 3 ]
● Use "Weight" to arrange Regions
  for mobile
  [ 1 ] top
  [ 2 ] to
  [ 3 ] bottom
Debugging
Libraries
Formalize       Media Queries


        =
Equal Heights
Toggle Styles
● Toggle off extraneous Omega or Drupal
  stylesheets before you begin writing your
  custom styles.
● If you add a custom stylesheet to your
  theme .info file, clear the cache, then go to
  this tab and enable your new CSS file.
Omega is great, but it works
 even better with its friends.
Omega Tools
●   Sub-theme Wizard
●   Drush Integration
●   Easily Revert Theme Settings
●   Export Theme Settings (HUGE!)
Omega Tools
Omega only looks to the theme settings page
OR the theme_name.info file



                                CODE:
                              .info file
Delta Module
● Delta allows you to make copies
  of your theme settings =
  different layouts for different
  sections of your site (apply as a
  reaction in Context).
● Delta makes things like 'Page
  Title' & 'Main page content'
  appear as blocks
Tips for RWD
● Make a mobile & tablet
  wireframe if possible, to
  visualize how the whole site
  will look on a smaller device.
● Theme the mobile size first
● Don't put large background
  images in the global.css

               http://bit.ly/omega-tips
Tips for RWD
● Designing in Photoshop?
  Download the grid-lines plugin
  GuideGuide: www.guideguide.me
● Consider the many ways to
  implement a mobile-friendly
  menu: http://www.mediacurrent.
  com/blog/
  responsive-design-mobile-menu-options
CSS3 PIE (progressive
internet explorer) makes
IE 6-9 capable of rendering
some of the most useful
CSS3 decoration features:
● border-radius
● box-shadow
● border-image
● linear-gradient

http://drupal.org/project/css3pie
Resources
●   Modernizr - modernizr.com
●   HTML5 Shim -code.google.com/p/html5shim
●   CS Adaptive Images - drupal.org/project/cs_adaptive_image
●   Adaptive Images -drupal.org/project/adaptive_image
●   Flexslider - drupal.org/project/flexslider
●   Display Suite - drupal.org/project/ds
●   Context - drupal.org/project/context
●   Style Guide - drupal.org/project/styleguide
●   Convert images to pure code: http://webcodertools.
    com/imagetobase64converter
Resources
●   http://www.fontsquirrel.com
●   http://caniuse.com
●   http://mobitest.akamai.com/
●   http://html5doctor.com/
●   https://saucelabs.com/
●   http://www.springbox.com/mobilizer/
●   http://html.adobe.com/edge/inspect/
Thank You!


       Questions
Kendall Totten
@Starryeyez024
www.mediacurrent.com

More Related Content

Similar to Dig into the omega theme

Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
Mario Noble
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
Mike Wilcox
 
An Introduction to Responsive Design
An Introduction to Responsive DesignAn Introduction to Responsive Design
An Introduction to Responsive Design
Valtech UK
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
Tirthesh Ganatra
 
Optimal Mobile Web Experiences
Optimal Mobile Web ExperiencesOptimal Mobile Web Experiences
Optimal Mobile Web Experiences
Daniel Stout
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
Ben MacNeill
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
psophy
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
mintersam
 
Responsive Web Design On Student's day
Responsive Web Design On Student's day Responsive Web Design On Student's day
Responsive Web Design On Student's day psophy
 
Responsive website building approach. Olga Smolyankina and Kate Kalashnikova
Responsive website building approach. Olga Smolyankina and Kate KalashnikovaResponsive website building approach. Olga Smolyankina and Kate Kalashnikova
Responsive website building approach. Olga Smolyankina and Kate KalashnikovaADCI Solutions
 
Designing for mobile
Designing for mobileDesigning for mobile
Designing for mobile
Dee Sadler
 
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
Acquia
 
Responsive drupal and omega theme
Responsive drupal and omega themeResponsive drupal and omega theme
Responsive drupal and omega theme
Shafqat Hussain
 
Responsive Implementation in Drupal
Responsive Implementation in DrupalResponsive Implementation in Drupal
Responsive Implementation in Drupal
Mukesh Agarwal
 
Responsive Web Design_2013
Responsive Web Design_2013Responsive Web Design_2013
Responsive Web Design_2013
Achieve Internet
 
Designing responsive web design in FIGMA
Designing responsive web design in FIGMADesigning responsive web design in FIGMA
Designing responsive web design in FIGMA
Fibonalabs
 
Responsive Design: Building for a Modern Web
Responsive Design: Building for a Modern WebResponsive Design: Building for a Modern Web
Responsive Design: Building for a Modern Web
Harvard Web Working Group
 
Bootstrap Tutorial
Bootstrap Tutorial Bootstrap Tutorial
Bootstrap Tutorial
Luan Nguyen
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Suzanne Dergacheva
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
Suzanne Dergacheva
 

Similar to Dig into the omega theme (20)

Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
An Introduction to Responsive Design
An Introduction to Responsive DesignAn Introduction to Responsive Design
An Introduction to Responsive Design
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
 
Optimal Mobile Web Experiences
Optimal Mobile Web ExperiencesOptimal Mobile Web Experiences
Optimal Mobile Web Experiences
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Mobile Best Practices
Mobile Best PracticesMobile Best Practices
Mobile Best Practices
 
Responsive Web Design On Student's day
Responsive Web Design On Student's day Responsive Web Design On Student's day
Responsive Web Design On Student's day
 
Responsive website building approach. Olga Smolyankina and Kate Kalashnikova
Responsive website building approach. Olga Smolyankina and Kate KalashnikovaResponsive website building approach. Olga Smolyankina and Kate Kalashnikova
Responsive website building approach. Olga Smolyankina and Kate Kalashnikova
 
Designing for mobile
Designing for mobileDesigning for mobile
Designing for mobile
 
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
Responsive & Ready: Why Drupal 8 is Ideal for Building Mobile-first Experienc...
 
Responsive drupal and omega theme
Responsive drupal and omega themeResponsive drupal and omega theme
Responsive drupal and omega theme
 
Responsive Implementation in Drupal
Responsive Implementation in DrupalResponsive Implementation in Drupal
Responsive Implementation in Drupal
 
Responsive Web Design_2013
Responsive Web Design_2013Responsive Web Design_2013
Responsive Web Design_2013
 
Designing responsive web design in FIGMA
Designing responsive web design in FIGMADesigning responsive web design in FIGMA
Designing responsive web design in FIGMA
 
Responsive Design: Building for a Modern Web
Responsive Design: Building for a Modern WebResponsive Design: Building for a Modern Web
Responsive Design: Building for a Modern Web
 
Bootstrap Tutorial
Bootstrap Tutorial Bootstrap Tutorial
Bootstrap Tutorial
 
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
 

More from DrupalcampAtlanta2012

Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
DrupalcampAtlanta2012
 
Designing for Content Management Systems
Designing for Content Management SystemsDesigning for Content Management Systems
Designing for Content Management Systems
DrupalcampAtlanta2012
 
Advanced theming
Advanced themingAdvanced theming
Advanced theming
DrupalcampAtlanta2012
 
Drupalcamp armedia phonegap_oct2012_print
Drupalcamp armedia phonegap_oct2012_printDrupalcamp armedia phonegap_oct2012_print
Drupalcamp armedia phonegap_oct2012_print
DrupalcampAtlanta2012
 
What to do when things go wrong with Drupal
What to do when things go wrong with DrupalWhat to do when things go wrong with Drupal
What to do when things go wrong with Drupal
DrupalcampAtlanta2012
 
Talking to Web Services
Talking to Web ServicesTalking to Web Services
Talking to Web Services
DrupalcampAtlanta2012
 
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
Drupal + HTML5 + CSS3 + JS = Rich Internet ApplicationDrupal + HTML5 + CSS3 + JS = Rich Internet Application
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
DrupalcampAtlanta2012
 
Drupal Rules!
Drupal Rules!Drupal Rules!
Drupal Rules!
DrupalcampAtlanta2012
 

More from DrupalcampAtlanta2012 (9)

Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
Getting Started with Drupal Services with Randall Kent @ DrupalCamp Atlanta 2012
 
Designing for Content Management Systems
Designing for Content Management SystemsDesigning for Content Management Systems
Designing for Content Management Systems
 
Advanced theming
Advanced themingAdvanced theming
Advanced theming
 
Drupalcamp armedia phonegap_oct2012_print
Drupalcamp armedia phonegap_oct2012_printDrupalcamp armedia phonegap_oct2012_print
Drupalcamp armedia phonegap_oct2012_print
 
What to do when things go wrong with Drupal
What to do when things go wrong with DrupalWhat to do when things go wrong with Drupal
What to do when things go wrong with Drupal
 
Getting started with Drush
Getting started with DrushGetting started with Drush
Getting started with Drush
 
Talking to Web Services
Talking to Web ServicesTalking to Web Services
Talking to Web Services
 
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
Drupal + HTML5 + CSS3 + JS = Rich Internet ApplicationDrupal + HTML5 + CSS3 + JS = Rich Internet Application
Drupal + HTML5 + CSS3 + JS = Rich Internet Application
 
Drupal Rules!
Drupal Rules!Drupal Rules!
Drupal Rules!
 

Recently uploaded

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 

Recently uploaded (20)

AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 

Dig into the omega theme

  • 1. Let's Dig Into the Omega Theme October 27, 2012 http://bit.ly/omega-training http://bit.ly/omega-tips
  • 3. Kendall Totten ● Bachelors in Communication Technology & Graphic Design from Eastern Michigan University ● Drupal Designer & Theme Specialist at Mediacurrent ● Web Design = 7+ years ● Drupal = 4+ years @Starryeyez024
  • 4. Welcome! ● What’s Responsive Design? ● What are Media Queries? ● How does Omega use Media Queries? ● How do I use Omega to layout my site?
  • 5. The Why Mobile pageviews in May 2011: 5.8% Mobile pageviews in May 2012: 10.1% Today in US and Western Europe, 90% of mobile subscribers have an Internet-ready phone. source: http://mobithinking.com/
  • 6. The What So we know we need a mobile-friendly site. How do we make our bulky website look good on a mobile device?
  • 7. Responsive Web Design (RWD) means designing a website in a manner that changes the layout of the site based on the width of the user’s device or screen.
  • 9.
  • 10. The How CSS media queries allow us to inspect the physical characteristics of the device rendering our work. Specifically, how wide (in pixels) is it?
  • 11. CSS Media Queries @media screen and (min-device-width: 700px) { body { font-size: 13px } } @media only screen and (min-width: 700px) and (max-width: 980px) and (orientation: landscape){ body { line-height: 1.2 } }
  • 12. Great! How do I make Drupal Responsive? The Omega Theme!
  • 13. The Omega Theme ● The Omega Base Theme for Drupal 7 is an HTML5/960 grid base theme that is 100% configurable. ● It can be configured for content-first layouts. ● Each region can be resized and rearranged within its zone, based on the width of the screen.
  • 14. Omega Theory ● The global.css contains the basic design elements of the site and is always loaded. Then, CSS3 Media queries determine what the size of the window is and additional stylesheets will be tacked on.
  • 15. Omega Stylesheets ● Mobile = global.css ● Tablet = global.css + default.css + narrow.css ● Normal = global.css + default.css + narrow.css + normal.css ● Wide = global.css + default.css + narrow.css + normal.css + wide.css
  • 16. Modified Queries ● Mobile = global.css ● Tablet = global.css + default.css + narrow.css ● Normal = global.css + default.css + normal.css ● Wide = global.css + default.css + wide.css Example of my narrow layout media query: all and (min-width: 740px) and (max-width: 980px)
  • 17. Omega Breakpoints ● small (mobile) - 0px to 740px wide ● narrow (tablet) - 741px to 979px wide ● normal (laptop) - 980px to 1219px wide ● wide (monitor) - 1220px and wider
  • 18. Omega Layout 101 ● 3 Sections: Header, Content, Footer ● Each Section holds Zones ● Each Zone holds Regions ● Each Region can hold blocks ● Blocks hold your content!
  • 19.
  • 20. The Grid System ● Each Omega Zone can be a 24, 16, or 12 column grid.
  • 21. The Grid System Your 12 Column Grid System is like a lego. Region: Region: Sidebar First Sidebar Second Region: Content
  • 22. The Grid System Your 12-column grid layout on a monitor.
  • 23. The Grid System Your 12-column grid layout on a tablet.
  • 24. The Grid System Your 12-column grid layout on drugs.
  • 25. Site Layout So... what happens on mobile? The regions stack.
  • 26. Site Layout ● Use "Position" to arrange Regions on tablets & desktops left to right -> [ 1 ] [ 2 ] [ 3 ] ● Use "Weight" to arrange Regions for mobile [ 1 ] top [ 2 ] to [ 3 ] bottom
  • 28. Libraries Formalize Media Queries = Equal Heights
  • 29. Toggle Styles ● Toggle off extraneous Omega or Drupal stylesheets before you begin writing your custom styles. ● If you add a custom stylesheet to your theme .info file, clear the cache, then go to this tab and enable your new CSS file.
  • 30. Omega is great, but it works even better with its friends.
  • 31. Omega Tools ● Sub-theme Wizard ● Drush Integration ● Easily Revert Theme Settings ● Export Theme Settings (HUGE!)
  • 32. Omega Tools Omega only looks to the theme settings page OR the theme_name.info file CODE: .info file
  • 33. Delta Module ● Delta allows you to make copies of your theme settings = different layouts for different sections of your site (apply as a reaction in Context). ● Delta makes things like 'Page Title' & 'Main page content' appear as blocks
  • 34. Tips for RWD ● Make a mobile & tablet wireframe if possible, to visualize how the whole site will look on a smaller device. ● Theme the mobile size first ● Don't put large background images in the global.css http://bit.ly/omega-tips
  • 35. Tips for RWD ● Designing in Photoshop? Download the grid-lines plugin GuideGuide: www.guideguide.me ● Consider the many ways to implement a mobile-friendly menu: http://www.mediacurrent. com/blog/ responsive-design-mobile-menu-options
  • 36. CSS3 PIE (progressive internet explorer) makes IE 6-9 capable of rendering some of the most useful CSS3 decoration features: ● border-radius ● box-shadow ● border-image ● linear-gradient http://drupal.org/project/css3pie
  • 37. Resources ● Modernizr - modernizr.com ● HTML5 Shim -code.google.com/p/html5shim ● CS Adaptive Images - drupal.org/project/cs_adaptive_image ● Adaptive Images -drupal.org/project/adaptive_image ● Flexslider - drupal.org/project/flexslider ● Display Suite - drupal.org/project/ds ● Context - drupal.org/project/context ● Style Guide - drupal.org/project/styleguide ● Convert images to pure code: http://webcodertools. com/imagetobase64converter
  • 38. Resources ● http://www.fontsquirrel.com ● http://caniuse.com ● http://mobitest.akamai.com/ ● http://html5doctor.com/ ● https://saucelabs.com/ ● http://www.springbox.com/mobilizer/ ● http://html.adobe.com/edge/inspect/
  • 39. Thank You! Questions Kendall Totten @Starryeyez024 www.mediacurrent.com