_avatar.scss
1.12 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
56
57
58
59
60
61
62
63
64
65
66
67
.avatar {
background-color: $black-bg;
border-radius: 50%;
color: $black-text;
display: block;
height: ($line-height * 2);
line-height: ($line-height * 2);
text-align: center;
width: ($line-height * 2);
&:focus,
&:hover {
text-decoration: none;
}
&.pull-left {
margin-right: $grid-gutter;
}
&.pull-right {
margin-left: $grid-gutter;
}
img {
border-radius: 50%;
height: 100%;
vertical-align: top;
width: 100%;
}
.fa {
display: block;
height: 100%;
line-height: inherit;
text-align: center;
}
.fa-text {
font-family: inherit;
}
}
// colour
@each $color in $palette-list {
$i: index($palette-list, $color);
.avatar-#{$color} {
background-color: nth($palette-color, $i);
color: $white;
}
}
.avatar-inline {
display: inline-block;
}
.avatar-lg {
height: ($line-height * 4);
line-height: ($line-height * 4);
width: ($line-height * 4);
}
.avatar-sm {
height: ($line-height * 1.5);
line-height: ($line-height * 1.5);
margin-top: ($line-height * -0.25);
margin-bottom: ($line-height * -0.25);
width: ($line-height * 1.5);
}
.avatar-transparent {
background-color: transparent;
}