2021-07-04 10:53:06 -04:00
|
|
|
import styled, { css } from "styled-components";
|
2021-07-04 04:52:34 -04:00
|
|
|
|
2021-07-05 06:23:23 -04:00
|
|
|
export default styled.details<{ sticky?: boolean; large?: boolean }>`
|
2021-07-05 06:25:20 -04:00
|
|
|
summary {
|
|
|
|
${(props) =>
|
|
|
|
props.sticky &&
|
|
|
|
css`
|
|
|
|
top: -1px;
|
|
|
|
z-index: 10;
|
|
|
|
position: sticky;
|
|
|
|
`}
|
2021-07-04 10:53:06 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
${(props) =>
|
|
|
|
props.large &&
|
|
|
|
css`
|
|
|
|
/*padding: 5px 0;*/
|
|
|
|
background: var(--primary-background);
|
|
|
|
color: var(--secondary-foreground);
|
2021-07-04 11:49:44 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
`}
|
2021-07-04 10:53:06 -04:00
|
|
|
|
2021-07-04 04:52:34 -04:00
|
|
|
outline: none;
|
2021-07-05 06:25:20 -04:00
|
|
|
cursor: pointer;
|
|
|
|
list-style: none;
|
2021-07-06 17:52:50 -04:00
|
|
|
user-select: none;
|
2021-07-05 06:25:20 -04:00
|
|
|
align-items: center;
|
|
|
|
transition: 0.2s opacity;
|
2021-07-04 04:52:34 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 600;
|
|
|
|
text-transform: uppercase;
|
2021-07-04 04:52:34 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
&::marker,
|
|
|
|
&::-webkit-details-marker {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-07-04 11:49:44 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
.title {
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-top: 1px;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-07-04 11:49:44 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
.padding {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-07-04 04:52:34 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
> svg {
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-inline-end: 4px;
|
|
|
|
transition: 0.2s ease transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-05 06:23:23 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
&:not([open]) {
|
|
|
|
summary {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
2021-07-05 06:23:23 -04:00
|
|
|
|
2021-07-05 06:25:20 -04:00
|
|
|
summary svg {
|
|
|
|
transform: rotateZ(-90deg);
|
|
|
|
}
|
|
|
|
}
|
2021-07-04 04:52:34 -04:00
|
|
|
`;
|