diff --git a/Makefile b/Makefile index a25680552..5741b696d 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ LESS_ALL := all.less LESS_ALL_OUT := all.css CSS_OBJS := \ $(TEMPLATE_CSS)/$(LESS_ALL_OUT) \ + $(TEMPLATE_CSS)/print.css \ $(TEMPLATE_CSS)/layouts/unlalert.css RJS := r.js diff --git a/wdn/templates_4.0/images/logo-print.png b/wdn/templates_4.0/images/logo-print.png new file mode 100644 index 000000000..b28882e6f Binary files /dev/null and b/wdn/templates_4.0/images/logo-print.png differ diff --git a/wdn/templates_4.0/includes/scriptsandstyles.html b/wdn/templates_4.0/includes/scriptsandstyles.html index e8e728d3b..bf20b77a9 100644 --- a/wdn/templates_4.0/includes/scriptsandstyles.html +++ b/wdn/templates_4.0/includes/scriptsandstyles.html @@ -19,4 +19,4 @@ - + diff --git a/wdn/templates_4.0/includes/scriptsandstyles_debug.html b/wdn/templates_4.0/includes/scriptsandstyles_debug.html index 98eb49640..ad0b6825c 100644 --- a/wdn/templates_4.0/includes/scriptsandstyles_debug.html +++ b/wdn/templates_4.0/includes/scriptsandstyles_debug.html @@ -16,4 +16,4 @@ - + diff --git a/wdn/templates_4.0/includes/scriptsandstyles_local.html b/wdn/templates_4.0/includes/scriptsandstyles_local.html index 9f46feff1..aa11ef5c0 100644 --- a/wdn/templates_4.0/includes/scriptsandstyles_local.html +++ b/wdn/templates_4.0/includes/scriptsandstyles_local.html @@ -16,4 +16,4 @@ - + diff --git a/wdn/templates_4.0/less/print.less b/wdn/templates_4.0/less/print.less new file mode 100644 index 000000000..f5a97b542 --- /dev/null +++ b/wdn/templates_4.0/less/print.less @@ -0,0 +1,79 @@ +@charset "UTF-8"; + +@import "_mixins/all.less"; + +.hide() { + display: none !important; +} + +.reset() { + padding: 0; + margin: 0; +} + +html, body { + background: none; +} + +a:after { + content: " (" attr(href) ")" !important; + display: inline !important; + height: auto !important; + width: auto !important; + background: none !important; +} + +.skipnav, +#wdn_social, +#wdn_app_wrapper, +#wdn_site_title span span, +#wdn_resources, +#wdn_navigation_bar, +#footer { + .hide() +} + +#header { + background: none; + padding-bottom: 1em; + border-bottom: 2px solid; +} + +#logo { + position: static; + width: auto; + height: auto; + margin: 0; + background: none; + + a { + .hide(); + } + + &:before { + content: url('../images/logo-print.png'); + margin-right: 10px; + height: 55px; + width: 70px; + float: left; + } +} + +#wdn_institution_title { + .reset(); + display: block; + color: @base-text; + .rem(18); + .sans-serif-font(); +} + +#wdn_site_title { + padding: 0; + margin: -1em 0 0 0; + text-align: left; + .rem(30); + + abbr[title]:before { + .rem(24); + } +}