stream/src/pages/Series/styles.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-10-15 13:37:54 +00:00
import styled from 'styled-components'
2021-11-01 22:34:29 +00:00
import { screenSizes } from '../../assets/theme'
2021-10-15 13:37:54 +00:00
import { Row } from '../../components/Flex'
2021-11-01 22:34:29 +00:00
import { H1 } from '../../components/Text'
export const spacing = [2, 4, 8, 16, 24, 32, 48, 64, 128, 256, 512]
2021-10-15 13:37:54 +00:00
export const Content = styled.div`
2021-11-01 22:34:29 +00:00
width: 85vw;
max-width: ${screenSizes.lg + 150}px;
margin: 0 auto;
padding: 64px 0;
overflow-y: scroll;
min-height: 50vh;
::-webkit-scrollbar {
display: none;
}
2021-10-15 13:37:54 +00:00
`
export const SeriesGrid = styled.div`
2021-11-01 22:34:29 +00:00
display: grid;
grid-column-gap: ${spacing[4]}px;
grid-row-gap: ${spacing[6]}px;
margin-bottom: 5em;
padding: 0 2px;
@media screen and (min-width: ${screenSizes.sm}px) {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media screen and (min-width: ${screenSizes.md}px) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media screen and (min-width: ${screenSizes.lg}px) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media screen and (min-width: ${screenSizes.xl}px) {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
2021-10-15 13:37:54 +00:00
`
2021-11-01 22:34:29 +00:00
export const Title = styled(H1)`
margin-bottom: 0.5em
2021-10-15 13:37:54 +00:00
`