Skip to content

Commit

Permalink
Css Sprites!
Browse files Browse the repository at this point in the history
Adds 2 CSS Sprites (one for the main menu button, and one for the next level button)
  • Loading branch information
hobnob committed Nov 28, 2012
1 parent 8ed72eb commit 93f8bbe
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,29 +138,31 @@ canvas

#game_scorecard .nextLevel
{
background-image:url(../img/next-off.png);
background-image:url(../img/next-button.png);
width:180px;
height:92px;
top:-313px;
margin-left:277px;
background-position: 0px 0px;
}

#game_scorecard .nextLevel:hover
{
background-image:url(../img/next-on.png);
background-position: -190px 0px;
}

#game_scorecard .mainMenu
{
background-image:url(../img/menu-off.png);
background-image:url(../img/menu-button.png);
width:180px;
height:92px;
margin-left:28px;
background-position: 0px 0px;
}

#game_scorecard .mainMenu:hover
{
background-image:url(../img/menu-on.png);
background-position: -190px 0px;
}

#game_scorecard .resetLevel
Expand Down
Binary file added img/menu-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/menu-off.png
Binary file not shown.
Binary file removed img/menu-on.png
Binary file not shown.
Binary file added img/next-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93f8bbe

Please sign in to comment.