convert rollovers to pure CSS with sprites

This commit is contained in:
Dan Rice 2012-09-29 09:56:51 -04:00
parent c56fb05536
commit 9a1faa9701
17 changed files with 25 additions and 34 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

After

Width:  |  Height:  |  Size: 681 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 B

After

Width:  |  Height:  |  Size: 726 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

BIN
app/assets/images/edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -107,28 +107,20 @@ h3 {
/* Rules for the icon links */
img.edit_item {
background-image: image-url('edit_off.png');
background-repeat: no-repeat;
background: image-url('edit.png') no-repeat top;
border: none;
a:hover & {
background-image: image-url('edit_on.png');
background-color: transparent;
background-repeat: no-repeat;
border: none;
background-position: bottom;
}
}
img.delete_item {
background-image: image-url('delete_off.png');
background-repeat: no-repeat;
background: image-url('delete.png') no-repeat top;
border: none;
a:hover & {
background-image: image-url('delete_on.png');
background-color: transparent;
background-repeat: no-repeat;
border: none;
background-position: bottom;
}
}
@ -1457,10 +1449,21 @@ a.item-downarrow {
ul.todo-submenu > li > a {
position: relative;
padding-left: 24px;
height: 16px;
> img {
position: absolute;
left: 0px;
top: 0px;
&.icon_delete_item {
background: image-url('delete.png') no-repeat 2px top;
&:hover { background-position: 2px bottom; }
}
@each $days in 1, 2, 3, 7 {
&.icon_defer_#{$days}_item {
background: image-url('defer_#{$days}.png') no-repeat left top;
&:hover { background-position: left bottom; }
}
}
&.icon_item_to_project {
background: image-url('to_project_off.png') no-repeat;
}
}