/* Print style sheet for the EDSC */

/* Set non-printable elements to be invisible */
#navlist li, #sidebar-l, .bottomNav, ul.top {
	display: none !important;
}

/* Set all remaining visible items to fill the width of the printed page */
body, #container, #contentcontainer, #content, #addressfooter, #footer {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

body {
	background: white;
  margin: 0 2em 0 4em !important;
}

/* Restyle Navlist so that only the current navigation button is visible
   This allows us to use the name of the unit at the top of the page 
   Otherwise the printed page would not have any reference to the unit it was printed from */

ul#navlist li.current, 
ul#navlist li.current a,
ul#navlist li#edsc.current a,
ul#navlist li#careers.current a {
  float: none !important;
	display: block !important; 
	border: none !important;
	color: black !important;
	font-size: 1em !important;
	font-weight: normal;
	background: none !important;
	padding: 0.5em 0 0 0 !important;
	margin: 0 !important;
}

/* All text to black */
h1, h2, h3, h4, h5, p, address, strong, em {
	color: black;
	background: none !important;
}

/* Restyle header */
h1 {
	border: none;
	border-top: 2px solid #ccc;
	border-bottom: 1px solid #ccc;
	padding-left: 0;
}

/* Add extra padding to page title to compensate for the appearance of the 'link reminder' */
#content h2 {
	padding-top: 0.5em;
}

/* Restyle Content container */
#contentcontainer {
	border: none;
}


/* Add the link URL (in parentheses) after any link or visited link
	 Makes links on the printed page usable */

#content a:link:after, #content a:visited:after {
   content: " (" attr(href) ")";
   font-size: 90%;
}

#content a[href^="http://"]:after {
  content: " (" attr(href) ") ";
}
	 
#content a[href^="../"]:after,
#content a[href^="../../"]:after {
  content: " (http://www.le.ac.uk/" attr(href) ") ";
}

#content a[href^="/"]:after {
  content: " (http://www.le.ac.uk" attr(href) ") ";
}


/* Make the link reminder visible (and relevant to the unit) on the printed page */
#home ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/edsc/" ;
}

#access ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/accessability/" ;
}

#careers ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/careers/" ;
}

#counselling ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/counselling/" ;
}

#sickbay ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/sickbay/" ;
}

#mhealth ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/edsc/mentalhealth/" ;
}

#slc ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/slc/" ;
}

#welfare ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/welfare/" ;
}

#volunteering ul#navlist:after {
	content: "All University of Leicester links on this page should be preceded by http://www.le.ac.uk/edsc/volunteering/" ;
}