about summary refs log tree commit diff stats
path: root/update_html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-09 03:31:56 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-09 03:31:56 -0800
commite60569995174ab119dfc7ae2bace76328bb35241 (patch)
treee635e06e2e43db3a758f78f2e0aacbd359aa1c1e /update_html
parent4690ce81e079fc58cae8d6d583e5e3eb3ed81a83 (diff)
downloadmu-e60569995174ab119dfc7ae2bace76328bb35241.tar.gz
2744
Tweak colors and font-sizes in generated html.
Diffstat (limited to 'update_html')
-rwxr-xr-xupdate_html7
1 files changed, 5 insertions, 2 deletions
diff --git a/update_html b/update_html
index 68441e28..4e5ce473 100755
--- a/update_html
+++ b/update_html
@@ -8,12 +8,15 @@ process() {
 
   sed -i 's,<title>\~/mu/,<title>Mu - ,' $1.html
   sed -i 's,\.html</title>,</title>,' $1.html
-  sed -i 's/^\*.*/* { font-size: 1.05em; }/g' $1.html
+  sed -i 's/^\* { \(.*\) }/* { font-size: 12pt; \1 }/g' $1.html
+  sed -i 's/^body { \(.*\) }/body { font-size: 12pt; \1 }/g' $1.html
   # tweak contrast
   sed -i 's/^\.Constant .*/.Constant { color: #00a0a0; }/' $1.html
   sed -i 's/^\.muControl .*/.muControl { color: #c0a020; }/' $1.html
   sed -i 's/^\.Comment .*/.Comment { color: #9090ff; }/' $1.html
-  sed -i 's/^\.Delimiter .*/.Delimiter { color: #a04060; }/' $1.html  # not meant to be read/ can be lower-contrast
+  sed -i 's/^\.Delimiter .*/.Delimiter { color: #800080; }/' $1.html  # not meant to be read; can be lower-contrast
+  sed -i 's/^\.PreProc .*/.PreProc { color: #800080; }/' $1.html  # not meant to be read; can be lower-contrast
+  sed -i 's/^\.Identifier .*/.Identifier { color: #fcb165; }/' $1.html
 
   mv -i $1.html html/`dirname $1`
 }