aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrenden Bice <brenden.next@gmail.com>2019-04-02 16:31:18 -0400
committerBrenden Bice <brenden.next@gmail.com>2019-04-11 23:26:12 -0400
commit0f5ea9c164b0ac11b1554c39386b12550e3f02cb (patch)
tree6cb54f7a27166d96a2fabe84989bd0f93651d7b3 /src
parent8a2f55644c56cdedf27c5bdb8bd54c642fadbe4d (diff)
apply theming to avatars list
Diffstat (limited to 'src')
-rw-r--r--src/components/avatar_list/avatar_list.vue25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/components/avatar_list/avatar_list.vue b/src/components/avatar_list/avatar_list.vue
index 5df62ce5..3941aa0a 100644
--- a/src/components/avatar_list/avatar_list.vue
+++ b/src/components/avatar_list/avatar_list.vue
@@ -1,5 +1,5 @@
<template>
- <ul class="avatars">
+ <ul class="avatars" :class="{ 'transparent-avatar': slicedAvatars.length == 15 }">
<li class="avatars-item" v-for="(avatar, index) in slicedAvatars" :key="`avatar-${index}`">
<UserAvatar :src="avatar.profile_image_url" class="avatars-img" />
</li>
@@ -28,6 +28,29 @@
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
height: 25px !important;
width: 25px !important;
+ 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;
+ }
+ }
}
}
}