html,body{ width: 100%; height: 100%; } body{ background-image: url(../images/bg.jpg); color: #4c9bfd; font-size: .666667rem; } /* 整体布局 */ .layout{ min-width: 1024px; max-width: 1920px; min-height: 780px; margin: 0 auto; background-image: url(../images/logo.png); background-repeat: no-repeat; background-size: contain; padding:3.666667rem .833333rem 0; display: flex; } .cloumn{ flex: 3; height: 400px; /* background-color: #f00; */ } .cloumn:nth-child(2){ flex: 4; margin: 1.333333rem .833333rem 0; } .borderimage{ border:1px solid; border-image-source: url('../images/border.png'); /* 上 右 下 左 */ /* 上 左右 下 */ /* 上下 左右 */ /* 四周一样 */ border-image-slice: 55 42 26 138; border-image-width: 2.291667rem 1.75rem 1.083333rem 5.75rem; padding:.416667rem; box-sizing: border-box; margin-bottom: .833333rem; } /* 左侧 */ /* 基本信息 */ .baseinfo{ height: 4.666667rem; display: flex; justify-content: space-around; } .baseinfo h2{ color: #fff; font-size: 1.25rem; font-weight: normal; line-height: 30px; } .baseinfo .item:nth-child(2) .icon-dot{ color: red; } /* 监控区域 */ .monitor{ height: 20rem; } .monitor{ height: 20rem; flex-direction: column; } .monitor .tabs{ margin-bottom: .625rem; padding: 5px 0; } .monitor .tabs a{ font-size: .833333rem; padding: 0 .833333rem; } .monitor .tabs a.active{ color: #fff; } .monitor .tabs a:nth-child(1){ border-right: .083333rem solid red; } .monitor .content{ display: none; } .monitor .content .title { padding: .416667rem; display: flex; background-color: #1b1d27; } .monitor .content .title span{ flex: 1; } .monitor .content .list{ height: 13.166667rem; overflow: hidden; } .monitor .content .list ul{ width: 100%; /* animation-name:指定动画的名称 animation-duration:动画的完成时间,以秒为做单位 ,如果没有设置则默认为0,动画不会有效果 animation-interation-count:动画的执行的次数,默认为1,如果需要无限循环,设置为infinite animation-delay:动画的延迟,默认为0 animation-timing-function:动画的速度曲线,如linear:匀速 animation-direction:动画方向,如果设置来回:alternate animation-play-state:动画播放的状态,play paused */ animation: move 10s linear infinite; } /* 鼠标上移,停止动画 */ .monitor .content .list ul:hover{ animation-play-state: paused; } /* 创建一个动画 */ @keyframes move { from{} to{ /* 往上移动50% */ transform: translateY(-50%); } } .monitor .content li{ display: flex; padding: .166667rem 0; position: relative; } .monitor .content li span{ flex: 1; font-size: .5rem; } .monitor .content li span:nth-child(1){ padding-left: .625rem; } .monitor .content li span:nth-child(2){ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: .833333rem; } .monitor .icon-dot{ position: absolute; left: 0; opacity: 0; } .monitor .content li:hover .icon-dot{ opacity: 1; } /* 点位站点统计 */ .site{ height: 14.166667rem; padding: 1.25rem .833333rem 0; display: flex; flex-direction: column; } .site h3{ color: #fff; } .site .data{ flex: 1; padding-bottom: .833333rem; display: flex; } .site .data .pie{ flex: 2; } .site .data .info{ flex: 1; display: flex; flex-direction: column; justify-content: space-around; align-items: center; background-color: rgba(0,0,255,0.2); } .site .data .info h2{ color: #fff; font-size: 1.25rem; } /* 中间 */ .map{ height: 23.75rem; display: flex; flex-direction: column; } .map h3 { line-height: 1; padding: 0.667rem 0; margin: 0; font-size: 0.833rem; color: #fff; } .map .icon-cube { color: #68d8fe; } .map .chart { flex: 1; background-color: rgba(255, 255, 255, 0.05); } .map .maparea { width: 100%; height: 100%; } /* 用户统计 */ .user{ height: 14.166667rem; margin-top: .833333rem; } .user h2{ color:#fff; font-size: 0.783333rem; padding: .416667rem 0; } .user .chart{ display: flex; justify-content: space-between; } .user .bar { flex: 3; height: 10rem; } .user .data { flex: 1; display: flex; flex-direction: column; justify-content: space-between; background-image: url(../images/rect.png); padding: 1.5rem 1.25rem; box-sizing: border-box; } .user .data h2{ font-size: 1rem; color: #fff; } /* 右侧 */ .order{ height: 6.166667rem; padding: .416667rem .625rem; } .order .tabs { display: flex; } .order .tabs a { display: block; padding: 0 .833333rem; font-size: .75rem; color: #1950c4; border-right: 0.083rem solid #00f2f1; } .order .tabs a:first-child { padding-left: 0; } .order .tabs a:last-child { border-right: none; } .order .tabs a.active { color: #fff; font-size: 0.833rem; } .order .data{ margin-top: 0.833rem; display: flex; } .order .item { flex: 1; } .order .item h2{ font-size: 1.166667rem; color: #fff; margin-bottom: 0.417rem; } .sales{ height: 10.333333rem; display: flex; flex-direction: column; padding: .416667rem .625rem; } .sales .caption { display: flex; line-height: 1; } .sales .caption h2{ font-size: 1.066667rem; color: #fff; padding-right: 0.75rem; border-right: 0.083rem solid #00f2f1; } .sales .caption a { font-size: .866667rem; padding: .208333rem; border-radius: .166667rem; margin: 0 .833333rem; } .sales .caption a.active { background-color: #4c9bfd; color: #fff; } .sales .line{ flex: 1; padding-top: 0.6rem; } .season{ height: 9.666667rem; display: flex; } .channel{ flex: 1; } .channel { margin-right: 0.833rem; display: flex; flex-direction: column; } .channel h3 { color: #fff; font-size: .833333rem; margin-bottom: .416667rem; } .channel .data { flex: 1; display: flex; flex-wrap: wrap; } .channel .data .item{ width: 50%; margin-bottom: .625rem; } .channel .data .item:nth-of-type(2n){ text-align: center; } .channel .data .item h4{ font-size: 1.5rem; color: #fff; } .channel .data .item h4 small{ font-size: .5rem; } .channel .data .item > span { padding: .333333rem 0; } /* 季度区块 */ .quarter { flex: 1; display: flex; flex-direction: column; } .quarter .chart { flex: 1; padding-top: 0.75rem; } .quarter .box { position: relative; } .quarter .label { transform: translate(-50%, -30%); color: #fff; font-size: 1.25rem; position: absolute; left: 50%; top: 50%; } .quarter .label small { font-size: 50%; } .quarter .gauge { height: 3.5rem; } .quarter .data { display: flex; justify-content: space-between; } .quarter .item { width: 50%; } .quarter h3 { color: #fff; font-size: 0.8rem; margin-bottom: 0.4rem; } .quarter span { display: block; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: #4c9bfd; font-size: 0.583rem; } .list{ height: 11.8rem; display: flex; } .list .all{ width: 10rem; display: flex; flex-direction: column; font-size: .666667rem; } .list .all ul{ flex: 1; display: flex; flex-direction: column; justify-content: space-around; } .list .all [class^='icon-']{ font-size: 1.466667rem; vertical-align: middle; margin-right: .625rem; } .list .province{ flex: 1; flex-direction: column; } .list .province li.active{ color:#fff; } .list .province i{ float: right; } .list .province .data{ flex: 1; display: flex; margin-top: .625rem; } .list .province .data ul { flex: 1; } .list .province .data ul li { display: flex; justify-content: space-between; padding: 0.5rem; } .list .province .data ul.sub{ display: flex; color: #52ffff; flex-direction: column; justify-content: space-around; font-size: 0.5rem; background-color: rgba(10, 67, 188, 0.4); } .list .province .data ul.sub li { padding: 0.417rem 0.6rem; }