Spaces:
Configuration error
Configuration error
File size: 1,519 Bytes
a7060a0 | 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 | .userpic {
width: 28px;
height: 28px;
flex-shrink: 0;
display: flex;
position: relative;
align-items: center;
border-radius: 50%;
justify-content: center;
background: var(--color-neutral-surface);
border: 1px solid rgba(var(--color-neutral-shadow-raw) / 10%);
box-shadow: none;
transition: all 150ms ease-out;
user-select: none;
.avatar {
opacity: 0;
width: 100%;
height: 100%;
font-size: 12px;
line-height: 22px;
object-fit: cover;
position: absolute;
border-radius: 100%;
/* Firefox displays weird empty box extending viewport's width (img shouldn't render ::before at all!) */
/* this is a hack to prevent it from rendering */
&::before {
content: none;
display: none;
}
}
.username {
font-size: 12px;
white-space: nowrap;
overflow: hidden;
line-height: 1;
font-weight: bold;
text-align: center;
opacity: 0.6;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
}
.badge {
position: absolute;
&.topLeft {
top: 0;
left: 0;
}
&.topRight {
top: 0;
right: 0;
}
&.bottomLeft {
bottom: 0;
left: 0;
}
&.bottomRight {
bottom: 0;
right: 0;
}
}
&.faded {
background: var(--color-neutral-surface);
box-shadow: inset 0 0 0 1px var(--color-neutral-border-subtle);
.avatar {
opacity: 0.3;
}
}
&.faded .username {
opacity: 0.2;
}
}
|