SlideShare a Scribd company logo
Responsive Design and
   Drupal Theming
      Suzanne Kennedy
        Co-founder 
       @evolvingweb
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
What is Responsive
     Design?
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Media Queries
Media Query
         Components
• Media Type (i.e. screen or print)
• Media Feature (i.e. max-width)
  <link rel="stylesheet" type="text/css"
  media="screen and (max-width: 480px)"
  href="/style.css" />
Targeting Large Screens
Targeting Small Screens
Other Media Features
• height
• device-width, device-height
• orientation
• resolution
• color
• aspect-ratio 
Browser Issues
Android Devices
Internet Explorer
Responsive Design and Drupal Theming
Responsive Menus
Menu Wrapping
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Images
Images that
are too wide
img {
  max-width: 100%;
}
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Other Options

• TinySrc Module (http://drupal.org/project/
  tinysrc)
• Set different image styles using Mobile Tools
  module (http://drupal.org/project/
  mobile_tools)
Responsive Forms
Form Element Width
Set Max Width

input {
  max-width: 100%;
}
jQuery Mobile
Tables
Avoid Grid-Style
     Tables
Responsive Design and Drupal Theming
Tabular Data
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Other Ideas


• Use Google Charts to show a pie chart
  instead of a table
• Provide a CSV download of the data
Sidebars
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
Panels
Responsive Design and Drupal Theming
Responsive Design and Drupal Theming
CSS to Adjust Panel
Responsive Design and Drupal Theming
Use CSS3
Font-face

@font-face {
   font-family: Futura;
   src: url("../fonts/Futura-Book.otf");
 }
Border-radius

#example1 {
  -moz-border-radius: 15px;
  border-radius: 15px;
}
Other CSS Tricks
Avoid
 absolute
positioning
iframe {
  max-width: 100%;
}
Responsive Drupal
  Base Themes
Responsive Design and Drupal Theming
Responsive Themes

• Omega Theme
• Adaptive Theme
• Square Grid
• Others...
Responsive Design and Drupal Theming
•   EW Blog: http://evolvingweb.ca/story/responsive-
    theming-how-apply-responsive-design-techniques-
    drupal-theme

•   Media Features: http://www.w3.org/TR/css3-
    mediaqueries/#media1

•   Responsive Tables: http://css-tricks.com/9096-
    responsive-data-tables/

•   Drupal Base Themes Poll: http://groups.drupal.org/
    node/175234

•   Responsive Design Testing: http://mattkersley.com/
    responsive/

•   A list apart Article: http://www.alistapart.com/
    articles/responsive-web-design/
Thank You!

More Related Content

PDF
Building Responsive Websites with Drupal
PPTX
Responsive Development (ZendCon 2012)
PDF
Intro to Drupal
PDF
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
PDF
Introduction to the Drupal - Web Experience Toolkit
PDF
Responsive Design in Drupal with Zen and Zen Grids
PDF
DrupalCamp NYC Panels Presentation - April 2014
PDF
Creating Dynamic Landing Pages for Drupal with Panels - Webinar
Building Responsive Websites with Drupal
Responsive Development (ZendCon 2012)
Intro to Drupal
Creating a Responsive Drupal Theme: Presentation from DrupalCamp Montreal 2012
Introduction to the Drupal - Web Experience Toolkit
Responsive Design in Drupal with Zen and Zen Grids
DrupalCamp NYC Panels Presentation - April 2014
Creating Dynamic Landing Pages for Drupal with Panels - Webinar

What's hot (20)

