Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2017 06:09:38 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r50639 - head/en_US.ISO8859-1/htdocs/layout/css
Message-ID:  <201708060609.v7669cni043713@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sun Aug  6 06:09:38 2017
New Revision: 50639
URL: https://svnweb.freebsd.org/changeset/doc/50639

Log:
  Provide a set of stylesheet for printing.

Modified:
  head/en_US.ISO8859-1/htdocs/layout/css/layout.css
  head/en_US.ISO8859-1/htdocs/layout/css/navigation.css

Modified: head/en_US.ISO8859-1/htdocs/layout/css/layout.css
==============================================================================
--- head/en_US.ISO8859-1/htdocs/layout/css/layout.css	Sat Aug  5 08:43:51 2017	(r50638)
+++ head/en_US.ISO8859-1/htdocs/layout/css/layout.css	Sun Aug  6 06:09:38 2017	(r50639)
@@ -60,6 +60,7 @@
 
 /* Search */
 
+@media screen {
 #search {
   position: relative;
   text-align: right;
@@ -99,7 +100,12 @@
   color: #666;
   padding: 2px 2px 2px 5px;
 }
+}
 
+@media print {
+#search { display: none; }
+}
+
 /* Mirror Select */
 
 #mirror {
@@ -464,6 +470,7 @@
 
 /* Secondary Pages */
 
+@media screen {
 #sidewrap {
   float: left;
   width: 166px;
@@ -480,6 +487,12 @@
 #contentwrap {
   margin-left: 170px;
   padding-top: 15px;
+}
+}
+
+@media print {
+#sidewrap, #rightwrap { display: none; }
+#contentwrap { margin-left: 16px; padding-top: 15px; }
 }
 
 /* Footer */

Modified: head/en_US.ISO8859-1/htdocs/layout/css/navigation.css
==============================================================================
--- head/en_US.ISO8859-1/htdocs/layout/css/navigation.css	Sat Aug  5 08:43:51 2017	(r50638)
+++ head/en_US.ISO8859-1/htdocs/layout/css/navigation.css	Sun Aug  6 06:09:38 2017	(r50639)
@@ -6,6 +6,7 @@
 
 /* Site Navigation */
 
+@media screen {
 #topnav {
   text-align: left;
   color: #666;
@@ -374,4 +375,15 @@ div#menu ul ul ul li:hover ul {
 .rightnav h1, .rightnav h2, .rightnav h3, .rightnav h4, .rightnav h5, .rightnav h6, .rightnav p {
   padding-left: 10px;
   padding-right: 10px;
+}
+}
+
+@media print {
+#topnav, #topnavleft, #topnavright, #topnavlist { display: none; }
+#menu { display: none; }
+#languagenav, #languagenavlist { display: none; }
+#searchnav, #searchnavlist { display: none; }
+#sidenav { display: none; }
+#feedlinks { display: none; }
+.rightnav { display: none; }
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708060609.v7669cni043713>