aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenox7 <as@tenoware.com>2018-05-18 00:22:57 -0700
committertenox7 <as@tenoware.com>2018-05-18 00:22:57 -0700
commitebf449eede07f2ddcd69efda15a69ab88f5adf9f (patch)
treed847a47e2cc101007ea4fbb37688087822d76e4b
parentc6158f925c619a51106b6a85c0189a1123f306c1 (diff)
downloadwfm-ebf449eede07f2ddcd69efda15a69ab88f5adf9f.tar.gz
font size configureable in wfm.h
-rw-r--r--dir.c6
-rw-r--r--wfm.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/dir.c b/dir.c
index 727a76e..d028af7 100644
--- a/dir.c
+++ b/dir.c
@@ -162,9 +162,9 @@ void dirlist(void) {
"A:hover {text-decoration: none; color:#FF0000; } \n"
"html, body, table { width:100%%; margin:0px; padding:0px; border:none; } \n"
"img { vertical-align:middle; } \n"
- "td, th { font-family: Tahoma, Arial, Geneva, sans-serif; font-size:11px; margin:0px; padding:2px; border:none; } \n"
+ "td, th { font-family: Tahoma, Arial, Geneva, sans-serif; font-size:%s; margin:0px; padding:2px; border:none; } \n"
"input { border-color:#000000;border-style:solid; \n"
- "font-family: Tahoma, Arial, Geneva, sans-serif; font-size:11px; }\n"
+ "font-family: Tahoma, Arial, Geneva, sans-serif; font-size:%s; }\n"
".hovout { border: none; padding: 0px; background-color: transparent; color: #0000CE; }\n"
".hovin { border: none; padding: 0px; background-color: transparent; color: #FF0000; }\n"
"-->\n"
@@ -177,7 +177,7 @@ void dirlist(void) {
"</HEAD>\n"
"<BODY BGCOLOR=\"#FFFFFF\">\n"
"<FORM ACTION=\"%s\" METHOD=\"POST\" ENCTYPE=\"multipart/form-data\" %s>\n",
- ICONSURL, FAVICON, cgiScriptName, (js>=2) ? "onsubmit=\"start()\"" : "");
+ FONT_SIZE, FONT_SIZE, ICONSURL, FAVICON, cgiScriptName, (js>=2) ? "onsubmit=\"start()\"" : "");
diff --git a/wfm.h b/wfm.h
index 1b0a83c..5d31351 100644
--- a/wfm.h
+++ b/wfm.h
@@ -2,13 +2,15 @@
#define copyright "<!-- WFM Version " VERSION ", Mountain View, CA, " __DATE__ " [" __TIME__ "] -->\n" \
"<!-- Copyright (c) 1994-2018 by Antoni Sawicki -->\n"
+#define FONT_SIZE "13px"
+
#define CSS_STYLE \
" <STYLE TYPE=\"text/css\"><!-- \n" \
" A:link {text-decoration: none; color:#0000CE; } \n" \
" A:visited {text-decoration: none; color:#0000CE; } \n" \
" A:active {text-decoration: none; color:#FF0000; } \n" \
" A:hover {text-decoration: none; color:#FF0000; } \n" \
- " body, td, th, input { font-family: Tahoma, Sans-Serif; font-size:11px; } \n" \
+ " body, td, th, input { font-family: Tahoma, Sans-Serif; font-size:" FONT_SIZE "; } \n" \
" html, body { box-sizing: border-box; width:100%%; height:100%%; margin:0px; padding:0px; } \n" \
" input { border-color:#000000; border-style:solid; }\n" \
" img { vertical-align: middle; }\n" \