common: generate optimised css file for light
[sheet.git] / common.inc.plp
index 5f7cb25f394046b8963f5b9b85d6292ba0f0f55a..cd0626a53d416f349758c24b3be306a00d63d76b 100644 (file)
@@ -105,7 +105,7 @@ sub Html {
        }
 
        # default fallbacks
-       $meta->{stylesheet} ||= [qw'light dark circus mono red terse'];
+       $meta->{stylesheet} ||= [qw( light dark circus mono red )];
        $meta->{charset} ||= 'utf-8';
 
        # convert options to arrays
@@ -117,6 +117,10 @@ sub Html {
                unless $PLP::sentheaders;
        unshift @{ $meta->{raw} }, stylesheet($meta->{stylesheet});
 
+       push @{ $meta->{raw} }, (
+               '<link rel="stylesheet" type="text/css" media="monochrome" href="/mono.css" title="light">',
+       );
+
        # optional amends
        push @{ $meta->{raw} }, (
                '<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->',
@@ -168,7 +172,7 @@ sub Html {
        created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
        <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html"
         title="Licensed under the GNU Affero General Public License, version 3"
-        rel="license copyright">AGPLv3</a>
+        rel="license">AGPLv3</a>
 EOT
                say sprintf '• %.3fs', Time::HiRes::tv_interval($Time) if $Dev and $Time;
                say '</p>';