Add colors for wind, taf and pirep weather reports

pull/525/head
Jim Jacobsen 2016-11-17 06:01:39 +00:00
rodzic 54204bab0d
commit e742ff0712
2 zmienionych plików z 17 dodań i 2 usunięć

Wyświetl plik

@ -131,6 +131,21 @@
content: "\f1d9";
}
.report_TAF {
background-color: cornsilk;
color: black;
}
.report_PIREP {
background-color: gainsboro;
color: black;
}
.report_WINDS {
background-color: lavender;
color: black;
}
.flight_condition_VFR {
background-color: forestgreen;
color: white;

4
web/plates/weather.html 100755 → 100644
Wyświetl plik

@ -29,7 +29,7 @@
<div class="separator"></div>
<div class="col-sm-12">
<span class="col-xs-3"><strong>{{weather.location}}</strong></span>
<span ng-class="weather.flight_condition ? 'col-xs-3 label label-success flight_condition_{{weather.flight_condition}}' : 'col-xs-3'">{{weather.type}}</span>
<span ng-class="weather.flight_condition ? 'col-xs-3 label label-success flight_condition_{{weather.flight_condition}}' : 'col-xs-3 label label-success report_{{weather.type}}'"><strong>{{weather.type}}</strong></span>
<span class="col-xs-6 text-right">{{weather.time}}</span>
</div>
<div class="col-sm-12">
@ -62,7 +62,7 @@
<div class="separator"></div>
<div class="col-sm-12">
<span class="col-xs-3"><strong>{{weather.location}}</strong></span>
<span ng-class="weather.flight_condition ? 'col-xs-3 label label-success flight_condition_{{weather.flight_condition}}' : 'col-xs-3'">{{weather.type}}</span>
<span ng-class="weather.flight_condition ? 'col-xs-3 label label-success flight_condition_{{weather.flight_condition}}' : 'col-xs-3 label label-success report_{{weather.type}}'">{{weather.type}}</span>
<span class="col-xs-6 text-right">{{weather.time}}</span>
</div>
<div class="col-sm-12">