SlideShare uma empresa Scribd logo
1 de 32
Responsive design
Less Framework 4.0
Leander Lindahl
designer | Popolo Design

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


Designer, Accademia Italiana,
Florence, Italy
Bachelor in Business Administration,
Lund University, Sweden
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 SHIM – 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

Mais conteúdo relacionado

Destaque

Posturi incomplete arges 27.04.2016 edu.ro
Posturi incomplete arges 27.04.2016 edu.roPosturi incomplete arges 27.04.2016 edu.ro
Posturi incomplete arges 27.04.2016 edu.rosparkss
 
Coordinación en atención temprana creando lazos
Coordinación en atención temprana creando lazosCoordinación en atención temprana creando lazos
Coordinación en atención temprana creando lazosrosadepitimini
 
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.roPosturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.rosparkss
 
Rss carlos angarita_106
Rss carlos angarita_106Rss carlos angarita_106
Rss carlos angarita_106Carlos Ang
 
Introduction à la liberté d'expression
Introduction à la liberté d'expressionIntroduction à la liberté d'expression
Introduction à la liberté d'expressionDulout Laurent
 
05 - Operadores relacionais e estruturas de repetição - v1.0
05 - Operadores relacionais e estruturas de repetição - v1.005 - Operadores relacionais e estruturas de repetição - v1.0
05 - Operadores relacionais e estruturas de repetição - v1.0César Augusto Pessôa
 
04 - C# laços de repetição, vetores e matrizes v1.0
04 - C# laços de repetição, vetores e matrizes v1.004 - C# laços de repetição, vetores e matrizes v1.0
04 - C# laços de repetição, vetores e matrizes v1.0César Augusto Pessôa
 
01- Introdução a programação e modelo RAD v1.0
01- Introdução a programação e modelo RAD v1.001- Introdução a programação e modelo RAD v1.0
01- Introdução a programação e modelo RAD v1.0César Augusto Pessôa
 

Destaque (14)

Boletim simerj
Boletim simerjBoletim simerj
Boletim simerj
 
Posturi incomplete arges 27.04.2016 edu.ro
Posturi incomplete arges 27.04.2016 edu.roPosturi incomplete arges 27.04.2016 edu.ro
Posturi incomplete arges 27.04.2016 edu.ro
 
Coordinación en atención temprana creando lazos
Coordinación en atención temprana creando lazosCoordinación en atención temprana creando lazos
Coordinación en atención temprana creando lazos
 
Diapositivas
DiapositivasDiapositivas
Diapositivas
 
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.roPosturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.ro
Posturi complete viabilitate cel putin 4 ani arges 25.02.2016 edu.ro
 
Rss carlos angarita_106
Rss carlos angarita_106Rss carlos angarita_106
Rss carlos angarita_106
 
Matrizes em c#
Matrizes em c#Matrizes em c#
Matrizes em c#
 
Introduction à la liberté d'expression
Introduction à la liberté d'expressionIntroduction à la liberté d'expression
Introduction à la liberté d'expression
 
05 - Operadores relacionais e estruturas de repetição - v1.0
05 - Operadores relacionais e estruturas de repetição - v1.005 - Operadores relacionais e estruturas de repetição - v1.0
05 - Operadores relacionais e estruturas de repetição - v1.0
 
04 - C# laços de repetição, vetores e matrizes v1.0
04 - C# laços de repetição, vetores e matrizes v1.004 - C# laços de repetição, vetores e matrizes v1.0
04 - C# laços de repetição, vetores e matrizes v1.0
 
01- Introdução a programação e modelo RAD v1.0
01- Introdução a programação e modelo RAD v1.001- Introdução a programação e modelo RAD v1.0
01- Introdução a programação e modelo RAD v1.0
 
Heeringa brieven, rond 1830
Heeringa brieven, rond 1830Heeringa brieven, rond 1830
Heeringa brieven, rond 1830
 
Ms word
Ms wordMs word
Ms word
 
WiTricity
WiTricityWiTricity
WiTricity
 

