* { margin: 0; padding: 0; color: #fff; font-size: 12px; box-sizing: border-box; } html, body { min-height: 100%; } h1, h2, h3, h4, h5, h6 { font-weight: normal; } ul, li { list-style: none; } a { text-decoration: none; color: #232323; } body { font-family: 'Microsoft YaHei'; font-size: 14px; color: #333; } img { border: none; vertical-align: middle; } table { border-collapse: collapse; table-layout: fixed; } input, textarea { outline: none; border: none; } .clearfix { zoom: 1; } .clearfix:after { content: '.'; width: 0; height: 0; visibility: hidden; display: block; clear: both; overflow: hidden; } font { font-size: 14px; } /* 清除元素默认设置 */ /deep/ .el-loading-spinner { i { font-size: 18px; } p { font-size: 14px; } } /deep/ .el-empty__description p { font-size: 14px; color: #70757c; } /deep/ .el-cascader .el-input__inner, /deep/ .el-input .el-input__inner { background-color: #030b1c !important; font-size: 15px; &::-webkit-input-placeholder { color: #fff !important; } &::-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #fff !important; } &::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #fff !important; } } /deep/ .el-input__suffix i { color: #fff !important; } /deep/ .minemap-ctrl { display: none; } /deep/ .el-range-editor--small.el-input__inner, /deep/ .el-range-editor--small .el-range-input { background-color: #030b1c; &::-webkit-input-placeholder { color: #fff !important; } &::-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #fff !important; } &::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #fff !important; } } /deep/ .el-range-separator { color: #fff; margin-right: 5px; } /deep/ .el-empty { flex: 1; } // 混合 @mixin flex($layout) { display: flex; justify-content: $layout; align-items: $layout; } .el-header { color: #fff; text-align: center; } .el-main { color: #fff; display: flex; .left, .right { width: 400px; } .center { flex: 1; @include flex(center); // padding: 10px; box-shadow: 0 2px 12px 0 rgba(9, 15, 24, 0.5); } } .table { flex: 1; padding: 5px; } .sideBar { width: 100%; height: 33.33%; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; } .side-bar-item{ flex: 1; // height: calc(50% - 20px); // height: calc(40% - 40px); height: 100px; width: 100%; // margin-bottom: 8px; // margin-bottom: 4px; } .list { // height: calc(100% - 24px); display: grid; // line-height:calc(100% - 24px); grid-template-columns: 50% 50%; grid-template-rows: 50% 50%; .list-item { flex: 1; display: flex; // justify-content: center; align-items: center; justify-content: baseline; margin-bottom: 20px; cursor: pointer; .img-active { background: url('./img/icon-bg-active.png') no-repeat 100% 100% !important; } .active { color: #ffce5a; background: linear-gradient( to right, rgba(255, 206, 90, 0.1) 0%, rgba(255, 206, 90, 0.4) 50%, rgba(255, 206, 90, 0.1) 100% ); } .img { margin-right: 10px; width: 69px; height: 50px; display: flex; align-items: center; justify-content: center; background: url('./img/icon-bg.png') no-repeat 100% 100%; } span, p { font-size: 14px; padding: 3px 8px; } span { background: linear-gradient( to right, rgba(7, 60, 115, 0.1) 0%, rgba(7, 60, 115, 0.8) 50%, rgba(7, 60, 115, 0.1) 100% ); } } } .small-title { margin-top: 6px; height: 18px; line-height: 50px; display: flex; justify-content: center; align-items: center; .bg { display: inline-block; width: 376px; height: 1px; position: relative; background: url('./img/small-title-bg.png') no-repeat 100% 100%; span { font-size: 16px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-style: normal; } } } /* 头部样式 */ .header { display: flex; align-items: center; height: 76px !important; background: url('./img/top-bg.png') no-repeat center 100%; .header-left, .header-right { width: 400px; height: 100%; } .header-left { padding-left: 30px; display: flex; align-items: flex-start; justify-content: flex-start; margin-top: 30px; } .header-right { display: flex; align-items: flex-start; justify-content: flex-end; margin-top: 10px; .header-right-min { // width: 60%; @include flex(center); justify-content: space-around; margin-right: 30px; } span { @include flex(center); } p { font-size: 16px; } .health-sys { display: inline-block; width: 96px; height: 34px; line-height: 34px; text-align: center; background: url('./img/health-sys.png') no-repeat 100% 100%; margin-right: 20px; font-size: 13px; margin-top: 4px; cursor: pointer; } span:nth-child(2) { margin-right: 40px; i { display: inline-block; height: 34px; width: 34px; transform: scale(0.7); background: url('./img/time-icon.png') no-repeat 100% 100%; } p { color: #fff; letter-spacing: 2px; font-size: 16px; } } span:nth-child(3) { cursor: pointer; &:hover { p { color: #0283fc; } } i { display: inline-block; height: 34px; width: 34px; transform: scale(0.7); background: url('./img/out-icon.png') no-repeat 100% 100%; } } } .header-center { flex: 1; height: 100%; @include flex(center); } .logo { cursor: pointer; width: 168px; height: 54px; background: url('./img/logo.png') no-repeat 100% 100%; } } /* 头部样式结束 */ /* 左侧样式 */ .left { .left-center { flex: 1; @include flex(center); flex-direction: column; padding: 10px; .left-center-title { @include flex(center); flex-direction: column; width: 100%; span { display: inline-block; width: 60%; text-align: center; line-height: 25px; background: linear-gradient( to right, rgba(7, 60, 115, 0.1) 0%, rgba(7, 60, 115, 0.8) 50%, rgba(7, 60, 115, 0.1) 100% ); } p { line-height: 18px; } } .left-center-main { flex: 1; width: 100%; display: flex; padding: 10px 0; .charts-pie { flex: 1; height: 100%; padding: 0 10px; } } } .left-3-sideBar { height: calc(66.66% - 150px); } .section-content { width: 100%; flex: 1; display: flex; } .section-right { flex: 1; display: flex; align-items: flex-start; flex-direction: column; justify-content: center; margin-left: 45px; } .section-right_item { display: flex; align-items: center; div { line-height: 30px; } .name { color: #E5F2FF; margin-right: 18px; } .value { color: #55EDB0; } } .circle-point { display: block; margin-right: 8px; width: 8px; height: 8px; border-radius: 50%; background-color: #55EDB0; } #section-pie-chart { width: 160px; height: 100%; } } /* 左侧样式结束 */ /* 右侧样式 */ #section-bar-chart { width: 100%; height: 100%; } /* end */ /* 地图样式 */ .map { height: 100%; width: 100%; } /* 地图样式结束 */ .scroll-falut-wrapper{ width: 100%; height: 100%; overflow: hidden; padding: 10px 20px; } .scroll-falut-column{ border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 4px 0; } .fault-item-wrapper{ width: 100%; padding: 10px 0; height: 20px; box-sizing: border-box; } .fault-item{ color: #fff; font-size: 12px; .icon{ width: 20px; height: 20px; display: inline-block; background: url("./img/icon-warn-point.png") no-repeat center / 100% 100%; animation: shine3 2s linear infinite; vertical-align: middle; margin-right: 4px; } .date{ font-size: 12px; font-weight: bold; color: #fff; vertical-align: middle; } span{ font-size: 12px; color: #fff; vertical-align: middle; } .reason{ color: #F35675; } } .amap-marker-content{ white-space: normal !important; }