fix background scrolling
[rust-101.git] / docs / pycco_custom.css
index 4fe26387e71f924274236df068524aae6d87595a..5c97b861416775b29541bfec3bbef7874b548cf8 100644 (file)
 
 /*--------------------- Layout ----------------------------*/
 body {
-  font-family: 'aller-light', sans-serif;
+    font-family: 'aller-light', sans-serif;
+    position: relative;
+    display: inline-block;
+    min-height: 100%;
 }
 
 h1, h2, h3, h4, h5, h6 {
-  line-height: 1.1em;
+    line-height: 1.1em;
+}
+
+div.docs {
+    max-width: 580px;
+    padding-left: 35px;
+}
+#background {
+    position: absolute;
+    height: 100%;
+    left: 640px;
+}
+div.code {
+    margin-left: 640px;
+}
+
+@media print {
+    #background {
+        background: none;
+        border: none;
+    }
+    h1, h2, h3, h4, h5, h6 {
+        margin-top: 20px;
+    }
+    div.docs {
+        max-width: 99%;
+        padding-left: 0px;
+        padding-right: 0px;
+    }
+    div.docs p {
+        margin-bottom: 5px;
+    }
+    div.code {
+        margin: 0px;
+        padding-top: 2px;
+        padding-bottom: 5px;
+        clear: both;
+    }
 }
 
 /*---------------------- Syntax Highlighting -----------------------------*/