stream/src/components/VideoOverlay/styles.js

62 lines
1.4 KiB
JavaScript
Raw Normal View History

import styled, { css } from 'styled-components'
2021-03-24 15:24:34 +00:00
import { colours } from '../../assets/theme'
import burb from '../../assets/img/IconSM.png'
2021-05-23 15:21:15 +00:00
import Button from '../Button'
export const OverlayWrapper = styled.div`
z-index: 2;
position: fixed;
height: 100vh;
width: 100vw;
2021-03-29 16:03:46 +00:00
/* pointer-events: none; */
`
export const TopLeft = styled.div`
opacity: 0;
transform: translateY(-20%);
transition: all 0.2s ease-in-out;
padding: 2em;
${props =>
props.$active &&
css`
transform: translateY(0%);
opacity: 1;
`};
2021-03-24 15:24:34 +00:00
p,
svg {
backdrop-filter: blur(20px);
background-color: ${colours.midnight}40;
padding: 4px 8px;
display: inline-block;
margin-right: 45%;
}
`
2021-05-23 15:21:15 +00:00
export const InfoButton = styled(Button)`
2021-03-24 15:24:34 +00:00
opacity: 0.001;
2021-05-23 15:21:15 +00:00
transform: translateY(
${props => (props.postition === 'bl' ? '20%' : '-20%')}
);
2021-03-24 15:24:34 +00:00
transition: all 0.2s ease-in-out;
transition-delay: 0.2s;
position: fixed;
2021-05-23 15:21:15 +00:00
right: ${props => (props.postition === 'bl' ? 'initial' : '32px')};
top: ${props => (props.postition === 'bl' ? 'initial' : '32px')};
bottom: ${props => (props.postition === 'bl' ? '0' : 'initial')};
left: ${props => (props.postition === 'bl' ? '32px' : 'initial')};
2021-03-24 15:24:34 +00:00
z-index: 100;
2021-05-23 15:21:15 +00:00
width: auto;
background-color: #ffffffba;
2021-03-24 15:24:34 +00:00
${props =>
props.$active &&
css`
transform: translateY(0%);
opacity: 1;
`};
&:hover {
2021-05-23 15:21:15 +00:00
opacity: 0.7;
2021-03-24 15:24:34 +00:00
}
`