From 125f14efa8f5b4b3365314e73f8399763f00343d Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 5 Jul 2008 14:10:20 -0400 Subject: [PATCH] CRLF to LF conversion. Also ignore .htaccess Signed-off-by: Edward Z. Yang --- .gitignore | 1 + common.css | 748 +++++++++++++++++++++++----------------------- demo.custom.php | 2 +- opensearchdescription.xml | 16 +- pear_server.css | 182 +++++------ pngfix.js | 90 +++--- 6 files changed, 520 insertions(+), 519 deletions(-) diff --git a/.gitignore b/.gitignore index cd92f46..670b1aa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ /doxygen* /phpdoc* /webalizer/ +.htaccess # PEAR /channel.xml diff --git a/common.css b/common.css index cc4d561..7c1dd71 100644 --- a/common.css +++ b/common.css @@ -1,374 +1,374 @@ - -/* Global Attributes */ - -html, body { /* background goes here because of XHTML semantics */ - background-color: #F9F9FF; - color: #000; - font-family: Georgia, serif; - font-size: 10.5pt; - margin: 0; - padding: 0; -} - -body {padding: 0 0 3em 0;} - -/* needs some tuning */ -a {color: #00E;} -a:visited {color:#551A8B} -a:hover {color: #FF6600;} -a:active {color: #E00;} - -/* Header */ - -#header { - margin: 0; - background: #4A6282; - background-position: right 0.2em; - color: #FFF; - width: 100%; -} -#header a { - margin: 0.5em 5%; - color: #FFF; - text-decoration: none; - font-family: Georgia, serif; - font-weight: normal; - font-variant: small-caps; - letter-spacing: 0.2em; - font-size: 2em; - line-height: 2em; -} -#header a:hover {color: #E0E2E6;} - -/* navigation */ - -#navigation { - margin: 0; - padding: 0; - border: solid #8AA0BC; - border-width: 1px 0; - background: #6480A6; - width: 100%; -} - -#navigation h2 {display:none;} - -#navigation ol { - margin: 0 5%; - padding: 0; - display: block; -} - -#navigation li { - display: inline; - line-height: 1.7em; - margin: 0 0.6em 0 0; /* is readjusted by index.css */ -} - -#navigation li a { - color: #FFF; - text-decoration:none; - padding: 0.3em; -} - -#navigation li a:hover { - background: #BCC8D8; -} - -/* Logo */ -#logo { - position: absolute; - right: 0; - top: 0; - width: 80px; - height: 80px; - margin: 0.5em 5%; - /* transparency fix */ - filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='logo.png', sizingMethod='scale'); -} - -body>#logo { /* hidden from IE6 */ - background: url('logo.png') no-repeat; -} - -/* Title */ -#title { - font-weight: normal; - font-size: 2em; - border-bottom: 1px solid #BCC8D8; - margin: 1em 20% 0; - text-align: center; -} - -/* Content */ -#content { - clear: left; - margin: 2em auto; - padding: 0 5%; - max-width: 56em; - width: expression(document.body.clientWidth > - 85 * parseInt(document.body.currentStyle.fontSize) ? - "54em": "auto"); -} - -/* removes specialized styling */ -#alt-content { - clear: left; - margin: 2em 5%;} - -#content h2 { - font-weight: normal; - font-size: 1.5em; - border-bottom: 1px solid #AAA; - margin-top: 2em; -} - -#content h3 { - -} - -p { - line-height: 1.4em; -} - -#content p { - margin: 0; - text-indent: 2em; -} -#content p.lead { - text-indent: 0; -} - -blockquote.digression { - font: 11pt Helvetica, sans-serif; - margin-left: 4em; - margin-right: 4em; -} - -blockquote.fancy { - background: transparent url(quote-left.png) left top no-repeat; - margin: 1em 3%; -} -blockquote.fancy div.quote { - background: transparent url(quote-right.png) right bottom no-repeat; - padding: .5em 48px .5em; -} -blockquote.fancy div.origin { - text-align: right; -} - -#content pre { - margin-left:4em; -} - -#content pre.long { - margin-left:2%; - width: 100%; - overflow: auto; -} - -/* acronym/abbr stuff */ - -/* acc:abbr is a hack to get styling to work in IE, see pngFix.js for details */ - -acronym, abbr, acc\:abbr { /* basic styling */ - border-bottom: none; - font-size: 80%; -} -h2 acronym, h2 abbr, h2 acc\:abbr{ /* use normal size in headings */ - font-size: 100%; -} - -/* aural declarations, pretty much sums up our semantics */ -acronym { - speak: normal; -} -abbr, acc\:abbr { - speak: spell-out; -} - - -#content form { - margin: 1em; -} - -#content table { - margin: 1em; -} -#content table thead th {border-bottom:1px solid #3C578C;} -#content table td, table th { - padding: 0 .4em; -} - -#content .wide-table { - width: 100%; -} -#content .wide-table td, .wide-table th { - white-space: nowrap; -} - -.disclaimer, .warning { - background:#FBB; - border:1px solid #F00; - margin:1em 3em; - padding:1em; -} - -.notice { - background:#7084AA; - border:1px solid #4D5E80; - color:#FFF; - margin:1em 0; - padding:0.6em; -} - -.notice a { - color: #FFF; - font-weight:bold; -} - -.notice p { - margin-bottom:0; -} - -.notice p.lead { - margin-top:0; -} - -.warning h2 { - color: #911; - font-weight: bold; - margin: 0 0 .5em 0; -} -.warning p { - text-indent: 0; -} - -li { - line-height: 1.4em; -} - -ol.notes { - font-size:8pt; -} - -ul.long li { - margin-top:1em; -} - -ol.long li { - margin-top:1em; -} - -.clear {clear:both;} - -/* News widgets, for RSSGenerator */ - -.news .item { - border-bottom: 1px solid #BCC8D8; - padding-bottom: 1em; -} -.news .title { - margin-bottom: 0; -} -.news .date { - font-style: italic; - font-size: 10pt; - margin-bottom: 1em; - margin-left: 2em; -} -.news .body {} - -/* Table of contents, for GenerateTableofContents */ - -#toc ul { - list-style-type: none; -} -#toc .toc-label { - float: left; - padding-right: .5em; - text-align: right; - width: 2em; -} - -.floated#toc {float: right; width: 28%; background:#F9F9FF; - padding:1em; margin: 1em 0 1em 1em; border: 1px solid #AAA; - position:relative;z-index:1;} -.floated#toc h2 {margin:0; font-size: 1.3em;} -.floated#toc .toc-base {margin:0.9em 0 0; padding:0;} /* Both set to zero for IE and Firefox */ -.floated#toc li { - margin-top: .5em; -} -.floated#toc .toc-label { - width: 1.5em; -} - - - -/* download */ - -#download-box { - background: #437048; - position: relative; - padding: 0; - margin: 2em 0 1em 0; - min-width: 380px; -} - -#download-box h2 { - font-size: 2em; - font-weight: normal; - color: #FFF; - line-height: 1.5em; - margin: 0; - padding: 0 0 0 0.5em; - border: 0; -} - -#download-files { - background: #70A978 url('art/dl-arrow.png') no-repeat; - background-position: 10px 100%; -} - -#download-box .dl-box { - margin: 0; - position: relative; - padding: 0.5em; - padding-left: 110px; -} - -#download-box .dl-box a { - color: #000; - font-size: 1.4em; - position: relative; - z-index: 1; - text-decoration: none; - border-bottom: 1px solid #437048; -} - -#download-box .dl-box a:hover { - color: #FFF; -} - -#download-box .dl-box .file-type { - color: #437048; - margin-left: 1em; - font-size: 1.2em; -} - -#download-others { - text-align: right; - padding: 0 1.5em 0 0; - background: #56905c; -} - -#download-others a { - color: #FFF; - text-decoration: none; - font-size: 1.2em; -} - -#download-others a:hover { - color: #000; -} - + +/* Global Attributes */ + +html, body { /* background goes here because of XHTML semantics */ + background-color: #F9F9FF; + color: #000; + font-family: Georgia, serif; + font-size: 10.5pt; + margin: 0; + padding: 0; +} + +body {padding: 0 0 3em 0;} + +/* needs some tuning */ +a {color: #00E;} +a:visited {color:#551A8B} +a:hover {color: #FF6600;} +a:active {color: #E00;} + +/* Header */ + +#header { + margin: 0; + background: #4A6282; + background-position: right 0.2em; + color: #FFF; + width: 100%; +} +#header a { + margin: 0.5em 5%; + color: #FFF; + text-decoration: none; + font-family: Georgia, serif; + font-weight: normal; + font-variant: small-caps; + letter-spacing: 0.2em; + font-size: 2em; + line-height: 2em; +} +#header a:hover {color: #E0E2E6;} + +/* navigation */ + +#navigation { + margin: 0; + padding: 0; + border: solid #8AA0BC; + border-width: 1px 0; + background: #6480A6; + width: 100%; +} + +#navigation h2 {display:none;} + +#navigation ol { + margin: 0 5%; + padding: 0; + display: block; +} + +#navigation li { + display: inline; + line-height: 1.7em; + margin: 0 0.6em 0 0; /* is readjusted by index.css */ +} + +#navigation li a { + color: #FFF; + text-decoration:none; + padding: 0.3em; +} + +#navigation li a:hover { + background: #BCC8D8; +} + +/* Logo */ +#logo { + position: absolute; + right: 0; + top: 0; + width: 80px; + height: 80px; + margin: 0.5em 5%; + /* transparency fix */ + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='logo.png', sizingMethod='scale'); +} + +body>#logo { /* hidden from IE6 */ + background: url('logo.png') no-repeat; +} + +/* Title */ +#title { + font-weight: normal; + font-size: 2em; + border-bottom: 1px solid #BCC8D8; + margin: 1em 20% 0; + text-align: center; +} + +/* Content */ +#content { + clear: left; + margin: 2em auto; + padding: 0 5%; + max-width: 56em; + width: expression(document.body.clientWidth > + 85 * parseInt(document.body.currentStyle.fontSize) ? + "54em": "auto"); +} + +/* removes specialized styling */ +#alt-content { + clear: left; + margin: 2em 5%;} + +#content h2 { + font-weight: normal; + font-size: 1.5em; + border-bottom: 1px solid #AAA; + margin-top: 2em; +} + +#content h3 { + +} + +p { + line-height: 1.4em; +} + +#content p { + margin: 0; + text-indent: 2em; +} +#content p.lead { + text-indent: 0; +} + +blockquote.digression { + font: 11pt Helvetica, sans-serif; + margin-left: 4em; + margin-right: 4em; +} + +blockquote.fancy { + background: transparent url(quote-left.png) left top no-repeat; + margin: 1em 3%; +} +blockquote.fancy div.quote { + background: transparent url(quote-right.png) right bottom no-repeat; + padding: .5em 48px .5em; +} +blockquote.fancy div.origin { + text-align: right; +} + +#content pre { + margin-left:4em; +} + +#content pre.long { + margin-left:2%; + width: 100%; + overflow: auto; +} + +/* acronym/abbr stuff */ + +/* acc:abbr is a hack to get styling to work in IE, see pngFix.js for details */ + +acronym, abbr, acc\:abbr { /* basic styling */ + border-bottom: none; + font-size: 80%; +} +h2 acronym, h2 abbr, h2 acc\:abbr{ /* use normal size in headings */ + font-size: 100%; +} + +/* aural declarations, pretty much sums up our semantics */ +acronym { + speak: normal; +} +abbr, acc\:abbr { + speak: spell-out; +} + + +#content form { + margin: 1em; +} + +#content table { + margin: 1em; +} +#content table thead th {border-bottom:1px solid #3C578C;} +#content table td, table th { + padding: 0 .4em; +} + +#content .wide-table { + width: 100%; +} +#content .wide-table td, .wide-table th { + white-space: nowrap; +} + +.disclaimer, .warning { + background:#FBB; + border:1px solid #F00; + margin:1em 3em; + padding:1em; +} + +.notice { + background:#7084AA; + border:1px solid #4D5E80; + color:#FFF; + margin:1em 0; + padding:0.6em; +} + +.notice a { + color: #FFF; + font-weight:bold; +} + +.notice p { + margin-bottom:0; +} + +.notice p.lead { + margin-top:0; +} + +.warning h2 { + color: #911; + font-weight: bold; + margin: 0 0 .5em 0; +} +.warning p { + text-indent: 0; +} + +li { + line-height: 1.4em; +} + +ol.notes { + font-size:8pt; +} + +ul.long li { + margin-top:1em; +} + +ol.long li { + margin-top:1em; +} + +.clear {clear:both;} + +/* News widgets, for RSSGenerator */ + +.news .item { + border-bottom: 1px solid #BCC8D8; + padding-bottom: 1em; +} +.news .title { + margin-bottom: 0; +} +.news .date { + font-style: italic; + font-size: 10pt; + margin-bottom: 1em; + margin-left: 2em; +} +.news .body {} + +/* Table of contents, for GenerateTableofContents */ + +#toc ul { + list-style-type: none; +} +#toc .toc-label { + float: left; + padding-right: .5em; + text-align: right; + width: 2em; +} + +.floated#toc {float: right; width: 28%; background:#F9F9FF; + padding:1em; margin: 1em 0 1em 1em; border: 1px solid #AAA; + position:relative;z-index:1;} +.floated#toc h2 {margin:0; font-size: 1.3em;} +.floated#toc .toc-base {margin:0.9em 0 0; padding:0;} /* Both set to zero for IE and Firefox */ +.floated#toc li { + margin-top: .5em; +} +.floated#toc .toc-label { + width: 1.5em; +} + + + +/* download */ + +#download-box { + background: #437048; + position: relative; + padding: 0; + margin: 2em 0 1em 0; + min-width: 380px; +} + +#download-box h2 { + font-size: 2em; + font-weight: normal; + color: #FFF; + line-height: 1.5em; + margin: 0; + padding: 0 0 0 0.5em; + border: 0; +} + +#download-files { + background: #70A978 url('art/dl-arrow.png') no-repeat; + background-position: 10px 100%; +} + +#download-box .dl-box { + margin: 0; + position: relative; + padding: 0.5em; + padding-left: 110px; +} + +#download-box .dl-box a { + color: #000; + font-size: 1.4em; + position: relative; + z-index: 1; + text-decoration: none; + border-bottom: 1px solid #437048; +} + +#download-box .dl-box a:hover { + color: #FFF; +} + +#download-box .dl-box .file-type { + color: #437048; + margin-left: 1em; + font-size: 1.2em; +} + +#download-others { + text-align: right; + padding: 0 1.5em 0 0; + background: #56905c; +} + +#download-others a { + color: #FFF; + text-decoration: none; + font-size: 1.2em; +} + +#download-others a:hover { + color: #000; +} + diff --git a/demo.custom.php b/demo.custom.php index 6fd199e..b3d9bbc 100644 --- a/demo.custom.php +++ b/demo.custom.php @@ -1 +1 @@ - - - - HTML Purifier - Use Google to search HTML Purifier - html purifier filter security library php w3c - + + + + HTML Purifier + Use Google to search HTML Purifier + html purifier filter security library php w3c + \ No newline at end of file diff --git a/pear_server.css b/pear_server.css index d943a03..15a2443 100644 --- a/pear_server.css +++ b/pear_server.css @@ -1,92 +1,92 @@ -body, html { - margin: 0; - padding: 0; - font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; - font-size: 14px; - /*overflow: hidden; - overflow-x: hidden; - overflow-y: hidden;*/ -} - -a { - color: #DCDCDC; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -#top { - background-color: #840A0A; - color: #DCDCDC; - margin: 0; - height: 6%; -} - -#top a { - font-weight: bold; -} - -#top h1 { - background-color: #840A0A; - margin: 0; - padding-left: 5px; - padding-top: 5px; -} - -#top p { - background-color: #840A0A; - float: right; - margin-top: -2.5em; - margin-right: 1em; -} - -#menu { - float: left; - margin: 0; - background-color: #9E5151; - width: 15em; - padding: 5px; - height: 93%; -} - -#menu #nav { - margin-top: 0; - list-style: none; - padding-left: 0; -} - -#menu #nav li { - margin-left: 0; -} - -#menu h2 { - font-size: 16px; - color: #DCDCDC; - font-weight: bold; -} - -#menu ul { - list-style: none; - padding-left: 2em; -} - -#content { - float: left; - margin-left: 10px; - margin-top: 10px; - width: 500px; -} - -#content a { - color: #840A0A; -} - -table tr th { - background-color: #CCCCCC; -} - -table tr td { - padding: 5px; +body, html { + margin: 0; + padding: 0; + font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; + font-size: 14px; + /*overflow: hidden; + overflow-x: hidden; + overflow-y: hidden;*/ +} + +a { + color: #DCDCDC; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +#top { + background-color: #840A0A; + color: #DCDCDC; + margin: 0; + height: 6%; +} + +#top a { + font-weight: bold; +} + +#top h1 { + background-color: #840A0A; + margin: 0; + padding-left: 5px; + padding-top: 5px; +} + +#top p { + background-color: #840A0A; + float: right; + margin-top: -2.5em; + margin-right: 1em; +} + +#menu { + float: left; + margin: 0; + background-color: #9E5151; + width: 15em; + padding: 5px; + height: 93%; +} + +#menu #nav { + margin-top: 0; + list-style: none; + padding-left: 0; +} + +#menu #nav li { + margin-left: 0; +} + +#menu h2 { + font-size: 16px; + color: #DCDCDC; + font-weight: bold; +} + +#menu ul { + list-style: none; + padding-left: 2em; +} + +#content { + float: left; + margin-left: 10px; + margin-top: 10px; + width: 500px; +} + +#content a { + color: #840A0A; +} + +table tr th { + background-color: #CCCCCC; +} + +table tr td { + padding: 5px; } \ No newline at end of file diff --git a/pngfix.js b/pngfix.js index 3d7a289..23ec87d 100644 --- a/pngfix.js +++ b/pngfix.js @@ -1,45 +1,45 @@ -/* - -Correctly handle PNG transparency in Win IE 5.5 & 6. -http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006. - -Use in with DEFER keyword wrapped in conditional comments: - - -*/ - -var arVersion = navigator.appVersion.split("MSIE") -var version = parseFloat(arVersion[1]) - -if ((version >= 5.5) && (document.body.filters)) -{ - for(var i=0; i" - img.outerHTML = strNewHTML - i = i-1 - } - } -} - -/* - * Another IE fix, this one's for abbr/acronym tags - */ -document.documentElement.setAttribute("xmlns:acc", "http://www.w3.org/1999/xhtml"); -document.body.innerHTML = document.body.innerHTML.replace(/ with DEFER keyword wrapped in conditional comments: + + +*/ + +var arVersion = navigator.appVersion.split("MSIE") +var version = parseFloat(arVersion[1]) + +if ((version >= 5.5) && (document.body.filters)) +{ + for(var i=0; i" + img.outerHTML = strNewHTML + i = i-1 + } + } +} + +/* + * Another IE fix, this one's for abbr/acronym tags + */ +document.documentElement.setAttribute("xmlns:acc", "http://www.w3.org/1999/xhtml"); +document.body.innerHTML = document.body.innerHTML.replace(/