css3: the future is now at drupal design camp boston

43
drupal Design camp boston June 2010 http: // extras.jensimmons.com / designcamp2010 / css3.pdf CSS 3 : The Future is Now Sunday, June 20, 2010

Upload: jen-simmons

Post on 16-Jan-2015

1.786 views

Category:

Technology


0 download

DESCRIPTION

The next generation of CSS is here, and it's being used on thousands of sites. Come learn about the new styles, and how to use them today. Rounded corners, gradients, translucent color, shadows — forget making images, do it with CSS.I cover the state of cross-browser support and tips for implementing graceful fallbacks. I talk about the future and where CSS3 is going. And I provide resources on where to learn more.

TRANSCRIPT

Page 1: CSS3: The Future is Now at Drupal Design Camp Boston

drupal Design camp boston June 2010

http://extras.jensimmons.com/designcamp2010/css3.pdf

CSS3: The Future is Now

Sunday, June 20, 2010

Page 2: CSS3: The Future is Now at Drupal Design Camp Boston

Jen SimmonsLullabot Trainer

Lead Front-End Developer and architect at workhabit

twitter: jensimmonsirc/d.o: jensimmons

http://extras.jensimmons.com/drupalconsf2010/css3.pdf

Sunday, June 20, 2010

Page 3: CSS3: The Future is Now at Drupal Design Camp Boston

wouldn’t you like tomake rounded corners

put multiple background images on one thing

make drop shadows

put shadows on text

have image-based borders on boxes

layout your content in multiple columns

use translucent colors

create gradients and reflections

use more fonts on the web

animate stuff

Sunday, June 20, 2010

Page 4: CSS3: The Future is Now at Drupal Design Camp Boston

with just css

You can!

today

Sunday, June 20, 2010

Page 5: CSS3: The Future is Now at Drupal Design Camp Boston

butwhat about the

evil one?

Sunday, June 20, 2010

Page 6: CSS3: The Future is Now at Drupal Design Camp Boston

ieSunday, June 20, 2010

Page 7: CSS3: The Future is Now at Drupal Design Camp Boston

well,you can ignore

internet explorer

let it stay in 200X

Sunday, June 20, 2010

Page 9: CSS3: The Future is Now at Drupal Design Camp Boston

Sunday, June 20, 2010

Page 10: CSS3: The Future is Now at Drupal Design Camp Boston

Sunday, June 20, 2010

Page 11: CSS3: The Future is Now at Drupal Design Camp Boston

“progressive enhancement”

Sunday, June 20, 2010

Page 12: CSS3: The Future is Now at Drupal Design Camp Boston

compliantbrowser*

drop shadow

rounded corners

gradient

translucency

new font

none

square corners

solid color

opaqueness

old font

internetexplorer

* safari & chrome, firefox, opera

Sunday, June 20, 2010

Page 13: CSS3: The Future is Now at Drupal Design Camp Boston

workaround ie with filter hacks

filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999'); /* IE6,IE7 */ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#444444', EndColorStr='#999999')"; /* IE8 */

http://css3please.com

Sunday, June 20, 2010

Page 14: CSS3: The Future is Now at Drupal Design Camp Boston

http://modernizr.com

Sunday, June 20, 2010

Page 15: CSS3: The Future is Now at Drupal Design Camp Boston

http://code.google.com/chrome/chromeframe

Sunday, June 20, 2010

Page 16: CSS3: The Future is Now at Drupal Design Camp Boston

enough about iewhat about

everybody else?

safari

chrome

opera

firefox

Sunday, June 20, 2010

Page 17: CSS3: The Future is Now at Drupal Design Camp Boston

browser makers are implementing stuff that not everyone

has agreed to.

and it’s ok.Sunday, June 20, 2010

Page 18: CSS3: The Future is Now at Drupal Design Camp Boston

border-radius: 12px;

-webkit-border-radius: 12px; /* Saf3+, Chrome */

-moz-border-radius: 12px; /* FF1+ */

{

}

/* Opera 10.5, IE 9 */

