From 4dbd8467ae74420d42ccabfd3feeda7694c7749b Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 11 Feb 2014 16:39:40 +0100 Subject: [PATCH] =?utf8?q?Layout=20f=C3=BCr=20den=20Ausdruck?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/templates/html-head.jsp | 1 + .../WEB-INF/templates/test/experimente.jsp | 1 + .../WEB-INF/views/test/druck-layout.jsp | 25 +++++++++ src/main/webapp/WEB-INF/wro.xml | 7 +++ src/main/webapp/less/print.less | 29 ++++++++++ src/main/webapp/less/print/head.less | 8 +++ src/main/webapp/less/print/layout.less | 54 +++++++++++++++++++ src/main/webapp/less/print/typo.less | 5 ++ 8 files changed, 130 insertions(+) create mode 100644 src/main/webapp/WEB-INF/views/test/druck-layout.jsp create mode 100644 src/main/webapp/less/print.less create mode 100644 src/main/webapp/less/print/head.less create mode 100644 src/main/webapp/less/print/layout.less create mode 100644 src/main/webapp/less/print/typo.less diff --git a/src/main/webapp/WEB-INF/templates/html-head.jsp b/src/main/webapp/WEB-INF/templates/html-head.jsp index 1b74015e..098c3727 100644 --- a/src/main/webapp/WEB-INF/templates/html-head.jsp +++ b/src/main/webapp/WEB-INF/templates/html-head.jsp @@ -7,6 +7,7 @@ diff --git a/src/main/webapp/less/print.less b/src/main/webapp/less/print.less new file mode 100644 index 00000000..ffcb9c61 --- /dev/null +++ b/src/main/webapp/less/print.less @@ -0,0 +1,29 @@ +@import 'variables.less'; + +#breadcrumb +{ + .droid; + color: @schrift; + font-weight: normal; +} +#breadcrumb strong.b +{ + font-weight: normal; +} +#breadcrumb ol.b li.b a.b, +#breadcrumb ol.b li.b strong.b +{ + color: @schrift; + border-style: none; +} +#breadcrumb a.hide +{ + display: none; +} +#breadcrumb hr.b +{ + display: none; +} +@import 'print/typo.less'; +@import 'print/layout.less'; +@import 'print/header.less'; diff --git a/src/main/webapp/less/print/head.less b/src/main/webapp/less/print/head.less new file mode 100644 index 00000000..db11a6e2 --- /dev/null +++ b/src/main/webapp/less/print/head.less @@ -0,0 +1,8 @@ +#logo +{ + padding-left: .0625em; +} +#slogan +{ + display: inline-block; +} diff --git a/src/main/webapp/less/print/layout.less b/src/main/webapp/less/print/layout.less new file mode 100644 index 00000000..392760e8 --- /dev/null +++ b/src/main/webapp/less/print/layout.less @@ -0,0 +1,54 @@ +body +{ + font-size: 75%; /** 12px */ +} +#header hr.h +{ + margin: .5em 0; +} +.content +{ + clear: both; +} +.marginal +{ + display: none; +} +#breadcrumb +{ + .droid; + color: @schrift; + font-weight: normal; +} +#breadcrumb strong.b +{ + font-weight: normal; +} +#breadcrumb ol.b li.b a.b, +#breadcrumb ol.b li.b strong.b +{ + color: @schrift; + border-style: none; +} +#breadcrumb a.hide +{ + display: none; +} +#breadcrumb hr.b +{ + display: none; +} +#nav +{ + display: none; +} +#footerlinks li.f +{ + display: none; +} +#footerlinks li#copyright +{ + .droid; + font-size: 100%; + display: block; +} diff --git a/src/main/webapp/less/print/typo.less b/src/main/webapp/less/print/typo.less new file mode 100644 index 00000000..58e2ca63 --- /dev/null +++ b/src/main/webapp/less/print/typo.less @@ -0,0 +1,5 @@ +a +{ + color: @schrift; + border-style: none; +} -- 2.20.1