File: chart.css

package info (click to toggle)
firefox 147.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,683,320 kB
  • sloc: cpp: 7,607,359; javascript: 6,533,295; ansic: 3,775,223; python: 1,415,500; xml: 634,561; asm: 438,949; java: 186,241; sh: 62,752; makefile: 18,079; objc: 13,092; perl: 12,808; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (115 lines) | stat: -rw-r--r-- 2,493 bytes parent folder | download | duplicates (3)
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
107
108
109
110
111
112
113
114
115
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Chart */

.generic-chart-container {
  /* Hack: force hardware acceleration */
  transform: translateZ(1px);
  color: light-dark(var(--theme-text-color-alt), var(--theme-text-color-strong));
}

.chart-colored-blob {
  fill: var(--theme-body-color);
  background: var(--theme-body-color);
}

/* Chart: Pie */

.pie-chart-slice {
  stroke-width: 1px;
  cursor: pointer;
  stroke: light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.2));

  &[largest] {
    stroke: light-dark(#000, #fff);
  }
}

.theme-dark .pie-chart-slice[largest] {
  stroke-width: 2px;
}

.pie-chart-label {
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  fill: light-dark(#fff, #000);
}

.pie-chart-container[slices="1"] > .pie-chart-slice {
  stroke-width: 0;
}

.pie-chart-slice,
.pie-chart-label {
  transition: all 0.1s ease-out;
}

.pie-chart-slice:not(:hover, [focused]),
.pie-chart-slice:not(:hover, [focused]) + .pie-chart-label {
  transform: none !important;
}

/* Chart: Table */

.table-chart-title {
  padding-bottom: 10px;
  font-size: 120%;
  font-weight: 600;
}

.table-chart-row {
  margin-top: 1px;
  cursor: pointer;
}

/* Only adjust opacity when not in high Contrast Mode */
:root:not([forced-colors-active]) {
  .table-chart-grid:hover .table-chart-row {
    transition: opacity 0.1s ease-in-out;
  }

  .table-chart-grid:not(:hover) .table-chart-row {
    transition: opacity 0.2s ease-in-out;
  }

  .generic-chart-container:hover > .table-chart-grid:hover .table-chart-row:not(:hover),
  .generic-chart-container:hover ~ .table-chart-container > .table-chart-grid .table-chart-row:not([focused]) {
    opacity: 0.4;
  }
}

/* Add specific hover style for High Contrast Mode */
:root[forced-colors-active] tbody .table-chart-row:hover {
  outline: 1px solid SelectedItem;
  outline-offset: 2px;
}

.table-chart-row-box {
  width: 8px;
  height: 1.5em;
  margin-inline-end: 10px;
}

.table-chart-row-label {
  width: 8em;
  padding-inline-end: 6px;
  cursor: inherit;
}

.table-chart-totals {
  margin-top: 8px;
  padding-top: 6px;
}

.table-chart-totals {
  border-top: 1px solid var(--theme-splitter-color);
}

.table-chart-summary-label {
  font-weight: 600;
  padding: 1px 0;
  color: light-dark(var(--theme-body-color), var(--theme-text-color-strong));
}