-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.less
53 lines (43 loc) · 1.16 KB
/
index.less
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
///////////////////////
// Credit Card Logos //
///////////////////////
#credit-card-logos {
.init( @path: '/img', @width: 160px, @height: 100px ){
.card-logo {
display: inline-block;
#credit-card-logos > .create-size-variant( @width, @height );
&.small {
#credit-card-logos > .create-size-variant( @width / 3, @height / 3 );
}
&.large {
#credit-card-logos > .create-size-variant( @width * 1.5, @height * 1.5 );
}
&.card-logo-visa {
background-image: url('@{path}/card-logo-visa.svg');
}
&.card-logo-mastercard {
background-image: url('@{path}/card-logo-mastercard.svg');
}
&.card-logo-amex {
background-image: url('@{path}/card-logo-amex.svg');
}
&.card-logo-unknown {
background-image: url('@{path}/card-logo-unknown.svg');
}
}
.card-logo-list {
list-style: none;
margin: 0;
padding: 0;
font-size: 0;
> .card-logo + .card-logo {
margin-left: 6px;
}
}
}
.create-size-variant( @width, @height ){
width: @width;
height: @height;
background-size: @width @height;
}
}