SlideShare a Scribd company logo
1 of 38
Responsive design
Less Framework 4.0
Leander Lindahl
designer | Popolo

e-mail: leander@popolo.se
drupal-name: leanderl

Designer, Accademia Italiana,
Florence, Italy
Bachelor in Business Administration, Lund
University, Sweden
LESS IS NOT LESS
Scope of the session
  Responsive design in terms of CSS3
  media queries
  Basic concept of using Less Framework
  in CSS
  Putting it into Drupal
What’s the deal with
responsive design?
”It’s what some of us were going for with
“liquid” web design back in the 1990s, only
it doesn’t suck.”
Jeffrey Zeldman
Responsive design
= CSS3 media queries




image: www.lessframework.com
Responsive design
= CSS3 media queries
Responsive design
= CSS3 media queries

 /* Default CSS */
 #page { width:1060px; }


 @media only screen and (min-width: 480px) and (max-width: 767px) {
     /* CSS for this particular view-port */
     #page { width:436px }
 }
No support in IE6, IE7, IE8 (as usual)




http://www.smashingmagazine.com/2010/02/11/the-life-times-and-death-of-
internet-explorer-6-comic-strip/
Supported by IE9 – yeay!




http://www.smashingmagazine.com/the-smashing-cartoons/
Browsers without support for CSS3
and media queries get served the
default version of the site, just as they did
before implementing the framework.
Gettin’ down with
LESS Framework 4.0

how it works…
Templates available for
Fireworks, Photoshop, OmniGraffle




OmniGraffle: http://uprootinc.com/blog/less-framework-grid-omnigraffle-stencil
Fireworks, Photoshop, Illustrator: http://www.aripalo.fi/lessguides4/
Wireframing PDF: http://richardmetzler.posterous.com/less-framework-4-grid-pdfs-to-wireframe-and-s
Step 1: default design (desktop)
Default version
Step 1: default design (desktop)
Default version




                  /*	    	        Default Layout: 992px.
                  	      	        Gutters: 24px.
                  	      	        Outer margins: 48px.
                  	      	        Leftover space for scrollbars @1024px: 32px.
                  -------------------------------------------------------------------------------
                  cols       1     2      3        4       5     6     7     8     9     10
                  px         68    160    252      344     436   528   620   712   804   896   */
Step 2: Tablet Layout (iPad)
Step 2: Tablet Layout (iPad)




            /*	    	        Tablet Layout: 768px.
            	      	        Gutters: 24px.
            	      	        Outer margins: 28px.
            	      	        Inherits styles from: Default Layout.
            -----------------------------------------------------------------
            cols       1     2      3        4      5     6     7     8
            px         68    160    252      344    436   528   620   712   */
Step 3: Mobile layout

                           Carrier          12:00 PM
                                            Page Title

                        http://www.domain.com            Google
Step 3: Mobile layout

                                                          Carrier          12:00 PM
                                                                           Page Title

                                                       http://www.domain.com            Google




            /*	    	         Mobile Layout: 320px.
            	      	         Gutters: 24px.
            	      	         Outer margins: 34px.
            	      	         Inherits styles from: Default Layout.
            ---------------------------------------------
            cols       1      2
            px         114        252   */
Step 4: Wide mobile

                         Carrier                  12:00 PM
                                                  Page Title

                      http://www.domain.com                                             Google




                                                                Google
                                                   Page Title
                                       12:00 PM


                                                                http://www.domain.com
                                       Carrier
Step 4: Wide mobile

                                                                            Carrier                  12:00 PM
                                                                                                     Page Title

                                                                         http://www.domain.com                                             Google




                                                                                                                   Google
                                                                                                      Page Title
                                                                                          12:00 PM


                                                                                                                   http://www.domain.com
                                                                                          Carrier
  /*	    	        Wide Mobile Layout: 480px.
  	      	        Gutters: 24px.
  	      	        Outer margins: 22px.
  	      	        Inherits styles from: Default Layout, Mobile Layout.
  ------------------------------------------------------------
  cols       1     2      3        4     5
  px         68    160    252      344   436   */
