From 9e77a4b24bae7c82ee6c7edc3cf2559280537d14 Mon Sep 17 00:00:00 2001 From: arno Date: Sat, 26 Mar 2011 10:11:28 +0100 Subject: [PATCH] better print support (bis) --- application/controllers/IdxController.php | 6 ++--- public/css/syj.css | 13 ---------- public/css/syjprint.css | 30 ----------------------- 3 files changed, 3 insertions(+), 46 deletions(-) diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index c049809..16ff68f 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -7,9 +7,9 @@ class IdxController extends Zend_Controller_Action public function init() { $this->_helper->SyjMedias->addScripts('idx'); - $this->view->headLink()->appendStylesheet('css/olstyle.css', "screen"); - $this->view->headLink()->appendStylesheet('css/generic.css', "screen"); - $this->view->headLink()->appendStylesheet('css/syj.css', "screen"); + $this->view->headLink()->appendStylesheet('css/olstyle.css', "all"); + $this->view->headLink()->appendStylesheet('css/generic.css', "all"); + $this->view->headLink()->appendStylesheet('css/syj.css', "all"); $this->view->headLink()->appendStylesheet('css/syjprint.css', "print"); $this->view->headMeta()->appendName('viewport', 'width=640px'); } diff --git a/public/css/syj.css b/public/css/syj.css index 9dc2a69..c41d6cf 100644 --- a/public/css/syj.css +++ b/public/css/syj.css @@ -261,16 +261,3 @@ body, html { opacity: 1; filter:alpha(opacity=100); } - -/* - * printing - */ -@media print { - @page { - size: landscape; - } - - #message, #menu, #user_area, #login_area, #newpwd_area, .olControlPanZoom{ - display: none; - } -} diff --git a/public/css/syjprint.css b/public/css/syjprint.css index 5a1c664..305b06d 100644 --- a/public/css/syjprint.css +++ b/public/css/syjprint.css @@ -8,40 +8,10 @@ display: none; } -div.olMap { - z-index: 0; -} - -body, html { - width: 100%; - height: 100%; -} - #map { - position: absolute; - top: 0; left: 0; right: 0; bottom: 0; - width: 100%; - height: 100%; border: 1px solid; } -#path-length { - display: none; - text-align: center; - position: absolute; - top: 1em; - left: 5em; - opacity: 0.85; - margin-right: 12px; - filter:alpha(opacity=85); - background-color: white; - padding: 2px 15px 2px 15px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - border-radius: 5px; - background-color: white; -} - @page { size: landscape; } -- 2.39.2