From 9e0a6a78616ab9ede6830c078245a195791e5ee4 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 11 Nov 2012 19:09:17 +0530 Subject: new feature: special text (symbols) are quoted to HTML number inside a code-block modified: parsers/CodeBlocks.java (new class 'SymbolMap' which has a list of symbols & their corresponding HTML number) ( quote() in 'CodeBlock' class uses the SymbolMap to quote text) parsers/ParserList.java (list re-ordered, CodeBlock has gone up) parsers/QuoteSpecialText.java ( if regex matches '#', it leaves the text un-quoted) --- parsers/CodeBlocks.java | 85 ++++++++++++++++++++++++++++++++++++++----- parsers/ParserList.java | 2 +- parsers/QuoteSpecialText.java | 4 +- 3 files changed, 78 insertions(+), 13 deletions(-) diff --git a/parsers/CodeBlocks.java b/parsers/CodeBlocks.java index 64e8841..251c4de 100644 --- a/parsers/CodeBlocks.java +++ b/parsers/CodeBlocks.java @@ -22,10 +22,12 @@ package scruf.parsers; import java.util.regex.*; +import java.util.*; public class CodeBlocks implements Parser { + private SymbolMap symbolMap = new SymbolMap(); public String parse(String fileContent) { - Pattern pattern = Pattern.compile("(\\#\\#\\#)(\\n+)(.+?)(\\n+)(\\1)", + Pattern pattern = Pattern.compile("(\\#\\#\\#)(\\n)(.+?)(\\n)(\\1)", Pattern.DOTALL); Matcher matcher = pattern.matcher(fileContent); LineBreak lbreak = new LineBreak(); @@ -34,7 +36,7 @@ public class CodeBlocks implements Parser { while(matcher.find()) { replacement.delete(0,replacement.length()); replacement.append("
"); - replacement.append(lbreak.parse(quote(matcher.group(3)))); + replacement.append(lbreak.parse(quote(matcher.group(3)))); replacement.append("
"); matcher.appendReplacement(sbuffer,replacement.toString()); } @@ -42,21 +44,84 @@ public class CodeBlocks implements Parser { return sbuffer.toString(); } /** - * this method quotes special characters -- `\` & - * `$`, in the replacment string as they have - * special meaning. - * + * this method quotes symbols to a HTML number. */ private String quote(String string) { - Pattern pattern = Pattern.compile("\\$|\\\\"); + Pattern pattern = Pattern.compile("(\\&(amp|lt|gt|(\\#35))\\;)|(\\p{Punct})"); Matcher matcher = pattern.matcher(string); StringBuffer sbuffer = new StringBuffer(); - String rep; while(matcher.find()) { - rep = "\\\\\\"+matcher.group(); - matcher.appendReplacement(sbuffer,rep); + if(matcher.group(4)!=null) { + matcher.appendReplacement(sbuffer, + symbolMap.get(matcher.group())); + } } matcher.appendTail(sbuffer); return sbuffer.toString(); } } + +/** + * Map of Symbols & their HTML equivalent numbers. + */ +class SymbolMap extends HashMap { + public SymbolMap() { + put("!","!"); + put("\"","""); + put("#","#"); + put("$","$"); + put("%","%"); + put("&","&"); + put("'","'"); + put("(","("); + put(")",")"); + put("*","*"); + put("+","+"); + put(",",","); + put("-","-"); + put(".","."); + put("/","/"); + put(":",":"); + put(";",";"); + put("<","<"); + put("=","="); + put(">",">"); + put("?","?"); + put("@","@"); + put("[","["); + put("\\","\"); + put("]","]"); + put("^","^"); + put("_","_"); + put("`","`"); + put("{","{"); + put("|","|"); + put("}","}"); + put("~","~"); + } +} +/** + +Special Case: + +### + +. +{ +### +oced +### +. +### +code +### +. +### +fizz +### +} +. +### + + +*/ \ No newline at end of file diff --git a/parsers/ParserList.java b/parsers/ParserList.java index 999dadc..685de25 100644 --- a/parsers/ParserList.java +++ b/parsers/ParserList.java @@ -30,9 +30,9 @@ public class ParserList { // add Parsers. NOTE: parser order is significant. parsers.add(new QuoteSpecialText()); parsers.add(new DocumentName()); + parsers.add(new CodeBlocks()); parsers.add(new DocumentDate()); parsers.add(new WordDecoration()); - parsers.add(new CodeBlocks()); parsers.add(new Headings()); parsers.add(new Links()); parsers.add(new Images()); diff --git a/parsers/QuoteSpecialText.java b/parsers/QuoteSpecialText.java index 165ffa9..76241cc 100644 --- a/parsers/QuoteSpecialText.java +++ b/parsers/QuoteSpecialText.java @@ -33,10 +33,10 @@ public class QuoteSpecialText implements Parser { qmap.put(">",">"); } public String parse(String fileContent) { - Pattern pattern = Pattern.compile("(\\&)|(\\<)|(\\>)"); + Pattern pattern = Pattern.compile("(\\&\\#35\\;)|(\\&)|(\\<)|(\\>)"); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); - while(matcher.find()) { + while(matcher.find() && matcher.group(1)==null) { matcher.appendReplacement(sbuffer, qmap.get(matcher.group())); } -- cgit v1.2.3 From 9761b19683593a37b64670ddfd4fe616605d9f2d Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 11 Nov 2012 19:19:36 +0530 Subject: todo updated --- todo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/todo b/todo index a15e999..90a0e85 100644 --- a/todo +++ b/todo @@ -1,5 +1,3 @@ -# 'quote' special symbols inside a code-block. - # introduce 'meta' info in html doc generated -- authorinfo, date of creation, etc. * introduction to 'scruf' & 'scruffy' mark-up. [working on this one] @@ -14,4 +12,6 @@ [done] modify conversion/CanConvert.java (bug) -[done] include a link or something to view the 'source'. \ No newline at end of file +[done] include a link or something to view the 'source'. + +[done] 'quote' special symbols inside a code-block. \ No newline at end of file -- cgit v1.2.3 From 16ab7e080e48c07c4ed4d1d1822cfad193a5e506 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 11 Nov 2012 19:26:35 +0530 Subject: updated styling/style.css --- styling/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/styling/style.css b/styling/style.css index 02e71af..94fe7a1 100644 --- a/styling/style.css +++ b/styling/style.css @@ -133,6 +133,18 @@ footer { width:40%; } +div.source { + font-size:0.4em; + font-family:monospace; + text-align:center; + color:#989898; + margin-left:auto; + margin-right:auto; + border:1px; + padding:5px; + width:40%; +} + div.scruf { font-size:0.9em; font-family:"Palatino Linotype","Book Antiqua",Palatino,"URW Palladio L",FreeSerif,serif; -- cgit v1.2.3 From 07e79180d6a9d1aeb5805d61dcd2687209af51ef Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Tue, 27 Nov 2012 20:57:12 +0530 Subject: new feature: Now Scruf appends a 'last updated' string at the end of all html files, it generates. parsers/LastUpdate.java does this job. added: parsers/LastUpdate.java (new parser) modified: parsers/ParserList.java (added new Parser: see above) todo (now scruf todos are in org-mode) --- parsers/LastUpdate.java | 30 ++++++++++++++++++++++++++++++ parsers/ParserList.java | 1 + todo | 47 ++++++++++++++++++++++++++++++++++++++--------- 3 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 parsers/LastUpdate.java diff --git a/parsers/LastUpdate.java b/parsers/LastUpdate.java new file mode 100644 index 0000000..a7de460 --- /dev/null +++ b/parsers/LastUpdate.java @@ -0,0 +1,30 @@ +package scruf.parsers; + +import java.text.*; +import java.util.*; + +/** + * This class produces a string of the current date. This 'current + * date' string is used append at end of the html page page. + */ + +class LastUpdate implements Parser { + private String startBlock, endBlock; + private DateFormat date; + private StringBuilder sbuilder; + public LastUpdate() { + sbuilder = new StringBuilder(); + startBlock = "\n
\n Last Updated on: "; + date = DateFormat.getDateInstance(DateFormat.LONG); + endBlock = "
\n"; + } + public String parse(String fileContent) { + sbuilder.delete(0,sbuilder.length()); + sbuilder.append(fileContent); + sbuilder.append(startBlock); + // date.format() returns the date at this instance in time. + sbuilder.append(date.format(new Date())); + sbuilder.append(endBlock); + return sbuilder.toString(); + } +} \ No newline at end of file diff --git a/parsers/ParserList.java b/parsers/ParserList.java index 685de25..2fba376 100644 --- a/parsers/ParserList.java +++ b/parsers/ParserList.java @@ -38,6 +38,7 @@ public class ParserList { parsers.add(new Images()); parsers.add(new Footer()); parsers.add(new Paragraphs()); + parsers.add(new LastUpdate()); parsers.add(new Source()); parsers.add(new BackButton()); parsers.add(new Header()); diff --git a/todo b/todo index 90a0e85..3b73a80 100644 --- a/todo +++ b/todo @@ -1,17 +1,46 @@ -# introduce 'meta' info in html doc generated -- authorinfo, date of creation, etc. +SCRUF - TODO -*- mode: org; -*- -* introduction to 'scruf' & 'scruffy' mark-up. [working on this one] +* features -# Test it by generating your _full_ homepage using scruf. +** 'last update' string + the 'last updated' string must be dangled somewhere in the document + that is licked by scruf. -[done] way to ignore directories -[done] move PresentFile.java to status/ +** tags + introduce 'meta' info in html doc generated -- authorinfo, date of + creation, etc. -[done] extension for scruff marked-up files to make discovery easier. -[done] modify conversion/CanConvert.java (bug) +** implement lists + introduce mark-up for lists. Weird that I have not implement + yet. -[done] include a link or something to view the 'source'. -[done] 'quote' special symbols inside a code-block. \ No newline at end of file +** [hp] documentation + + introduction to 'scruf' & 'scruffy' mark-up. [started writing, but + might not get it done anytime in the near future.] + + +* testing + +** build homepage + Test it by generating your _full_ homepage using scruf. + +* finished todos + +** [done] ignore directories + way to ignore directories + +** [done] move PresentFile.java to status/ + +** [done] extension for scruffy files + extension for scruff marked-up files to make discovery easier. + +** [done] modify conversion/CanConvert.java (bug) + +** [done] link to scruffy source + include a link or something to view the 'source'. + +** [done] 'quote' special symbols inside a code-block. -- cgit v1.2.3 From 8d538fa1c1fccb3ce1c5324c9b7b6ebeb78439cf Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Tue, 27 Nov 2012 21:03:45 +0530 Subject: parsers/LastUpdate.java was baptized, todo was updated modified: parsers/LastUpdate.java todo --- parsers/LastUpdate.java | 23 ++++++++++++++++++++++- todo | 10 ++++------ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/parsers/LastUpdate.java b/parsers/LastUpdate.java index a7de460..4d9f168 100644 --- a/parsers/LastUpdate.java +++ b/parsers/LastUpdate.java @@ -1,3 +1,24 @@ +/*+ + * Copyright 2012 rsiddharth + * Email: + * + * This file is part of Scruf. + * + * Scruf is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + package scruf.parsers; import java.text.*; @@ -27,4 +48,4 @@ class LastUpdate implements Parser { sbuilder.append(endBlock); return sbuilder.toString(); } -} \ No newline at end of file +} diff --git a/todo b/todo index 3b73a80..d851a86 100644 --- a/todo +++ b/todo @@ -2,11 +2,6 @@ SCRUF - TODO -*- mode: org; -*- * features -** 'last update' string - the 'last updated' string must be dangled somewhere in the document - that is licked by scruf. - - ** tags introduce 'meta' info in html doc generated -- authorinfo, date of creation, etc. @@ -22,7 +17,6 @@ SCRUF - TODO -*- mode: org; -*- introduction to 'scruf' & 'scruffy' mark-up. [started writing, but might not get it done anytime in the near future.] - * testing ** build homepage @@ -44,3 +38,7 @@ SCRUF - TODO -*- mode: org; -*- include a link or something to view the 'source'. ** [done] 'quote' special symbols inside a code-block. +** [done] 'last update' string + the 'last updated' string must be dangled somewhere in the document + that is licked by scruf. + -- cgit v1.2.3 From 7d0d748b58711a28f1af0fabe8d399ebc067b898 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 28 Nov 2012 09:05:54 +0530 Subject: new feature: meta tag for author info is available. removed: parsers/DocumentName.java (MetaParser supersedes this Parser) added: parsers/MetaParser.java (it looks for meta info and updates them to PresentFile) modified: conversion/ConvertFile.java (now it initiates some of the PresentFile fields to null) parsers/Header.java (Meta field 'author' added) parsers/ParserList.java (added MetaParser, removed DocumentName) status/PresentFile.java (new field 'author') todo (update todo) --- conversion/ConvertFile.java | 2 ++ parsers/DocumentName.java | 39 --------------------------------------- parsers/Header.java | 1 + parsers/MetaParser.java | 39 +++++++++++++++++++++++++++++++++++++++ parsers/ParserList.java | 2 +- status/PresentFile.java | 1 + todo | 9 ++++----- 7 files changed, 48 insertions(+), 45 deletions(-) delete mode 100644 parsers/DocumentName.java create mode 100644 parsers/MetaParser.java diff --git a/conversion/ConvertFile.java b/conversion/ConvertFile.java index 5065ad0..f37d009 100644 --- a/conversion/ConvertFile.java +++ b/conversion/ConvertFile.java @@ -41,6 +41,8 @@ public class ConvertFile { * for use outside this method. */ PresentFile.file = file; + PresentFile.name = null; + PresentFile.author = null; readFile = new ReadFile(file); String fileContent = readFile.getContent(); if(!fileContent.equals("")) { diff --git a/parsers/DocumentName.java b/parsers/DocumentName.java deleted file mode 100644 index 032d7c0..0000000 --- a/parsers/DocumentName.java +++ /dev/null @@ -1,39 +0,0 @@ -/*+ - * Copyright 2012 rsiddharth - * Email: - * - * This file is part of Scruf. - * - * Scruf is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - - -package scruf.parsers; - -import java.io.*; -import scruf.status.*; - -public class DocumentName implements Parser { - public String parse(String fileContent) { - BufferedReader read = - new BufferedReader(new StringReader(fileContent)); - try { - PresentFile.name = read.readLine(); - }catch(IOException e) { - System.err.println("Error reading string "+e); - } - fileContent = new NullIt().nullIt(fileContent,PresentFile.name); - return fileContent; - } -} diff --git a/parsers/Header.java b/parsers/Header.java index 50575c1..8bde4c8 100644 --- a/parsers/Header.java +++ b/parsers/Header.java @@ -37,6 +37,7 @@ public class Header implements Parser { sbuilder.append(" \n"); sbuilder.append("\n"); sbuilder.append(" \n"); + sbuilder.append("\n"); sbuilder.append(""); sbuilder.append(PresentFile.name); sbuilder.append(""); diff --git a/parsers/MetaParser.java b/parsers/MetaParser.java new file mode 100644 index 0000000..3519cf3 --- /dev/null +++ b/parsers/MetaParser.java @@ -0,0 +1,39 @@ +package scruf.parsers; + +import java.util.regex.*; +import scruf.status.*; + +/** + * this class deals with searching the 'scruffy' marked-up document + * for meta-tag related things. + */ + +public class MetaParser implements Parser { + private Pattern pattern; + private Matcher matcher; + private NullIt nullIt; + public MetaParser() { + pattern = Pattern.compile("^meta\\-(.+?)\\:(.+)", + Pattern.MULTILINE); + nullIt = new NullIt(); + + } + public String parse(String fileContent) { + String value; + matcher = pattern.matcher(fileContent); + while(matcher.find()) { + value = matcher.group(2); + if(matcher.group(1).equals("author")) { + PresentFile.author = value; + } + else if(matcher.group(1).equals("title")) { + PresentFile.name = value; + } + // remove the found 'meta' markup to an empty string. + fileContent = nullIt.nullIt(fileContent,matcher.group()); + // reset the matcher with the new file Content. + matcher.reset(fileContent); + } + return fileContent; + } +} \ No newline at end of file diff --git a/parsers/ParserList.java b/parsers/ParserList.java index 2fba376..a40dcb2 100644 --- a/parsers/ParserList.java +++ b/parsers/ParserList.java @@ -29,8 +29,8 @@ public class ParserList { parsers = new ArrayList(); // add Parsers. NOTE: parser order is significant. parsers.add(new QuoteSpecialText()); - parsers.add(new DocumentName()); parsers.add(new CodeBlocks()); + parsers.add(new MetaParser()); parsers.add(new DocumentDate()); parsers.add(new WordDecoration()); parsers.add(new Headings()); diff --git a/status/PresentFile.java b/status/PresentFile.java index 303d4bc..2e1a690 100644 --- a/status/PresentFile.java +++ b/status/PresentFile.java @@ -30,6 +30,7 @@ import java.io.*; */ public class PresentFile { public static String name; + public static String author; public static File file; } diff --git a/todo b/todo index d851a86..6c20aab 100644 --- a/todo +++ b/todo @@ -2,11 +2,6 @@ SCRUF - TODO -*- mode: org; -*- * features -** tags - introduce 'meta' info in html doc generated -- authorinfo, date of - creation, etc. - - ** implement lists introduce mark-up for lists. Weird that I have not implement yet. @@ -42,3 +37,7 @@ SCRUF - TODO -*- mode: org; -*- the 'last updated' string must be dangled somewhere in the document that is licked by scruf. +** [done] tags + introduce 'meta' info in html doc generated -- authorinfo. + + -- cgit v1.2.3 From 1d92dc8eb4180f04abc8513a8f3d7d95fed57fa2 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 28 Nov 2012 18:09:03 +0530 Subject: bug-fixes; now the final HTML adornings are done in Header, LastUpdate & CloseHtmlTags parsers added: parsers/CloseHtmlTags.java (closes the HTML tags) modified: index/IndexCreator.java (bug fix) parsers/Header.java (couple of lines moved to CloseHtmlTag parser) parsers/MetaParser.java (copyright text added) parsers/ParserList.java (new parser + some parser sequence re-arrangements) --- index/IndexCreator.java | 2 +- parsers/CloseHtmlTags.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++ parsers/Header.java | 7 ------- parsers/MetaParser.java | 23 ++++++++++++++++++++++- parsers/ParserList.java | 5 +++-- 5 files changed, 72 insertions(+), 11 deletions(-) create mode 100644 parsers/CloseHtmlTags.java diff --git a/index/IndexCreator.java b/index/IndexCreator.java index e06db24..13b71b0 100644 --- a/index/IndexCreator.java +++ b/index/IndexCreator.java @@ -48,7 +48,7 @@ public class IndexCreator { String fileName = htmlFile.create().getName(); if(shouldAdd(fileName)) { System.out.println("New Entry: "+fileName); - indexContent.append("[[./"); + indexContent.append(" [[./"); indexContent.append(fileName); indexContent.append("|"); indexContent.append(PresentFile.name); diff --git a/parsers/CloseHtmlTags.java b/parsers/CloseHtmlTags.java new file mode 100644 index 0000000..ddeaf10 --- /dev/null +++ b/parsers/CloseHtmlTags.java @@ -0,0 +1,46 @@ +/*+ + * Copyright 2012 rsiddharth + * Email: + * + * This file is part of Scruf. + * + * Scruf is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +package scruf.parsers; + +/** + * this class, inserts the main content of the html into the
+ * block. + */ + +public class CloseHtmlTags implements Parser { + private StringBuilder sbuilder; + /** + * the fileContent has its and
fields filled. + */ + public String parse(String fileContent) { + sbuilder = new StringBuilder(); + sbuilder.append(fileContent); + // add "powered by scruf" at bottom of page. + sbuilder.append("\n
\n"); + sbuilder.append("powered by scruf"); + sbuilder.append("\n
\n"); + // Close body tag + sbuilder.append("\n\n"); + sbuilder.append("\n"); + return sbuilder.toString(); + } +} diff --git a/parsers/Header.java b/parsers/Header.java index 8bde4c8..88316d5 100644 --- a/parsers/Header.java +++ b/parsers/Header.java @@ -48,13 +48,6 @@ public class Header implements Parser { // insert File Content. sbuilder.append(fileContent); sbuilder.append("
\n"); - // add "powered by scruf" at bottom of page. - sbuilder.append("\n
\n"); - sbuilder.append("powered by scruf"); - sbuilder.append("\n
\n"); - // Close body tag - sbuilder.append("\n\n"); - sbuilder.append("\n"); return sbuilder.toString(); } diff --git a/parsers/MetaParser.java b/parsers/MetaParser.java index 3519cf3..4ac9394 100644 --- a/parsers/MetaParser.java +++ b/parsers/MetaParser.java @@ -1,3 +1,24 @@ +/*+ + * Copyright 2012 rsiddharth + * Email: + * + * This file is part of Scruf. + * + * Scruf is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + package scruf.parsers; import java.util.regex.*; @@ -36,4 +57,4 @@ public class MetaParser implements Parser { } return fileContent; } -} \ No newline at end of file +} diff --git a/parsers/ParserList.java b/parsers/ParserList.java index a40dcb2..8691cdd 100644 --- a/parsers/ParserList.java +++ b/parsers/ParserList.java @@ -34,14 +34,15 @@ public class ParserList { parsers.add(new DocumentDate()); parsers.add(new WordDecoration()); parsers.add(new Headings()); - parsers.add(new Links()); + parsers.add(new Links()); parsers.add(new Images()); parsers.add(new Footer()); parsers.add(new Paragraphs()); - parsers.add(new LastUpdate()); parsers.add(new Source()); parsers.add(new BackButton()); parsers.add(new Header()); + parsers.add(new LastUpdate()); + parsers.add(new CloseHtmlTags()); } public List list() { return new ArrayList(parsers); -- cgit v1.2.3 From bb6f34f8f3b5e77bd00e9439e205bd1b6334fce8 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 29 Nov 2012 19:53:22 +0530 Subject: updated styling/style.css modified: styling/style.css --- styling/style.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/styling/style.css b/styling/style.css index 94fe7a1..cbcf51f 100644 --- a/styling/style.css +++ b/styling/style.css @@ -71,7 +71,7 @@ div.code { margin-right:auto; border:1px; padding:5px; - width:65%; + width:70%; } div.time { @@ -130,6 +130,18 @@ footer { margin-right:auto; border:1px; padding:5px; + width:45%; +} + +div.lastupdate { + font-size:0.6em; + font-family:"Palatino Linotype","Book Antiqua",Palatino,"URW Palladio L",FreeSerif,serif; + text-align:center; + color:#989898; + margin-left:auto; + margin-right:auto; + border:1px; + padding:5px; width:40%; } -- cgit v1.2.3