Merge branch 'deactivated-profile-css' into 'develop'

Move deactivated profile logic to css, fixes #347

Closes #347

See merge request soapbox-pub/soapbox-fe!187
This commit is contained in:
Alex Gleason 2020-08-25 20:54:15 +00:00
commit a2056855fe
4 changed files with 33 additions and 5 deletions

View file

@ -212,7 +212,22 @@
margin-top: 50px;
}
}
} // end .account__header
}
.account__header.deactivated {
.still-image img,
.still-image canvas {
display: none;
}
.account__header__extra__links,
.account__header__extra__buttons {
display: none;
}
}
// end .account__header
.account-timeline {
&__header {

View file

@ -126,14 +126,31 @@
}
}
}
&__deactivated {
display: none;
}
}
}
.profile-info-panel.deactivated {
.profile-info-panel-content__name h1 small,
.profile-info-panel-content__badges__join-date,
.profile-info-panel-content__bio,
.profile-info-panel-content__fields {
display: none;
}
.profile-info-panel__name-content {
text-transform: uppercase;
}
.profile-info-panel-content__deactivated {
color: var(--primary-text-color--faint);
display: block;
}
.profile-info-panel__name-content::before {
content: '[';
}
@ -141,8 +158,4 @@
.profile-info-panel__name-content::after {
content: ']';
}
.profile-info-panel-content__deactivated {
color: var(--primary-text-color--faint);
}
}