Files
bruno/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/StyledWrapper.js
2022-11-11 03:53:51 +05:30

79 lines
1.6 KiB
JavaScript

import styled from 'styled-components';
const Wrapper = styled.div`
.menu-icon {
color: ${(props) => props.theme.sidebar.dropdownIcon.color};
.dropdown {
div[aria-expanded='true'] {
visibility: visible;
}
div[aria-expanded='false'] {
visibility: hidden;
}
}
}
.indent-block {
border-right: ${(props) => props.theme.sidebar.collection.item.indentBorder};
}
.collection-item-name {
height: 1.875rem;
cursor: pointer;
user-select: none;
.rotate-90 {
transform: rotateZ(90deg);
}
span.item-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
&:hover {
background: ${(props) => props.theme.sidebar.collection.item.hoverBg};
.menu-icon {
.dropdown {
div[aria-expanded='false'] {
visibility: visible;
}
}
}
}
&.item-focused-in-tab {
background: ${(props) => props.theme.sidebar.collection.item.bg};
&:hover {
background: ${(props) => props.theme.sidebar.collection.item.bg} !important;
}
.indent-block {
border-right: ${(props) => props.theme.sidebar.collection.item.active.indentBorder} !important;
}
}
div.tippy-box {
position: relative;
top: -0.625rem;
}
div.dropdown-item.delete-item {
color: ${(props) => props.theme.colors.danger};
&:hover {
background-color: ${(props) => props.theme.colors.bg.danger};
color: white;
}
}
}
&.is-sidebar-dragging .collection-item-name {
cursor: inherit;
}
`;
export default Wrapper;