2011-08-05 06:46:03 +02:00
|
|
|
/**
|
|
|
|
* Helper SCSS file for generating sprites for the interface.
|
|
|
|
*/
|
|
|
|
@import "compass/utilities/sprites/base";
|
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
@import "btn-icon/*.png";
|
2012-05-12 07:35:38 +02:00
|
|
|
|
|
|
|
.ui-state-default, .ui-widget-content {
|
2012-02-17 00:35:10 +01:00
|
|
|
@include all-btn-icon-sprites;
|
|
|
|
}
|
|
|
|
|
|
|
|
$icon24: sprite-map("menu-icons/24x24/*.png");
|
2014-08-24 19:59:26 +02:00
|
|
|
$icon24-2x: sprite-map("menu-icons/24x24-2x/*.png");
|
2012-02-17 00:35:10 +01:00
|
|
|
$icon16: sprite-map("menu-icons/16x16/*.png");
|
2014-08-24 19:59:26 +02:00
|
|
|
$icon16-2x: sprite-map("menu-icons/16x16-2x/*.png");
|
2011-08-05 06:46:03 +02:00
|
|
|
|
2012-02-17 00:35:10 +01:00
|
|
|
$btn-icon: sprite-map("btn-icon/*.png", $spacing: 10px);
|
|
|
|
$sprites32: sprite-map("sprites-32x32/*.png", $spacing: 10px);
|
2014-08-24 19:59:26 +02:00
|
|
|
$sprites32-2x: sprite-map("sprites-32x32-2x/*.png", $spacing: 20px);
|
2012-11-06 10:53:20 +01:00
|
|
|
$sprites64: sprite-map("sprites-64x64/*.png", $spacing: 10px);
|
2014-08-24 19:59:26 +02:00
|
|
|
$sprites64-2x: sprite-map("sprites-64x64-2x/*.png", $spacing: 20px);
|
2011-08-09 01:39:12 +02:00
|
|
|
|
|
|
|
@mixin icons($sprite) {
|
|
|
|
background: $sprite;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-05 06:46:03 +02:00
|
|
|
&.icon-assetadmin {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "picture");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-cmsmain {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "pencil");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-cmspagescontroller {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "network");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-cmssettingscontroller {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "gears");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-securityadmin {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "community");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-reportadmin {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "pie-chart");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-commentadmin {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "blog");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
&.icon-help {
|
2011-08-09 01:39:12 +02:00
|
|
|
@include sprite($sprite, "information");
|
2011-08-05 06:46:03 +02:00
|
|
|
}
|
|
|
|
}
|
2011-08-09 01:39:12 +02:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
text-indent: -9999px;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
|
|
|
&.icon-24 {
|
2011-08-09 01:39:12 +02:00
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 01:39:12 +02:00
|
|
|
@include icons($icon24);
|
|
|
|
}
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 01:39:12 +02:00
|
|
|
&.icon-16 {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2016-01-06 00:34:58 +01:00
|
|
|
|
2011-08-09 01:39:12 +02:00
|
|
|
@include icons($icon16);
|
|
|
|
}
|
2011-12-21 19:45:20 +01:00
|
|
|
}
|