From 4eabdc19aa6abe9207007f6e400ba90beb0838ce Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 11 Jan 2016 18:00:56 +0100 Subject: [PATCH 1/2] Add css-include setup for html template --- doc/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 4a546342..495c043b 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -18,15 +18,17 @@ SETTING_FONTSIZE=11pt ## Source directory SRC_DIR=$(shell pwd)/src +## Templates +TEMPLATES=$(shell pwd)/templates + ## CSS directory -CSS_DIR=$(SRC_DIR)/css +CSS_DIR=$(TEMPLATES)/css +CSS_SRC=$(shell find $(CSS_DIR) -type f -name "*.css") +CSS_INCLUDES=$(foreach x, $(CSS_SRC), --variable css=$(x)) ## All markdown files in the working directory export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort) -## Templates -TEMPLATES=$(shell pwd)/templates - DOCUMENT_SETTINGS_PDF= \ --listings \ --variable fontsize=$(SETTING_FONTSIZE) \ @@ -41,6 +43,7 @@ DOCUMENT_SETTINGS_PDF= \ --variable geometry=portrait DOCUMENT_SETTINGS_HTML= \ + $(CSS_INCLUDES) \ --variable lang=de \ --variable lof=true \ --variable lol=true \ From 4cd01bbec773bfd0e2ba21b781c020c0bfe76083 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 11 Jan 2016 18:01:19 +0100 Subject: [PATCH 2/2] Add table css for html template --- doc/templates/css/table.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/templates/css/table.css diff --git a/doc/templates/css/table.css b/doc/templates/css/table.css new file mode 100644 index 00000000..492744b3 --- /dev/null +++ b/doc/templates/css/table.css @@ -0,0 +1,27 @@ +table { + margin-left: auto; + margin-right: auto; + font-family: verdana,arial,sans-serif; + font-size:11px; + color:#333333; + border-width: 1px; + border-color: #666666; + border-collapse: collapse; +} + +table th { + border-width: 1px; + padding: 8px; + border-style: solid; + border-color: #666666; + background-color: #dedede; +} + +table td { + border-width: 1px; + padding: 8px; + border-style: solid; + border-color: #666666; + background-color: #ffffff; +} +