Drupal 960 grid system based theming
Upcoming SlideShare
Loading in...5
×
 

Drupal 960 grid system based theming

on

  • 4,915 views

Drupal 960 grid system based theming

Drupal 960 grid system based theming
Drupal Sprint 30-31 Oct 2009, Pune India

http://drupalindia2009.plug.org.in/talk/drupal-theming-960-grid-system

Statistics

Views

Total Views
4,915
Views on SlideShare
4,885
Embed Views
30

Actions

Likes
3
Downloads
98
Comments
0

3 Embeds 30

http://www.slideshare.net 16
http://www.linkedin.com 10
https://www.linkedin.com 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Drupal 960 grid system based theming Drupal 960 grid system based theming Presentation Transcript

  • Drupal theming via 960.gs BY: Gaurav Mishra
  • Introduction about 960.gs – A CSS framework CSS frameworks are “ a set of tools, libraries, conventions, and best practices that attempt to abstract routine tasks into generic modules that can be reused. The goal here is to allow the designer or developer to focus on tasks that are unique to a given project, rather than reinventing the wheel each time around.“ -Jef Croft
  • Benefits of CSS framework
    • Make your life easier NOT HARDER
    • Do not repeat yourself methodology
    • Scaleable and Maintenance
    • Based upon Grids
    • Eg. 960.gs, Blueprint, YUI Grids
  • Basics First - Grid-based design
    • Established them in magazine and news paper industry
    • Present information in structured, meaningful and visually distinct way
    • Hierarchical information is cleanly represented
  • Grid-based design
  • Grid-based design
  • Grid-based design
  • What is Grid-based css framework and the WHY ?
    • essentially a prebuilt set of classes which easily achieve a grid-based Layout
    • Grids - 16 years after the invention of the web, we are finally embracing a century-old design philosophy That is still so POWER FULL
    • well defined css files splits into organized structure based upon their FUNCTION
  • Back to 960.Gs (by Nathan Smith) download it from http://960.gs
    • based on a width of 960 pixels.
    • two variants: 12 and 16 columns
    • reduce common headaches
    • saves your time === money
    • Handle non compliant browser with care (most beloved IE 6)
    • both a prototyping and development framework
  • 960.gs grids anatomy (12 col)
    • 12 column grid is divided into portions that are 60 pixels wide
    • Each column is 60 px wide
  • 960.gs grids anatomy (16 col)
    • The 16-column grid width is 40 px.
    • Rest is same as 12-column grid
  • How grid based layout looks like ?
  • Layout A: Content left, sidebar right (12 col)
  • Layout B: Content left, sidebar right
  • Layout C: Content with two left sidebars (12 col based)
  • Lets get REAL
    • Subtraction - wordpress theme by Khoi Vinh
  • Layout C: Content with two left sidebars (12 col based)
  • Say Hello to smart classes
    • .grid-1, .grid-2 ….grid-16 and there width depend upon top container enclosing it
    • that is either .container-12 or .container-16
    Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • Say Hello to smart classes… in progress
    • alpha margin-left: 0;
    • omega margin-right:0;
    Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • Say Hello to smart classes… in progress
    • prefix class add padding to left
    • suffix class add padding to right
    If you want to leave space between columns, use a prefix or suffix class Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • Implementing Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • The NineSixty theme Download from http://drupal.org/project/ninesixty
  • The ns() function – get Speed
    • X,Y and Z are width values
    • $region refers to theme region
    • class can be grid, prefix, suffix, push or pull
    Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • LOOking in Page.tpl.php Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • <div id=main> @page.tpl.php Credits Screenshots - Accelerated grid theming using NineSixty (Drupal DesignCamp Boston)
  • Question O_O pleaseZzz / Feedback Do have fun  with theming