Fix: Fixed detail element in friends list

This commit is contained in:
nizune
2021-07-04 17:49:44 +02:00
parent e94d824bb2
commit 652736c300
3 changed files with 37 additions and 12 deletions

View File

@@ -9,23 +9,50 @@ export default styled.details<{ sticky?: boolean, large?: boolean }>`
` }
${ props => props.large && css`
padding: 5px 0;
/*padding: 5px 0;*/
background: var(--primary-background);
color: var(--secondary-foreground);
.padding { /*TOFIX: make this applicable only for the friends list menu, DO NOT REMOVE.*/
display: flex;
align-items: center;
padding: 5px 0;
margin: 0.8em 0px 0.4em;
cursor: pointer;
}
` }
outline: none;
display: flex;
cursor: pointer;
list-style: none;
align-items: center;
transition: .2s opacity;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
&::marker, &::-webkit-details-marker {
display: none;
}
> svg {
flex-shrink: 0;
transition: .2s ease transform;
.title {
flex-grow: 1;
margin-top: 1px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.padding {
display: flex;
align-items: center;
> svg {
flex-shrink: 0;
margin-inline-end: 4px;
transition: .2s ease transform;
}
}
}