From 9f6601b46c61a96effa6ce2114c0a5ac01e7cd02 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Thu, 28 Aug 2014 23:32:21 +0200 Subject: [PATCH] Move stylesheet to external file --- assets/screen.css | 101 +++++++++++++++++++++++++++++++++++++++ index.html | 112 ++----------------------------------------- service.html | 118 +++------------------------------------------- 3 files changed, 111 insertions(+), 220 deletions(-) create mode 100644 assets/screen.css diff --git a/assets/screen.css b/assets/screen.css new file mode 100644 index 0000000..d3cdb68 --- /dev/null +++ b/assets/screen.css @@ -0,0 +1,101 @@ +html { + background: #DDE5D9 url(data:image/gif;base64,R0lGODlhBAAEAIAAANra2v///yH5BAAAAAAALAAAAAAEAAQAAAIFTGB4xlcAOw==) repeat 0 0; + font-family: "Lucida Sans Unicode", "Lucida Sans", verdana, arial, helvetica; +} +body { + border: solid 1px #CED4CA; + background-color: #FFF; + padding: 4px 25px 4px 25px; + margin: 20px 20% 20px 20px; + line-height: 1.75; +} +h1 { + font-size: 36px; + font-weight: normal; + color: #0B5B9D; + vertical-align: top; + margin-bottom: 0px; +} +h2 { + font-size: 28px; + font-weight: normal; + color: #0B5B9D; + vertical-align: top; + margin-bottom: 0px; + margin-top: 24px; +} +h3 { + font-size: 22px; + font-weight: normal; + color: #0B5B9D; + vertical-align: top; + margin-bottom: 0px; + margin-top: 32px; +} +h4 { + font-size: 20px; + font-weight: normal; + color: #0B5B9D; + vertical-align: top; + margin-bottom: 0px; + margin-top: 22px; +} +a { + text-decoration: none; + color: #0B5B9D; + padding: 2px; +} + +a:hover { + text-decoration: none; + background-color: #0B5B9D; + color: white; +} +a:active { + text-decoration: none; + background-color: white; + color: black; +} +.set, .note { + background-color: ivory; + padding: 16px; + padding-top: 4px; + padding-bottom: 4px; + padding-right: 32px; + padding-left: 32px; + border: 1px solid #ccc; + margin-left: 2px; + margin-right: 2px; + border-radius: 6px; +} +.note { + background-color: rgb(241, 255, 240); +} +.note p { + margin-top: 8px; +} +code { + background-color: #F8F8F8; + border: 1px solid #ccc; + border-radius: 3px; + padding: 2px 6px; +} +pre { + background-color: #F8F8F8; + border: 1px solid #ccc; + border-radius: 3px; + padding: 10px; + margin-right: 15%; + margin-top: 6px; + line-height: 1.2 +} +.java-class, .java-property, .option-value { + background-color: yellow; + padding: 2px 6px; +} +.arg { + color: green; +} +.links { + text-align: center; +} diff --git a/index.html b/index.html index 3ff1757..dbce3e9 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,7 @@ -The Nu Markup Checker + The Nu Markup Checker + +

The Nu Markup Checker

@@ -37,7 +39,7 @@

The Nu Markup Checker

with npm install grunt-html --save-dev.
@@ -152,109 +154,3 @@

--version

vnu.war package that’s also available, see Web-based checking with vnu.war or vnu.jar.

- - - - diff --git a/service.html b/service.html index 797d00f..3c44745 100644 --- a/service.html +++ b/service.html @@ -1,110 +1,6 @@ -Web-based checking with vnu.jar or vnu.war - - - + Web-based checking with vnu.jar or vnu.war +

Web-based checking with vnu.war or vnu.jar

@@ -113,14 +9,14 @@

Web-based checking with vnu.war or vnu.jar

the vnu.jar package is suited to use as a simple standalone HTTP server. If you want to deploy the application to a servlet container - such as Apache Tomcat you will probably want to use the + such as Apache Tomcat you will probably want to use the vnu.war package instead. The latest releases of these files are available from the validator project at github. The following are instructions demonstrating how to use these two - packages to provide a service for browser-based checking of + packages to provide a service for browser-based checking of HTML documents over the web.

Note: Replace @@ -179,7 +75,7 @@

Standalone web server

-
+

Deployment to servlet container

To run the markup checker inside of an existing servlet container such as Apache Tomcat you will need to deploy the vnu.war @@ -210,7 +106,7 @@

Deployment to servlet container

to modify the servlet filter configuration. For example, if you wanted to disable gzip decompression you could comment out that filter like this: - +
 <!--
   <filter>
@@ -341,5 +237,3 @@ 

nu.validator.client.asciiquotes

- -