DocSpace-client/packages/asc-web-common/components/MediaViewer/StyledMediaViewer.js

82 lines
1.5 KiB
JavaScript
Raw Normal View History

import styled from "styled-components";
const StyledMediaViewer = styled.div`
color: #d1d1d1;
display: ${(props) => (props.visible ? "block" : "none")};
overflow: hidden;
.videoViewerOverlay {
position: fixed;
2021-05-06 09:52:19 +00:00
z-index: 300;
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;
padding-top: 14px;
padding-bottom: 14px;
height: 20px;
width: 100%;
background-color: rgba(11, 11, 11, 0.7);
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;
}
.deleteBtnContainer,
.downloadBtnContainer {
display: block;
width: 16px;
height: 16px;
margin: 4px 12px;
line-height: 19px;
svg {
path {
fill: #fff;
}
}
}
.details {
2021-05-06 09:52:19 +00:00
z-index: 302;
padding-top: 14px;
padding-bottom: 14px;
height: 20px;
width: 100%;
background: rgba(17, 17, 17, 0.867);
position: fixed;
top: 0;
left: 0;
2020-05-28 06:06:18 +00:00
.title {
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: calc(100% - 50px);
padding-left: 16px;
box-sizing: border-box;
}
}
.mediaPlayerClose {
position: fixed;
top: 4px;
right: 10px;
2021-08-04 14:50:50 +00:00
height: 25px;
width: 25px;
}
`;
export default StyledMediaViewer;