daedalOS/components/apps/FileExplorer/StyledAddressBar.ts
2024-02-24 12:55:02 -08:00

71 lines
1.5 KiB
TypeScript

import styled from "styled-components";
const StyledAddressBar = styled.div`
background-position: 2px 5px;
background-repeat: no-repeat;
background-size: 16px;
border: 1px solid rgb(83, 83, 83);
display: flex;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight}px;
margin: 7px 12px 6px 5px;
padding: 0 22px 2px 25px;
position: relative;
width: 100%;
input {
background-color: rgb(25, 25, 25);
border-right: 1px solid rgb(21, 21, 21);
color: #fff;
font-family: ${({ theme }) => theme.formats.systemFont};
font-size: 12px;
font-weight: 400;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight - 2}px;
padding-bottom: 2px;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 2px);
&:focus {
padding-bottom: 0;
}
}
img {
left: 2px;
position: absolute;
top: 2px;
}
.refresh {
background-color: rgb(25, 25, 25);
display: flex;
height: ${({ theme }) => theme.sizes.fileExplorer.navInputHeight - 2}px;
margin: 0;
place-content: center;
place-items: center;
position: absolute;
right: 0;
stroke: rgb(128, 128, 128);
stroke-width: 3;
top: 0;
width: 24px;
&:hover {
background-color: rgb(27, 41, 49);
border: 1px solid rgb(34, 114, 153);
}
&:active {
background-color: rgb(28, 57, 71);
border: 1px solid rgb(38, 160, 218);
}
svg {
position: relative;
top: -1px;
}
}
`;
export default StyledAddressBar;