bruno/renderer/components/Sidebar/Collections/Collection/CollectionItem/StyledWrapper.js

79 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2021-12-03 20:37:38 +01:00
import styled from 'styled-components';
const Wrapper = styled.div`
.menu-icon {
2022-03-22 13:48:20 +01:00
color: rgb(110 110 110);
.dropdown {
div[aria-expanded="true"] {
visibility: visible;
}
div[aria-expanded="false"] {
visibility: hidden;
}
}
}
2022-01-01 17:56:56 +01:00
.indent-block {
border-right: solid 1px #e1e1e1;
}
2021-12-03 20:37:38 +01:00
.collection-item-name {
height: 1.875rem;
cursor: pointer;
user-select: none;
.rotate-90 {
transform: rotateZ(90deg);
}
2022-03-22 13:48:20 +01:00
span.item-name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
&:hover {
2022-01-21 08:55:39 +01:00
background: #e7e7e7;
.menu-icon {
2022-03-22 13:48:20 +01:00
.dropdown {
div[aria-expanded="false"] {
visibility: visible;
}
}
}
}
&.item-focused-in-tab {
2022-01-31 06:06:29 +01:00
background: var(--color-sidebar-collection-item-active-background);
&:hover {
2022-01-31 06:06:29 +01:00
background: var(--color-sidebar-collection-item-active-background) !important;
}
2022-01-01 17:56:56 +01:00
.indent-block {
2022-01-31 06:06:29 +01:00
border-right: solid 1px var(--color-sidebar-collection-item-active-indent-border);
2022-01-01 17:56:56 +01:00
}
}
div.tippy-box {
position: relative;
top: -0.625rem;
}
2022-03-18 20:35:43 +01:00
div.dropdown-item.delete-item {
color: var(--color-text-danger);
&:hover {
background-color: var(--color-background-danger);
color: white;
}
}
2021-12-03 20:37:38 +01:00
}
2022-03-22 13:48:20 +01:00
&.is-dragging .collection-item-name {
cursor: inherit;
}
2021-12-03 20:37:38 +01:00
`;
export default Wrapper;