Semelhante a Responsive design with Less Framework 4.0

Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Webmikeleeme
 
Mobile First Responsive Design
Mobile First Responsive DesignMobile First Responsive Design
Mobile First Responsive DesignJason Grigsby
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Zoe Gillenwater
 
Dive Into Chrome-100119
Dive Into Chrome-100119Dive Into Chrome-100119
Dive Into Chrome-100119yiming he
 
High performance website
High performance websiteHigh performance website
High performance websiteChamnap Chhorn
 
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 Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignMelanie Burger
 
Responsive web design
Responsive web designResponsive web design
Responsive web designpsophy
 
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
 
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
 
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
 
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
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Epitome Solutions Ltd
 
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
 
Responsive Web Design in iMIS (NiUG Austin 2015)
Responsive Web Design in iMIS (NiUG Austin 2015)Responsive Web Design in iMIS (NiUG Austin 2015)
Responsive Web Design in iMIS (NiUG Austin 2015)Andrea Robertson
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3Jamshid Hashimi
 
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18Frédéric Harper
 

Semelhante a Responsive design with Less Framework 4.0 (20)

Hello Drupal
Hello DrupalHello Drupal
Hello Drupal
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
Mobile First Responsive Design
Mobile First Responsive DesignMobile First Responsive Design
Mobile First Responsive Design
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3
 
Dive Into Chrome-100119
Dive Into Chrome-100119Dive Into Chrome-100119
Dive Into Chrome-100119
 
High performance website
High performance websiteHigh performance website
High performance website
 
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 Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
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
 
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
 
Death of a Themer
Death of a ThemerDeath of a Themer
Death of a Themer
 
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)
 
Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)Progressive Enhancement 2.0 (Conference Agnostic)
Progressive Enhancement 2.0 (Conference Agnostic)
 
Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011Responsive Design - WordUp Edinburgh 2011
Responsive Design - WordUp Edinburgh 2011
 
WordPress for mobile
WordPress for mobileWordPress for mobile
WordPress for mobile
 
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!
 
Responsive Web Design in iMIS (NiUG Austin 2015)
Responsive Web Design in iMIS (NiUG Austin 2015)Responsive Web Design in iMIS (NiUG Austin 2015)
Responsive Web Design in iMIS (NiUG Austin 2015)
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18
Building Web Mobile App that don’t suck - FITC Web Unleashed - 2014-09-18
 

Mais de Leander Lindahl

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
 
Mobilanpassning för nybörjare
Mobilanpassning för nybörjareMobilanpassning för nybörjare
Mobilanpassning för nybörjareLeander 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
 
Analytics för nybörjare
Analytics för nybörjareAnalytics för nybörjare
Analytics för nybörjareLeander Lindahl
 
Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Leander Lindahl
 
Visual hierarchy-20110615
Visual hierarchy-20110615Visual hierarchy-20110615
Visual hierarchy-20110615Leander 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
 

Mais de Leander Lindahl (7)

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
 
Mobilanpassning för nybörjare
Mobilanpassning för nybörjareMobilanpassning för nybörjare
Mobilanpassning för nybörjare
 
Sökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjareSökmotoroptimering för nybörjare
Sökmotoroptimering för nybörjare
 
Analytics för nybörjare
Analytics för nybörjareAnalytics för nybörjare
Analytics för nybörjare
 
Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625Visual Hierarchy, berlin, 20110625
Visual Hierarchy, berlin, 20110625
 
Visual hierarchy-20110615
Visual hierarchy-20110615Visual hierarchy-20110615
Visual hierarchy-20110615
 
Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)Ninesixty för Drupal (in swedish)
Ninesixty för Drupal (in swedish)
 

Último

Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja Nehwal
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Delhi Call girls
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️soniya singh
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...ranjana rawat
 
The history of music videos a level presentation
The history of music videos a level presentationThe history of music videos a level presentation
The history of music videos a level presentationamedia6
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdftbatkhuu1
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130Suhani Kapoor
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxjanettecruzeiro1
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfAmirYakdi
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...BarusRa
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptxVanshNarang19
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdshivubhavv
 
