soapbox/app/styles/components/user-panel.scss

135 lines
2.3 KiB
SCSS
Raw Normal View History

2020-03-27 20:59:38 +00:00
.user-panel {
2020-06-02 22:42:09 +00:00
@include standard-panel;
2020-05-16 03:48:08 +00:00
display: flex;
width: 265px;
flex-direction: column;
2021-01-19 00:44:05 +00:00
overflow: hidden;
2020-06-16 12:06:44 +00:00
.user-panel__account__name {
display: inline;
}
.verified-icon {
opacity: 1;
}
2020-06-16 12:06:44 +00:00
&,
.user-panel__account__name,
.user-panel__account__username {
2020-08-03 03:19:52 +00:00
white-space: nowrap;
color: var(--primary-text-color--faint);
2020-06-16 12:06:44 +00:00
}
2020-05-29 00:58:37 +00:00
2020-05-16 03:48:08 +00:00
&__header {
display: block;
height: 112px;
width: 100%;
2020-06-07 03:55:00 +00:00
background: var(--brand-color--faint);
2020-03-27 20:59:38 +00:00
2020-07-01 20:06:31 +00:00
.still-image {
height: 100%;
}
2020-05-16 03:48:08 +00:00
img {
display: block;
height: 100%;
width: 100%;
margin: 0;
object-fit: cover;
}
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__profile {
display: flex;
align-items: flex-start;
padding: 0 10px;
margin-top: -53px;
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
.account__avatar {
display: block;
width: 82px;
height: 82px;
2020-06-01 02:05:00 +00:00
border: 6px solid var(--foreground-color);
2020-05-16 03:48:08 +00:00
background-size: cover;
}
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__meta {
display: block;
2020-05-29 00:58:37 +00:00
padding: 6px 20px 17px;
// opacity: 0.6;
2020-05-16 03:48:08 +00:00
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__account {
a {
text-decoration: none;
color: var(--primary-text-color--faint);
2020-08-30 23:52:29 +00:00
display: block;
overflow: hidden;
text-overflow: ellipsis;
2020-05-16 03:48:08 +00:00
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__name {
display: block;
font-size: 20px;
font-weight: bold;
line-height: 24px;
color: var(--primary-text-color--faint);
2020-05-16 03:48:08 +00:00
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&:hover & {
&__name {
text-decoration: underline;
}
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__username {
display: block;
font-size: 14px;
line-height: 16px;
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
2020-05-16 03:48:08 +00:00
text-decoration: none !important;
}
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__stats-block {
display: flex;
justify-content: space-between;
padding-top: 12px;
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
.user-panel-stats-item {
display: flex;
align-items: flex-start;
2020-05-16 03:48:08 +00:00
justify-content: left;
flex-wrap: wrap;
flex-direction: column;
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
a {
text-decoration: none;
color: var(--primary-text-color--faint);
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&:hover {
opacity: 0.8;
}
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__value {
display: block;
width: 100%;
color: var(--primary-text-color--faint);
2020-05-16 03:48:08 +00:00
font-size: 20px;
font-weight: 800;
line-height: 24px;
}
2020-03-27 20:59:38 +00:00
2020-05-16 03:48:08 +00:00
&__label {
display: block;
width: 100%;
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
2020-05-16 03:48:08 +00:00
font-size: 12px;
line-height: 14px;
}
}
2020-03-27 20:59:38 +00:00
}