Moved legend colors to css file

This commit is contained in:
Andreas Kristiansen
2024-12-06 13:08:06 +01:00
parent c4afe1dc5f
commit b5198b2fc0
3 changed files with 30 additions and 4 deletions

View File

@@ -92,10 +92,10 @@
<div class="glanceyear-summary">
<div class="glanceyear-legend">
<?= __("Less")?>
<span style="background-color: #eee"></span>
<span style="background-color: #c3dbda"></span>
<span style="background-color: #5caeaa"></span>
<span style="background-color: #277672"></span>
<span class="glanceyear-legend-1"></span>
<span class="glanceyear-legend-2"></span>
<span class="glanceyear-legend-3"></span>
<span class="glanceyear-legend-4"></span>
<?= __("More")?>
</div>
<?= __("Calendar with QSOs") ?><br>

View File

@@ -1166,3 +1166,16 @@ svg text.month { fill: #AAA; }
position: absolute;
width: 0;
}
.glanceyear-legend-1 {
background-color: #eee;
}
.glanceyear-legend-2 {
background-color: #c3dbda;
}
.glanceyear-legend-3 {
background-color: #5caeaa;
}
.glanceyear-legend-4 {
background-color: #277672;
}

View File

@@ -360,6 +360,19 @@ svg rect.day[data-col='48'] {
fill: #237fb4;
}
.glanceyear-legend-1 {
background-color: #73e2ff;
}
.glanceyear-legend-2 {
background-color: #4ab4f5;
}
.glanceyear-legend-3 {
background-color: #349cd8;
}
.glanceyear-legend-4 {
background-color: #237fb4;
}
svg text {
fill: #9fc7e1;
font-size: 9px;