From 7a68173fb6818d30bf2335d40970e38adc259588 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 19 Jun 2010 11:32:07 +0200 Subject: [PATCH] Add a CSS file. --- share/Makefile.am | 1 + share/style.css | 36 ++++++++++++++++++++++++++++++++++++ src/action_list_graphs.c | 8 +++++--- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 share/style.css diff --git a/share/Makefile.am b/share/Makefile.am index 98d31c5..1262750 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -1,2 +1,3 @@ dist_sysconf_DATA = collection.conf +dist_data_DATA = style.css diff --git a/share/style.css b/share/style.css new file mode 100644 index 0000000..aafe97c --- /dev/null +++ b/share/style.css @@ -0,0 +1,36 @@ +body +{ + font-family: sans-serif; +} + +ul.graph_list +{ + margin: 0; + padding: 1ex; + width: 50ex; +} + +li.graph +{ + display: block; + border: 1px solid gray; + margin-top: 1ex; + + background-color: rgb(245,245,255); +} + +ul.instance_list +{ + margin: 0; + padding: 1ex; + border-top: 1px solid gray; + + background-color: rgb(252,252,252); +} + +li.instance +{ + display: block; + + font-size: 90%; +} diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c index 964a436..6e4f0d4 100644 --- a/src/action_list_graphs.c +++ b/src/action_list_graphs.c @@ -87,7 +87,8 @@ static int print_graph_inst_html (graph_config_t *cfg, /* {{{ */ graph_get_title (cfg, desc, sizeof (desc)); html_escape_buffer (desc, sizeof (desc)); - printf ("
  • %s\n