Step 5: All together now…

                                                                     Carrier          12:00 PM
                                                                                      Page Title

                                                                  http://www.domain.com            Google




                                          Google
                             Page Title
                  12:00 PM


                                          http://www.domain.com
                  Carrier
Doin’ da responsive thingy
wid da Drupal thingy
steppenwolf.info
name = Steppenwolf
description = Steppenwolf Less Framwork 4.0 Demo Theme by Popolo
version = VERSION
core = 7.x


; Stylesheets
stylesheets[all][] = css/less-framework.css                        The LESS framework
stylesheets[screen][] = css/style.css                              The default style
stylesheets[screen][] = css/responsive.css                         The ”responsiveness” goes here

; Regions
regions[header] = Header
regions[searchbar] = Search bar
regions[highlighted] = Highlighted
regions[help] = Help
regions[content] = Content
regions[sidebar] = Sidebar
regions[footer_left] = Footer left
regions[footer_right] = Footer right
NO HTML5 in this example – sorry
<article>
   <header>
      <h1>Why Hello</h1>
   </header>


   <section>
      <p></p>
   </section>


   <section>
      <p></p>
      <p></p>
      <ul></ul>
   </section>


</article>
Steppenwolf page.tpl.php
Structure of page.tpl.php

header-wrapper
unimited width    header – fixed width



                  main – fixed width

main-wrapper       content                sidebar
unlimited width




footer-wrapper
                  footer – fixed width
unlimited width



                                           fixed width for      unlimited width
                                        LESS FRAMEWORK      for background color
CSS default layout
                                                                                    Structure of page.tpl.php

                                                                                    header-wrapper
/*	      	        Default Layout: 992px.                                            unimited width    header – fixed width



	        	        Gutters: 24px.                                                                      main – fixed width

	        	        Outer margins: 48px.                                              main-wrapper       content              sidebar
                                                                                    unlimited width

	        	        Leftover space for scrollbars @1024px: 32px.
-------------------------------------------------------------------------------
                                                                                    footer-wrapper
                                                                                                      footer – fixed width
cols         1     2       3       4       5     6     7     8     9     10         unlimited width



px           68    160     252     344     436   528   620   712   804   896   */




#header, #main, #footer {
      width:896px;
      padding: 24px 48px 0;
      margin:0 auto;
}


#content {
      width:620px;
      margin-right:24px;
}


#sidebar {
      width:252px;
}
CSS tablet layout
                                                                       Structure of page.tpl.php

                                                                       header-wrapper
/*	      	        Tablet Layout: 768px.                                unimited width    header – fixed width



	        	        Gutters: 24px.                                                         main – fixed width

	        	        Outer margins: 28px.                                 main-wrapper       content              sidebar
                                                                       unlimited width

	        	        Inherits styles from: Default Layout.
-----------------------------------------------------------------
                                                                       footer-wrapper
                                                                                         footer – fixed width
cols         1     2       3       4      5     6     7     8          unlimited width



px           68    160     252     344    436   528   620   712   */
@media only screen and (min-width: 768px) and (max-width: 991px) {


#header, #main, #footer {
      width:712px;
      padding: 24px 28px 0;
      margin:0 auto;
}


#content {
      width:436px;
      margin-right:24px;
}


#sidebar {
      width:252px;
}
CSS mobile layout
                                                           Structure of page.tpl.php

                                                           header-wrapper
/*	      	         Mobile Layout: 320px.                   unimited width    header – fixed width



	        	         Gutters: 24px.                                            main – fixed width

	        	         Outer margins: 34px.                    main-wrapper       content              sidebar
                                                           unlimited width

	        	         Inherits styles from: Default Layout.
---------------------------------------------
                                                           footer-wrapper
                                                                             footer – fixed width
cols         1      2                                      unlimited width



px           114        252   */
@media only screen and (max-width: 767px) {


#header, #main, #footer {
      width:252px;
      padding: 24px 34px 0;
      margin:0 auto;
}


#content {
      width:252px;
}


#sidebar {
      width:252px;
}
CSS wide mobile layout
                                                                        Structure of page.tpl.php

                                                                        header-wrapper
                                                                        unimited width    header – fixed width
