mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 22:32:02 +00:00
42 lines
800 B
JavaScript
42 lines
800 B
JavaScript
|
|
import styled from 'styled-components';
|
||
|
|
|
||
|
|
const Overlay = styled.div`
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
z-index: 1040;
|
||
|
|
&:before {
|
||
|
|
position: fixed;
|
||
|
|
content: '';
|
||
|
|
top: 6rem;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
background: linear-gradient(rgba(0, 0, 0, 15) 0%, rgba(0, 0, 0, 0) 100%);
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
&:after {
|
||
|
|
content: '';
|
||
|
|
position: fixed;
|
||
|
|
top: 6rem;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
left: 24rem;
|
||
|
|
background: linear-gradient(#fbfbfb 20%, rgba(0, 0, 100, 0) 100%);
|
||
|
|
box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.1);
|
||
|
|
box-shadow: inset 0 1px 2px 0 rgba(40, 42, 49, 0.16);
|
||
|
|
}
|
||
|
|
|
||
|
|
> div {
|
||
|
|
position: fixed;
|
||
|
|
top: 11.5rem;
|
||
|
|
left: 50%;
|
||
|
|
margin-left: -17.5rem;
|
||
|
|
z-index: 1100;
|
||
|
|
}
|
||
|
|
`;
|
||
|
|
export default Overlay;
|