diff options
author | Trey Hunner <treyhunner@gmail.com> | 2012-04-07 01:13:50 -0700 |
---|---|---|
committer | Trey Hunner <treyhunner@gmail.com> | 2012-04-07 01:13:50 -0700 |
commit | f3f733bfd7dad50555c4d91f1564d0a82379d26c (patch) | |
tree | 46905b77a78b79f583cfb6708aada536f9ffe494 | |
parent | c0a6a23c954176e73572ff54cd6031a48aed0507 (diff) | |
parent | 459f92f4956c793650dd582a68243899b2fc4b1f (diff) | |
download | pycco-f3f733bfd7dad50555c4d91f1564d0a82379d26c.tar.gz |
Merge pull request #55 from x3ro/background-fix
Fix background not staying behind the code when scrolling horizontally
-rw-r--r-- | pycco_resources/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pycco_resources/__init__.py b/pycco_resources/__init__.py index 71456b1..a052967 100644 --- a/pycco_resources/__init__.py +++ b/pycco_resources/__init__.py @@ -6,6 +6,7 @@ body { line-height: 24px; color: #252519; margin: 0; padding: 0; + background: #f5f5ff; } a { color: #261a3b; @@ -22,15 +23,18 @@ h1, h2, h3, h4, h5, h6 { h2, h3, h4, h5, h6 { margin-top: 0; } +#container { + background: white; + } #container, div.section { position: relative; } #background { - position: fixed; + position: absolute; top: 0; left: 580px; right: 0; bottom: 0; background: #f5f5ff; border-left: 1px solid #e5e5ee; - z-index: -1; + z-index: 0; } #jump_to, #jump_page { background: white; @@ -196,8 +200,8 @@ html = """\ <link rel="stylesheet" href="{{ stylesheet }}"> </head> <body> -<div id="background"></div> <div id='container'> + <div id="background"></div> {{#sources?}} <div id="jump_to"> Jump To … |