Reverts hardcoded indicator in css by commit
v1.4-5-g387941691e (2010-12-17)
[style: mark development version], instead outputting initial body text if
requested subdomain matches "dev".
-h1 {
- background-image: -moz-repeating-linear-gradient(top left -75deg,
- rgba(255,0,0,.5), rgba(255,0,0,0) 1ex,
- rgba(255,0,0,0) 2ex, rgba(255,0,0,.5) 3ex
- );
-}
h1, h2 {
font-size: 200%;
margin: 0;
h1, h2 {
font-size: 200%;
margin: 0;
$meta->{stylesheet} ||= [qw'light dark circus mono red terse'];
$meta->{charset} ||= 'utf-8';
$meta->{stylesheet} ||= [qw'light dark circus mono red terse'];
$meta->{charset} ||= 'utf-8';
+ ref $_ eq 'ARRAY' or $_ = [$_] for $meta->{raw};
+
# optional amends
push @{ $meta->{raw} }, (
'<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->',
# optional amends
push @{ $meta->{raw} }, (
'<!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->',
print $_, "\n" for $meta->{raw} || ();
print qq{</head>\n\n<body id="$file">\n};
print $_, "\n" for $meta->{raw} || ();
print qq{</head>\n\n<body id="$file">\n};
+ # dev indicator
+ printf '<p style="%s">beta</p>', join('; ',
+ 'position: fixed',
+ 'right: 1em',
+ 'opacity: .5',
+ 'border: 1ex solid red',
+ 'border-width: 1ex 0',
+ ) if $ENV{HTTP_HOST} =~ /\bdev\./;
+
# prepare trailing output
PLP_END {
print <<"EOT";
# prepare trailing output
PLP_END {
print <<"EOT";