UNPKG

@c8y/style

Version:

Styles for Cumulocity IoT applications

209 lines (181 loc) • 3.33 kB
.value-warning { display: block; float: left; margin-top: 20px; padding: 5px; border-color: @black; background-color: @black; } .table-kpi-list tbody:hover td[rowspan], .table-hover tr:hover td { background: @component-background-hover; } .bright-hover tr:hover td { background-color: @palette-high; } .table-kpi-list .disabled-detector-container { position: relative; } .table-kpi-list .disabled-detector { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; } .linearGauge { // border: 5px solid @gray-80; position: relative; margin: 10px auto; width: 90%; height: 80px; border-radius: 40px; background: @gray-80; .ranges { position: absolute; top: 5px; right: 5px; bottom: 5px; left: 5px; overflow: hidden; border: 5px solid @component-background-default; border-radius: 40px; } } .silo { position: absolute; width: 100%; height: 100%; min-width: 360px; } .linearGauge.vertical { width: 20px; height: 300px; } .linearGaugeRange { position: absolute; top: 0; bottom: 0; } .siloRange { position: absolute; right: 0; left: 0; } .linearGaugeRange.vertical { position: absolute; right: 0; left: 0; } .yellowRange { background: @status-warning; } .redRange { background: @status-danger; } .linearGaugePointer { position: absolute; top: 7px; bottom: 7px; left: auto; width: 0; border: 1px solid @gray-40; } .siloPointer { position: absolute; right: 7px !important; left: 7px !important; height: 0; border: 1px solid transparent; } .siloPointer-wrapper { position: absolute; top: 10px; right: 0; bottom: 10px; left: 0; } .linearGaugePointer-wrapper { position: absolute; top: 0; right: 10px; bottom: 0; left: 10px; } .siloPointer > div { position: absolute; top: -32px; left: 70px; z-index: 100; display: inline-block; width: auto; font-size: 14px; line-height: 1; .popover-content { padding: 8px; } } .linearGaugePointer > div { position: absolute; top: 100%; display: inline-block; width: auto; font-size: 14px; line-height: 1; .translate(-50%, 2px); .popover-content { padding: 8px; } } .linearGaugePointer.target { border-color: @status-success; } .siloPointer.target { border-color: @status-success; } .linearGaugeLabel { position: absolute; bottom: -30px; font-size: 12px; } .siloLabel { position: absolute; left: 85px; display: table; //.translate(-100%,0); white-space: nowrap; font-size: 12px; } .nv-pieLabels text { fill: @component-background-default !important; } .silo .graphHoverInfoCurrent, .linearGauge .graphHoverInfoCurrent { position: absolute; z-index: 1000; overflow: visible; padding: 2px 5px 0; width: auto; background-color: @tooltip-background-default; box-shadow: none; color: @component-background-default; font-size: 12px; .translate(-50%, -30px); &:after { position: absolute; top: 100%; left: 50%; margin-left: -5px; width: 0; height: 0; border-width: 5px 5px 0; border-style: solid; border-color: transparent; border-top-color: @tooltip-arrow-color; background-color: transparent; content: ''; } } .linearGauge .graphHoverInfoCurrent { .translate(-50%, -40px); }