import styled from 'styled-components'; const Container = styled.div` color: #fff; font-size: 14px; padding: 6px 0; position: relative; background: rgba(0, 0, 0, 0.5); span { text-align: center; } .active { background: rgba(45, 185, 255, 0.3); } .tHead { height: 32px; line-height: 32px; display: flex; flex-direction: row; align-items: center; justify-content: center; span { display: inline-block; width: 25%; white-space: nowrap; overflow: hidden; } } .carItem { position: relative; animation: heightAni 1s; transform-origin: 0 0; transition: all 0.3s; &:hover { background: rgba(0, 0, 0, 0.8); } @keyframes heightAni { from { transform: scale(0); } to { transform: scale(1); } } &:first-child { background: rgba(45, 185, 255, 0.3); } .info { padding: 2% 0; cursor: pointer; transition: all 0.5s; display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; span { display: inline-block; width: 25%; white-space: nowrap; overflow: hidden; } } } .detail { padding: 10px 20px; font-size: 12px; animation: heightSAni 0.7s; transform-origin: 0 0; @keyframes heightSAni { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } } img { width: 50px; height: 50px; margin-right: 14px; } .detailInfo { display: flex; } } `; export { Container };