sass-site/source/assets/css/components/_icons.scss

30 lines
571 B
SCSS
Raw Normal View History

2018-12-28 01:31:28 +01:00
$os-icons: 'icons/os-icons.png';
2013-10-14 21:52:40 +02:00
// TODO: Make these use a 16-base instead of 15.
%os-icons {
2013-10-14 21:52:40 +02:00
background: image-url($os-icons) 0 0 no-repeat;
2018-12-28 01:31:28 +01:00
background-size: auto sl-px-to-rem(15px);
display: inline-block;
2018-12-28 01:31:28 +01:00
width: sl-px-to-rem(15px);
height: sl-px-to-rem(15px);
}
2018-12-28 01:31:28 +01:00
.mac-icon {
@extend %os-icons;
2018-12-28 01:31:28 +01:00
background-position: -(sl-px-to-rem(35px)) 0;
}
2018-12-28 01:31:28 +01:00
.windows-icon {
@extend %os-icons;
}
2018-12-28 01:31:28 +01:00
.linux-icon {
@extend %os-icons;
2018-12-28 01:31:28 +01:00
background-position: -(sl-px-to-rem(65px)) 0;
}
2018-12-28 01:31:28 +01:00
.paid-icon {
@extend %os-icons;
2018-12-28 01:31:28 +01:00
background-position: -(sl-px-to-rem(100px)) 0;
}