summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/stats.less
blob: 4658d4f2b7d41ed0351c6b775296068c9e4df662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// SPDX-License-Identifier: AGPL-3.0-or-later

.engine-stats {
  border-spacing: 0;
  border-collapse: collapse;

  tr td,
  tr th {
    border-bottom: 1px solid var(--color-result-border);
    padding: 0.25rem;
  }

  table.engine-tooltip {
    border-spacing: 0;
    border-collapse: collapse;

    td,
    th {
      border: none;
    }
  }

  .engine-name {
    width: 20rem;
  }

  .engine-score {
    width: 7rem;
    text-align: right;
  }

  .engine-reliability {
    text-align: right;
  }
}

table.engine-error th.engine-error-type,
table.engine-error td.engine-error-type,
failed-test {
  width: 10rem;
}

.engine-errors {
  margin-top: 3rem;

  table.engine-error {
    max-width: 1280px;
    margin: 1rem 0 3rem 0;
    border: 1px solid var(--color-result-border);
    .ltr-text-align-left();

    tr th,
    tr td {
      padding: 0.5rem;
    }

    & span.log_parameters {
      border-right: 1px solid solid var(--color-result-border);
      padding: 0 1rem 0 0;
      margin: 0 0 0 0.5rem;
    }
  }
}

.bar-chart-value {
  width: 3em;
  display: inline-block;
  text-align: right;
  padding-right: 0.5rem;
}

.bar-chart-graph {
  width: calc(100% - 5rem);
  display: inline-block;
}

.bar-chart-bar {
  border: 3px solid #5bc0de;
  margin: 1px 0;
}

.bar-chart-serie1 {
  border: 3px solid #5bc0de;
  margin: 1px 0;
  float: left;
}

.bar-chart-serie2 {
  border: 3px solid #deb15b;
  margin: 1px 0;
  float: left;
}

.bar0 {
  width: 0;
  border: 0;
}

.generate-bar(100);

.generate-bar(@n, @i: 1) when (@i =< @n) {
  .bar@{i} {
    width: (@i * 100% / @n);
  }
  .generate-bar(@n, (@i + 1));
}