Sunday, June 20, 2010

Page 19: CSS3: The Future is Now at Drupal Design Camp Boston

div.block {-moz-border-radius: 12px;-webkit-border-radius: 12px;-khtml-border-radius: 12px;border-radius: 12px;}

Sunday, June 20, 2010

Page 20: CSS3: The Future is Now at Drupal Design Camp Boston

browser makers are implementing stuff in bits and pieces

over time.

and it’s ok.Sunday, June 20, 2010

Page 21: CSS3: The Future is Now at Drupal Design Camp Boston

the Css working group (where css is born)

is creating the spec over time

in

“modules”Sunday, June 20, 2010

Page 23: CSS3: The Future is Now at Drupal Design Camp Boston

let’s get to it

Sunday, June 20, 2010

Page 24: CSS3: The Future is Now at Drupal Design Camp Boston

Border-radiushttp://border-radius.com

Sunday, June 20, 2010

Page 25: CSS3: The Future is Now at Drupal Design Camp Boston

box-shadowhttp://westciv.com/tools/boxshadows

Sunday, June 20, 2010

Page 26: CSS3: The Future is Now at Drupal Design Camp Boston

text-shadowhttp://css3generator.com

Sunday, June 20, 2010

Page 27: CSS3: The Future is Now at Drupal Design Camp Boston

http://lab.simurai.com/css/iloveblur

Sunday, June 20, 2010

Page 28: CSS3: The Future is Now at Drupal Design Camp Boston

http://desandro.com/articles/the-new-lens-flare

Sunday, June 20, 2010

Page 29: CSS3: The Future is Now at Drupal Design Camp Boston

multicolumn layouthttp://css3generator.com

Sunday, June 20, 2010

Page 30: CSS3: The Future is Now at Drupal Design Camp Boston

gradientshttp://gradients.glrzad.com

http://westciv.com/tools/gradientshttp://westciv.com/tools/radialgradients

Sunday, June 20, 2010

Page 31: CSS3: The Future is Now at Drupal Design Camp Boston

rgba and hslahttp://css3generator.com

Sunday, June 20, 2010

Page 32: CSS3: The Future is Now at Drupal Design Camp Boston

transformationshttp://westciv.com/tools/transforms

Sunday, June 20, 2010

Page 33: CSS3: The Future is Now at Drupal Design Camp Boston

CSS animations

one cool example:http://anthonycalzadilla.com/css3-ATAT

(only works in webkit)

-webkit-transform: translate(x,y) rotate(x)

Sunday, June 20, 2010

Page 34: CSS3: The Future is Now at Drupal Design Camp Boston

font-facehttp://fontsquirrel.com

http://typekit.com

Sunday, June 20, 2010

Page 35: CSS3: The Future is Now at Drupal Design Camp Boston

http://typefolly.comhttp://drupal.org/project/google_fonts

Sunday, June 20, 2010

Page 36: CSS3: The Future is Now at Drupal Design Camp Boston

resources

Sunday, June 20, 2010

Page 37: CSS3: The Future is Now at Drupal Design Camp Boston

tools

http://css3generator.com

http://border-radius.com

http://westciv.com/tools

http://gradients.glrzad.com

Sunday, June 20, 2010

Page 38: CSS3: The Future is Now at Drupal Design Camp Boston

Dan cederholmHandcrafted css

Sunday, June 20, 2010

Page 39: CSS3: The Future is Now at Drupal Design Camp Boston

andy clarkehardboiled web design

Sunday, June 20, 2010

Page 41: CSS3: The Future is Now at Drupal Design Camp Boston

http://css3.info

Sunday, June 20, 2010

Page 42: CSS3: The Future is Now at Drupal Design Camp Boston

http://google.com

Sunday, June 20, 2010

Page 43: CSS3: The Future is Now at Drupal Design Camp Boston

http://extras.jensimmons.com/designcamp2010/css3.pdf

find me on twitter, irc, drupal.org, and irl: jensimmons

have fun :)welcome to the future

Sunday, June 20, 2010