icon.css
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
LESS 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 name;
At the bottom of this section, we provide information about the spritesheet itself
@spritesheet: width height image @spritesheet-sprites;
*/
/*
The provided classes are intended to be used with the array-like variables
.icon-home {
.sprite-width(@icon-home);
}
.icon-email {
.sprite(@icon-email);
}
*/
/*
The `.sprites` mixin generates identical output to the CSS template
but can be overridden inside of LESS
This must be run when you have at least 2 sprites.
If run with a single sprite, then there will be reference errors.
.sprites(@spritesheet-sprites);
*/
.m-icon {
display: inline-block;
vertical-align: middle;
}
.icon-back-to {
background-image: url(../images/dist/sprite.png);
background-position: 0px 0px;
width: 22px;
width: 11px;
height: 38px;
height: 19px;
background-size: 25px;
}
.icon-back {
background-image: url(../images/dist/sprite.png);
background-position: -28px 0px;
background-position: -14px 0px;
width: 22px;
width: 11px;
height: 38px;
height: 19px;
background-size: 25px;
}