Issue #1189 : Add a compare mode on years and month in the statistic page.

* Number of years compared is a configuration variable (default 5)
 * Months compared are the actual, the last and the actual month the last year (you can also visualize the average last 12 months)
This commit is contained in:
Zacharie
2020-06-08 15:03:03 +02:00
committed by plegall
parent 8577239be5
commit 5d24541dca
5 changed files with 303 additions and 45 deletions
+14
View File
@@ -266,6 +266,13 @@ TABLE.doubleSelect SELECT.categoryList {
transition: 0.2s ease;
}
.stat-data-selector label.unavailable {
color: gray;
background-color: #aaa;
cursor: default;
pointer-events: none;
}
.stat-data-selector label:hover {
background-color: #ccc
}
@@ -273,6 +280,7 @@ TABLE.doubleSelect SELECT.categoryList {
.stat-data-selector input:checked + label {
background-color: #FFA646;
color: white;
pointer-events: none;
}
.stat-data-selector input{
@@ -287,6 +295,12 @@ TABLE.doubleSelect SELECT.categoryList {
margin-bottom: 20px;
}
.stat-compare-mode {
position: absolute;
right: 10px;
transform: translate(0, 10px);
}
.over{
position: relative;
z-index: 0;