From 1fdc3412b370fb6aeea35733c77187fb81d38901 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 26 May 2014 15:23:29 +0200 Subject: Split SVG styling to separate file Might be useful if a SVG element gets exported. --- spamviz.html | 31 +------------------------------ svg.css | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 svg.css diff --git a/spamviz.html b/spamviz.html index 9f414e8..aef31b3 100644 --- a/spamviz.html +++ b/spamviz.html @@ -83,37 +83,8 @@ html, body { margin: 0; padding: 0; } -/* style for svg contents */ -.node { - stroke: #fff; - stroke-width: 0.5px; -} -.node.spam { - fill: orange; -} -.node.ham { - fill: #6c6; -} -.node.neighbor { - fill: #fcc; -} -.node.selected { - fill: #f00; -} -.link { - stroke: #ddd; - stroke-opacity: .6; - /* fill none to prevent arcs lines being too thick */ - fill: none; -} -.arrow-head { - fill: #399; - fill-opacity: .6; -} -.link.neighbor { - stroke: #f99; -} +
diff --git a/svg.css b/svg.css new file mode 100644 index 0000000..aca104a --- /dev/null +++ b/svg.css @@ -0,0 +1,30 @@ +/* style for svg contents */ +.node { + stroke: #fff; + stroke-width: 0.5px; +} +.node.spam { + fill: orange; +} +.node.ham { + fill: #6c6; +} +.node.neighbor { + fill: #fcc; +} +.node.selected { + fill: #f00; +} +.link { + stroke: #ddd; + stroke-opacity: .6; + /* fill none to prevent arcs lines being too thick */ + fill: none; +} +.arrow-head { + fill: #399; + fill-opacity: .6; +} +.link.neighbor { + stroke: #f99; +} -- cgit v1.2.1