From 70dd960f4abf60201c20fa25c038bd04db68614a Mon Sep 17 00:00:00 2001 From: Sean O'Halpin Date: Mon, 6 Aug 2012 10:39:16 +0100 Subject: [PATCH] added different rules for links in print and on screen --- css/style.css | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/css/style.css b/css/style.css index 7333bde..a2b1b22 100644 --- a/css/style.css +++ b/css/style.css @@ -45,15 +45,33 @@ body, input, textarea, button, select { text-align: justify; } -a { - color: #404080; -} - a { color: inherit; background-color: inherit; font: inherit; - text-decoration: underline; +} + +@media screen { + a { + color: #404080; + text-decoration: underline; + } +} + +@media print { + a { + text-decoration: none; + } + + /* a:link:after, */ + /* a:visited:after { */ + /* content: " (" attr(href) ") "; */ + /* font-size: 90%; */ + /* } */ + /* html.noted a:link:after, */ + /* html.noted a:visited:after { */ + /* content: ""; */ + /* } */ } h1 > a {