.homepagebox { width: 100%; height: 100%; display: flex; flex-direction: column; } .informbox { width: 100%; height: 50px; margin: 12px 0; display: flex; box-sizing: border-box; padding: 0 24px; align-items: center; justify-content: space-between; .warningnumber { width: 250px; display: flex; align-items: center; img { width: 66px; } .num { font-size: 40px; text-shadow: 0px 0px 6px #8df; color: white; font-weight: 600; margin: 0 7px; } .today { font-size: 20px; font-family: titlefont; color: #D0EAFF; margin-bottom: 13px; margin-left: 4px; } } .inform { flex: 1; border: 1px solid rgba(54, 162, 255, 0.4); height: 48px; display: flex; align-items: center; justify-content: space-between; .infologo { img { width: 32px; } height: 32px; line-height: 32px; color: #91CCFF; font-size: 14px; margin-left: 16px; margin-right: 40px; } #container { flex: 1; position: relative; height: 46px; overflow: hidden; } #list-wrapper { position: relative; } ul { list-style: none; } .info { flex: 1; display: flex; height: 46px; line-height: 46px; color: #fff; display: flex; align-items: center; justify-content: space-between; .infoitem { flex: 1; display: flex; align-items: center; img { width: 40px; } color: #fff; } .btn { color: #36A2FF; span { cursor: pointer; } span:nth-child(1) { margin-right: 24px; } span:nth-child(2) { margin-right: 40px; } } } } } .centerbox { height: 460px; width: 100%; display: flex; .leftbox { height: 100%; width: 90%; display: flex; flex-direction: column; .title { box-sizing: border-box; padding: 0 20PX; width: 100%; height: 48px; } .leftboxcontent { flex: 1; display: flex; box-sizing: border-box; padding: 16px; padding-right: 6px; .leftitem { position: relative; flex: 1; border: 1px solid rgba(54, 162, 255, 0.3); margin: 0 8px; box-sizing: border-box; padding: 12px 16px; display: flex; flex-direction: column; .eventechartpieAll{ width: 100%; height: 100%; } .progress { height: 4px; width: 100%; background: rgba(54, 162, 255, 0.2); position: relative; .colorbar { height: 4px; // position: absolute; left: 0; top: 0; } .red { color: #FF4B65; background: linear-gradient(90deg, rgba(255, 75, 101, 0) 0%, #FF4B65 100%); } .yellow { color: #FF9963; background: linear-gradient(90deg, rgba(255, 153, 99, 0) 0%, #FF9963 100%); } .blue { color: #36A2FF; background: linear-gradient(90deg, rgba(54, 162, 255, 0) 0%, #36A2FF 100%); } } .itemname { font-size: 15px; color: #fff; margin-bottom: 8px; font-size: 15px; } .box { flex: 1; width: 100%; } .areabox { display: flex; flex-direction: column; justify-content: space-around; .areaboxitemtop { display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; font-size: 14px; margin-bottom: 12px; .red { color: #FF4B65; } .yellow { color: #FF9963; } .blue { color: #36A2FF; } } } .eventbox { display: flex; flex-direction: column; justify-content: space-around; .eventboxitem { display: flex; align-items: center; color: #fff; font-size: 12px; .eventname { display: inline-block; width: 30%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; .block { display: inline-block; width: 14px; height: 14px; line-height: 12px; font-size: 8px; color: #fff; } .yellow { background-color: #FF9963; } .blue { background-color: #36A2FF; } } .progressbox { flex: 1; } } } .stationbox { display: flex; flex-direction: column; justify-content: space-around; .stationboxitem { display: flex; align-items: center; color: #fff; font-size: 12px; .stationname { display: inline-block; width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; .block { display: inline-block; width: 14px; height: 14px; line-height: 12px; font-size: 8px; color: #fff; } .yellow { background-color: #FF9963; } .blue { background-color: #36A2FF; } } .area { flex: 1; .yellow { color: #FF9963; } .blue { color: #36A2FF; } } } } } .leftitemlimit { max-width: 318px; } .leftitem:nth-child(1) { flex: .8; position: relative; border: 0; .warningnum { width: 170px; position: absolute; left: 50%; transform: translateX(-50%); top: 22%; color: white; text-align: center; h1 { text-shadow: 0px 0px 6px #8df; color: white; font-weight: 600; font-size: 48px; margin-bottom: 0; } } img { position: absolute; } .bucket { left: 50.5%; transform: translateX(-50%); top: 14%; } .circle { left: 50%; transform: translateX(-50%); top: 3%; } } } } .rightbox { width: 20%; height: 100%; display: flex; flex-direction: column; .title { box-sizing: border-box; padding: 0 8PX; width: 100%; height: 48px; } .rightboxcontent { flex: 1; box-sizing: border-box; padding: 16px; padding-left: 0; .rightitem { position: relative; height: 100%; border: 1px solid rgba(54, 162, 255, 0.3); display: flex; flex-direction: column; align-items: center; justify-content: space-around; box-sizing: border-box; padding: 12px 0; .numlistbox { height: 64px; width: 61%; display: flex; img { width: 64px; height: 64px; margin-right: 24px; } .content { display: flex; flex-direction: column; justify-content: flex-start; span { color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lightspan { font-size: 32px; font-weight: 600; line-height: 32px; margin-bottom: 12px; } .lightspan1 { text-shadow: 0px 0px 16px #3A9AFF; } .lightspan2 { text-shadow: 0px 0px 16px #23D9FF; } .lightspan3 { text-shadow: 0px 0px 16px #FFB791; } } } } } } } .bottombox { flex: 1; display: flex; .title { box-sizing: border-box; width: 100%; height: 48px; } .bottomitem { flex: 1; height: 100%; display: flex; flex-direction: column; .bottomitemcontent { flex: 1; box-sizing: border-box; padding: 16px 0; .bottomitemchartbox { position: relative; height: 100%; border: 1px solid rgba(54, 162, 255, 0.3); display: flex; .bartitle { position: absolute; top: 16px; right: 28px; color: #FFFFFF; font-size: 14px; } .numlistbox { position: absolute; left: 5%; bottom: 6%; display: flex; flex-direction: column; .numlistboxitem { display: flex; color: #fff; align-items: center; margin: 3px 0; span { font-size: 12px; } .top { display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center; font-size: 8px; border-radius: 2px; } .top1 { background: #FF4B65; } .top2 { background: #FF9963; } .top3 { background: #36A2FF; } .name { margin: 0 16px; } } } .eventechartpie, .oilechartpie { height: 100%; width: 23%; position: relative; } .eventechartline, .oilechartline { height: 100%; flex: 1; } } .bottomitemchartboxspecial { position: relative; height: 100%; width: 100%; border: 1px solid rgba(54, 162, 255, 0.3); display: flex; .bartitle { position: absolute; top: 16px; left: 28px; color: #FFFFFF; font-size: 14px; } .eventechartpie { height: 100%; width: 100%; position: relative; } .eventechartline { position: absolute; right: 0; bottom: 0; height: 83%; width: 76%; // border: 1px solid red; } .oilNum { position: absolute; left: 4%; bottom: 22px; display: flex; flex-direction: column; .oilNumItem { display: flex; align-items: center; justify-content: space-between; color: white; font-size: 14px; span { margin: 0 4px; } .pointbox { display: flex; align-items: center; } .point { width: 6px; height: 6px; background-color: #91CCFF; } } } } } .bottomitemcontent1 { padding-left: 30px; padding-right: 4px; } .bottomitemcontent2 { padding-left: 15px; padding-right: 16px; } } } .angle-border { position: absolute; width: 8px; height: 8px; } .left-top-border { top: 0; left: 0; border-left: 2px solid #FFFFFF; border-top: 2px solid #FFFFFF; } .right-top-border { top: 0; right: -2px; border-right: 2px solid #FFFFFF; border-top: 2px solid #FFFFFF; } .left-bottom-border { bottom: 0; left: 0; border-bottom: 2px solid #FFFFFF; border-left: 2px solid #FFFFFF; } .right-bottom-border { bottom: 0; right: -2px; border-right: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF; } // 适配125% @media screen and (max-height: 900px) { .informbox { width: 100%; height: 38px; margin: 12px 0; padding: 0 24px; .warningnumber { width: 180px; img { width: 45px; } .num { font-size: 30px; text-shadow: 0px 0px 6px #8df; color: white; font-weight: 600; margin: 0 7px; } .today { font-size: 16px; margin-bottom: 13px; margin-left: 4px; } } .inform { flex: 1; border: 1px solid rgba(54, 162, 255, 0.4); height: 38px; .infologo { img { width: 25px; } height: 26px; line-height: 26px; font-size: 12px; margin-left: 16px; margin-right: 40px; } #container { height: 32px; } .info { height: 32px; line-height: 32px; font-size: 12px; .infoitem { img { width: 28px; } } .btn { color: #36A2FF; span { cursor: pointer; } span:nth-child(1) { margin-right: 24px; } span:nth-child(2) { margin-right: 40px; } } } } } .centerbox { height: 320px; .leftbox { .title { padding: 0 20PX; height: 40px; } .leftboxcontent { padding: 12px; padding-right: 6px; .leftitem { margin: 0 6px; padding: 8px 12px; .progress { height: 3px; .colorbar { height: 3px; } } .itemname { margin-bottom: 3px; font-size: 12px; } .areabox { .areaboxitemtop { display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; font-size: 13px; margin-bottom: 8px; } } .eventbox { .eventboxitem { display: flex; align-items: center; color: #fff; font-size: 10px; .eventname { width: 30%; .block { width: 14px; height: 14px; border-radius: 2px; line-height: 14px; font-size: 8px; } } } } .stationbox { .stationboxitem { font-size: 10px; .stationname { .block { width: 14px; height: 14px; line-height: 14px; border-radius: 2px; font-size: 8px; } } } } } .leftitem:nth-child(1) { flex: .8; .warningnum { width: 170px; position: absolute; left: 50%; transform: translateX(-50%); top: 19%; h1 { font-size: 32px; } } img { position: absolute; } .bucket { left: 50.5%; transform: translateX(-50%); top: 28%; width: 66%; height: 66%; } .circle { left: 50%; transform: translateX(-50%); top: 3%; width: 66%; height: 66%; } } } } .rightbox { .title { padding: 0 8PX; height: 40px; } .rightboxcontent { padding: 12px; padding-left: 0; .rightitem { padding: 12px 0; .numlistbox { height: 46px; width: 70%; display: flex; align-items: center; img { width: 40px; height: 40px; margin-right: 16px; } .content { .lightspan { font-size: 20px; line-height: 20px; margin-bottom: 0px; } .lightspan1 { text-shadow: 0px 0px 12px #3A9AFF; } .lightspan2 { text-shadow: 0px 0px 12px #23D9FF; } .lightspan3 { text-shadow: 0px 0px 12px #FFB791; } } } } } } } .bottombox { .title { height: 40px; } .bottomitem { .bottomitemcontent { padding: 10px 0; .bottomitemchartbox { .bartitle { top: 16px; right: 28px; font-size: 12px; } .numlistbox { left: 5%; bottom: 6%; .numlistboxitem { margin: 2px 0; span { font-size: 10px; } .top { display: inline-block; width: 12px; height: 12px; line-height: 12px; text-align: center; font-size: 8px; border-radius: 2px; } .name { margin: 0 12px; } } } .eventechartpie, .oilechartpie { height: 100%; width: 23%; position: relative; } .eventechartline, .oilechartline { height: 100%; flex: 1; } } .bottomitemchartboxspecial { .bartitle { position: absolute; top: 16px; left: 28px; color: #FFFFFF; font-size: 12px; } .eventechartpie { height: 100%; width: 100%; position: relative; } .eventechartline { position: absolute; right: 0; bottom: 0; height: 86%; width: 76%; // border: 1px solid red; } } } .bottomitemcontent1 { padding-left: 30px; padding-right: 4px; } .bottomitemcontent2 { padding-left: 15px; padding-right: 16px; } } } .angle-border { position: absolute; width: 6px; height: 6px; } } // 适配150% @media screen and (max-height: 630px) { .informbox { width: 100%; height: 32px; margin: 6px 0; padding: 0 16px; .warningnumber { width: 150px; img { width: 36px; } .num { font-size: 23px; margin: 0 5px; } .today { font-size: 13px; margin-bottom: 10px; margin-left: 2px; } } .inform { height: 30px; .infologo { img { width: 20px; } height: 18px; line-height: 18px; font-size: 10px; margin-left: 8px; margin-right: 30px; } #container { height: 22px; } .info { height: 22px; line-height: 22px; font-size: 10px; .infoitem { img { width: 20px; } } .btn { span:nth-child(1) { margin-right: 12px; } span:nth-child(2) { margin-right: 20px; } } } } } .centerbox { height: 49%; .leftbox { .title { padding: 0 16PX; height: 30px; } .leftboxcontent { padding: 8px; padding-right: 4px; .leftitem { margin: 0 4px; padding: 6px 8px; .progress { height: 2px; .colorbar { height: 2px; } } .itemname { margin-bottom: 2px; font-size: 10px; } .areabox { .areaboxitemtop { font-size: 10px; margin-bottom: 4px; } } .eventbox { .eventboxitem { font-size: 10px; .eventname { width: 30%; .block { width: 14px; height: 14px; border-radius: 2px; line-height: 14px; font-size: 8px; } } } } .stationbox { .stationboxitem { font-size: 10px; .stationname { .block { width: 14px; height: 14px; line-height: 14px; border-radius: 2px; font-size: 8px; } } } } } .leftitem:nth-child(1) { flex: .8; .warningnum { width: 170px; position: absolute; left: 50%; transform: translateX(-50%); top: 19%; h1 { font-size: 32px; } } img { position: absolute; } .bucket { left: 50.5%; transform: translateX(-50%); top: 28%; width: 68%; height: 68%; } .circle { left: 50%; transform: translateX(-50%); top: 3%; width: 68%; height: 68%; } } } } .rightbox { .title { padding: 0 8PX; height: 30px; } .rightboxcontent { padding: 12px; padding-left: 0; .rightitem { padding: 8px 0; .numlistbox { height: 40px; width: 80%; display: flex; align-items: center; img { width: 30px; height: 30px; margin-right: 12px; } .content { .lightspan { font-size: 16px; line-height: 16px; margin-bottom: 4px; } .lightspan1 { text-shadow: 0px 0px 8px #3A9AFF; } .lightspan2 { text-shadow: 0px 0px 8px #23D9FF; } .lightspan3 { text-shadow: 0px 0px 8px #FFB791; } } } } } } } .bottombox { .title { height: 30px; } .bottomitem { .bottomitemcontent { padding: 8px 0; .bottomitemchartbox { .bartitle { top: 16px; right: 28px; font-size: 10px; } .numlistbox { left: 5%; bottom: 6%; .numlistboxitem { margin: 2px 0; span { font-size: 10px; } .top { display: inline-block; width: 12px; height: 12px; line-height: 12px; text-align: center; font-size: 8px; border-radius: 2px; } .name { margin: 0 10px; } } } .eventechartpie, .oilechartpie { height: 100%; width: 23%; position: relative; } .eventechartline, .oilechartline { height: 100%; flex: 1; } } .bottomitemchartboxspecial { .bartitle { position: absolute; top: 16px; left: 28px; color: #FFFFFF; font-size: 10px; } .eventechartpie { height: 100%; width: 100%; position: relative; } .eventechartline { position: absolute; right: 0; bottom: 0; height: 83%; width: 76%; // border: 1px solid red; } .oilNum { position: absolute; left: 4%; bottom: 16px; display: flex; flex-direction: column; .oilNumItem { display: flex; align-items: center; justify-content: space-between; color: white; font-size: 12px; span { margin: 0 4px; } .pointbox { display: flex; align-items: center; } .point { width: 6px; height: 6px; background-color: #91CCFF; } } } } } .bottomitemcontent1 { padding-left: 30px; padding-right: 4px; } .bottomitemcontent2 { padding-left: 15px; padding-right: 16px; } } } .angle-border { position: absolute; width: 6px; height: 6px; } } //适配1366*768