This blog has moved to http://teabass.com

There will be no more posts or comments on this site, please update your bookmarks and feeds to http://teabass.com.

Yahoo Reset 2.6.0 in Sass

Wednesday, October 15th, 2008

I’ve just converted the most recent Yahoo reset into Sass, I’m sure it could be of use to others so here it is:

/*
  Copyright (c) 2008, Yahoo! Inc. All rights reserved.
  Code licensed under the BSD License:
  http://developer.yahoo.net/yui/license.txt
  version: 2.6.0

html
  :color #000
  :background #FFF
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td
  :margin 0
  :padding 0
table
  :border
    :collapse collapse
    :spacing 0
fieldset,img
  :border 0
address,caption,cite,code,dfn,em,strong,th,var
  :font
    :style normal
    :weight normal
li
  :list-style none
caption,th
  :text-align left
h1,h2,h3,h4,h5,h6
  :font
    :size 100%
    :weight normal
q:before,q:after
  :content ''
abbr,acronym
  :border 0
  :font-variant normal
sup
  :vertical-align text-top
sub
  :vertical-align text-bottom
input,textarea,select
  :font
    :family inherit
    :size inherit
    :weight inherit
input,textarea,select
  :*font-size 100%
legend
  :color #000
del,ins
  :text-decoration none

Also available in a pastie here: http://pastie.org/293025

Leave a Comment