/*	     	        Wide Mobile Layout: 480px.
	       	        Gutters: 24px.                                                           main – fixed width

                                                                        main-wrapper       content              sidebar
	       	        Outer margins: 22px.                                   unlimited width


	       	        Inherits styles from: Default Layout, Mobile Layout.
------------------------------------------------------------            footer-wrapper
                                                                                          footer – fixed width
                                                                        unlimited width
cols        1     2      3        4     5
px          68    160    252      344   436   */


@media only screen and (min-width: 480px) and (max-width: 767px) {
	
#header, #main, #footer {
     width:436px;
     padding: 24px 22px 0;
     margin:0 auto;
}


#content {
     width:436px;
}


#sidebar {
     width:436px;
}
Play around with it...

Drupal.org, download Steppenwolf: http://drupal.org/sandbox/
leanderlindahl/1306334

Slideshare: slideshare.net/leanderlindahl
Thank you!

Drupal.org, download Steppenwolf: http://drupal.org/sandbox/
leanderlindahl/1306334

Slideshare: slideshare.net/leanderlindahl

More Related Content

Viewers also liked

Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.ro
Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.roPosturi restrangere activitate sedinta publica arges 29.02.2016 edu.ro
Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.rosparkss
 
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.roPosturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.rosparkss
 
اردو کی اہم شعری اصناف
اردو کی اہم شعری اصنافاردو کی اہم شعری اصناف
اردو کی اہم شعری اصنافAbdul Hayee
 
Posturi ocupate localitate arges 28.03.2016 edu.ro
Posturi ocupate localitate arges 28.03.2016 edu.roPosturi ocupate localitate arges 28.03.2016 edu.ro
Posturi ocupate localitate arges 28.03.2016 edu.rosparkss
 
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro sparkss
 
Mobilanpassning för nybörjare
Mobilanpassning för nybörjareMobilanpassning för nybörjare
Mobilanpassning för nybörjareLeander Lindahl
 
Visual hierarchy-20110615
Visual hierarchy-20110615Visual hierarchy-20110615
Visual hierarchy-20110615Leander Lindahl
 
Sökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjareSökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjareLeander Lindahl
 
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro Posturi ocupate (localitate) Arges 10.03.2016 edu.ro
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro sparkss
 
Google Analytics grund, Malmö 2016-02-05
Google Analytics grund, Malmö 2016-02-05Google Analytics grund, Malmö 2016-02-05
Google Analytics grund, Malmö 2016-02-05Leander Lindahl
 
Posturi ocupate –disciplina arges 28.03.2016 edu.ro
Posturi ocupate –disciplina arges 28.03.2016 edu.roPosturi ocupate –disciplina arges 28.03.2016 edu.ro
Posturi ocupate –disciplina arges 28.03.2016 edu.rosparkss
 
Tanzeem e Asatizah Pakistan
Tanzeem e Asatizah PakistanTanzeem e Asatizah Pakistan
Tanzeem e Asatizah PakistanAbdul Hayee
 
Analytics för nybörjare
Analytics för nybörjareAnalytics för nybörjare
Analytics för nybörjareLeander Lindahl
 
Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)Leander Lindahl
 
Visionary Development Institute
Visionary Development InstituteVisionary Development Institute
Visionary Development Instituteabrillej
 
Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Leander Lindahl
 

Viewers also liked (18)

Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.ro
Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.roPosturi restrangere activitate sedinta publica arges 29.02.2016 edu.ro
Posturi restrangere activitate sedinta publica arges 29.02.2016 edu.ro
 
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.roPosturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 07.03.2016 edu.ro
 
اردو کی اہم شعری اصناف
اردو کی اہم شعری اصنافاردو کی اہم شعری اصناف
اردو کی اہم شعری اصناف
 
We Can Think
We Can ThinkWe Can Think
We Can Think
 
Posturi ocupate localitate arges 28.03.2016 edu.ro
Posturi ocupate localitate arges 28.03.2016 edu.roPosturi ocupate localitate arges 28.03.2016 edu.ro
Posturi ocupate localitate arges 28.03.2016 edu.ro
 
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro
Posturi complete viabilitate sub 4 ani arges 16.02.2016.edu.ro
 
