improve filemenu styling

add confirm popups
This commit is contained in:
controlol 2021-11-05 00:01:41 +01:00
parent e0c3d48b01
commit c16b64bbf7
3 changed files with 35 additions and 1 deletions

View File

@ -75,5 +75,34 @@ export const RemoteButton = styled(Button)`
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
background-color: ${({active}) => active ? "var(--button-hover)" : "var(--button-color)"}
background-color: ${({active}) => active ? "var(--button-hover)" : "var(--button-color)"};
`
export const FileMenuContainer = styled.div`
position: fixed;
top: ${({cursorY}) => cursorY - 3}px;
left: ${({cursorX}) => cursorX + 3}px;
background-color: var(--button-color);
z-index: 900;
border-radius: .2rem;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
div {
text-align: left;
}
`
export const ButtonWrapper = styled.div`
display: flex;
margin-top: .5rem;
gap: .5rem;
width: 100%;
justify-content: center;
`

View File

@ -21,6 +21,7 @@ html {
--status-red: linear-gradient(#fd4444aa, #c92222);
--status-green: linear-gradient(#3bc322aa, #3c891c);
--warning-red: var(--status-red);
--button-color: #fafafa;
--button-hover: #e4e4e4;

View File

@ -382,4 +382,8 @@ export const Input = styled.input`
outline: none;
background-color: var(--button-hover);
}
`
export const WarningButton = styled(Button)`
background: var(--warning-red);
`