FederationRestrictions: make RestrictedInstance function like an accordion

This commit is contained in:
Alex Gleason
2021-07-25 16:02:38 -05:00
parent 155b342081
commit 075eeee9ee
3 changed files with 253 additions and 4 deletions

View File

@ -3,9 +3,55 @@
}
.restricted-instance {
padding: 10px 0;
&__header {
padding: 10px 0;
display: flex;
text-decoration: none;
color: var(--primary-text-color);
}
&--reject {
&__icon {
width: 16px;
}
&--expanded &__icon i.fa {
transform: translateX(-3px);
}
&--reject &__host {
text-decoration: line-through;
}
&__restrictions {
height: 0;
overflow: hidden;
}
&--expanded &__restrictions {
height: auto;
}
.instance-restrictions {
padding: 5px 0 5px 15px;
border-left: 3px solid hsla(var(--primary-text-color_hsl), 0.4);
color: var(--primary-text-color--faint);
margin-bottom: 15px;
.federation-restriction {
padding: 7px 0;
font-size: 14px;
}
&__message {
margin-bottom: 10px;
i.fa {
padding-right: 10px;
}
&:last-child {
margin-bottom: 0;
}
}
}
}