yzt
2023-05-26 de4278af2fd46705a40bac58ec01122db6b7f3d7
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//  =================
//      Imports
//  =================
 
@import '../../base/base';    // Base Variables
 
.avatar {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}
 
.avatar--group {
  display: inline-flex;
  margin-right: 15px;
}
 
.avatar {
  img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }
 
  .avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: $m-color_7;
    color: $white;
  }
}
 
.avatar--group {
  .avatar-xl {
    margin-left: -1.28125rem;
  }
 
  .avatar {
    margin-left: -.75rem;
  }
 
  img, .avatar .avatar-title {
    border: 2px solid $m-color_6;
  }
}
 
.avatar-xl {
  width: 5.125rem;
  height: 5.125rem;
  font-size: 1.70833rem;
}
 
.avatar-lg {
  width: 4rem;
  height: 4rem;
  font-size: 1.33333rem;
}
 
.avatar-sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: .83333rem;
}
 
/*
    Indicators
*/
 
.avatar-indicators:before {
  content: "";
  position: absolute;
  bottom: 1%;
  right: 5%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  border: 3px solid rgba(191, 201, 212, 0.611764705882353);
}
 
.avatar-offline:before {
  background-color: $m-color_7;
}
 
.avatar-online:before {
  background-color: $m-color_14;
}
 
.avatar {
  &.translateY-axis {
    img, .avatar-title {
      -webkit-transition: all 0.35s ease;
      transition: all 0.35s ease;
    }
 
    img:hover, .avatar-title:hover {
      -webkit-transform: translateY(-5px) scale(1.02);
      transform: translateY(-5px) scale(1.02);
    }
  }
 
  &.translateX-axis {
    img, .avatar-title {
      -webkit-transition: all 0.35s ease;
      transition: all 0.35s ease;
    }
 
    img:hover, .avatar-title:hover {
      -webkit-transform: translateX(5px) scale(1.02);
      transform: translateX(5px) scale(1.02);
    }
  }
}