PPTX
Responsive design
PPTX
Lesson 08 WordPress part 2
ODP
Drupal - Blocks vs Context vs Panels
PDF
Drupal Site Building Checklist from DrupalCamp New Jersey
PDF
Responsive Web Design using ZURB Foundation
KEY
Getting started with CSS frameworks using Zurb foundation
PPT
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
PPTX
Bootstrap for Beginners
PPTX
Drupal Camp Manila 2014 - Theming with Zen
PDF
Put A Map On It! Enhanced geolocation in WordPress with Geo Mashup
PDF
Build Custom Surveys and Forms Natively in Drupal Gardens
PPT
W pthemes
PDF
Build a user experience on Android
PDF
Designing an Enterprise CSS Framework is Hard, Stephanie Rewis
PPTX
Ui and ux principles
PDF
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
PDF
Drupal Themes & Nucleus
PDF
Lab#10 navigation, links and hover rollovers
PDF
MIE Toolbox, a Case for Drupal as an Application Framework
PPT
Emkane RCC wp qs
Responsive design
Lesson 08 WordPress part 2
Drupal - Blocks vs Context vs Panels
Drupal Site Building Checklist from DrupalCamp New Jersey
Responsive Web Design using ZURB Foundation
Getting started with CSS frameworks using Zurb foundation
Creating Responsive Drupal Sites with Zen Grids and the Zen 5 Theme
Bootstrap for Beginners
Drupal Camp Manila 2014 - Theming with Zen
Put A Map On It! Enhanced geolocation in WordPress with Geo Mashup
Build Custom Surveys and Forms Natively in Drupal Gardens
W pthemes
Build a user experience on Android
Designing an Enterprise CSS Framework is Hard, Stephanie Rewis
Ui and ux principles
Creating Layouts and Landing Pages for Drupal 8 - DrupalCon Dublin
Drupal Themes & Nucleus
Lab#10 navigation, links and hover rollovers
MIE Toolbox, a Case for Drupal as an Application Framework
Emkane RCC wp qs
Ad

Similar to Responsive Design and Drupal Theming (20)

PPTX
Approaches to Responsive Wen Design & Development
KEY
Let's dig into the Omega Theme!
PDF
CSS3: Simply Responsive
PPTX
SEF 2014 - Responsive Design in SharePoint 2013
PPTX
Responsive Web Design & APEX Theme 25
PDF
CSS3: Ripe and Ready to Respond
PPTX
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
PDF
Responsive Web Design
PPTX
FITC - 2012-04-23 - Responsive Web Design
PDF
Great Responsive-ability Web Design
PPTX
Chapter 17: Responsive Web Design
PPTX
Responsive Web Design - Web & PHP Conference - 2013-09-18
PPTX
Media queries and frameworks
PDF
Rwd slidedeck
PDF
Responsive Web Design tips and tricks.
KEY
Trendsetting: Web Design and Beyond
PDF
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
PPT
Going Responsive with WordPress
PPTX
HTML5 on Mobile(For Designer)
PDF
Responsive Web Design - Devoxx UK - 2014-06-13
Approaches to Responsive Wen Design & Development
Let's dig into the Omega Theme!
CSS3: Simply Responsive
SEF 2014 - Responsive Design in SharePoint 2013
Responsive Web Design & APEX Theme 25
CSS3: Ripe and Ready to Respond
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design
FITC - 2012-04-23 - Responsive Web Design
Great Responsive-ability Web Design
Chapter 17: Responsive Web Design
Responsive Web Design - Web & PHP Conference - 2013-09-18
Media queries and frameworks
Rwd slidedeck
Responsive Web Design tips and tricks.
Trendsetting: Web Design and Beyond
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
Going Responsive with WordPress
HTML5 on Mobile(For Designer)
Responsive Web Design - Devoxx UK - 2014-06-13
Ad

More from Suzanne Dergacheva (20)