Hbcro
HbcroHbcro
Hbcro
 
Mobilanpassning för nybörjare
Mobilanpassning för nybörjareMobilanpassning för nybörjare
Mobilanpassning för nybörjare
 
Visual hierarchy-20110615
Visual hierarchy-20110615Visual hierarchy-20110615
Visual hierarchy-20110615
 
Sökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjareSökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjare
 
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro Posturi ocupate (localitate) Arges 10.03.2016 edu.ro
Posturi ocupate (localitate) Arges 10.03.2016 edu.ro
 
Google Analytics grund, Malmö 2016-02-05
Google Analytics grund, Malmö 2016-02-05Google Analytics grund, Malmö 2016-02-05
Google Analytics grund, Malmö 2016-02-05
 
Posturi ocupate –disciplina arges 28.03.2016 edu.ro
Posturi ocupate –disciplina arges 28.03.2016 edu.roPosturi ocupate –disciplina arges 28.03.2016 edu.ro
Posturi ocupate –disciplina arges 28.03.2016 edu.ro
 
Tanzeem e Asatizah Pakistan
Tanzeem e Asatizah PakistanTanzeem e Asatizah Pakistan
Tanzeem e Asatizah Pakistan
 
Analytics för nybörjare
Analytics för nybörjareAnalytics för nybörjare
Analytics för nybörjare
 
Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)
 
Visionary Development Institute
Visionary Development InstituteVisionary Development Institute
Visionary Development Institute
 
Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625
 

Similar to Responsive design with Less Framework 4.0

Mobile First Responsive Design
Mobile First Responsive DesignMobile First Responsive Design
Mobile First Responsive DesignJason Grigsby
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Webmikeleeme
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Epitome Solutions Ltd
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Zoe Gillenwater
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Nicholas Zakas
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Nicholas Zakas
 
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 GuidesAidan Foster
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web componentsMarc Bächinger
 
Dive Into Chrome-100119
Dive Into Chrome-100119Dive Into Chrome-100119
Dive Into Chrome-100119yiming he
 
Internet Sites with Microsoft Office SharePoint Server 2007
Internet Sites with Microsoft Office SharePoint Server 2007Internet Sites with Microsoft Office SharePoint Server 2007
Internet Sites with Microsoft Office SharePoint Server 2007goodfriday
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12touchtitans
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignMelanie Burger
 
High performance website
High performance websiteHigh performance website
High performance websiteChamnap Chhorn
 
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 web design
Responsive web designResponsive web design
Responsive web designpsophy
 
WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!iGB Affiliate
 
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
Beginner & Intermediate Guide to HTML5/CSS3 In DrupalBeginner & Intermediate Guide to HTML5/CSS3 In Drupal
Beginner & Intermediate Guide to HTML5/CSS3 In DrupalMediacurrent
 
07.React Navigation, Flat List.pdf
07.React Navigation, Flat List.pdf07.React Navigation, Flat List.pdf
07.React Navigation, Flat List.pdfHitsukiMasamune
 

Similar to Responsive design with Less Framework 4.0 (20)

Hello Drupal
Hello DrupalHello Drupal
Hello Drupal
 
Mobile First Responsive Design
Mobile First Responsive DesignMobile First Responsive Design
Mobile First Responsive Design
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
 
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
 
Introduction to web components
Introduction to web componentsIntroduction to web components
Introduction to web components
 
Dive Into Chrome-100119
Dive Into Chrome-100119Dive Into Chrome-100119
Dive Into Chrome-100119
 
Internet Sites with Microsoft Office SharePoint Server 2007
Internet Sites with Microsoft Office SharePoint Server 2007Internet Sites with Microsoft Office SharePoint Server 2007
Internet Sites with Microsoft Office SharePoint Server 2007
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
High performance website
High performance websiteHigh performance website
High performance website
 
WordPress for mobile
WordPress for mobileWordPress for mobile
WordPress for mobile
 
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 web design
Responsive web designResponsive web design
Responsive web design
 
WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!
 
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
Beginner & Intermediate Guide to HTML5/CSS3 In DrupalBeginner & Intermediate Guide to HTML5/CSS3 In Drupal
Beginner & Intermediate Guide to HTML5/CSS3 In Drupal
 
07.React Navigation, Flat List.pdf
07.React Navigation, Flat List.pdf07.React Navigation, Flat List.pdf
07.React Navigation, Flat List.pdf
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Recently uploaded (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

Responsive design with Less Framework 4.0

  • 2. Leander Lindahl designer | Popolo e-mail: leander@popolo.se drupal-name: leanderl Designer, Accademia Italiana, Florence, Italy Bachelor in Business Administration, Lund University, Sweden
  • 3. LESS IS NOT LESS
  • 4.
  • 5.
  • 6.
  • 7. Scope of the session Responsive design in terms of CSS3 media queries Basic concept of using Less Framework in CSS Putting it into Drupal
  • 8. What’s the deal with responsive design?
  • 9.
  • 10.
  • 11. ”It’s what some of us were going for with “liquid” web design back in the 1990s, only it doesn’t suck.” Jeffrey Zeldman
  • 12. Responsive design = CSS3 media queries image: www.lessframework.com
  • 13. Responsive design = CSS3 media queries
  • 14. Responsive design = CSS3 media queries /* Default CSS */ #page { width:1060px; } @media only screen and (min-width: 480px) and (max-width: 767px) { /* CSS for this particular view-port */ #page { width:436px } }
  • 15. No support in IE6, IE7, IE8 (as usual) http://www.smashingmagazine.com/2010/02/11/the-life-times-and-death-of- internet-explorer-6-comic-strip/
  • 16. Supported by IE9 – yeay! http://www.smashingmagazine.com/the-smashing-cartoons/
  • 17. Browsers without support for CSS3 and media queries get served the default version of the site, just as they did before implementing the framework.
  • 18. Gettin’ down with LESS Framework 4.0 how it works…
  • 19. Templates available for Fireworks, Photoshop, OmniGraffle OmniGraffle: http://uprootinc.com/blog/less-framework-grid-omnigraffle-stencil Fireworks, Photoshop, Illustrator: http://www.aripalo.fi/lessguides4/ Wireframing PDF: http://richardmetzler.posterous.com/less-framework-4-grid-pdfs-to-wireframe-and-s
  • 20. Step 1: default design (desktop) Default version
  • 21. Step 1: default design (desktop) Default version /* Default Layout: 992px. Gutters: 24px. Outer margins: 48px. Leftover space for scrollbars @1024px: 32px. ------------------------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 9 10 px 68 160 252 344 436 528 620 712 804 896 */
  • 22. Step 2: Tablet Layout (iPad)
  • 23. Step 2: Tablet Layout (iPad) /* Tablet Layout: 768px. Gutters: 24px. Outer margins: 28px. Inherits styles from: Default Layout. ----------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 px 68 160 252 344 436 528 620 712 */
  • 24. Step 3: Mobile layout Carrier 12:00 PM Page Title http://www.domain.com Google
  • 25. Step 3: Mobile layout Carrier 12:00 PM Page Title http://www.domain.com Google /* Mobile Layout: 320px. Gutters: 24px. Outer margins: 34px. Inherits styles from: Default Layout. --------------------------------------------- cols 1 2 px 114 252 */
  • 26. Step 4: Wide mobile Carrier 12:00 PM Page Title http://www.domain.com Google Google Page Title 12:00 PM http://www.domain.com Carrier
  • 27. Step 4: Wide mobile Carrier 12:00 PM Page Title http://www.domain.com Google Google Page Title 12:00 PM http://www.domain.com Carrier /* Wide Mobile Layout: 480px. Gutters: 24px. Outer margins: 22px. Inherits styles from: Default Layout, Mobile Layout. ------------------------------------------------------------ cols 1 2 3 4 5 px 68 160 252 344 436 */
  • 28. Step 5: All together now… Carrier 12:00 PM Page Title http://www.domain.com Google Google Page Title 12:00 PM http://www.domain.com Carrier
  • 29. Doin’ da responsive thingy wid da Drupal thingy
  • 30. steppenwolf.info name = Steppenwolf description = Steppenwolf Less Framwork 4.0 Demo Theme by Popolo version = VERSION core = 7.x ; Stylesheets stylesheets[all][] = css/less-framework.css The LESS framework stylesheets[screen][] = css/style.css The default style stylesheets[screen][] = css/responsive.css The ”responsiveness” goes here ; Regions regions[header] = Header regions[searchbar] = Search bar regions[highlighted] = Highlighted regions[help] = Help regions[content] = Content regions[sidebar] = Sidebar regions[footer_left] = Footer left regions[footer_right] = Footer right
  • 31. NO HTML5 in this example – sorry <article> <header> <h1>Why Hello</h1> </header> <section> <p></p> </section> <section> <p></p> <p></p> <ul></ul> </section> </article>
  • 32. Steppenwolf page.tpl.php Structure of page.tpl.php header-wrapper unimited width header – fixed width main – fixed width main-wrapper content sidebar unlimited width footer-wrapper footer – fixed width unlimited width fixed width for unlimited width LESS FRAMEWORK for background color
  • 33. CSS default layout Structure of page.tpl.php header-wrapper /* Default Layout: 992px. unimited width header – fixed width Gutters: 24px. main – fixed width Outer margins: 48px. main-wrapper content sidebar unlimited width Leftover space for scrollbars @1024px: 32px. ------------------------------------------------------------------------------- footer-wrapper footer – fixed width cols 1 2 3 4 5 6 7 8 9 10 unlimited width px 68 160 252 344 436 528 620 712 804 896 */ #header, #main, #footer { width:896px; padding: 24px 48px 0; margin:0 auto; } #content { width:620px; margin-right:24px; } #sidebar { width:252px; }
  • 34. CSS tablet layout Structure of page.tpl.php header-wrapper /* Tablet Layout: 768px. unimited width header – fixed width Gutters: 24px. main – fixed width Outer margins: 28px. main-wrapper content sidebar unlimited width Inherits styles from: Default Layout. ----------------------------------------------------------------- footer-wrapper footer – fixed width cols 1 2 3 4 5 6 7 8 unlimited width px 68 160 252 344 436 528 620 712 */ @media only screen and (min-width: 768px) and (max-width: 991px) { #header, #main, #footer { width:712px; padding: 24px 28px 0; margin:0 auto; } #content { width:436px; margin-right:24px; } #sidebar { width:252px; }
  • 35. CSS mobile layout Structure of page.tpl.php header-wrapper /* Mobile Layout: 320px. unimited width header – fixed width Gutters: 24px. main – fixed width Outer margins: 34px. main-wrapper content sidebar unlimited width Inherits styles from: Default Layout. --------------------------------------------- footer-wrapper footer – fixed width cols 1 2 unlimited width px 114 252 */ @media only screen and (max-width: 767px) { #header, #main, #footer { width:252px; padding: 24px 34px 0; margin:0 auto; } #content { width:252px; } #sidebar { width:252px; }
  • 36. CSS wide mobile layout Structure of page.tpl.php header-wrapper unimited width header – fixed width /* Wide Mobile Layout: 480px. Gutters: 24px. main – fixed width main-wrapper content sidebar Outer margins: 22px. unlimited width Inherits styles from: Default Layout, Mobile Layout. ------------------------------------------------------------ footer-wrapper footer – fixed width unlimited width cols 1 2 3 4 5 px 68 160 252 344 436 */ @media only screen and (min-width: 480px) and (max-width: 767px) { #header, #main, #footer { width:436px; padding: 24px 22px 0; margin:0 auto; } #content { width:436px; } #sidebar { width:436px; }
  • 37. Play around with it... Drupal.org, download Steppenwolf: http://drupal.org/sandbox/ leanderlindahl/1306334 Slideshare: slideshare.net/leanderlindahl
  • 38. Thank you! Drupal.org, download Steppenwolf: http://drupal.org/sandbox/ leanderlindahl/1306334 Slideshare: slideshare.net/leanderlindahl

Editor's Notes

  1. \n
  2. This is me. I&amp;#x2019;m Leander Lindahl from Malm&amp;#xF6;. I&amp;#x2019;m a designer and I have a history of working both with traditional print design and web. And I&amp;#x2019;ve been into the whole Drupal thingy for about two years, and let me tell you... it can be frightening at first for a designer. But it is well worth the effort...\n
  3. Less Framework for responsive design is not LESS CSS\n
  4. Less Framework for responsive design is not LESS CSS\n
  5. Less Framework for responsive design is not LESS CSS\n
  6. Less Framework for responsive design is not LESS CSS\n
  7. This is what we&amp;#x2019;re goin to look at and hopefully learn something about\n
  8. So what is Responsive Design all about? \n
  9. The &amp;#x201D;legendary&amp;#x201D; article by Ethan Marcotte that coined the expression. The &amp;#x201D;thing&amp;#x201D; with responsive design is that now with CSS3 and media queries you can style your content according to the view port the user is accessing the content widh.\n
  10. This is not a new idea. But this time around it doesn&amp;#x2019;t suck.\nAs far as fixed-width goes, I prefer it. Look at A List Apart &amp;#x2013; a site done by pros for other web designers. They use fixed width. It just makes sense to me, as you wouldn&amp;#x2019;t encounter a physical newspaper made out of spandex.\nPeople are used to reading their text at a set width. It wasn&amp;#x2019;t until the advent of the web browser that this became an issue. And, let&amp;#x2019;s not forget that the original measurement of the web was pixels, and not percentage. Nathan Smith\nOctober 5, 2005\nhttp://www.churchmarketingsucks.com/2005/10/top-10-web-design-mistakes/\n
  11. In reality Responsive design is about media queries (CSS3). These allow you to control which layout (CSS) get&amp;#x2019;s used by which view port.\n
  12. This is what media queries are...\n
  13. IE wohoo!\n
  14. IE9 shaped up\n
  15. \n
  16. \n
  17. \n
  18. The &amp;#x201D;full width&amp;#x201D; defautl layout with 10 columns. I slightly deviated from the grid for the &amp;#x201D;image gallery&amp;#x201D;, because I wanted three equal columns for image gallery and blog. \n
  19. The tablet 8 column &amp;#x201D;grid&amp;#x201D;\n
  20. Mobile layout, only two columns\n
  21. Wide mobile laoyt with 5 columns\n
  22. So these are the various layouts, all CSS-based variations\n
  23. So how can we use this with drupal\n
  24. Activate/ deactivate responsive.css\n
  25. In most examples of LESS you&amp;#x2019;ll find that they are neatly based on the new HTML5 structure, we won&amp;#x2019;t quite get there today. We&amp;#x2019;re using basic drupal templates...\n
  26. This is the basic structure. The wrappers are simply to make a continuous &amp;#x201D;unlimited width&amp;#x201D; horisontal background. The header, main and footer are the divs that we apply the different view ports fixed width to.\n
  27. The basic layout is done like this. We assign the grid width of 896 plus padding (48px) to the #header, #main and #footer. We subdivide the &amp;#x201D;columns&amp;#x201D; of #content area and #sidebar following the suggested column widths from the grid template\n
  28. The tablet layout is done much in the same way as the default layout, but with encapsuled in a media query condition min-width:712px, max-width: 991px;\nWe adjust the columns #content and #sidebar in the #main div\n
  29. The mobile layout, yet again, follows the same pattern. They main effort is really deciding in the design process, how to use the varying view ports. If you prepare your thinking about the visual design and interaction well, then the coding shouldn&amp;#x2019;t be all too hard. \nThis time media queri condition is max-width: 767px;\nWe adjust the columns #content and #sidebar in the #main div\n
  30. The wide mobile layout&amp;#x2026; \nThis time media query condition is min-width: 480px, max-width: 767px; That means that below 480 px width we get \nWe adjust the columns #content and #sidebar in the #main div\n
  31. Try it out for yourself! Drupal can be difficult to create example themes for because to creat anything at all you generally need some vews and som blocks. Hence I included the database with the theme. Install, try it, throw it away and apply the concept to your own designs...\n
  32. Thank you!\n