File size: 1,336 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
// @flow
import styled from 'styled-components';
import theme from 'shared/theme';
import { zIndex } from 'src/components/globals';
import {
MEDIA_BREAK,
TITLEBAR_HEIGHT,
NAVBAR_WIDTH,
} from 'src/components/layout';
export const Container = styled.div`
display: flex;
justify-content: center;
z-index: ${zIndex.slider + 1};
position: absolute;
left: ${NAVBAR_WIDTH}px;
right: 0;
top: 0;
bottom: 0;
@media (max-width: ${MEDIA_BREAK}px) {
top: ${TITLEBAR_HEIGHT}px;
left: 0;
}
`;
export const Overlay = styled.div`
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.24);
z-index: -1;
`;
export const ThreadContainer = styled.div`
display: flex;
justify-content: center;
width: 100%;
z-index: ${zIndex.slider + 4};
@media (max-width: ${MEDIA_BREAK}px) {
max-width: 100%;
box-shadow: 0;
}
`;
export const CloseButton = styled.span`
position: fixed;
top: 24px;
right: 24px;
width: 60px;
height: 60px;
border-radius: 30px;
display: flex;
align-items: center;
justify-content: center;
background: ${theme.bg.reverse};
color: ${theme.text.reverse};
z-index: ${zIndex.slider + 4};
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
@media (max-width: ${MEDIA_BREAK}px) {
display: none;
}
`;
|