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:
commit
c4adca9dc3
2 changed files with 34 additions and 4 deletions
11
doc/Makefile
11
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 \
|
||||
|
|
27
doc/templates/css/table.css
vendored
Normal file
27
doc/templates/css/table.css
vendored
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in a new issue