.priority-sprite(@count) when (@count >= 0) {
    .priority-sprite(@count - 1);
    &.priority-@{count} {
        background-position: 0 (-20px * (@count - 1));
    }
}

.tab-content .km-priority {
    vertical-align: middle;
    font-size: inherit;
    display: inline-block;
    width: 140px;
    margin: 5px;
    border-right: 1px dashed #eee;

    .km-priority-item {
        margin: 0 1px;
        padding: 1px;

        .km-priority-icon {
            .priority-sprite(9);
            background: url(images/iconpriority.png) repeat-y;
            background-color: transparent;
        }
  }
}