/* DivGraphic 相关的样式 */ /**************** 一个黑色面板,指向左下角黄色连线 ****************/ .marsBlackPanel { min-width: 90px; min-height: 35px; position: absolute; left: 16px; bottom: 31px; cursor: default; border-radius: 4px; opacity: 0.96; border: 1px solid #14171c; box-shadow: 0px 2px 21px 0px rgba(33, 34, 39, 0.55); border-radius: 4px; box-sizing: border-box; background: linear-gradient(0deg, #1e202a 0%, #0d1013 100%); } .marsBlackPanel::before { content: ""; width: calc(100% + 22px); height: 39px; position: absolute; bottom: -39px; left: -22px; background: url(../img/marker/popupLbl.png) 0px 0px no-repeat; background-position: 0px 0px; } .marsBlackPanel-text { width: 100%; height: 100%; min-height: 33px; text-align: center; padding: 5px 5px 0 5px; margin: 0; font-size: 14px; font-weight: 400; color: #ffffff; border: 1px solid #ffffff4f; -webkit-box-sizing: border-box; box-sizing: border-box; white-space: nowrap; } .marsBlackPanel-highlight{ border: 2px solid yellow; } /**************** 一个渐变的文本面板,中间竖直连线 ****************/ .marsBlueGradientPnl { text-align: center; padding: 5px 30px; margin: 0; color: #fff; background: linear-gradient(rgb(7 10 203 / 75%), rgb(16 238 220)); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; max-height: 130px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; white-space: nowrap; } .marsBlueGradientPnl:after { content: ""; position: absolute; bottom: -60px; left: calc(50% - 3px); display: block; width: 3px; height: 60px; border-right: 3px solid #2bcdbb; } .marsBlueGradientPnl-highlight{ border: 2px solid yellow; } .marsBlueGradientPnl-highlight:after { border-right: 3px solid yellow; } /**************** 一个简洁文本面板,中间竖直连线 ****************/ .marsGreenGradientPnl { width: 100px; text-align: center; background-image: linear-gradient(to right, #565d39, #00ffc3); position: absolute; left: -50px; bottom: 30px; cursor: default; padding: 5px; border: 1px solid #9c9944e8; } .marsGreenGradientPnl:hover { border: 1px solid rgb(9, 255, 0); } .marsGreenGradientPnl::before { position: absolute; content: ""; left: 50%; bottom: -30px; height: 30px; border-left: 2px dashed #c5e22770; } .marsGreenGradientPnl-highlight{ border: 2px solid yellow ; } .marsGreenGradientPnl-highlight::before{ border-left: 2px dashed yellow !important; } /********** 面板:倾斜指向左下角的div1.png图片面板样式 ***********/ .marsImgPanel1 { position: relative; width: 200px; height: 134px; background: rgba(42, 42, 42, 0.8); border-radius: 4px; background: url("../img/marker/div1.png"); background-size: 100%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; -webkit-animation: mymove 5s infinite; animation: mymove 5s infinite; animation-duration: 5s; animation-timing-function: ease; animation-delay: 0s; animation-iteration-count: infinite; animation-direction: normal; animation-fill-mode: none; animation-play-state: running; animation-name: mymove; } .marsImgPanel1 .title { position: relative; top: 20px; left: 70px; font-size: 15px; text-align: left; color: rgba(255, 255, 255, 1); text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.75); } /********** 面板:倾斜指向左下角的div2.png图片面板样式 ***********/ .marsImgPanel2 { position: relative; width: 200px; height: 157px; background: rgba(42, 42, 42, 0.8); border-radius: 4px; background: url("../img/marker/div2.png"); background-size: 100%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; -webkit-animation: mymove 5s infinite; animation: mymove 5s infinite; animation-duration: 5s; animation-timing-function: ease; animation-delay: 0s; animation-iteration-count: infinite; animation-direction: normal; animation-fill-mode: none; animation-play-state: running; animation-name: mymove; } .marsImgPanel2 .title { position: inherit; top: 22px; left: 70px; font-size: 14px; text-align: left; color: rgba(255, 255, 255, 1); text-shadow: 0px 0px 9px rgba(0, 0, 0, 0.75); } .marsImgPanel2 .content { position: inherit; font-size: 14px; top: 30px; left: 50px; width: 140px; height: auto; text-align: left; color: rgba(255, 255, 255, 1); overflow: hidden; } /********** 面板:倾斜指向左下角的面板样式 ***********/ .marsTiltPanel { } .marsTiltPanel-wrap { position: relative; padding: 30px; overflow: hidden; } .marsTiltPanel .area { position: relative; min-width: 180px; } .marsTiltPanel .b-t { position: absolute; top: 0; left: 44px; right: 0; height: 1px; z-index: 10; } .marsTiltPanel .b-r { position: absolute; top: 0; right: 0; bottom: 44px; width: 1px; z-index: 10; } .marsTiltPanel .b-b { position: absolute; left: 0; right: 44px; bottom: 0; height: 1px; z-index: 10; } .marsTiltPanel .b-l { position: absolute; top: 44px; left: 0; bottom: 0; width: 1px; z-index: 10; } .marsTiltPanel .b-t-l { position: absolute; top: 0; left: 0; width: 1px; height: 62px; transform: rotate(45deg) translate(52px, -22px); z-index: 10; } .marsTiltPanel .b-b-r { position: absolute; bottom: 0; right: 0; width: 1px; height: 62px; transform: rotate(45deg) translate(-52px, 22px); z-index: 10; } .marsTiltPanel .label-wrap { padding-left: 12px; color: #fff; font-size: 16px; white-space: nowrap; overflow: hidden; } .marsTiltPanel .title { margin-top: 20px; padding: 0 12px 0 30px; height: 36px; line-height: 36px; position: relative; } .marsTiltPanel .title::before { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; z-index: 10; height: 2px; } .marsTiltPanel .label-content { padding: 15px 0; } .marsTiltPanel .data-li { padding: 4px 45px 4px 0; } .marsTiltPanel .data-label, .data-value { display: inline-block; } .marsTiltPanel .data-value { font-size: 14px; } .marsTiltPanel .label-num { margin-right: 3px; color: #f09e28; font-weight: 600; } .marsTiltPanel .label-tag { display: inline-block; position: relative; margin-right: 6px; padding: 0 6px; font-weight: 600; cursor: pointer; background-color: #909399; border-radius: 4px; } .marsTiltPanel .label-tag::after { content: attr(alt); display: inline-block; position: absolute; bottom: -22px; right: -35px; z-index: -1; padding: 2px 4px; color: #fff; font-size: 14px; background-color: #333; border-radius: 3px; opacity: 0; transition: all 0.3s ease-in; } .marsTiltPanel .label-tag:hover::after { opacity: 1; z-index: 11; } .marsTiltPanel .data-value-status-0 { background-color: #f0285c; } .marsTiltPanel .data-value-status-1 { background-color: #35b15b; } .marsTiltPanel .data-value-status-2 { background-color: #f09e28; } .marsTiltPanel .arrow { position: absolute; bottom: 0; left: 0; width: 45px; height: 2px; transform: rotate(-45deg) translate(5px, -15px); } /* 蓝色主题 */ .marsTiltPanel-theme-blue .b-t, .marsTiltPanel-theme-blue .b-r, .marsTiltPanel-theme-blue .b-b, .marsTiltPanel-theme-blue .b-l, .marsTiltPanel-theme-blue .b-t-l, .marsTiltPanel-theme-blue .b-b-r { background-color: #29baf1; box-shadow: 0 0 10px 2px #29baf1; } .marsTiltPanel-theme-blue .area { background-image: linear-gradient(135deg, transparent 30px, #28bbf06c 30px, #28bbf06c 50%, transparent 50%), linear-gradient(-45deg, transparent 30px, #28bbf06c 30px, #28bbf06c 50.1%, transparent 50%); } .marsTiltPanel-theme-blue .title { background-image: linear-gradient(135deg, transparent 25px, #29baf1 25px); } .marsTiltPanel-theme-blue .arrow, .marsTiltPanel-theme-blue .title::before { background-color: #28bbf0; } /* 绿色主题 */ .marsTiltPanel-theme-green .b-t, .marsTiltPanel-theme-green .b-r, .marsTiltPanel-theme-green .b-b, .marsTiltPanel-theme-green .b-l, .marsTiltPanel-theme-green .b-t-l, .marsTiltPanel-theme-green .b-b-r { background-color: #06e34a; box-shadow: 0 0 10px 2px #06e34a; } .marsTiltPanel-theme-green .area { background-image: linear-gradient(135deg, transparent 30px, #06e3486c 30px, #06e3486c 50%, transparent 50%), linear-gradient(-45deg, transparent 30px, #06e3486c 30px, #06e3486c 50.1%, transparent 50%); } .marsTiltPanel-theme-green .title { background-image: linear-gradient(135deg, transparent 25px, #06e34a 25px); } .marsTiltPanel-theme-green .arrow, .marsTiltPanel-theme-green .title::before { background-color: #06e34a; } /* 红色主题 */ .marsTiltPanel-theme-red .b-t, .marsTiltPanel-theme-red .b-r, .marsTiltPanel-theme-red .b-b, .marsTiltPanel-theme-red .b-l, .marsTiltPanel-theme-red .b-t-l, .marsTiltPanel-theme-red .b-b-r { background-color: #e3064f; box-shadow: 0 0 10px 2px #e3064f; } .marsTiltPanel-theme-red .area { background-image: linear-gradient(135deg, transparent 30px, #e306506c 30px, #e306506c 50%, transparent 50%), linear-gradient(-45deg, transparent 30px, #e306506c 30px, #e306506c 50%, transparent 50%); } .marsTiltPanel-theme-red .title { background-image: linear-gradient(135deg, transparent 25px, #e3064f 25px); } .marsTiltPanel-theme-red .arrow, .marsTiltPanel-theme-red .title::before { background-color: #e3064f; } /* 黄色主题 */ .marsTiltPanel-theme-e9b709 .b-t, .marsTiltPanel-theme-e9b709 .b-r, .marsTiltPanel-theme-e9b709 .b-b, .marsTiltPanel-theme-e9b709 .b-l, .marsTiltPanel-theme-e9b709 .b-t-l, .marsTiltPanel-theme-e9b709 .b-b-r { background-color: #e9b709; box-shadow: 0 0 10px 2px #e9b709; } .marsTiltPanel-theme-e9b709 .area { background-image: linear-gradient(135deg, transparent 30px, #e9b9096c 30px, #e9b9096c 50%, transparent 50%), linear-gradient(-45deg, transparent 30px, #e9b9096c 30px, #e9b9096c 50%, transparent 50%); } .marsTiltPanel-theme-e9b709 .title { background-image: linear-gradient(135deg, transparent 25px, #e9b709 25px); } .marsTiltPanel-theme-e9b709 .arrow, .marsTiltPanel-theme-e9b709 .title::before { background-color: #e9b709; } /**************** 部分公共样式,如选中样式、动画等 ****************/ .animation-spaceInDown { animation-duration: 1s; animation-fill-mode: both; animation-name: spaceInDown; } @keyframes spaceInDown { 0% { opacity: 0; transform-origin: 0% 100%; transform: scale(0.2) translate(0, 200%); } 100% { opacity: 1; transform-origin: 0% 100%; transform: scale(1) translate(0, 0); } }