mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
77 lines
1.6 KiB
TypeScript
77 lines
1.6 KiB
TypeScript
import styled from "styled-components";
|
|
|
|
const StyledColumns = styled.span`
|
|
background-color: rgb(32 32 32);
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
margin-right: ${({ theme }) => theme.sizes.fileManager.detailsStartPadding}px;
|
|
position: sticky;
|
|
top: 0;
|
|
width: fit-content;
|
|
z-index: 1;
|
|
|
|
ol {
|
|
display: flex;
|
|
height: ${({ theme }) => theme.sizes.fileManager.columnHeight}px;
|
|
|
|
li {
|
|
color: rgb(222 222 222);
|
|
display: flex;
|
|
font-size: 12px;
|
|
padding-left: 6px;
|
|
place-items: center;
|
|
position: relative;
|
|
|
|
> svg {
|
|
fill: rgb(149 149 149);
|
|
left: calc(50% - 4px);
|
|
position: absolute;
|
|
top: 0;
|
|
transition: none !important;
|
|
width: 7px;
|
|
|
|
&[style^="transform"] {
|
|
top: -1px;
|
|
}
|
|
}
|
|
|
|
.name {
|
|
overflow: hidden;
|
|
position: relative;
|
|
text-overflow: ellipsis;
|
|
top: -1px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.resize {
|
|
border-left: 1px solid rgb(99 99 99);
|
|
cursor: col-resize;
|
|
height: ${({ theme }) => theme.sizes.fileManager.columnHeight}px;
|
|
padding-left: ${({ theme }) =>
|
|
theme.sizes.fileManager.columnResizeWidth}px;
|
|
position: absolute;
|
|
right: -${({ theme }) => theme.sizes.fileManager.columnResizeWidth}px;
|
|
z-index: 1;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgb(67 67 67);
|
|
|
|
.resize {
|
|
border-left: none;
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
background-color: rgb(131 131 131);
|
|
}
|
|
|
|
&:first-child {
|
|
padding-left: 17px;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export default StyledColumns;
|