import styled from 'styled-components' import { rem } from '../../style/function.style' export const Container = styled.div` height: ${rem(88)}; overflow-x: scroll; overflow-y: hidden; display: flex; white-space: nowrap; &::-webkit-scrollbar { display: none; } ` export const Item = styled.div<{ active: boolean }>` padding: ${rem(20)} ${rem(34)}; box-sizing: border-box; font-weight: bold; font-size: ${rem(34)}; line-height: ${rem(48)}; text-align: center; display: inline-block; position: relative; color: ${props => props.active ? '#2E2E2E' : '#B3B3B3'}; &::after { content: ''; display: ${props => props.active ? 'inline-block' : 'none'}; width: ${rem(79)}; height: ${rem(6)}; border-radius: ${rem(4)}; background-color: #000000; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); } `