move deactivated profile logic to css

This commit is contained in:
Mary Kate 2020-08-25 13:47:02 -05:00
parent 22abaafd7a
commit d74a1908c7
4 changed files with 33 additions and 5 deletions

View file

@ -212,7 +212,22 @@
margin-top: 50px; 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 { .account-timeline {
&__header { &__header {

View file

@ -126,14 +126,31 @@
} }
} }
} }
&__deactivated {
display: none;
}
} }
} }
.profile-info-panel.deactivated { .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 { .profile-info-panel__name-content {
text-transform: uppercase; text-transform: uppercase;
} }
.profile-info-panel-content__deactivated {
color: var(--primary-text-color--faint);
display: block;
}
.profile-info-panel__name-content::before { .profile-info-panel__name-content::before {
content: '['; content: '[';
} }
@ -141,8 +158,4 @@
.profile-info-panel__name-content::after { .profile-info-panel__name-content::after {
content: ']'; content: ']';
} }
.profile-info-panel-content__deactivated {
color: var(--primary-text-color--faint);
}
} }