common: generate optimised css file for light
[sheet.git] / common.inc.plp
index e5292ba46abd1365258e2ca7e812396deed7cc98..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]-->',