2019-04-02 02:30:23 +00:00
|
|
|
<template>
|
2019-04-02 20:31:18 +00:00
|
|
|
<ul class="avatars" :class="{ 'transparent-avatar': slicedAvatars.length == 15 }">
|
2019-04-02 20:00:09 +00:00
|
|
|
<li class="avatars-item" v-for="(avatar, index) in slicedAvatars" :key="`avatar-${index}`">
|
2019-04-02 16:02:40 +00:00
|
|
|
<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-05 03:12:37 +00:00
|
|
|
padding: 0;
|
2019-04-02 02:30:23 +00:00
|
|
|
|
2019-04-02 16:02:40 +00:00
|
|
|
&-item {
|
2019-04-05 09:49:31 +00:00
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
margin: 0 5px 0 0;
|
|
|
|
|
|
|
|
&:first-child {
|
2019-04-06 18:07:09 +00:00
|
|
|
padding-left: 12px;
|
2019-04-05 09:49:31 +00:00
|
|
|
}
|
2019-04-02 08:25:08 +00:00
|
|
|
|
2019-04-05 03:12:37 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2019-04-02 16:02:40 +00:00
|
|
|
.avatars-img {
|
2019-04-02 20:00:09 +00:00
|
|
|
border-radius: $fallback--avatarAltRadius;
|
|
|
|
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
|
2019-04-05 09:49:31 +00:00
|
|
|
height: 24px !important;
|
|
|
|
width: 24px !important;
|
2019-04-02 20:31:18 +00:00
|
|
|
background-color: $fallback--lightText;
|
|
|
|
background-color: var(--lightText, $fallback--lightText);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.transparent-avatar {
|
|
|
|
.avatars-item {
|
|
|
|
&:first-child {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.avatars-img {
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: $fallback--faint;
|
|
|
|
background-color: var(--faint, $fallback--faint);
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-04-02 02:30:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|