summaryrefslogtreecommitdiffstats
path: root/interface/css
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2022-02-20 20:36:32 +0300
committermoisseev <moiseev@mezonplus.ru>2022-02-20 20:36:32 +0300
commita417f507b9cf123050c89dbf940b127091af25ab (patch)
tree570ef8c9faa75ce3a1628e11005b2d36d42f8e3f /interface/css
parentd4656983a39150844f9aaf7b3ee6cdc8164a4c41 (diff)
downloadrspamd-a417f507b9cf123050c89dbf940b127091af25ab.tar.gz
rspamd-a417f507b9cf123050c89dbf940b127091af25ab.zip
[WebUI] Replace pie chart library
Diffstat (limited to 'interface/css')
-rw-r--r--interface/css/d3pie.css41
-rw-r--r--interface/css/rspamd.css3
2 files changed, 44 insertions, 0 deletions
diff --git a/interface/css/d3pie.css b/interface/css/d3pie.css
new file mode 100644
index 000000000..71419a3d6
--- /dev/null
+++ b/interface/css/d3pie.css
@@ -0,0 +1,41 @@
+.d3pie .chart-title {
+ font-family: Arial, sans-serif;
+ font-size: 24px;
+ text-anchor: middle;
+}
+.d3pie-tooltip {
+ pointer-events: none;
+ position: absolute;
+ padding: 5px;
+ color: white;
+ background-color: rgb(0 0 0 /50%);
+ border-radius: 4px;
+ opacity: 0;
+ line-height: normal;
+}
+
+.d3pie .inner-label {
+ fill: #eeeeee;
+ pointer-events: none;
+ text-anchor: middle;
+}
+
+/* pie placeholder */
+.d3pie .slice-g:first-of-type .inner-label {
+ fill: #cccccc;
+}
+.d3pie defs radialGradient:first-of-type stop {
+ stop-opacity: 0.1;
+}
+
+/* gradient color */
+.d3pie .grad-stop-1 {
+ stop-color: black;
+}
+
+.outer-label-g {
+ opacity: 0;
+}
+.link {
+ fill: none;
+}
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 3fbc31769..4c279cda7 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -345,6 +345,9 @@ table#symbolsTable input[type="number"] {
text-align: left;
font-size: 12px;
}
+#rrd-pie {
+ font-size: 10px;
+}
/* Throughput graph controls */
#graph_controls select {