Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lemonade - CSS Sprites on the fly

Duke
December 11, 2010

Lemonade - CSS Sprites on the fly

Apresentação no #GURUSP sobre Lemonade

Duke

December 11, 2010
Tweet

More Decks by Duke

Other Decks in Programming

Transcript

  1. menu_default.png menu_hover.png menu_active.png menu_link.png #button li a background-image: url('menu_default.png') #button

    li a:hover background-image: url('menu_hover.png') #button li a:active background-image: url('menu_active.png') #button li a.link background-image: url('menu_link.png')
  2. menu_default.png menu_hover.png menu_active.png menu_link.png #button li a background-image: url('menu_default.png') #button

    li a:hover background-image: url('menu_hover.png') #button li a:active background-image: url('menu_active.png') #button li a.link background-image: url('menu_link.png') 4 Requisições
  3. background_menu.png #button li a background: url('background_menu.png') no-repeat 0 0 #button

    li a:hover background-position: 0 -39px #button li a:active background-position: 0 -82px #button li a.link background-position: 0 -123px
  4. background_menu.png #button li a background: url('background_menu.png') no-repeat 0 0 #button

    li a:hover background-position: 0 -39px #button li a:active background-position: 0 -82px #button li a.link background-position: 0 -123px
  5. background_menu.png #button li a background: url('background_menu.png') no-repeat 0 0 #button

    li a:hover background-position: 0 -39px #button li a:active background-position: 0 -82px #button li a.link background-position: 0 -123px 0 -39px -82px -123px
  6. #nav li a.addimage background: sprite-image(‘bar/addimage.png’) #nav li a.upload background: sprite-image(‘nav/upload.png’)

    #nav li a.export background: sprite-image(‘nav/export.png’) nav.png nav.png bar.png
  7. #nav li a.addimage{ background: url(‘/images/nav.png’); } #nav li a.upload{ background:

    url(‘/images/nav.png’) 0 -23px; } #nav li a.export{ background: url(‘/images/nav.png’) 0 -46px; }
  8. @emersonvinicius LEMONADE INGREDIENTS PURE RUBY, SASS, COMPASS, RMAGICK, NO ARTIFICIAL

    FLAVORS OR SUGAR ADDED. http://bit.ly/lemo-info Obrigado!