bigbuffet-rw/app/styles/components/user-panel.scss

135 lines
2.3 KiB
SCSS
Raw Normal View History

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