Skip to main content
Home

Languages

  • English
  • Svenska

Responsive design with Less Framework 4.0 and Drupal

Steppenwofl Drupal Theme
Submitted by Leander Lindahl on Wed, 10/12/2011 - 11:32

What’s the deal with responsive design?

What is Responsove Design?
Responsive design is a technique for coding web pages that was first described by Ethan Marcotte in his by now ”legendary” article on a list Apart.
 A simple way to put is was worded by Jeffrey Zeldman: ”It’s what some of us were going for with “liquid” web design back in the 1990s, only it doesn’t suck.”

The new ”thing” about Responsive Design in the context of Less Framework and other similar techniques is the use of CSS3 media queries. These allow you to address different view ports with different CSS-code.

The use of CSS3 media queries means (as per usual), that IE is not included in the bliss. However that’s not a gigantic problem because IE still get’s served the ”normal” default page.

Why use Less?
Less was created by coder Joni Korp and is a grid system without the actual use of grid classes. You can, if you like, use the template grid, which is based on the golden ratio, or not. Assigning widths to page elements is done manually, so what the framework really does is only to help you set up the media queries and give you a template to follow or deviate from, depending on what you feel like or what your project needs.
 
The Less Framework web site is in itself a great show case for what the framework does. You can adjust the width of your browser to see a neat demonstration of how the framework works.

Quote from the less framework site:
The goal of Less Framework is to make building websites with mul­tiple layouts efficient, and to make the layouts feel consistent. Since every layout is based on the same grid, elements used in one layout can often be reused in the others without changing them much at all. For example, simply adjusting the width or font-size of an element in one layout is often enough to make it work in another. And even if more changes are re­quired, the common baseline grid and type presets will make the element fit in.
Less Framework is simple. It does not contain any pre­defined column classes, pre-compilers, or other wizardry. The point of it is to let everyone keep writing HTML and CSS as they always have, because everyone does it differently.


To show the technique in pratice, and in particular, try it out with Drupal, I spent a few hours experimenting with a custom Theme named Steppenwolf. I'll be talking about that this evening on the Drupal Meetup in Malmö. To make it easy to try the theme I've actually included the database so that you can have the views and menu settings that I used in the example.

View the slides on
Slidehare: http://www.slideshare.net/leanderlindahl/less-9648259

Play around with the Theme on Drupal.org
Download Steppenwolf example Theme: http://drupal.org/sandbox/leanderlindahl/1306334

Tags: 
responsive design
less framework
Drupal
  • 2611 reads

Add new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Blog

  •  La libertà guida il popolo (1830)

    Contextual links in Drupal Views

    2012-02-29 | 920 reads
  • Drupal is great. Right?

    Drupal Meetup in Malmö Feb 2, 2012

    2012-01-26 | 399 reads
  • Freebie: Uniform jQuery Theme for styling forms

    2011-10-31 | 3098 reads
  • Steppenwofl Drupal Theme

    Responsive design with Less Framework 4.0 and Drupal

    2011-10-12 | 2611 reads
  • Working with grids using 960

    2011-10-05 | 2394 reads
  • DDC Berlin

    Summary of Drupal Design Camp Berlin

    2011-06-28 | 2118 reads
  • Proximity - visual hierarchy

    Visual hierarchy in design – part I

    2011-06-15 | 1348 reads
  • Drupal.org

    Drupalträff i Malmö 24 februari

    2011-02-22 | 1021 reads

Pages

  • 1
  • 2
  • 3
  • 4
  • next ›
  • last »

Popolo AB 

MINC, Anckargripsgatan 3 
SE-211 19 Malmö

Phone +46 (0)40 26 94 20
e-mail: info@popolo.se

Senaste tweets @leanderlindahl

  • back home from #frontedunited Amsterdam. Nice to see both familiar and unfamiliar faces. Really enjoyed the talk by @realsolipsist
    3 weeks 5 days ago
  • RT @Itangalo: "Tiny Book of Rules" now available in a nice foldable layout! Cred to @leanderlindahl t.co/3UHDfTPv #drupal #rules ...
    3 weeks 5 days ago