summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2009-07-07 06:12:49 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2009-07-07 06:13:09 +0200
commit697c1c39038659800161f10045b0befec909b2eb (patch)
treed3d7faf4f077631c2c0d81f3b586c688f91ff74a
parenta5491ec85237352a08d27b6d6f1c9c97c9f5fd68 (diff)
downloadorg-mode-697c1c39038659800161f10045b0befec909b2eb.tar.gz
New org.css with better support for printing
Made by - of course - Sebastian Rose
-rw-r--r--ORGWEBPAGE/org.css197
1 files changed, 151 insertions, 46 deletions
diff --git a/ORGWEBPAGE/org.css b/ORGWEBPAGE/org.css
index 7a3b32a..f940925 100644
--- a/ORGWEBPAGE/org.css
+++ b/ORGWEBPAGE/org.css
@@ -1,36 +1,16 @@
@media all
{
body {
- margin: 10px 6% 10px 250px;
- font-family: Verdana, Helvetica, sans-serif;
font-size: 11pt;
text-align: left;
line-height:1.2em;
}
- .logo-link {
- position: fixed;
- top: 10px;
- left: 30px;
- }
-
h1 {font-size: 14pt;}
#table-of-contents {
font-size: 85%;
- position: fixed;
- display: block;
- left: 10px;
- top: 180px;
- width: 200px;
- min-height:60px;
- max-height:55%;
line-height: 1.4em;
- overflow:auto;
- }
-
- #table-of-contents h2 {
- display:none;
}
#table-of-contents ul {
@@ -95,7 +75,6 @@
filter: alpha(opacity=100);
}
-
.org-info-search-highlight
{
background-color:#adefef; /* same color as emacs default */
@@ -658,43 +637,169 @@
font-weight: bold;
}
+} /* END OF @media all */
+
+
+@media screen
+{
+ body {
+ margin: 10px 6% 10px 250px;
+ font-family: Verdana, Helvetica, sans-serif;
+ }
+
+ .logo-link {
+ position: fixed;
+ top: 10px;
+ left: 30px;
+ }
+
+ #table-of-contents {
+ position: fixed;
+ display: block;
+ left: 10px;
+ top: 180px;
+ width: 200px;
+ min-height:60px;
+ max-height:55%;
+ overflow:auto;
+ }
+
+ #table-of-contents h2 {
+ display:none;
+ }
+
+
+
+ /* These style are only for IE: */
+
+ * html {
+ overflow-y: hidden;
+ padding-bottom:0px;
+ margin:0px;
+ }
+
+ * html body {
+ height: 100%;
+ overflow-y: auto;
+ font-size: 100%;
+ margin: 0px 0px 0px 250px;
+ padding: 0px 10% 0px 0px;
+ }
+
+ * html #table-of-contents {
+ position: absolute;
+ width:200px;
+ /*
+ The evil IE-JavaScript hack :-) depends on Picture and y-distance.
+ Added to support small screens (Netbooks...).
+ */
+ height: expression((document.body.clientHeight - 210) + "px");
+ }
+
+ * html h1 {
+ margin-top:10px;
+ }
+
+ * html .logo-link {
+ position: absolute;
+ top: 10px;
+ left: 30px;
+ }
+
} /* END OF @media screen */
-/* These style are only for IE: */
-* html {
- overflow-y: hidden;
- padding-bottom:0px;
- margin:0px;
-}
-* html body
+
+/* Printing */
+
+
+
+@page
{
- height: 100%;
- overflow-y: auto;
- font-size: 100%;
- margin: 0px 0px 0px 250px;
- padding: 0px 10% 0px 0px;
+ margin-top:3cm;
+ margin-bottom:2.5cm;
}
-* html #table-of-contents
+
+@page :left
{
- position: absolute;
- width:200px;
- /*
- The evil IE-JavaScript hack :-) depends on Picture and y-distance.
- Added to support small screens (Netbooks...).
- */
- height: expression((document.body.clientHeight - 210) + "px");
+ margin-left:1.5cm;
+ margin-right:2cm;
}
-* html h1
+@page :right
{
- margin-top:10px;
+ margin-left:2cm;
+ margin-right:1.5cm;
}
-* html .logo-link
+
+@media print
{
- position: absolute;
+ body {
+ margin:0px;
+ font-family: Verdana, Helvetica, sans-serif;
+ }
+
+ div {
+ orphans:2;
+ }
+
+ p {
+ orphans:2;
+ }
+
+ li {
+ orphans:2;
+ }
+
+ .logo-link {
top: 10px;
left: 30px;
-}
+ }
+
+ #table-of-contents h2 {
+ margin-top:1.5cm;
+ page-break-before:auto;
+ border-style:none;
+ }
+
+ #text-table-of-contents {
+ width:50%;
+ margin-top:1cm;
+ margin-left:0cm;
+ margin-right:auto;
+ text-align:left;
+ }
+
+ #table-of-contents ul {
+ text-align:left;
+ }
+
+ h2 {
+ page-break-before:always;
+ }
+
+ pre {
+ page-break-inside:avoid;
+ }
+
+ /* Hide all org-info.js stuff for printing: */
+
+ div#org-info-js_console-container {
+ display:none;
+ }
+
+ div.org-info-js_local-toc {
+ display:none;
+ }
+
+ table.org-info-js_info-navigation {
+ display:none;
+ }
+ div.org-info-js_header-navigation {
+ display:none;
+ visibility:hidden; /* needed to overwrite the hardcoded style setting... */
+ }
+
+} /* END OF @media print */