Files
daedalOS/components/apps/FileExplorer/StyledSearch.ts
2023-12-15 18:21:34 -08:00

53 lines
1013 B
TypeScript

import styled from "styled-components";
const StyledSearch = styled.div`
border: 1px solid rgb(83, 83, 83);
display: flex;
height: 25px;
margin: 6px 12px 6px 0;
max-width: 148px;
overflow: hidden;
padding: 0;
position: relative;
width: 100%;
svg {
display: none;
}
input {
appearance: none;
background-color: rgb(25, 25, 25);
color: #fff;
font-family: ${({ theme }) => theme.formats.systemFont};
font-size: 12px;
font-weight: 400;
height: 23px;
padding-bottom: 1px;
padding-left: 8px;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
&::-webkit-search-cancel-button {
filter: invert(1);
padding-right: 4px;
}
}
input:placeholder-shown ~ svg {
display: block;
fill: rgb(113, 113, 113);
height: 12px;
pointer-events: none;
position: absolute;
right: 6px;
stroke: rgb(113, 113, 113);
stroke-width: 1;
top: 6px;
width: 12px;
}
`;
export default StyledSearch;