|
Server IP : 10.107.20.4 / Your IP : 216.73.217.92 Web Server : Apache System : Linux webm004.cluster107.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : simfexinjt ( 803937) PHP Version : 7.1.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/simfexinjt/../s/../simfexinjt/dev/../dev/../www/wp-content/themes/simflex/sass/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
// SCSS variables are information about icon's compiled state, stored under its original file name
//
// .icon-home {
// width: $icon-home-width;
// }
//
// The large array-like variables contain all information about a single icon
// $icon-home: x y offset_x offset_y width height total_width total_height image_path;
//
// At the bottom of this section, we provide information about the spritesheet itself
// $spritesheet: width height image $spritesheet-sprites;
$burger-name: 'burger';
$burger-x: 64px;
$burger-y: 0px;
$burger-offset-x: -64px;
$burger-offset-y: 0px;
$burger-width: 64px;
$burger-height: 65px;
$burger-total-width: 128px;
$burger-total-height: 85px;
$burger-image: 'img/simflex-sprite.png';
$burger: (64px, 0px, -64px, 0px, 64px, 65px, 128px, 85px, 'img/simflex-sprite.png', 'burger', );
$edit-name: 'edit';
$edit-x: 20px;
$edit-y: 66px;
$edit-offset-x: -20px;
$edit-offset-y: -66px;
$edit-width: 16px;
$edit-height: 16px;
$edit-total-width: 128px;
$edit-total-height: 85px;
$edit-image: 'img/simflex-sprite.png';
$edit: (20px, 66px, -20px, -66px, 16px, 16px, 128px, 85px, 'img/simflex-sprite.png', 'edit', );
$logo-name: 'logo';
$logo-x: 0px;
$logo-y: 0px;
$logo-offset-x: 0px;
$logo-offset-y: 0px;
$logo-width: 64px;
$logo-height: 66px;
$logo-total-width: 128px;
$logo-total-height: 85px;
$logo-image: 'img/simflex-sprite.png';
$logo: (0px, 0px, 0px, 0px, 64px, 66px, 128px, 85px, 'img/simflex-sprite.png', 'logo', );
$phone-name: 'phone';
$phone-x: 0px;
$phone-y: 66px;
$phone-offset-x: 0px;
$phone-offset-y: -66px;
$phone-width: 20px;
$phone-height: 19px;
$phone-total-width: 128px;
$phone-total-height: 85px;
$phone-image: 'img/simflex-sprite.png';
$phone: (0px, 66px, 0px, -66px, 20px, 19px, 128px, 85px, 'img/simflex-sprite.png', 'phone', );
$spritesheet-width: 128px;
$spritesheet-height: 85px;
$spritesheet-image: 'img/simflex-sprite.png';
$spritesheet-sprites: ($burger, $edit, $logo, $phone, );
$spritesheet: (128px, 85px, 'img/simflex-sprite.png', $spritesheet-sprites, );
// The provided mixins are intended to be used with the array-like variables
//
// .icon-home {
// @include sprite-width($icon-home);
// }
//
// .icon-email {
// @include sprite($icon-email);
// }
//
// Example usage in HTML:
//
// `display: block` sprite:
// <div class="icon-home"></div>
//
// To change `display` (e.g. `display: inline-block;`), we suggest using a common CSS class:
//
// // CSS
// .icon {
// display: inline-block;
// }
//
// // HTML
// <i class="icon icon-home"></i>
@mixin sprite-width($sprite) {
width: nth($sprite, 5);
}
@mixin sprite-height($sprite) {
height: nth($sprite, 6);
}
@mixin sprite-position($sprite) {
$sprite-offset-x: nth($sprite, 3);
$sprite-offset-y: nth($sprite, 4);
background-position: $sprite-offset-x $sprite-offset-y;
}
@mixin sprite-image($sprite) {
$sprite-image: nth($sprite, 9);
background-image: url(#{$sprite-image});
}
@mixin sprite($sprite) {
@include sprite-image($sprite);
@include sprite-position($sprite);
@include sprite-width($sprite);
@include sprite-height($sprite);
}
// The `sprites` mixin generates identical output to the CSS template
// but can be overridden inside of SCSS
//
// @include sprites($spritesheet-sprites);
@mixin sprites($sprites) {
@each $sprite in $sprites {
$sprite-name: nth($sprite, 10);
.#{$sprite-name} {
@include sprite($sprite);
}
}
}