41 lines
1022 B
TypeScript
41 lines
1022 B
TypeScript
|
import styled from 'styled-components';
|
||
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
||
|
|
||
|
const DropZoneArea = styled.div`
|
||
|
position: absolute;
|
||
|
background: transparent;
|
||
|
-webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, .2);
|
||
|
-moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, .2);
|
||
|
box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, .2);
|
||
|
font-weight: bold;
|
||
|
font-family: sans-serif;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
cursor: grabbing;
|
||
|
|
||
|
&:hover {
|
||
|
background-color: rgba(0, 0, 0, .1);
|
||
|
}
|
||
|
`;
|
||
|
|
||
|
const DropZoneBg = styled.div`
|
||
|
position: absolute;
|
||
|
background-color: rgba(0, 0, 0, .5);
|
||
|
-webkit-box-shadow: inset 0px 0px 0px 1px #666;
|
||
|
-moz-box-shadow: inset 0px 0px 0px 1px #666;
|
||
|
box-shadow: inset 0px 0px 0px 1px #666;
|
||
|
color: ${colorWhite};
|
||
|
font-weight: bold;
|
||
|
font-family: sans-serif;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
overflow: hidden;
|
||
|
`;
|
||
|
|
||
|
export default {
|
||
|
DropZoneArea,
|
||
|
DropZoneBg,
|
||
|
};
|