import styled from 'styled-components'; interface props { rightWidth: number; size: { width: number; height: number; }; } const S = styled.div` .item { display: flex; flex-direction: row; align-items: center; /* margin-top: 10px; */ /* justify-content: space-between; */ .left { width: 45px; color: white; position: relative; margin-right: 10px; position: relative; height: 32px; .title { text-align: center; line-height: 35px; /* padding: 2px; */ } img { width: 45px; height: 100%; position: absolute; left: 0; top: 0; z-index: -1; } } .mid { flex: 1; /* height: 32px; */ display: flex; flex-direction: column; justify-content: center; .text { width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; margin-bottom: 4px; } .progress { height: 6px; background: rgba(56, 68, 102, 0.6); width: 100%; position: relative; .innerP { background-image: linear-gradient(90deg, #806aff 0%, #2cb4f9 100%); height: 100%; transition: all 1s; width: 0px; position: absolute; bottom: 0; left: 0; } } } .right { width: ${props => (props.rightWidth ? props.rightWidth + 'px' : 'auto')}; font-family: DINAlternate-Bold; font-size: 18px; color: white; /* margin-top: 20px; */ margin-left: 10px; } } `; export default S;