gab-social/app/javascript/styles/gabsocial/components/user-panel.scss

118 lines
1.9 KiB
SCSS
Raw Normal View History

2019-07-02 08:10:25 +01:00
.user-panel {
display: flex;
width: 265px;
2019-07-02 08:10:25 +01:00
flex-direction: column;
overflow-y: hidden;
@include gab-container-standards();
2019-07-02 08:10:25 +01:00
&__header {
display: block;
height: 112px;
width: 100%;
2019-07-04 04:01:00 +01:00
background: lighten($gab-background-container, 4%);
body.theme-gabsocial-light & {
background: darken($gab-background-container-light, 4%);
}
2019-07-02 08:10:25 +01:00
img {
display: block;
height: 100%;
width: 100%;
margin: 0;
object-fit: cover;
}
}
&__profile {
display: flex;
align-items: flex-start;
padding: 0 10px;
margin-top: -53px;
.account__avatar {
display: block;
width: 82px;
height: 82px;
border: 6px solid $gab-background-base;
body.theme-gabsocial-light & {border: 6px solid $gab-background-base-light;}
2019-07-04 04:01:00 +01:00
background-size: cover;
2019-07-02 08:10:25 +01:00
}
}
&__meta {
display: block;
padding: 6px 20px 17px 20px;
}
&__account {
a {
text-decoration: none;
color: $primary-text-color;
}
&__name {
display: block;
font-size: 20px;
font-weight: bold;
line-height: 24px;
color: #fff;
body.theme-gabsocial-light & {color: $gab-default-text-light;}
2019-07-02 08:10:25 +01:00
}
&:hover & {
&__name {
text-decoration: underline;
}
}
&__username {
display: block;
font-size: 14px;
line-height: 16px;
color: $gab-secondary-text;
2019-07-02 08:10:25 +01:00
text-decoration: none !important;
}
}
&__stats-block {
display: flex;
justify-content: space-between;
padding-top: 12px;
}
.user-panel-stats-item {
display: flex;
align-items: start;
justify-content: left;
flex-wrap: wrap;
flex-direction: column;
a {
text-decoration: none;
color: $primary-text-color;
&:hover {
opacity: 0.8;
}
}
&__value {
display: block;
width: 100%;
color: #fff;
body.theme-gabsocial-light & {color: $gab-default-text-light;}
2019-07-02 08:10:25 +01:00
font-size: 20px;
font-weight: 800;
line-height: 24px;
}
&__label {
display: block;
width: 100%;
color: $gab-secondary-text;
2019-07-02 08:10:25 +01:00
font-size: 12px;
line-height: 14px;
}
}
}