Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a#something {
- background: url('path');
- &.selected {
- background: url($path + '-selected');
- }
- }
- @mixin selected-icon-background($path, $ext) {
- background: url($path + '.' + $ext);
- &.selected {
- background: url($path + '-selected' + '.' + $ext);
- }
- }
- ___ Used :
- a#something {
- @include selected-icon-background('images/icons/home', 'png');
- }
- a#something {
- background: url('images/icons/home.png');
- }
- a#something.selected {
- background: url('images/icons/home-selected.png');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement