Skip to content
Browse files

Merge remote branch 'tsidel/master'

  • Loading branch information...
2 parents 754f40b + 3939f4a commit 2acc2c1321c6c94884fd7b71d0803ed9efdd2d9e @petdance committed
Showing with 62 additions and 25 deletions.
  1. BIN static/images/Perl101header.png
  2. +32 −0 static/js/iepnghack.js
  3. +27 −22 static/theme/styles.css
  4. +3 −3 tt/page.ttml
View
BIN static/images/Perl101header.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
32 static/js/iepnghack.js
@@ -0,0 +1,32 @@
+<script language="JavaScript">
+function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
+{
+ var arVersion = navigator.appVersion.split("MSIE")
+ var version = parseFloat(arVersion[1])
+ if ((version >= 5.5) && (document.body.filters))
+ {
+ for(var i=0; i<document.images.length; i++)
+ {
+ var img = document.images[i]
+ var imgName = img.src.toUpperCase()
+ if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
+ {
+ var imgID = (img.id) ? "id='" + img.id + "' " : ""
+ var imgClass = (img.className) ? "class='" + img.className + "' " : ""
+ var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
+ var imgStyle = "display:inline-block;" + img.style.cssText
+ if (img.align == "left") imgStyle = "float:left;" + imgStyle
+ if (img.align == "right") imgStyle = "float:right;" + imgStyle
+ if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
+ var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
+ img.outerHTML = strNewHTML
+ i = i-1
+ }
+ }
+ }
+}
+window.attachEvent("onload", correctPNG);
+</script>
View
49 static/theme/styles.css
@@ -44,14 +44,10 @@ img {
position: relative;
margin-top: -1px;
margin-bottom: -1px;
+ height:60px;
z-index: 0;
}
-#pageHeader img {
- position: absolute;
- left: 10;
- top: 0;
-}
#pageHeader h1 {
color: #ffffff;
@@ -60,15 +56,6 @@ img {
margin: 0 0 5px;
}
-#pageHeader h2 {
- color: #b5bdc8;
- font-size: 0.9em;
- margin-top: 25px;
- margin-bottom: 0px;
- margin-left: 5px;
- padding: 0px;
-}
-
#contentContainer {
margin-left: 200px;
margin-right: 0px;
@@ -91,18 +78,21 @@ img {
}
#sidebarContainer #sidebar {
- padding: 10px;
+ padding: 0px 10px 0px 10px;
color: #505050;
font-family: sans-serif;
- background: #d5dfd6;
+ background: #eee;
}
#sidebarContainer .sideHeader {
- background: #d5dfd6;
- color: #797f7a;
- font-weight: bold;
- height: 20px;
- padding-left: 0px;
+ background: #41436d;
+ color: #fff;
+ padding:7px 0px 5px 15px;
+ font-family:sans-serif;
+ font-weight:bold;
+ font-size:12px;
+ letter-spacing:-0.05em;
+ text-transform:uppercase;
}
#footer {
@@ -155,13 +145,28 @@ h4 {
/* Sidebar area unordered list styles */
#sidebarContainer #sidebar ul {
margin: 0px;
- padding: 0 10px;
+ padding: 0px ;
list-style: none;
+ font-size:88%;
}
#sidebarContainer #sidebar li {
}
+#sidebarContainer a {
+ text-decoration:none;
+ display:block;
+ color:#41436d;
+ border-bottom:1px solid #c4c4c4;
+ padding:10px 0px 10px 4px
+}
+
+#sidebarContainer a:hover {
+ background-color:#fafafa;
+ color:#de8329;
+}
+
+
/* Table Styles */
pre, code {
font: fixed;
View
6 tt/page.ttml
@@ -15,7 +15,8 @@
type="text/css"
media="handheld"
href="theme/handheld.css" />
- <link href="theme/prettify.css" type="text/css" rel="stylesheet" />
+ <link href="theme/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="/js/iepnghack.js"></script>
<script type="text/javascript" src="/js/jemplate.js"></script>
<script type="text/javascript" src="/js/jmpls.js"></script>
<script type="text/javascript" src="/js/prettify.js"></script>
@@ -63,8 +64,7 @@
<!-- Start container -->
<div id="pageHeader">
<!-- Start page header -->
- <a href="/"><img src="/images/perl101logo.png" border="0" /></a>
- <h2>Things Every Perl Programmer Should Know</h2>
+ <a href="/"><img src="images/perl101header.png" alt="Perl 101: Things Every Perl Programmer Should Know." border="0" /></a>
</div><!-- End page header -->
<div id="sidebarContainer">
<!-- Start Sidebar wrapper -->

0 comments on commit 2acc2c1

Please sign in to comment.
Something went wrong with that request. Please try again.