/** @format */ import styled from 'styled-components'; const transitionDuration = 0.3; const Container = styled.div` background: linear-gradient( 180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100% ); position: relative; transition: all ${transitionDuration}s; .arrow { position: absolute; top: 102px; width: 32px; height: 32px; cursor: pointer; z-index: 10; &.left { left: 5px; background: url(https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/e597ef85-142a-44af-926f-207d3ef671a3.svg) no-repeat; background-size: contain; } &.right { right: 5px; background: url(https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/769c935b-71aa-45e5-9ea2-8ddb6ad80524.svg) no-repeat; background-size: contain; } } .collapse { position: absolute; top: 24px; left: 50%; transform: translateX(-50%) rotate(180deg); width: 16px; height: 16px; z-index: 10; cursor: pointer; background: url(https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/a4e4ee9a-13b4-453e-8c46-c44ec7091090.png) no-repeat; background-size: contain; transition: all ${transitionDuration}s; &.collapsed { transform: translateX(-50%) rotate(0); } } .event-wrapper { margin: 0 40px; display: flex; flex-direction: column; .event-head-title { font-size: 16px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: rgba(255, 255, 255, 1); line-height: 24px; margin: 20px 0 3px 0; } .event-scroll-wrapper { width: 100%; .event-list { display: flex; overflow-x: hidden; scroll-behavior: smooth; height: 166px; transition: height ${transitionDuration}s; ::-webkit-scrollbar-thumb { background: #8b9cb2; } ::-webkit-scrollbar { height: 6px; } &.--hide { height: 0; } &:hover { overflow-x: auto; } .event-item { display: flex; flex-shrink: 0; width: 400px; height: 136px; padding: 20px; background: rgba(0, 3, 18, 0.7); border-left: 3px solid rgba(22, 111, 194, 1); margin: 12px 12px 12px 0; scroll-margin-left: 12px; box-sizing: border-box; cursor: pointer; &:first-child { margin-left: 0; } &.danger { border-color: rgba(255, 59, 48, 1); } &.important { border-color: rgba(255, 153, 0, 1); } &.normal { border-color: rgba(8, 161, 254, 1); } &.is-new { &.danger { background: rgba(46, 3, 0, 0.8); } &.important { background: rgba(60, 38, 0, 0.8); } &.normal { background: rgba(0, 38, 60, 0.8); } } &:hover, &.active { &.danger { box-shadow: 2px 2px 12px rgba(255, 59, 48, 1); } &.important { box-shadow: 2px 2px 12px rgba(255, 153, 0, 1); } &.normal { box-shadow: 2px 2px 12px rgba(8, 161, 254, 1); } } &.active { border: 3px solid rgba(22, 111, 194, 1); padding: 17px 17px 17px 20px; &.danger { border-color: rgba(255, 59, 48, 1); } &.important { border-color: rgba(255, 153, 0, 1); } &.normal { border-color: rgba(8, 161, 254, 1); } } .left-area { margin-right: 20px; width: 130px; text-align: center; flex-shrink: 0; .full-img-box { width: 130px; height: 96px; background-repeat: no-repeat; background-size: cover; margin: 0 auto; } .owner-info { display: flex; flex-direction: column; justify-content: center; align-items: center; .img-bg { width: 60px; height: 60px; margin-bottom: 14px; background-image: url(https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/7c069b31-e644-40f7-b15b-529f7c71e10c.png); background-size: cover; background-repeat: no-repeat; border-radius: 50%; background-color: #d2d2d2; } } .text-info { display: flex; flex-direction: column; align-items: center; .img-box { display: flex; justify-content: center; align-items: center; background: url(https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/d4b3fc6b-dd4e-4a65-9da1-1888d04db090.png) no-repeat; background-size: contain; margin-bottom: 14px; width: 60px; height: 60px; img { margin: 0 auto; width: 28px; height: auto; } } } p { font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: rgba(255, 255, 255, 1); line-height: 22px; margin-bottom: 0; max-width: 132px; } } .right-area { .item-title { font-size: 16px; font-family: PingFangSC-Semibold, PingFang SC; font-weight: 600; color: rgba(255, 255, 255, 1); line-height: 22px; margin-bottom: 8px; display: inline-flex; .title-span { max-width: 136px; } .item-status { border-radius: 4px; padding: 0 8px; margin-left: 8px; &::before { font-size: 14px; font-family: PingFangSC-Semibold, PingFang SC; font-weight: 600; line-height: 22px; vertical-align: bottom; } &.danger { background: rgba(255, 59, 48, 1); &::before { content: '紧急'; } } &.important { background: rgba(255, 153, 0, 1); &::before { content: '重要'; } } &.normal { background: rgba(8, 161, 254, 1); &::before { content: '一般'; } } } } .item-desc { font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: rgba(255, 255, 255, 1); line-height: 22px; display: flex; .item-label { width: 42px; } .item-value { max-width: 170px; } } flex-shrink: 0; } } .empty-data { display: flex; justify-content: center; align-items: center; width: 100%; flex-direction: column; transform: translateY(-16px); .bg-box { width: 50px; height: 40px; background-image: url('https://gt-toolbox.oss-cn-beijing.aliyuncs.com/gt-toolbox/11e49693-3262-4e14-b5b2-9028ad412a0c.png'); background-repeat: no-repeat; background-size: contain; background-position: center; } .tip-text { font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: rgba(255, 255, 255, 1); line-height: 22px; margin-top: 12px; } } } } } .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } `; export { Container };