diff options
author | tenox7 <as@tenoware.com> | 2018-05-18 00:22:57 -0700 |
---|---|---|
committer | tenox7 <as@tenoware.com> | 2018-05-18 00:22:57 -0700 |
commit | ebf449eede07f2ddcd69efda15a69ab88f5adf9f (patch) | |
tree | d847a47e2cc101007ea4fbb37688087822d76e4b | |
parent | c6158f925c619a51106b6a85c0189a1123f306c1 (diff) | |
download | wfm-ebf449eede07f2ddcd69efda15a69ab88f5adf9f.tar.gz |
font size configureable in wfm.h
-rw-r--r-- | dir.c | 6 | ||||
-rw-r--r-- | wfm.h | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -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()\"" : ""); @@ -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" \ |