Auto merge of #93 - matthiasbeyer:doc-html-template-css-setup, r=matthiasbeyer

Doc html template css setup

CSS setup for the paper, including table CSS.
This commit is contained in:
Homu 2016-01-12 02:05:25 +09:00
commit c4adca9dc3
2 changed files with 34 additions and 4 deletions

View file

@ -18,15 +18,17 @@ SETTING_FONTSIZE=11pt
## Source directory ## Source directory
SRC_DIR=$(shell pwd)/src SRC_DIR=$(shell pwd)/src
## Templates
TEMPLATES=$(shell pwd)/templates
## CSS directory ## 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 ## All markdown files in the working directory
export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort) export SRC=$(shell find $(SRC_DIR) -name "*.md" | sort)
## Templates
TEMPLATES=$(shell pwd)/templates
DOCUMENT_SETTINGS_PDF= \ DOCUMENT_SETTINGS_PDF= \
--listings \ --listings \
--variable fontsize=$(SETTING_FONTSIZE) \ --variable fontsize=$(SETTING_FONTSIZE) \
@ -41,6 +43,7 @@ DOCUMENT_SETTINGS_PDF= \
--variable geometry=portrait --variable geometry=portrait
DOCUMENT_SETTINGS_HTML= \ DOCUMENT_SETTINGS_HTML= \
$(CSS_INCLUDES) \
--variable lang=de \ --variable lang=de \
--variable lof=true \ --variable lof=true \
--variable lol=true \ --variable lol=true \

27
doc/templates/css/table.css vendored Normal file
View file

@ -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;
}