@import compass/typography/text/replacement

=icon-text($ident, $icon: $ident, $size: 16)
  .icon-#{$ident}-text
    +replace-text-with-dimensions("#{$size}x#{$size}/#{$icon}.png")
    display: block
    float: left

=icon($ident, $size: 16)
  background-image: image-url("#{$size}x#{$size}/#{$ident}.png")

=icon-class($ident, $icon: $ident, $size: 16)
  .contextual
    .icon-#{$ident}
      +icon($icon, $size)

.contextual
  .icon
    background-repeat: no-repeat
    padding-left: 20px
    text-decoration: none
    font-size: 16px
    color: $link_color
    &:hover
      color: $link_color_hover
    background-position: 0px 0px
    display: inline


+icon-class("add")
+icon-class("delete")
+icon-class("edit")
+icon-class("index")
+icon-class("show")

+icon-text("add")
+icon-text("delete")
+icon-text("edit")
+icon-text("index")
+icon-text("show")

@import compass/typography/text/replacement

=icon-text($ident, $icon: $ident, $size: 16)
  .icon-#{$ident}-text
    +replace-text-with-dimensions("#{$size}x#{$size}/#{$icon}.png")
    display: block
    float: left

=icon($ident, $size: 16)
  background-image: image-url("#{$size}x#{$size}/#{$ident}.png")

=icon-class($ident, $icon: $ident, $size: 16)
  .contextual
    .icon.icon-#{$ident}
      +icon($icon, $size)

.contextual
  .icon
    background-repeat: no-repeat
    background-image: none
    padding-left: 20px
    text-decoration: none
    font-size: 16px
    color: $link_color
    &:hover
      color: $link_color_hover
    background-position: 0px 0px
    display: inline


+icon-class("add")
+icon-class("delete")
+icon-class("edit")
+icon-class("index")
+icon-class("show")

+icon-text("add")
+icon-text("delete")
+icon-text("edit")
+icon-text("index")
+icon-text("show")

Fix bad icons overlaying contextual link.
Fix bad icons overlaying contextual link.
