2019-04-02 02:30:23 +00:00
|
|
|
<template>
|
2019-04-02 16:02:40 +00:00
|
|
|
<ul class="avatars" :class="{ 'transparent-avatar': slicedAvatars.length == 15 }">
|
|
|
|
<li class="avatars-item" v-for="avatar in slicedAvatars" :key="avatar.id">
|
|
|
|
<UserAvatar :src="avatar.profile_image_url" class="avatars-img" />
|
2019-04-02 02:30:23 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./avatar_list.js" ></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
.avatars {
|
|
|
|
display: inline-flex; /* Causes LI items to display in row. */
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
2019-04-02 16:02:40 +00:00
|
|
|
padding: 0px 15px 0px 0px;
|
|
|
|
flex-direction: row-reverse;
|
2019-04-02 02:30:23 +00:00
|
|
|
|
2019-04-02 16:02:40 +00:00
|
|
|
&-item {
|
|
|
|
height: 30px;
|
2019-04-02 02:30:23 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2019-04-02 16:02:40 +00:00
|
|
|
width: 15px;
|
2019-04-02 08:25:08 +00:00
|
|
|
|
2019-04-02 16:02:40 +00:00
|
|
|
.avatars-img {
|
2019-04-02 02:30:23 +00:00
|
|
|
border-radius: 50%;
|
2019-04-02 16:02:40 +00:00
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
|
|
|
line-height: 30px;
|
2019-04-02 02:38:56 +00:00
|
|
|
background-color: $main-background;
|
2019-04-02 02:30:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.transparent-avatar {
|
2019-04-02 16:02:40 +00:00
|
|
|
.avatars-item {
|
|
|
|
&:first-child {
|
2019-04-02 02:30:23 +00:00
|
|
|
position: relative;
|
|
|
|
|
2019-04-02 16:02:40 +00:00
|
|
|
.avatars-img {
|
2019-04-02 02:30:23 +00:00
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|