Commit b41c0a92 authored by Ryan Herbert's avatar Ryan Herbert

vidjil.less stats_decorator.py value in meter

reorganise the meter bar so that we can have the value written in the
bad (saves a hover)
parent caeeff25
......@@ -2531,9 +2531,27 @@ form {
padding: 2px;
box-shadow: inset 0 -1px 1px rgba(255,255,255,0.01);
border: 1px solid @default;
span.value_container {
width: 100%;
display: inline-block;
text-align: center;
vertical-align: middle;
margin-left: -62%;
z-index: 3;
margin-top: -20%;
span.meter_value {
background-color: @background;
opacity: 0.5;
color: @default;
height: 50%;
display: inline-block;
font-size: 10px;
text-align: center;
}
}
}
.meter > span {
.meter > span.meter_bar {
display: block;
height: 100%;
background-color: @default;
......
......@@ -26,7 +26,7 @@ class BarDecorator(StatDecorator):
super(BarDecorator, self).__init__()
def decorate(self, data):
return DIV(SPAN(_style="width: %d%%" % data), _class="meter", _title="%d%%" % data)
return DIV(SPAN(_class="meter_bar", _style="width: %d%%" % data), SPAN(SPAN("%d%%" % data, _class="meter_value"), _class="value_container"), _class="meter", _title="%d%%" % data)
class BarChartDecorator(StatDecorator):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment