Skip to content

Commit

Permalink
Add initial CSS styles for basic printing.
Browse files Browse the repository at this point in the history
  • Loading branch information
kabel committed Jul 8, 2013
1 parent 72cab83 commit 38a4a6e
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added wdn/templates_4.0/images/logo-print.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wdn/templates_4.0/includes/scriptsandstyles.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
<![endif]-->

<!-- Load the print styles -->
<link rel="stylesheet" type="text/css" media="print" href="//cdn.unl.edu/wdn/templates_4.0/css/variations/print.css" />
<link rel="stylesheet" type="text/css" media="print" href="//cdn.unl.edu/wdn/templates_4.0/css/print.css" />
2 changes: 1 addition & 1 deletion wdn/templates_4.0/includes/scriptsandstyles_debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
<![endif]-->

<!-- Load the print styles -->
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_4.0/css/variations/print.css" />
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_4.0/css/print.css" />
2 changes: 1 addition & 1 deletion wdn/templates_4.0/includes/scriptsandstyles_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
<![endif]-->

<!-- Load the print styles -->
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_4.0/css/variations/print.css" />
<link rel="stylesheet" type="text/css" media="print" href="/wdn/templates_4.0/css/print.css" />
79 changes: 79 additions & 0 deletions wdn/templates_4.0/less/print.less
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 38a4a6e

Please sign in to comment.