2021-12-24 16:43:52 +00:00
|
|
|
import { Base } from '@appserver/components/themes';
|
|
|
|
import styled from 'styled-components';
|
2020-05-20 10:40:41 +00:00
|
|
|
|
|
|
|
const StyledMediaViewer = styled.div`
|
2021-12-24 16:43:52 +00:00
|
|
|
color: ${(props) => props.theme.mediaViewer.color};
|
|
|
|
display: ${(props) => (props.visible ? 'block' : 'none')};
|
2020-10-16 12:38:04 +00:00
|
|
|
overflow: hidden;
|
|
|
|
.videoViewerOverlay {
|
|
|
|
position: fixed;
|
2021-05-06 09:52:19 +00:00
|
|
|
z-index: 300;
|
2020-10-16 12:38:04 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: black;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
.mediaViewerToolbox {
|
2021-05-06 09:52:19 +00:00
|
|
|
z-index: 301;
|
2020-10-16 12:38:04 +00:00
|
|
|
padding-top: 14px;
|
|
|
|
padding-bottom: 14px;
|
|
|
|
height: 20px;
|
|
|
|
width: 100%;
|
2021-12-24 16:43:52 +00:00
|
|
|
background-color: ${(props) => props.theme.mediaViewer.backgroundColor};
|
2020-10-16 12:38:04 +00:00
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
bottom: 5px;
|
|
|
|
margin-right: 10px;
|
2021-05-06 09:52:19 +00:00
|
|
|
z-index: 305;
|
2020-10-16 12:38:04 +00:00
|
|
|
}
|
|
|
|
.deleteBtnContainer,
|
|
|
|
.downloadBtnContainer {
|
|
|
|
display: block;
|
2021-10-28 11:20:06 +00:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin: 4px 12px;
|
2020-10-16 12:38:04 +00:00
|
|
|
line-height: 19px;
|
2021-10-28 11:20:06 +00:00
|
|
|
|
|
|
|
svg {
|
|
|
|
path {
|
2021-12-24 16:43:52 +00:00
|
|
|
fill: ${(props) => props.theme.mediaViewer.fill};
|
2021-10-28 11:20:06 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-16 12:38:04 +00:00
|
|
|
}
|
|
|
|
.details {
|
2021-05-06 09:52:19 +00:00
|
|
|
z-index: 302;
|
2020-10-16 12:38:04 +00:00
|
|
|
padding-top: 14px;
|
|
|
|
padding-bottom: 14px;
|
|
|
|
height: 20px;
|
|
|
|
width: 100%;
|
2021-12-24 16:43:52 +00:00
|
|
|
background: ${(props) => props.theme.mediaViewer.background};
|
2020-10-16 12:38:04 +00:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-05-28 06:06:18 +00:00
|
|
|
|
2020-10-16 12:38:04 +00:00
|
|
|
.title {
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-12-17 11:54:05 +00:00
|
|
|
width: calc(100% - 50px);
|
|
|
|
padding-left: 16px;
|
|
|
|
box-sizing: border-box;
|
2021-12-24 16:43:52 +00:00
|
|
|
color: ${(props) => props.theme.mediaViewer.titleColor};
|
2020-05-20 10:40:41 +00:00
|
|
|
}
|
2020-10-16 12:38:04 +00:00
|
|
|
}
|
2020-05-20 10:40:41 +00:00
|
|
|
|
2020-10-16 12:38:04 +00:00
|
|
|
.mediaPlayerClose {
|
|
|
|
position: fixed;
|
|
|
|
top: 4px;
|
|
|
|
right: 10px;
|
2021-08-04 14:50:50 +00:00
|
|
|
height: 25px;
|
|
|
|
width: 25px;
|
2021-12-24 16:43:52 +00:00
|
|
|
|
|
|
|
svg {
|
|
|
|
path {
|
|
|
|
fill: ${(props) => props.theme.mediaViewer.iconColor};
|
|
|
|
}
|
|
|
|
}
|
2020-10-16 12:38:04 +00:00
|
|
|
}
|
2020-05-20 10:40:41 +00:00
|
|
|
`;
|
|
|
|
|
2021-12-24 16:43:52 +00:00
|
|
|
StyledMediaViewer.defaultProps = { theme: Base };
|
|
|
|
|
2020-10-16 12:38:04 +00:00
|
|
|
export default StyledMediaViewer;
|