adding print styles
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Apr 2017 17:19:07 +0000 (13:19 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 5 Apr 2017 17:19:07 +0000 (13:19 -0400)
css/print.css [new file with mode: 0644]
css/results-print.css [new file with mode: 0644]
parts/header-meta.php
scss/print-results.css [new file with mode: 0644]

diff --git a/css/print.css b/css/print.css
new file mode 100644 (file)
index 0000000..e853797
--- /dev/null
@@ -0,0 +1,18 @@
+@media print {
+    header, footer,.top-bar,.breadcrumbs, .tab-bar,
+    h1,h2,h3,h4,h5,h6,.detail-print-results-link,
+    #copyright,select, label, .glm-alpha-link,
+    .print-results-link,.display-number, .show-search
+    {
+         display: none !important;
+    }
+     a[href]:after {
+        content: none !important;
+    }
+    .footable{
+        border: 3px solid black !important;
+    }
+    .footable>thead>tr>th, .footable>thead>tr>td{
+        border: 1px solid black !important;
+    }
+}
\ No newline at end of file
diff --git a/css/results-print.css b/css/results-print.css
new file mode 100644 (file)
index 0000000..e69de29
index e4e663d..dcb949d 100644 (file)
@@ -7,5 +7,6 @@
     <link href="https://fonts.googleapis.com/css?family=Cormorant+Garamond:400,700" rel="stylesheet"> 
     <link href="https://fonts.googleapis.com/css?family=Oswald:400,700" rel="stylesheet">  
     <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
+    <?php if ( is_page(245) || is_page(249)){ ?> <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/print.css" media="print"> <?php }  ?>
     <?php wp_head(); ?>
   </head>
\ No newline at end of file
diff --git a/scss/print-results.css b/scss/print-results.css
new file mode 100644 (file)
index 0000000..1a83e6c
--- /dev/null
@@ -0,0 +1,3 @@
+@media only print{
+    footer, header, .sidebar{ display:none; }
+}  
\ No newline at end of file