2020-12-03 11:11:46 -05:00
|
|
|
.PreviewView {
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView h1 {
|
|
|
|
font-size: 24px;
|
|
|
|
line-height: 32px;
|
|
|
|
margin-bottom: 8px;
|
2021-04-12 09:21:27 -04:00
|
|
|
word-wrap: anywhere;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .avatarContainer {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .avatar {
|
|
|
|
border-radius: 100%;
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
}
|
|
|
|
|
2020-12-07 11:47:08 -05:00
|
|
|
.PreviewView .defaultAvatar {
|
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
|
|
|
background-image: url('../images/chat-icon.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: 85%;
|
|
|
|
}
|
|
|
|
|
2020-12-03 11:11:46 -05:00
|
|
|
.PreviewView .spinner {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .avatar.loading {
|
|
|
|
border: 1px solid #eee;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-12-07 11:57:10 -05:00
|
|
|
box-sizing: border-box;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .identifier {
|
|
|
|
color: var(--grey);
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .identifier.placeholder {
|
|
|
|
height: 1em;
|
2020-12-07 11:57:10 -05:00
|
|
|
margin: 1em 30%;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .memberCount {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .memberCount.loading {
|
|
|
|
margin: 16px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .memberCount p {
|
2020-12-03 11:42:46 -05:00
|
|
|
font-size: 12px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .memberCount p:not(.placeholder) {
|
2020-12-07 10:02:06 -05:00
|
|
|
padding: 4px 8px 4px 24px;
|
|
|
|
border-radius: 14px;
|
2020-12-03 11:27:36 -05:00
|
|
|
background-image: url(../images/member-icon.svg);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 2px center;
|
2020-12-03 11:11:46 -05:00
|
|
|
background-color: var(--lightgrey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .memberCount p.placeholder {
|
|
|
|
height: 1.5em;
|
2020-12-03 11:27:36 -05:00
|
|
|
width: 100px;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .topic {
|
|
|
|
font-size: 12px;
|
|
|
|
color: var(--grey);
|
2020-12-03 11:30:02 -05:00
|
|
|
margin: 32px 0;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .topic.loading {
|
|
|
|
display: block;
|
2020-12-03 11:30:02 -05:00
|
|
|
margin: 24px 12px;
|
2020-12-03 11:27:36 -05:00
|
|
|
padding: 4px 0;
|
2020-12-03 11:11:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .topic.loading .placeholder {
|
|
|
|
height: 0.8em;
|
|
|
|
display: block;
|
|
|
|
margin: 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreviewView .topic.loading .placeholder:nth-child(2) {
|
|
|
|
margin-left: 5%;
|
|
|
|
margin-right: 5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder {
|
|
|
|
border-radius: 1em;
|
|
|
|
--flash-bg: #ddd;
|
|
|
|
--flash-fg: #eee;
|
|
|
|
background: linear-gradient(120deg,
|
|
|
|
var(--flash-bg),
|
|
|
|
var(--flash-bg) 10%,
|
|
|
|
var(--flash-fg) calc(10% + 25px),
|
|
|
|
var(--flash-bg) calc(10% + 50px)
|
|
|
|
);
|
2020-12-07 10:02:06 -05:00
|
|
|
animation: flash 2s linear infinite;
|
2020-12-03 11:11:46 -05:00
|
|
|
background-size: 200%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes flash {
|
|
|
|
0% { background-position-x: 0; }
|
|
|
|
50% { background-position-x: -80%; }
|
2020-12-07 12:00:32 -05:00
|
|
|
51% { background-position-x: 80%; }
|
2020-12-03 11:11:46 -05:00
|
|
|
100% { background-position-x: 0%; }
|
|
|
|
}
|