Booking open Available Pune Call Girls Kirkatwadi 6297143586 Call Hot Indian...
Booking open Available Pune Call Girls Kirkatwadi  6297143586 Call Hot Indian...Booking open Available Pune Call Girls Kirkatwadi  6297143586 Call Hot Indian...
Booking open Available Pune Call Girls Kirkatwadi 6297143586 Call Hot Indian...Call Girls in Nagpur High Profile
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxTusharBahuguna2
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Delhi Call girls
 

Último (20)

Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
 
The history of music videos a level presentation
The history of music videos a level presentationThe history of music videos a level presentation
The history of music videos a level presentation
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
 
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Basapura ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
 
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...AMBER GRAIN EMBROIDERY | Growing folklore elements |  Root-based materials, w...
AMBER GRAIN EMBROIDERY | Growing folklore elements | Root-based materials, w...
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptx
 
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
 
Government polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcdGovernment polytechnic college-1.pptxabcd
Government polytechnic college-1.pptxabcd
 
Booking open Available Pune Call Girls Kirkatwadi 6297143586 Call Hot Indian...
Booking open Available Pune Call Girls Kirkatwadi  6297143586 Call Hot Indian...Booking open Available Pune Call Girls Kirkatwadi  6297143586 Call Hot Indian...
Booking open Available Pune Call Girls Kirkatwadi 6297143586 Call Hot Indian...
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
 

Responsive design with Less Framework 4.0

  • 2. Leander Lindahl designer | Popolo Design e-mail: leander@popolo.se drupal-name: leanderl Designer, Accademia Italiana, Florence, Italy Bachelor in Business Administration, Lund University, Sweden
  • 3. What’s the deal with responsive design?
  • 4.
  • 5.
  • 6. ”It’s what some of us were going for with “liquid” web design back in the 1990s, only it doesn’t suck.” Jeffrey Zeldman
  • 7. Responsive design = CSS3 media queries image: www.lessframework.com
  • 8. Responsive design = CSS3 media queries
  • 9. 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 } }
  • 10. 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/
  • 11. Supported by IE9 – yeay! http://www.smashingmagazine.com/the-smashing-cartoons/
  • 12. Browsers without support for CSS3 and media queries get served the default version of the site, just as they did before implementing the framework.
  • 13. Gettin’ down with LESS Framework 4.0 how it works…
  • 14. 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
  • 15. Step 1: default design (desktop) Default version
  • 16. 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 */
  • 17. Step 2: Tablet Layout (iPad)
  • 18. 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 */
  • 19. Step 3: Mobile layout Carrier 12:00 PM Page Title http://www.domain.com Google
  • 20. 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 */
  • 21. 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
  • 22. 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 */
  • 23. 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
  • 24. Doin’ da responsive thingy wid da Drupal thingy
  • 25. 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
  • 26. NO HTML5 SHIM – sorry <article> <header> <h1>Why Hello</h1> </header> <section> <p></p> </section> <section> <p></p> <p></p> <ul></ul> </section> </article>
  • 27. 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
  • 28. 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; }
  • 29. 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; }
  • 30. 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; }
  • 31. 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; }
  • 32. Play around with it... Drupal.org, download Steppenwolf: http://drupal.org/sandbox/ leanderlindahl/1306334

Notas do Editor

  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. So what is Responsive Design all about? \n
  4. 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 with.\n
  5. 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
  6. 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
  7. This is what media queries are...\n
  8. IE wohoo!\n
  9. IE9 shaped up\n
  10. \n
  11. \n
  12. \n
  13. 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
  14. The tablet 8 column &amp;#x201D;grid&amp;#x201D;\n
  15. Mobile layout, only two columns\n
  16. Wide mobile laoyt with 5 columns\n
  17. So these are the various layouts, all CSS-based variations\n
  18. So how can we use this with drupal\n
  19. Activate/ deactivate responsive.css\n
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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