/* ---------------------------------------------------------------------- * JavaScript Style Sheets * $Id: nn4x.jss,v 1.3 2005/02/11 13:22:23 nzawa Exp nzawa $ * * THE NN4X STYLESHEET * * * Copyright (c) 2003-2005 Nzawa * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * ----------------------------------------------------------------------*/ with(tags.body) { color = "#000000"; backgroundColor = "#FCFCFC"; margins("0", "0", "0", "0"); paddings("0.5em", "0.5em", "0.5em", "0.5em"); } // Heading with(tags.h1) { fontSize = "200%"; fontWeight = "normal"; textAlign = "right"; margins("2em", "0", "1em", "0"); paddings("0.1em", "0.1em", "0.1em", "0.1em"); borderColor = "#000000"; borderStyle = "solid"; borderWidths("0", "0", "1px", "0"); } with(tags.h2) { color = "#000066"; backgroundColor = "#FCFCFC"; fontSize = "160%"; fontWeight = "bold"; margins("2em", "0", "0.5em", "0"); paddings("0", "0", "0", "0"); } with(tags.h3) { color = "#333333"; backgroundColor = "#FCFCFC"; fontSize = "140%"; fontWeight = "bold"; margins("1em", "0", "0.5em", "0"); borderColor = "#333333"; borderStyle = "solid"; borderWidths("0", "0", "1px", "0"); } with(tags.h4) { color = "#333333"; backgroundColor = "#FCFCFC"; fontSize: "120%"; fontWeight = "bold"; margins("1em", "0", "0.5em", "0"); paddings("0.1em", "0.2em", "0.1em", "0.2em"); borderColor = "#333333"; borderStyle = "solid"; borderWidths("1px", "1px", "1px", "5px"); } with(tags.h5) { color = "#333333"; backgroundColor = "#FCFCFC"; fontSize = "100%"; fontWeight = "bold"; margins("0.5em", "0", "0.5em", "1em"); paddings("0.1em", "0.1em", "0.1em", "0.1em"); borderColor = "#333333"; borderStyle = "solid"; borderWidths("0", "0", "1px", "0"); } with(tags.h6) { color = "#333333"; backgroundColor = "#FCFCFC"; fontSize = "100%"; fontWeight = "bold"; margins("1em", "0", "0.5em", "3em"); paddings("0", "0", "0", "0"); } // Text with(tags.p) { margins("0.5em", "0", "0.5em", "0"); } with(tags.blockquote) { color = "#009900"; backgroundColor = "#FCFCFC"; } with(tags.cite) { color = "#CC9999"; backgroundColor = "#FCFCFC"; fontWeight = "bold"; fontStyle = "normal"; } with(tags.em) { color = "#FF0000"; backgroundColor = "#FCFCFC"; fontWeight = "bold"; fontStyle = "normal"; } with(tags.strong) { color = "#FF0000"; backgroundColor = "#FCFCFC"; fontSize = "140%"; fontWeight = "bold"; fontStyle = "normal"; } with(tags.code) { color = "#444444"; backgroundColor = "#FCFCFC"; fontFamily = "monospace"; } with(tags.samp) { color = "#444444"; backgroundColor = "#FCFCFC"; fontFamily = "monospace"; } with(tags.kbd) { color = "#444444"; backgroundColor = "#FCFCFC"; fontFamily = "monospace"; } // List with(tags.ul) { margins("0.5em", "0", "0.5em", "0"); paddings("0", "0", "0", "0"); } with(tags.ol) { margins("0.5em", "0", "0.5em", "0"); paddings("0", "0", "0", "0"); } with(tags.dl) { margins("0.5em", "0", "0.5em", "0"); paddings("0", "0", "0", "0"); }