1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import styled from 'styled-components' const ContentStyled = styled.div` position: relative; padding: ${p => p.stretch ? 0 : '10px 30px 30px 30px'}; height: calc(100% - 50px); width: 100%; overflow-x: hidden; overflow-y: ${p => p.stretch ? 'hidden' : 'auto'}; background-color: #f4f5f8; top: 50px; display: block; box-sizing: border-box; ` export default ContentStyled |