PDF
It's All About the Experience: What I’ve learnt from talking to thousands of ...
PDF
Building a Great User Experience for Content Editors in Drupal 8
PDF
Dipping Your Toe into Drupal 8 Module Development
PDF
Device-Agnostic Content Strategy for Drupal
PDF
Creating a Reusable Drupal Website for Higher Education - Webinar
PDF
Creating a Reusable Drupal Website for Higher Education - at USG Tech Day
PDF
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
PDF
What is Drupal? And Why is it Useful? Webinar
PDF
What is Drupal? An Introduction to Drupal 8
PDF
Using Core Themes in Drupal 8
PDF
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
PDF
Upgrading to Drupal 8: Benefits and Gotchas
PDF
Migrate for Site Builders from MidCamp 2016
PDF
The Wonderful World of Drupal 8 Multilingual
PDF
Creating a Drupal Install Profile for a Large Organization
PDF
Intro to Drupal Migrate for Site Builders
PDF
Drupal migrate-june2015
PDF
10 New Things You Can Do with Drupal 8 Out-of-the-Box
PDF
Creating a User-Friendly Search UI with Drupal - Presentation at DrupalCamp T...
PDF
Getting Started with Drupal 8 Theming - DrupalCamp Toronto 2014
It's All About the Experience: What I’ve learnt from talking to thousands of ...
Building a Great User Experience for Content Editors in Drupal 8
Dipping Your Toe into Drupal 8 Module Development
Device-Agnostic Content Strategy for Drupal
Creating a Reusable Drupal Website for Higher Education - Webinar
Creating a Reusable Drupal Website for Higher Education - at USG Tech Day
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
What is Drupal? And Why is it Useful? Webinar
What is Drupal? An Introduction to Drupal 8
Using Core Themes in Drupal 8
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Upgrading to Drupal 8: Benefits and Gotchas
Migrate for Site Builders from MidCamp 2016
The Wonderful World of Drupal 8 Multilingual
Creating a Drupal Install Profile for a Large Organization
Intro to Drupal Migrate for Site Builders
Drupal migrate-june2015
10 New Things You Can Do with Drupal 8 Out-of-the-Box
Creating a User-Friendly Search UI with Drupal - Presentation at DrupalCamp T...
Getting Started with Drupal 8 Theming - DrupalCamp Toronto 2014

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Empathic Computing: Creating Shared Understanding
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm
A Presentation on Artificial Intelligence
Encapsulation_ Review paper, used for researhc scholars
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Responsive Design and Drupal Theming

