2021-10-30 01:31:08 +08:00
|
|
|
import styled from 'styled-components';
|
2022-05-20 01:28:58 +08:00
|
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
2021-10-30 01:31:08 +08:00
|
|
|
import {
|
|
|
|
mdPaddingX,
|
|
|
|
mdPaddingY,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
|
|
|
|
2021-10-16 03:07:13 +08:00
|
|
|
const Captions = styled.div`
|
2021-10-30 01:31:08 +08:00
|
|
|
background-color: ${colorWhite};
|
2022-05-20 01:28:58 +08:00
|
|
|
padding: ${mdPaddingY} ${mdPaddingY} ${mdPaddingX} ${mdPaddingX};
|
2021-10-30 01:31:08 +08:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
${({ isChrome }) => isChrome && `
|
|
|
|
transform: translateZ(0);
|
|
|
|
`}
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
transform: none !important;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-05-20 01:28:58 +08:00
|
|
|
export default { Captions };
|