UNPKG

cloud-ui.vusion

Version:
174 lines (145 loc) 2.94 kB
$m-chart_padding: 15px; $m-chart_tt_height: 40px; $m-chart_legend_height: 30px; .root { position: relative; box-sizing: border-box; padding: 15px; } .content { position: absolute; top: $m-chart_padding; left: $m-chart_padding; right: $m-chart_padding; bottom: $m-chart_padding; } .ittitle ~ .content { top: 65px; } .caption ~ .content { top: 65px; } .legend ~ .content { bottom: 45px; } .root[empty] .content { display: none; } .legend { position: absolute; bottom: $m-chart_padding; height: $m-chart_legend_height; line-height: $m-chart_legend_height; left: $m-chart_padding; right: $m-chart_padding; font-size: 12px; text-align: center; } .legend[role="multiline"] { line-height: 20px; } .root[empty] .legend { display: none; } .root[empty] { background: url("../assets/images/nodata.png") no-repeat center center; } .ittitle { position: absolute; z-index: 95; top: $m-chart_padding; left: $m-chart_padding; right: $m-chart_padding; height: $m-chart_tt_height; line-height: $m-chart_tt_height; font-size: 16px; } /* .caption { position: absolute; top: calc($m-chart_padding + $m-chart_tt_height); left: $m-chart_padding; right: $m-chart_padding; text-align: center; } */ .item { display: inline-block; cursor: pointer; user-select: none; margin-right: 2em; } .item[role="omitwidth"] { max-width: 15%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item::before { background: rgba(97,218,198,0.6); display: inline-block; content: ''; width: 10px; height: 10px; vertical-align: text-bottom; margin-right: 4px; position: relative; top: -2px; } .item:nth-of-type(1)::before { background: $theme-chart-color1; } .item:nth-of-type(2)::before { background: $theme-chart-color2; } .item:nth-of-type(3)::before { background: $theme-chart-color3; } .item:nth-of-type(4)::before { background: $theme-chart-color4; } .item:nth-of-type(5)::before { background: $theme-chart-color5; } .item:nth-of-type(6)::before { background: $theme-chart-color6; } .item:nth-of-type(7)::before { background: $theme-chart-color7; } .item:nth-of-type(8)::before { background: $theme-chart-color8; } .item:nth-of-type(9)::before { background: $theme-chart-color9; } .item:nth-of-type(10)::before { background: $theme-chart-color10; } .item[disabled] { color: #ccc; } .item[disabled]::before { background: #ccc; } .root[border] { border: 1px solid #eee; } .loadingLabel { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: white; z-index: 90; } .loading { position: absolute; left: 50%; top: 50%; margin-left: -20px; margin-top: -20px; } .operate { position: relative; z-index: 100; }