Editor's Notes

  • #2: \n\n\nWhat are media queries?\nYou&apos;ve probably used media queries before, you just didn&apos;t know it. &amp;#xA0;Media queries allow you to load different CSS for different types of displays. So you would have used this to load a print.css file only when the user prints a webpage. To target only screens, you would use &apos;screen&apos;.\n\nBut mediaqueries can also specify the screen-width. You can set the max-width at which the file is loaded, or the min-width.\n\nIn a Drupal .info file, media queries look like this.\nSo to target large screens, you could use the first one, and to target smaller screens, use the second one.\n\nDevice-width vs. Browser-width\nThe great thing about using min-width and max-width is that these target the browser-width. So you don&apos;t need to change your device width to test your changes, you can just resize your browser.\n(Demo?) If you use min-device-width and max-device-width, these will only target a screen that is physically a certain width.\n\nResolution\n\nInternet Explorer\nOf course, Internet Explorer is always the party pooper. Internet Explorer (up until IE9) doesn&apos;t support media queries. So you have to decide what work-around to use.\n\nAndroid\nIf you&apos;re like me, the first think you do after you&apos;ve written these queries is to pull out your phone and see how the site looks!&amp;#xA0;\n\nI was really disappointed to see that my site didn&apos;t look any different on my mobile phone.\n\nFor Android phones, which is what I have, the browser actually doesn&apos;t know what its width is. You have to add a viewport meta tag to your site for the browser to know its width.\n\nCSS3\n
  • #3: Designing for every device is the theme of the upcoming DrupalCon Denver. We all know that mobile devices have become ubiquitous, and with comes a change in how we approach designing for mobile devices.\nImage: DrupalCon Denver\n
  • #4: It&apos;s impossible to target every device and create a separate design for each one. Instead, the goal of responsive design is to build websites that adpat to the width of the browser that the user chooses.\n\nThis doesn&apos;t mean&amp;#xA0;\n
  • #5: Creating a responsive design is not as easy as adding a couple extra CSS files to your theme. It does involve an actual redesign and putting some thought into the ideal layout for smaller and larger screens.&amp;#xA0;\n\nAcquia switched to the Omega theme a while ago, and their website still isn&apos;t responsive. It does take a lot of time, and usually involves a site redesign.&amp;#xA0;\n\nEven if you&apos;re using a base theme that is responsive.\n
  • #6: What is responsive design?\n\nThe goal of building a responsive website is that it will adapt to anyone&apos;s screen width.&amp;#xA0;\n
  • #7: I redesigned the Evolving Web site to be responsive, and it involved changing a number of views and panels, changing image styles, re-doing the homepage, and landing page-style layouts, and adjusting the menu items.\n\nAnd if you&apos;re like me, once you start you can&apos;t stop. Moving around blocks and columns always makes you want to do more in changing the style of the site.\n
  • #8: The approach that I took was to start with a flexible-width layout that would take up the entire width of the browser.\nIf you don&apos;t remember flexible width websites, think of Wikipedia or a Drupal admin theme.&amp;#xA0;\n\nBut of course, you don&apos;t want your website to expand across someone&apos;s 30 inch browser. For most &amp;#xA0;use cases, it&apos;s kind of sprawling and it&apos;s really hard to read text that goes on forever across the page.&amp;#xA0;\n\nSo the next step is to limit the width of the website for larger screen-sizes.&amp;#xA0;\n
  • #9: And then for really small screensizes, less than 780px, you can start re-aligning and removing elements. So if you show three portfolio images at 960px, maybe you want to cut that down to 2 at 780px, or change the widths of these images.&amp;#xA0;\n
  • #10: And you can use media queries to target browsers of a particular width and load CSS for that particular browser width.&amp;#xA0;&amp;#xA0;\n
  • #11: What is responsive design?\n
  • #12: But of course, you don&apos;t want your website to expand across someone&apos;s 30 inch browser. For most &amp;#xA0;use cases, it&apos;s kind of sprawling and it&apos;s really hard to read text that goes on forever across the page.&amp;#xA0;\n\nSo the next step is to limit the width of the website for larger screen-sizes.&amp;#xA0;\n
  • #13: \n
  • #14: \n
  • #15: What is responsive design?\n
  • #16: What is responsive design?\n
  • #17: Conditional Stylesheets or load them with&amp;#xA0; drupal_add_css()\n
  • #18: The approach that I took was to start with a flexible-width layout that would take up the entire width of the browser.\nIf you don&apos;t remember flexible width websites, think of Wikipedia or a Drupal admin theme.&amp;#xA0;\n\nBut of course, you don&apos;t want your website to expand across someone&apos;s 30 inch browser. For most &amp;#xA0;use cases, it&apos;s kind of sprawling and it&apos;s really hard to read text that goes on forever across the page.&amp;#xA0;\n\nSo the next step is to limit the width of the website for larger screen-sizes.&amp;#xA0;\n
  • #19: What is responsive design?\n
  • #20: What is responsive design?\n
  • #21: What is responsive design?\n
  • #22: What is responsive design?\n
  • #23: What is responsive design?\n
  • #24: \n
  • #25: \n
  • #26: \n
  • #27: \n
  • #28: \n
  • #29: \n
  • #30: \n
  • #31: \n
  • #32: By default in Drupal, form elements won&amp;#x2019;t resize for small screens.\n
  • #33: Solve this by using max-width: 100%;\n\nYou can also check out the jQuery mobile module if you want to make your forms more app-like..\n
  • #34: \n
  • #35: \n
  • #36: What is responsive design?\n
  • #37: \n
  • #38: \n
  • #39: \n
  • #40: \n
  • #41: \n
  • #42: \n
  • #43: \n
  • #44: \n
  • #45: \n
  • #46: \n
  • #47: \n
  • #48: \n
  • #49: \n
  • #50: \n
  • #51: Watch out for elements that are altered with javascript, including slideshows and text replacement tools&amp;#xA0;&amp;#xA0;\n
  • #52: Watch out for elements that are altered with javascript, including slideshows and text replacement tools&amp;#xA0;&amp;#xA0;\n
  • #53: \n
  • #54: What is responsive design?\n
  • #55: \n
  • #56: Themes that&amp;#xA0;\n
  • #57: What is responsive design?\n
  • #58: \n
  • #59: What is responsive design?\n
  • #60: \n
  • #61: \n