You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soapbox/app/styles/components/user-panel.scss

113 lines
1.9 KiB

5 years ago
.user-panel {
@include standard-panel;
4 years ago
display: flex;
width: 265px;
flex-direction: column;
overflow-y: hidden;
4 years ago
&__header {
display: block;
height: 112px;
width: 100%;
background: var(--brand-color-faint);
5 years ago
4 years ago
img {
display: block;
height: 100%;
width: 100%;
margin: 0;
object-fit: cover;
}
}
5 years ago
4 years ago
&__profile {
display: flex;
align-items: flex-start;
padding: 0 10px;
margin-top: -53px;
5 years ago
4 years ago
.account__avatar {
display: block;
width: 82px;
height: 82px;
border: 6px solid var(--foreground-color);
4 years ago
background-size: cover;
}
}
5 years ago
4 years ago
&__meta {
display: block;
padding: 6px 20px 17px;
opacity: 0.6;
4 years ago
}
5 years ago
4 years ago
&__account {
a {
text-decoration: none;
color: var(--primary-text-color);
4 years ago
}
5 years ago
4 years ago
&__name {
display: block;
font-size: 20px;
font-weight: bold;
line-height: 24px;
color: var(--primary-text-color);
4 years ago
}
5 years ago
4 years ago
&:hover & {
&__name {
text-decoration: underline;
}
}
5 years ago
4 years ago
&__username {
display: block;
font-size: 14px;
line-height: 16px;
color: var(--primary-text-color-faint);
4 years ago
text-decoration: none !important;
}
}
5 years ago
4 years ago
&__stats-block {
display: flex;
justify-content: space-between;
padding-top: 12px;
}
5 years ago
4 years ago
.user-panel-stats-item {
display: flex;
align-items: flex-start;
4 years ago
justify-content: left;
flex-wrap: wrap;
flex-direction: column;
5 years ago
4 years ago
a {
text-decoration: none;
color: var(--primary-text-color);
5 years ago
4 years ago
&:hover {
opacity: 0.8;
}
}
5 years ago
4 years ago
&__value {
display: block;
width: 100%;
color: var(--primary-text-color);
4 years ago
font-size: 20px;
font-weight: 800;
line-height: 24px;
}
5 years ago
4 years ago
&__label {
display: block;
width: 100%;
color: var(--primary-text-color-faint);
4 years ago
font-size: 12px;
line-height: 14px;
}
}
5 years ago
}