oocss

56
HTML AND CSS Let’s all make fast sites Presentation about OOCSS inspired by Nicole Sullivan. Flickr photo © Legoagogo

Upload: yoniweb

Post on 08-May-2015

3.346 views

Category:

Design


0 download

DESCRIPTION

Presentation about using the OOCSS principles in Fork CMS.

TRANSCRIPT

Page 1: OOCSS

HTML AND CSSLet’s all make fast sites

Presentation about OOCSS inspired by Nicole Sullivan. Flickr photo © Legoagogo

Page 2: OOCSS

O Hai! I’m Yoni

Yoni De Beule, http://www.yonidebeule.be, @yoniweb

Page 3: OOCSS

I work at Netlashamong others.

http://www.netlash.com http://www.minify.be http://www.vlmbuzz.be http://www.wrappp.it

Page 4: OOCSS

I love building websites that are beautiful, accessible, easy to use and fast.

I love building websites that are beautiful, accessible, easy to use and fast.

Page 5: OOCSS

Beautiful

Beautiful sites

Page 6: OOCSS

Accessible

Accessible sites (http://www.slideshare.net/YoniWeb/anysurfer)

Page 7: OOCSS

Easy to use

Easy to use sites (love your Information Architectsʼs)

Page 8: OOCSS

Fast

Fast sites

Page 9: OOCSS

I also love using pictures in my presentations...

I also love using pictures in my presentations...

Page 10: OOCSS

It’s a designer thing

Itʼs a designer thing

Page 11: OOCSS

I’m here today to make you happy.

Iʼm here today to make you happy.

Page 12: OOCSS

I’ll be making users happy

Iʼll be making users happy

Page 13: OOCSS

I’ll be making developers happy

Iʼll be making developers happy

Page 14: OOCSS

I’ll be making clients happy

Iʼll be making clients happy

Page 15: OOCSS

I’ll even be making myself happy

Iʼll even be making myself happy

Page 16: OOCSS

I’m here to make you happy by telling you about Object Oriented CSS.

Iʼm here to make you happy by telling you about Object Oriented CSS.

Page 17: OOCSS

Nicole Sullivan

Thanks to Nicole Sullivan (Yahoo!) I found out about OOCSS © Marien van Os

Page 18: OOCSS

She’s awesome.

Sheʼs awesome.

Page 19: OOCSS

Pure WIN.

Pure WIN.

Page 20: OOCSS

WHAT?Object Oriented CSS

What is OOCSS?

Page 21: OOCSS

OOCSS is all about building big websites that are fast.

OOCSS is all about building big websites that are fast. Thereʼs a framework, but Iʼm all for the “concept”, the “idea”, the brilliance.

Page 22: OOCSS

Two major principles

Two major principles

Page 23: OOCSS

Two major principles

1. Separate structure and skin

Separate structure and skin

Page 24: OOCSS

Two major principles

1. Separate structure and skin

2. Separate container and content

Separate container and content

Page 25: OOCSS

Two major principles

1. Separate structure and skin

2. Separate container and content

Page 26: OOCSS

Doesn’t that kind of sounds like ...

Doesnʼt that kind of sounds like ...

Page 27: OOCSS

Fork?

Page 28: OOCSS

Fork

Page 29: OOCSS

Yeah, that’s what I thought.

Yeah, thatʼs what I thought.

Page 30: OOCSS

WHY USE IT?Object Oriented CSS

Why use OOCSS?

Page 31: OOCSS

Lego’s.

Legoʼs.

Page 32: OOCSS

That’s right.

Thatʼs right.

Page 33: OOCSS
Page 34: OOCSS

Lego’s.

Legoʼs are modular blocks of html, css, images and javascript that can be used all across a site.

Page 35: OOCSS

Lego’s

1. Separate structure and skin

2. Separate container and content

They follow the OOCSS principles.

Page 36: OOCSS

Fast site with less CSS.

Fast site with less CSS.

Page 37: OOCSS

Users happy

Users happy

Page 38: OOCSS

Developers can use these lego’s virtually anywhere without the help of a designer.

Developers can use these legoʼs virtually anywhere without the help of a designer.

Page 39: OOCSS

Developers happy

Developers happy

Page 40: OOCSS

Less design time needed and faster new features.

Less design time needed and faster new features.

Page 41: OOCSS

Clients happy

Clients happy

Page 42: OOCSS

Consistent design = clean code = fast site

And last but not least consistent design = clean code = fast site.

Page 43: OOCSS

Yoni happy

Yoni and all the other designers Happy

Page 44: OOCSS

Designers happy

Happy times.

Page 45: OOCSS

HOW?Object Oriented CSS

How do you use OOCSS?

Page 46: OOCSS

Lego’s?

How do you use these Legoʼs?

Page 47: OOCSS

<div class="mod"> <div class="inner"> <div class="hd"> <h3>Title</h3> </div> <div class="bd content"> <p>Content</p> </div> </div></div>

Notice the content class devs! Use it!

Page 48: OOCSS

<div id="blogRecentArticlesListWidget" class="mod article"> <div class="inner"> <div class="hd"> <h3>Recent articles</h3> </div> <div class="bd content"> <ul> <li><a href= "#" >Lorem ipsum</a></li> </ul> </div> <div class="ft"> <p><a href= "#" >Blog archive</a></p> </div> </div></div>

Example from the new Fork CMS.

Page 49: OOCSS

Use it and make it your ownbut make it understandable.

Use it, try it, make it your own. Donʼt let my code or the framework hold you back!

Page 50: OOCSS

PRO TIPSObject Oriented CSS

Iʼve been using it for a while and want to hand out some very very specific “pro tips”.

Page 51: OOCSS

Names, don’t loose yourself in them.

Stop using “general” names like “extraColumn” and “noticeBox”... Tell it like it is!

Page 52: OOCSS

Respect the design, don’t worship it.

Respect the design, donʼt worship it.

Page 53: OOCSS

Sprites rule, but are a bitch to maintainso beware!

Sprites help, but are a bitch to maintain. I might do a presentation about this later (like why the new Ruby feature is a bad idea). {OFF TOPIC}

Page 54: OOCSS

Progressive enhancement (PNG8).

Fireworks! *pew* *pew* {OFF TOPIC}

Page 56: OOCSS

http://www.yonidebeule.be

Yoni De Beule, http://www.yonidebeule.be, @yoniweb